@@ -28,11 +28,12 @@ file a new issue.
28
28
* [ Running Coverage] ( #running-coverage )
29
29
* [ Building the documentation] ( #building-the-documentation )
30
30
* [ Building a debug build] ( #building-a-debug-build )
31
+ * [ Troubleshooting Unix and macOS builds] ( #troubleshooting-unix-and-macos-builds )
31
32
* [ Windows] ( #windows )
32
33
* [ Prerequisites] ( #prerequisites )
33
34
* [ Option 1: Manual install] ( #option-1-manual-install )
34
35
* [ Option 2: Automated install with Boxstarter] ( #option-2-automated-install-with-boxstarter )
35
- * [ Building Node.js] ( #building-nodejs-1 )
36
+ * [ Building Node.js] ( #building-nodejs-2 )
36
37
* [ Android/Android-based devices (e.g. Firefox OS)] ( #androidandroid-based-devices-eg-firefox-os )
37
38
* [ ` Intl ` (ECMA-402) support] ( #intl-ecma-402-support )
38
39
* [ Build with full ICU support (all locales supported by ICU)] ( #build-with-full-icu-support-all-locales-supported-by-icu )
@@ -44,7 +45,7 @@ file a new issue.
44
45
* [ Building without Intl support] ( #building-without-intl-support )
45
46
* [ Unix/macOS] ( #unixmacos-2 )
46
47
* [ Windows] ( #windows-3 )
47
- * [ Use existing installed ICU (Unix/macOS only)] ( #use-existing-installed-icu-unixmacOS -only )
48
+ * [ Use existing installed ICU (Unix/macOS only)] ( #use-existing-installed-icu-unixmacos -only )
48
49
* [ Build with a specific ICU] ( #build-with-a-specific-icu )
49
50
* [ Unix/macOS] ( #unixmacos-3 )
50
51
* [ Windows] ( #windows-4 )
@@ -488,6 +489,17 @@ $ gdb /opt/node-debug/node core.node.8.1535359906
488
489
$ backtrace
489
490
```
490
491
492
+ #### Troubleshooting Unix and macOS builds
493
+
494
+ Stale builds can sometimes result in ` file not found ` errors while building.
495
+ This and some other problems can be resolved with ` make distclean ` . The
496
+ ` distclean ` recipe aggressively removes build artifacts. You will need to
497
+ build again (` make -j4 ` ). Since all build artifacts have been removed, this
498
+ rebuild may take a lot more time than previous builds. Additionally,
499
+ ` distclean ` removes the file that stores the results of ` ./configure ` . If you
500
+ ran ` ./configure ` with non-default options (such as ` --debug ` ), you will need
501
+ to run it again before invoking ` make -j4 ` .
502
+
491
503
### Windows
492
504
493
505
#### Prerequisites
0 commit comments