Bug 48815 - configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Summary: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.5.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 08:17 UTC by henry0312
Modified: 2012-02-01 23:30 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
libiberty's config log (5.81 KB, text/plain)
2011-04-29 08:19 UTC, henry0312
Details
libssp's config log (5.83 KB, text/plain)
2011-04-29 08:20 UTC, henry0312
Details
libgomp's config log (3.34 KB, text/plain)
2011-04-29 15:04 UTC, henry0312
Details

Note You need to log in before you can comment on or make changes to this bug.
Description henry0312 2011-04-29 08:17:15 UTC
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.
Comment 1 henry0312 2011-04-29 08:19:46 UTC
Created attachment 24139 [details]
libiberty's config log

libiberty's config log
Comment 2 henry0312 2011-04-29 08:20:28 UTC
Created attachment 24140 [details]
libssp's config log
Comment 3 Richard Biener 2011-04-29 10:05:01 UTC
    --build=x86_64-apple-darwin10\

do not specify this.
Comment 4 henry0312 2011-04-29 10:59:48 UTC
(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?
Comment 5 henry0312 2011-04-29 15:03:23 UTC
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'.
Comment 6 henry0312 2011-04-29 15:04:56 UTC
Created attachment 24147 [details]
libgomp's config log
Comment 7 henry0312 2011-04-29 15:07:36 UTC
> However, When I tried without '--disable-debug' and '--enable-static", compiled
> successfully.

I made typo :(

Correctly, without '--disable-shared' and '--enable-static".
Comment 8 henry0312 2011-04-29 19:06:04 UTC
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.
Comment 9 Andrew Pinski 2011-04-29 19:08:11 UTC
--disable-shared cannot be used for darwin.
Comment 10 henry0312 2011-04-29 21:13:27 UTC
(In reply to comment #9)
> --disable-shared cannot be used for darwin.

I see.
Thank you, Andrew Pinski.
Comment 11 Andrew Pinski 2012-02-01 23:30:35 UTC
Closing as invalid as --disabled-shared is invalid for darwin.