Mac: compilation failure
-
Context: building Qt from qt-everywhere-opensource-src-4.7.3
Configuration: ./configure -arch i386 -release
The configuration phase works without issues. But, when I type "make", I get this:
cd src/tools/rcc/ && make -f Makefile
g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -O2 -arch i386 -Wall -W -DQT_RCC -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I. -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../xml -o .obj/release-shared/rcc.o rcc.cpp
g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -O2 -arch i386 -Wall -W -DQT_RCC -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_TEXTCODEC -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I. -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -I../../xml -o .obj/release-shared/main.o main.cpp
g++ -headerpad_max_install_names -arch i386 -Xarch_i386 -mmacosx-version-min=10.4 -o ../../../bin/rcc .obj/release-shared/rcc.o .obj/release-shared/main.o -L/Users/pjs/Applications/qt-everywhere-opensource-src-4.7.3/src/tools/bootstrap -lbootstrap -framework CoreServices -lz -lz
ld: can't write output file: ../../../bin/rcc for architecture i386
collect2: ld returned 1 exit status
make[1]: *** [../../../bin/rcc] Error 1
make: *** [sub-rcc-make_default-ordered] Error 2I can get around this issue if I instead do "sudo make". But that seems like it's just working around a small bug in the build system.
Any ideas? Am I doing something wrong?
Thanks!
-- Philip