@@ -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
* [ Default: ` small-icu ` (English only) support] ( #default-small-icu-english-only-support )
@@ -42,7 +43,7 @@ file a new issue.
42
43
* [ Building without Intl support] ( #building-without-intl-support )
43
44
* [ Unix/macOS] ( #unixmacos-1 )
44
45
* [ Windows] ( #windows-2 )
45
- * [ Use existing installed ICU (Unix/macOS only)] ( #use-existing-installed-icu-unixmacOS -only )
46
+ * [ Use existing installed ICU (Unix/macOS only)] ( #use-existing-installed-icu-unixmacos -only )
46
47
* [ Build with a specific ICU] ( #build-with-a-specific-icu )
47
48
* [ Unix/macOS] ( #unixmacos-2 )
48
49
* [ Windows] ( #windows-3 )
@@ -495,6 +496,17 @@ $ gdb /opt/node-debug/node core.node.8.1535359906
495
496
$ backtrace
496
497
```
497
498
499
+ #### Troubleshooting Unix and macOS builds
500
+
501
+ Stale builds can sometimes result in ` file not found ` errors while building.
502
+ This and some other problems can be resolved with ` make distclean ` . The
503
+ ` distclean ` recipe aggressively removes build artifacts. You will need to
504
+ build again (` make -j4 ` ). Since all build artifacts have been removed, this
505
+ rebuild may take a lot more time than previous builds. Additionally,
506
+ ` distclean ` removes the file that stores the results of ` ./configure ` . If you
507
+ ran ` ./configure ` with non-default options (such as ` --debug ` ), you will need
508
+ to run it again before invoking ` make -j4 ` .
509
+
498
510
### Windows
499
511
500
512
#### Prerequisites
0 commit comments