Bug 26810 - error when building cross-compiler
Summary: error when building cross-compiler
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-22 17:55 UTC by Filipe Scoton
Modified: 2006-11-14 06:06 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filipe Scoton 2006-03-22 17:55:17 UTC
I successfully compiled binutils-2.16, configured gcc, and binutils, with --target=sparc64-sun-solaris-2.9 --with-headers=$path_to_headers --with-libs=$path_to_libs, but when I give the command "make all", this happens:

...
>checking for ISO C99 support in <stdlib.h>... no
>checking wctype.h usability... yes
>checking wctype.h presence... yes
>checking for wctype.h... yes
>checking for ISO C99 support in <wchar.h>... no
>checking for fully enabled ISO C99 support... no
>checking for enabled long long specializations... yes
>checking for enabled wchar_t specializations... yes
>configure: Debug build flags set to -g3 -O0
>checking for additional debug build... no
>checking for extra compiler flags for building...
>checking for thread model used by GCC... posix
>checking iconv.h usability... yes
>checking iconv.h presence... yes
>checking for iconv.h... yes
>checking langinfo.h usability... yes
>checking langinfo.h presence... yes
>checking for langinfo.h... yes
>checking for iconv in -liconv... configure: error: Link tests are not allowed >after GCC_NO_EXECUTABLES.
>make[1]: *** [configure-target-libstdc++-v3] Error 1
>make[1]: Leaving directory `/home/filipe/sparc64/build-gcc'
>make: *** [all] Error 2
Comment 1 Andrew Pinski 2006-03-22 21:09:34 UTC
Look at config.log in libstdc++ subdirectory to see why it fails.  The error message is misleading.
Comment 2 Vladimir Kondratyev 2006-06-21 16:07:36 UTC
I'm experienced with the similar bug #28125. Please help, I'm ready to provide any additinal information.
Comment 3 Martin Krischik 2006-08-14 10:35:34 UTC
Problem also appears on mingw cross compiles:

--build=i586-suse-linux --host=i586-suse-linux --target=mingw32

...
configure: Debug build flags set to -g3 -O0
checking for additional debug build... no
checking for extra compiler flags for building...
checking for thread model used by GCC... win32
checking for sys/types.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for ld that supports -Wl,-z,relro... no
checking for main in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLE
Comment 4 Andrew Pinski 2006-11-14 06:06:12 UTC
No feedback in 3 months so closing.