Build-error : osx : atom-1.9.9 : Warning: ENOENT: no such file or directory, symlink '../../bin/apm'


#1

Build-error : osx : atom-1.9.9 : Warning: ENOENT: no such file or directory, symlink ‘…/…/bin/apm’

I am trying to build Atom-1.9.9 on osx 10.11.6 (15G31). The build ends with Aborted due to warnings and no application is built.

Steps to reproduce:

  1. Get 1.9.9 source https://github.com/atom/atom/archive/v1.9.9.tar.gz, unpack, read https://github.com/atom/atom/blob/master/docs/build-instructions/macos.md
  2. cd atom
  3. script/bootstrap
  4. script/build
  5. Aborted due to warnings

Running “build” task
Warning: ENOENT: no such file or directory, symlink ‘…/…/bin/apm’ -> ‘/Users/magnuslarsson/test/atom/atom-1.9.9/out/Atom.app/Contents/Resources/new-app/apm/node_modules/.bin/apm’ Use --force to continue.

How to fix this?

I tried --force, but then I get

Running “generate-asar” task
Fatal error: ENOENT: no such file or directory, scandir ‘/Users/magnuslarsson/test/atom/atom-1.9.9/out/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/symbols-view/vendor’

Details below.

OS X 10.11.6 (15G31)
Node: v4.5.0
npm: v3.10.6

=== details ===

magnuslarsson:~/test/atom$ cd atom-1.9.9
magnuslarsson:~/test/atom/atom-1.9.9$ script/bootstrap
Node: v4.5.0
npm: v3.10.6
Installing build modules…
=> Took 169998ms.

Installing apm…
…/deps/libgit2/deps/zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
~~~ ^
1 warning generated.
=> Took 92955ms.

Deleting old packages…
=> Took 592ms.

Installing modules ✓
Installing atom-dark-syntax@0.27.0 ✓
Installing atom-dark-ui@0.51.0 ✓
Installing atom-light-syntax@0.28.0 ✓
Installing atom-light-ui@0.43.0 ✓
Installing base16-tomorrow-dark-theme@1.1.0 ✓
Installing base16-tomorrow-light-theme@1.1.1 ✓
Installing one-dark-ui@1.3.2 ✓
Installing one-light-ui@1.3.2 ✓
Installing one-dark-syntax@1.2.0 ✓
Installing one-light-syntax@1.2.0 ✓
Installing solarized-dark-syntax@1.0.2 ✓
Installing solarized-light-syntax@1.0.2 ✓
Installing about@1.5.2 ✓
Installing archive-view@0.61.1 ✓
Installing autocomplete-atom-api@0.10.0 ✓
Installing autocomplete-css@0.11.1 ✓
Installing autocomplete-html@0.7.2 ✓
Installing autocomplete-plus@2.31.0 ✓
Installing autocomplete-snippets@1.11.0 ✓
Installing autoflow@0.27.0 ✓
Installing autosave@0.23.1 ✓
Installing background-tips@0.26.0 ✓
Installing bookmarks@0.41.0 ✓
Installing bracket-matcher@0.82.1 ✓
Installing command-palette@0.38.0 ✓
Installing deprecation-cop@0.54.1 ✓
Installing dev-live-reload@0.47.0 ✓
Installing encoding-selector@0.22.0 ✓
Installing exception-reporting@0.39.0 ✓
Installing fuzzy-finder@1.3.0 ✓
Installing git-diff@1.1.0 ✓
Installing find-and-replace@0.198.0 ✓
Installing go-to-line@0.31.0 ✓
Installing grammar-selector@0.48.1 ✓
Installing image-view@0.58.0 ✓
Installing incompatible-packages@0.26.1 ✓
Installing keybinding-resolver@0.35.0 ✓
Installing line-ending-selector@0.5.0 ✓
Installing link@0.31.1 ✓
Installing markdown-preview@0.158.1 ✓
Installing metrics@0.53.1 ✓
Installing notifications@0.64.1 ✓
Installing open-on-github@1.2.0 ✓
Installing package-generator@1.0.0 ✓
Installing settings-view@0.238.2 ✓
Installing snippets@1.0.2 ✓
Installing spell-check@0.67.1 ✓
Installing status-bar@1.4.1 ✓
Installing styleguide@0.47.1 ✓
Installing symbols-view@0.113.0 ✓
Installing tabs@0.98.1 ✓
Installing timecop@0.33.1 ✓
Installing tree-view@0.208.0 ✓
Installing update-package-dependencies@0.10.0 ✓
Installing welcome@0.34.0 ✓
Installing whitespace@0.32.2 ✓
Installing wrap-guide@0.38.1 ✓
Installing language-c@0.52.1 ✓
Installing language-clojure@0.21.0 ✓
Installing language-coffee-script@0.47.0 ✓
Installing language-csharp@0.12.1 ✓
Installing language-css@0.36.2 ✓
Installing language-gfm@0.86.0 ✓
Installing language-git@0.13.0 ✓
Installing language-go@0.42.0 ✓
Installing language-html@0.44.1 ✓
Installing language-hyperlink@0.16.0 ✓
Installing language-java@0.22.0 ✓
Installing language-javascript@0.119.0 ✓
Installing language-json@0.18.0 ✓
Installing language-less@0.29.3 ✓
Installing language-make@0.22.2 ✓
Installing language-mustache@0.13.0 ✓
Installing language-objective-c@0.15.1 ✓
Installing language-perl@0.35.0 ✓
Installing language-php@0.37.0 ✓
Installing language-property-list@0.8.0 ✓
Installing language-python@0.45.0 ✓
Installing language-ruby@0.68.5 ✓
Installing language-ruby-on-rails@0.25.0 ✓
Installing language-sass@0.52.0 ✓
Installing language-shellscript@0.22.3 ✓
Installing language-source@0.9.0 ✓
Installing language-sql@0.21.1 ✓
Installing language-text@0.7.1 ✓
Installing language-todo@0.28.0 ✓
Installing language-toml@0.18.0 ✓
Installing language-xml@0.34.8 ✓
Installing language-yaml@0.26.0 ✓
=> Took 575461ms.

Deduping modules ✓
=> Took 46464ms.

magnuslarsson:~/test/atom/atom-1.9.9$ script/build
Node: v4.5.0
npm: v2.13.3
Installing build modules…
=> Took 6142ms.

Installing apm…
=> Took 1343ms.

Deleting old packages…
=> Took 848ms.

Installing modules ✓
=> Took 4459ms.

Deduping modules ✓
=> Took 4305ms.

Running “download-electron” task

Running “download-electron-chromedriver” task

Running “build” task
Warning: ENOENT: no such file or directory, symlink ‘…/…/bin/apm’ -> ‘/Users/magnuslarsson/test/atom/atom-1.9.9/out/Atom.app/Contents/Resources/new-app/apm/node_modules/.bin/apm’ Use --force to continue.

Aborted due to warnings.

Execution Time (2016-08-29 19:35:42 UTC)
loading tasks 5.3s ▇▇ 5%
download-electron 1m 46.1s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 91%
build 4.9s ▇▇ 4%
Total 1m 56.4s

=== try --force ===

magnuslarsson:~/test/atom/atom-1.9.9$ script/build --force
Node: v4.5.0
npm: v2.13.3
Installing build modules…
=> Took 6016ms.

Installing apm…
=> Took 1319ms.

Deleting old packages…
=> Took 838ms.

Installing modules ✓
=> Took 4381ms.

Deduping modules ✓
=> Took 4568ms.

Running “download-electron” task

Running “download-electron-chromedriver” task

Running “build” task
Warning: ENOENT: no such file or directory, symlink ‘…/…/bin/apm’ -> ‘/Users/magnuslarsson/test/atom/atom-1.9.9/out/Atom.app/Contents/Resources/new-app/apm/node_modules/.bin/apm’ Used --force, continuing.

Running “set-version” task

Set: Entry, “CFBundleShortVersionString”, Does Not Exist
Warning: null Used --force, continuing.

Running “generate-asar” task
Fatal error: ENOENT: no such file or directory, scandir ‘/Users/magnuslarsson/test/atom/atom-1.9.9/out/Atom.app/Contents/Resources/app.asar.unpacked/node_modules/symbols-view/vendor’

Execution Time (2016-08-29 19:39:38 UTC)
loading tasks 2.6s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%
build 3.7s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 56%
set-version 175ms ▇▇ 3%
generate-asar 111ms ▇ 2%
Total 6.6s

magnuslarsson:~/test/atom/atom-1.9.9$

=== ===

Best regards,

Magnus Larsson


#2

Hello again,

It works for me, with the latest source from the git repo.

It did not build at all earlier today, but I did a git pull and rebuilt and now it works.

git clone https://github.com/atom/atom.git
cd atom
script/bootstrap
script/build
script/build --install

I get the Atom application installed in /Applications and I can start it.

My apologies for the noise.

Magnus


#3

It doesn’t work for me please help here is what I get

Node: v8.1.2
Npm: v3.10.5
Installing script dependencies
Installing apm
/home/irindu/Desktop/CO328/atom/apm/node_modules/atom-package-manager/bin/apm: line 46: /home/irindu/Desktop/CO328/atom/apm/node_modules/atom-package-manager/bin/node: No such file or directory
child_process.js:611
throw err;
^

Error: Command failed: /home/irindu/Desktop/CO328/atom/apm/node_modules/atom-package-manager/bin/apm --loglevel=error install
at checkExecSyncError (child_process.js:588:13)
at Object.execFileSync (child_process.js:608:13)
at module.exports (/home/irindu/Desktop/CO328/atom/script/lib/run-apm-install.js:14:16)
at Object. (/home/irindu/Desktop/CO328/atom/script/bootstrap:29:1)
at Module._compile (module.js:569:30)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)