Difference between revisions of "Development:Building:Build Errors"
(→Introduction: tinder warning here, too; repetition is good) |
(→Other: an answer) |
||
Line 185: | Line 185: | ||
* [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites#Troubleshooting Mac OS X Build Prerequisites: Troubleshooting] | * [http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites#Troubleshooting Mac OS X Build Prerequisites: Troubleshooting] | ||
* [http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ#Mac-specific_questions Mozilla Build FAQ: Mac-specific questions] (less interesting, and more tuned to Fx) | * [http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ#Mac-specific_questions Mozilla Build FAQ: Mac-specific questions] (less interesting, and more tuned to Fx) | ||
− | *: | + | *: [5:40pm] mento: the mac-specific questions on there - most of the errors there are no longer relevant, realy |
* [[Development:Building#FAQ]] has some non-build errors, and needs to link prominently to this page. | * [[Development:Building#FAQ]] has some non-build errors, and needs to link prominently to this page. |
Revision as of 13:49, 15 August 2006
Contents
- 1 Introduction
- 2 Build Errors extracted from the cbo Build FAQ
- 3 pbxcp: libpermissions.dylib: No such file or directory
- 4 make[7]: *** No rule to make target `nsIProxiedChannel.idl', needed by `_xpidlgen/nsIProxiedChannel.h'. Stop.
- 5 rsync: readlink failed: Too many levels of symbolic links (62)
- 6 make[n]: pipe: Too many open files
- 7 nsString.h:55:15: error: new.h: No such file or directory
- 8 c++: cannot specify -o with -c or -S and multiple compilations
- 9 Other stuff we've seen; details to be filled in
Introduction
This page provides a breakdown of the common Camino build errors, their causes, and instructions for resolving the errors.
Before looking for your error on this page, make sure that the Camino tinderbox was green when you pulled your source tree.
If the Camino tinderbox or the Mac builds or UNIX/Linux builds in the SeaMonkey or Firefox tinderboxes are orange or red, you should avoid checking out.
If the tinderbox was green when you checked out your source tree, look for your error below.
Build Errors extracted from the cbo Build FAQ
Q. I get a link error when building Camino.
A. This has most likely occurred because you are building from within Xcode and have set up .mozconfig
for an optimized build and Xcode for a debug build, or the other way around. Follow the instructions above to set your build mode in both .mozconfig
and Xcode. Or just build from the command line using make -f client.mk
.
Q. I get errors that the Camino build failed at some <CopyFilesX> where X is some number.
A. Usually this is because you forgot to make
in embedding/config
after making code changes. Follow the instructions carefully, and try again.
pbxcp: libpermissions.dylib: No such file or directory
In XCode 2.3:
Error message
Build target "Camino" of project "Camino" with configuration "Development" - (1 error) Copying ../dist/bin/components/libpermissions.dylib - (1 error) pbxcp: libpermissions.dylib: No such file or directory Build failed (1 error)
Cause
You have enabled a static build of Camino in your .mozconfig, but not in Xcode (target mismatch).
Solution
Remove the following lines from your .mozconfig (rather than change Xcode's target, since static builds aren't useful for development)
ac_add_options --disable-shared ac_add_options --enable-static
and make again (?)
make[7]: *** No rule to make target `nsIProxiedChannel.idl', needed by `_xpidlgen/nsIProxiedChannel.h'. Stop.
In Terminal
Error message
../../../dist/bin/xpidl -m header -w -I. -I../../../dist/idl -o _xpidlgen/nsINetUtil nsINetUtil.idl make[7]: *** No rule to make target `nsIProxiedChannel.idl', needed by `_xpidlgen/nsIProxiedChannel.h'. Stop. make[6]: *** [export] Error 2 make[5]: *** [export] Error 2 make[4]: *** [export_tier_9] Error 2 make[3]: *** [tier_9] Error 2 make[2]: *** [default] Error 2 make[1]: *** [build] Error 2 make: *** [build] Error 2
Cause
Unknown
Solution
Unknown
rsync: readlink failed: Too many levels of symbolic links (62)
In Terminal
Error message
Touch /Users/delliott/Documents/Camino/mozilla/camino/build/Development/Camino.app cd /Users/delliott/Documents/Camino/mozilla/camino /usr/bin/touch -c /Users/delliott/Documents/Camino/mozilla/camino/build/Development/Camino.app ** BUILD SUCCEEDED ** rsync -a --copy-unsafe-links build/Development/Camino.app/ ../dist/Camino.app rsync: readlink "/Users/delliott/Documents/Camino/mozilla/camino/build/Development/Camino.app/Contents/Frameworks/ SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/ SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/ SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/ SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/ SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/ SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/ SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/SharedMenusCocoa.framework/ SharedMenusCocoa.framework/SharedMenusCocoa.framework" failed: Too many levels of symbolic links (62) rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-24/rsync/main.c(717) make[5]: *** [libs] Error 23 make[4]: *** [libs_tier_99] Error 2 make[3]: *** [tier_99] Error 2 make[2]: *** [default] Error 2 make[1]: *** [build] Error 2 make: *** [build] Error 2
Cause
You have a symlink to the SharedMenusCocoa.framework directory in your /Library/Frameworks/SharedMenusCocoa.framework directory. Computers do not like recursion.
Solution
Re-install the SharedMenusCocoa framework following these instructions: http://www.caminobrowser.org/development/build/ and make.
make[n]: pipe: Too many open files
In Terminal on 10.3.x
Error Message
Updating dependencies file, .deps/.all.pp Updating dependencies file, .deps/.all.pp Updating dependencies file, .deps/.all.pp Updating dependencies file, .deps/.all.pp make[5]: /Users/smokey/Camino/dev/trunk/mozilla/config/config.mk:788: pipe: Too many open files make[5]: /Users/smokey/Camino/dev/trunk/mozilla/config/config.mk:863: pipe: Too many open files Updating dependencies file, .deps/.all.pp Makefile:43: ../../../config/autoconf.mk: Too many open files Makefile:157: /Users/smokey/Camino/dev/trunk/mozilla/config/rules.mk: Too many open files make[5]: *** No rule to make target `libs'. Stop. make[4]: *** [libs] Error 2 make[3]: *** [libs] Error 2 make[2]: *** [libs_tier_9] Error 2 make[1]: *** [tier_9] Error 2 make: *** [default] Error 2
Cause
- A bug in make that ships with Xcode 1.x (see Bug 335506); happens most often when making in the objdir
Solution
There's no "real" solution to this issue. Work-arounds include:
- Just make again
- If it continues to fail after a couple of tries, go back to mozilla and make -f client.mk
- Manually upgrading your make (not recommended)
nsString.h:55:15: error: new.h: No such file or directory
Error message
In file included from ../../../dist/include/string/nsDependentString.h:43, from nsDependentString.cpp:40: ../../../dist/include/string/nsString.h:55:15: error: new.h: No such file or directory
Cause
You are building using GCC4 instead of GCC 3.3. You cannot use GCC4 with Mac OS X 10.2.8 SDK
Solution
In Terminal.app
sudo gcc_select 3.3 make -f client.mk distclean make -f client.mk
(or follow the instructions in the FAQ for configuring the proper SDK)
c++: cannot specify -o with -c or -S and multiple compilations
Error Message
c++: cannot specify -o with -c or -S and multiple compilations
(need the full error still)
Cause
You switched compilers from gcc 4 to gcc 3 without reconfiguring your tree.
Solution
make -f client.mk distclean make -f client.mk
Other stuff we've seen; details to be filled in
Things that need to be tested
- [5:25pm] mento: also, someone should install xcode 2.4 without my patch and see what bad things happen when you try to build camino with the 10.2.8 sdk
[5:25pm] mento: it's probably the same error from http://developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites#Troubleshooting
- [5:22pm] mento: whoever updates the wiki with this, you might also want to see what bad stuff happens when you take a tree configured for gcc 4 and try to build with gcc 3
Missing/non-Uni SMF
Other
There are some described on the Camino Build instructions page, on Building Mozilla, and on the Mac Build Instructions pages (links below)
- Mac OS X Build Prerequisites: Troubleshooting
- Mozilla Build FAQ: Mac-specific questions (less interesting, and more tuned to Fx)
- [5:40pm] mento: the mac-specific questions on there - most of the errors there are no longer relevant, realy
- Development:Building#FAQ has some non-build errors, and needs to link prominently to this page.