Hello. I tried to compile gcc 4.5.3 stable on Mac OS X 10.6.7 (Darwin 10.7.3, Xcode 3.2.3) and confronted configure errors at libiberty and libssp. My configure options: ../gcc-4.5.3/configure\ --with-pkgversion='GCC 4.5.3 x86_64-apple-darwin10'\ --prefix=$HOME/local/gcc45\ --build=x86_64-apple-darwin10\ --with-local-prefix=$HOME/local/gcc45\ --disable-debug\ --disable-shared\ --enable-static\ --disable-multilib\ --enable-threads=posix\ --disable-bootstrap\ --enable-version-specific-runtime-libs\ --enable-languages=c,c++,objc,obj-c++\ --enable-stage1-checking\ --disable-nls\ --enable-werror\ --enable-lto\ --with-system-zlib\ --enable-fully-dynamic-string However, When I tried without '--disable-debug' and '--enable-static", compiled successfully.
Created attachment 24139 [details] libiberty's config log libiberty's config log
Created attachment 24140 [details] libssp's config log
--build=x86_64-apple-darwin10\ do not specify this.
(In reply to comment #3) > --build=x86_64-apple-darwin10\ > > do not specify this. I tried without '--build=x86_64-apple-darwin10', but the result was the same. Any suggestions?
I'm sorry. This error, 'configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. ', occurs when 'make -j4'. I tried 'make', then configure: error: in `/Users/henry/Build/GCC/build/x86_64-apple-darwin10.7.3/libgomp': configure: error: C compiler cannot create executables See `config.log' for more details. make[1]: *** [configure-target-libgomp] Error 1 make: *** [all] Error 2 Anyway, I fail to compile with '--disable-shared' and '--enable-static'.
Created attachment 24147 [details] libgomp's config log
> However, When I tried without '--disable-debug' and '--enable-static", compiled > successfully. I made typo :( Correctly, without '--disable-shared' and '--enable-static".
Now I know the problem. in config log, ld: library not found for -lgcc_ext.10.5 I put libgcc_ext.10.5.dylib that is made with shared build to build_dir/gcc, and compiled again. Successfully. Why doesn't libgcc_ext.10.5.dylib exist anywhere when static build.
--disable-shared cannot be used for darwin.
(In reply to comment #9) > --disable-shared cannot be used for darwin. I see. Thank you, Andrew Pinski.
Closing as invalid as --disabled-shared is invalid for darwin.