This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Link tests are not allowed after GCC_NO_EXECUTABLES


On Fri, Oct 15, 2010 at 9:03 AM, Doug Crawford <dcraw101@yahoo.com> wrote:
> Bryan, I really appreciate you taking a look at this. ÂI have attached the config.log located directly under build-cc (which appears to have run without errors) and the config.log located under libstsc++-v3 (which does have an error).
>
> I will mention that I have only seen this error after the recent patch that allows libgomp to be disabled. ÂI still couldn't get this configuration to build before that patch because libgomp was referencing copysignl which is not defined in libc for uclibc. ÂBut, I think that copysignl problem is unrelated to the problem I have described in this message thread.
>
> Thanks,
> Doug
>
> --- On Fri, 10/15/10, Bryan Hundven <bryanhundven@gmail.com> wrote:
>
>> From: Bryan Hundven <bryanhundven@gmail.com>
>> Subject: Re: Link tests are not allowed after GCC_NO_EXECUTABLES
>> To: "Doug Crawford" <dcraw101@yahoo.com>
>> Cc: crossgcc@sourceware.org
>> Date: Friday, October 15, 2010, 12:10 AM
>> On Thu, Oct 14, 2010 at 4:38 PM, Doug
>> Crawford <dcraw101@yahoo.com>
>> wrote:
>> > Here is my .config and build.log compressed in xz
>> format.
>> >
>> > Thanks,
>> > Doug
>> >
>> > --- On Thu, 10/14/10, Bryan Hundven <bryanhundven@gmail.com>
>> wrote:
>> >
>> >> From: Bryan Hundven <bryanhundven@gmail.com>
>> >> Subject: Re: Link tests are not allowed after
>> GCC_NO_EXECUTABLES
>> >> To: "Doug Crawford" <dcraw101@yahoo.com>
>> >> Cc: crossgcc@sourceware.org
>> >> Date: Thursday, October 14, 2010, 9:05 PM
>> >> On Tue, Oct 12, 2010 at 11:44 AM,
>> >> Doug Crawford <dcraw101@yahoo.com>
>> >> wrote:
>> >> > Tried to build gcc 4.5.1 for powerpc-uclibc
>> using the
>> >> latest crosstool-ng with
>> >> > libgomp disabled. When I look at the
>> config.log for
>> >> libstdc++-v3 the only place
>> >> > I see an error is:
>> >> >
>> >> > configure:4606:
>> >> >
>> >>
>> /home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/xgcc
>> >> >
>> >>
>> -B/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/
>> >> > /
>> >> >
>> >>
>> -B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/
>> >> >
>> >>
>> -B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/lib/
>> >> > -isystem
>> >> >
>> >>
>> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/include
>> >> > -isystem
>> >> >
>> >>
>> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/sys-include
>> >> > Â-EÂ conftest.c
>> >> > conftest.c:9:28: fatal error:
>> ac_nonexistent.h: No
>> >> such file or directory
>> >> > compilation terminated.
>> >> > configure:4606: $? = 1
>> >> > configure: failed program was:
>> >> > | /* confdefs.h */
>> >> > | #define PACKAGE_NAME "package-unused"
>> >> > | #define PACKAGE_TARNAME "libstdc++"
>> >> > | #define PACKAGE_VERSION "version-unused"
>> >> > | #define PACKAGE_STRING "package-unused
>> >> version-unused"
>> >> > | #define PACKAGE_BUGREPORT ""
>> >> > | #define PACKAGE_URL ""
>> >> > | /* end confdefs.h. */
>> >> > | #include <ac_nonexistent.h>
>> >> >
>> >> >
>> >> > Here is the end of the build.log:
>> >> >
>> >> > [INFO ]
>> >>
>> =================================================================
>> >> > [INFO ]Â Installing final compiler
>> >> > [ERROR]ÂÂÂ checking dynamic linker
>> >> characteristics... configure: error: Link
>> >> > tests are not allowed after
>> GCC_NO_EXECUTABLES.
>> >> > [ERROR]ÂÂÂ make[2]: ***
>> >> [configure-target-libstdc++-v3] Error 1
>> >> > [ERROR]ÂÂÂ make[1]: *** [all] Error 2
>> >> > [ERROR]ÂÂÂ Build failed in step
>> 'Installing final
>> >> compiler'
>> >> > [ERROR]ÂÂÂ Error happened in
>> >> >
>> >>
>> '/home/crawford/crosstool-ng//lib/ct-ng-hg_default@2146_3b812ba8d001/scripts/functions'
>> >> > Âin function 'CT_DoExecLog' (line unknown,
>> sorry)
>> >> > [ERROR]ÂÂÂÂÂÂÂÂÂ called from
>> >> >
>> >>
>> '/home/crawford/crosstool-ng//lib/ct-ng-hg_default@2146_3b812ba8d001/scripts/build/cc/gcc.sh'
>> >> > Âat line # 479 in function 'do_cc'
>> >> > [ERROR]ÂÂÂÂÂÂÂÂÂ called from
>> >> >
>> >>
>> '/home/crawford/crosstool-ng//lib/ct-ng-hg_default@2146_3b812ba8d001/scripts/crosstool-NG.sh'
>> >> > Âat line # 596 in function 'main'
>> >> > [ERROR]ÂÂÂ Look at
>> >>
>> '/home/crawford/x-tools/powerpc-860-linux-uclibc/build.log'
>> >> > for more info on this error.
>> >> > [ERROR]Â (elapsed: 47:43.16)
>> >> >
>> >> > Doug
>> >>
>> >> Doug,
>> >>
>> >> I have ran into this problem before. Could you
>> please
>> >> attach your
>> >> build.log and .config?
>> >>
>> >> -Bryan
>>
>> (from build.log)
>> [ALLÂ ]Â Â checking command to parse
>> /home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/nm
>> output from
>> /home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/xgcc
>> -B/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/
>> -B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/
>> -B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/lib/
>> -isystem
>> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/include
>> -isystem
>> /home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/sys-include
>> ÂÂÂobject... failed
>>
>> When I saw this issue before, it was because I was doing a
>> parallel
>> build (make -j8), something in configure bailed and I got
>> this error.
>> It seems you are only making with one thread. The line I
>> pasted above
>> might be a clue, but it would be better if we got the
>> config.log from:
>>
>> /home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/config.log
>>
>> to find out what really happened.
>>
>> -Bryan
>>
>
>
>

configure:3840:
/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/xgcc
-B/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc/
-B/home/crawford/
x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/
-B/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/lib/
-isystem /home/crawford/x-tools/powerpc-860-linux-uclibc/power
pc-860-linux-uclibc/include -isystem
/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/sys-include
   -o conftest -g -Os   conftest.c  >&5
/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/ld:
conftest: hidden symbol `_restgpr_31_x' in
/home/crawford/crosstool-ng/targets/powerpc-860-linux-uclibc/build/build-cc/./gcc
   /libgcc.a(crtresxgpr.o) is referenced by DSO
/home/crawford/x-tools/powerpc-860-linux-uclibc/powerpc-860-linux-uclibc/bin/ld:
final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

Hmm. Try turning off CT_CC_GCC_ENABLE_TARGET_OPTSPACE under the Compiler menu.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810

-- 
Bryan Hundven
bryanhundven@gmail.com

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]