AVR32 libiberty build failure
At least I think thats the problem...
gcc builds OK and at the next step on a default config build for a atngw100 it fails.
build output attached.
$ svn info Path: . URL: svn://uclibc.org/trunk/buildroot Repository Root: svn://uclibc.org Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277 Revision: 19875 Node Kind: directory Schedule: normal Last Changed Author: aldot Last Changed Rev: 19875 Last Changed Date: 2007-09-18 09:50:54 +1200 (Tue, 18 Sep 2007) Properties Last Updated: 2007-09-18 11:59:57 +1200 (Tue, 18 Sep 2007)
Build host = kubuntu 6.06LT
$ uname -a Linux WS1737 2.6.15-28-386 #1 PREEMPT Tue Mar 13 20:49:31 UTC 2007 i686 GNU/Linux
$ gcc --version gcc (GCC) 3.3.6 (Ubuntu 1:3.3.6-10) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Signature · 22 lines
Robin ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. ======================================================================= -------------- next part -------------- A non-text attachment was scrubbed... Name: build_output.bz2 Type: application/octet-stream Size: 2295 bytes Desc: not available Url : http://busybox.net/lists/buildroot/attachments/20070918/92fab5c5/attachment.obj
Quoted 4 lines · Robin Gilks
At least I think thats the problem...
gcc builds OK and at the next step on a default config build for a atngw100 it fails.
Does this work with the current stable, buildroot gcc, i.e. our 4.2.1 with buildroot patches?
It seems that you are using something like:
toolchain_build_avr32/gcc-4.1.2-avr32-2.0
tis 2007-09-18 klockan 13:26 +0200 skrev Bernhard Fischer:
Quoted 6 lines · Robin Gilks
Quoted 4 lines
At least I think thats the problem...
gcc builds OK and at the next step on a default config build for a atngw100 it fails.
I think it is better to check against 4.1.2,
since there is no later port for AVR32.
The problem occurs in "gcc-*/libstdc++-v3/configure" if "gcc_no_link" is "yes".
This is set to "yes", if linking fails in "gcc-*/ltconfig". For the AVR32 the linker fails because crt1.o is not found (See log below)
I checked the staging dir, and there is no crt1.o there when gcc-*-final is built
I searched for crt1.* in the gcc source tree,
only gcc/config/sh/crt1.asm exists.
IIRC, I have seen similar problems with ARM & C++
I build with c++,locale, gettext and libintl
Here is the config.log (after cleaning):
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ltconfig:1487: $(BR)/$(GCC_FINAL)/./gcc/xgcc
-shared-libgcc -B$(BR)/$(GCC_FINAL)/./gcc -nostdinc++ -L$(BR)/$(GCC_FINAL)/avr32-linux-uclibc/libstdc++-v3/src -L$(BR)/$(GCC_FINAL)/avr32-linux-uclibc/libstdc++-v3/src/.libs -B$(BR)/build_avr32/staging_dir/avr32-linux-uclibc/bin/ -B$(BR)/build_avr32/staging_dir/avr32-linux-uclibc/lib/ -isystem $(BR)/build_avr32/staging_dir/avr32-linux-uclibc/include -isystem $(BR)/build_avr32/staging_dir/avr32-linux-uclibc/sys-include -o conftest -g -Os -fno-builtin -fno-rtti -fno-exceptions conftest.cc conftstm.o 1>&5
$(BR)/build_avr32/staging_dir/avr32-linux-uclibc/bin/ld: crt1.o: No such
file: No such file or directory
collect2: ld returned 1 exit status
ltconfig: failed program was:
#ifdef __cplusplus
extern "C" {
#endif
extern char nm_test_var;
extern char main;
extern char nm_test_func;
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void * #else # define lt_ptr_t char * # define const #endif
/* The mapping between symbol names and symbols. */ const struct {
const char *name;
lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
{"nm_test_var", (lt_ptr_t) &nm_test_var}, {"main", (lt_ptr_t) &main}, {"nm_test_func", (lt_ptr_t) &nm_test_func}, {0, (lt_ptr_t) 0}
};
#ifdef __cplusplus
}
#endif
--------------------------------------------------------------------------------------------
Quoted 8 lines
Does this work with the current stable, buildroot gcc, i.e. our 4.2.1 with buildroot patches?
It seems that you are using something like:
toolchain_build_avr32/gcc-4.1.2-avr32-2.0
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Quoted 20 lines · Ulf Samuelsson
tis 2007-09-18 klockan 13:26 +0200 skrev Bernhard Fischer:
Quoted 5 lines · Robin Gilks
Quoted 4 lines
At least I think thats the problem...
gcc builds OK and at the next step on a default config build for a atngw100 it fails.
I think it is better to check against 4.1.2,
since there is no later port for AVR32.The problem occurs in "gcc-*/libstdc++-v3/configure" if "
gcc_no_link" is "yes".This is set to "yes", if linking fails in "gcc-*/ltconfig". For the AVR32 the linker fails because crt1.o is not found (See log below)
I checked the staging dir, and there is no crt1.o there when gcc-*-final is built
Quoted 7 lines
I searched for crt1.* in the gcc source tree,
only gcc/config/sh/crt1.asm exists.IIRC, I have seen similar problems with ARM & C++
I build with c++,locale, gettext and libintl
I guess I was being a bit optimistic hoping that the default config for a target would actually work!
Has anyone tested the buildroot/target/device/Atmel/atngw100/atngw100_defconfig file or am I missing something in what is in svn at present... or am I perhaps going about it the wrong way - I assumed I should copy this to the top level .config and run 'make oldconfig' then 'make'
Signature · 13 lines
Robin ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. =======================================================================
ons 2007-09-19 klockan 16:23 +1200 skrev Robin Gilks:
Quoted 24 lines
Quoted 23 lines · Ulf Samuelsson
tis 2007-09-18 klockan 13:26 +0200 skrev Bernhard Fischer:
Quoted 5 lines · Robin Gilks
Quoted 4 lines
At least I think thats the problem...
gcc builds OK and at the next step on a default config build for a atngw100 it fails.
I think it is better to check against 4.1.2,
since there is no later port for AVR32.The problem occurs in "gcc-*/libstdc++-v3/configure" if "
gcc_no_link" is "yes".This is set to "yes", if linking fails in "gcc-*/ltconfig". For the AVR32 the linker fails because crt1.o is not found (See log below)
I checked the staging dir, and there is no crt1.o there when gcc-*-final is built
I searched for crt1.* in the gcc source tree,
only gcc/config/sh/crt1.asm exists.
Quoted 8 lines
Quoted 4 lines
IIRC, I have seen similar problems with ARM & C++
I build with c++,locale, gettext and libintl
I guess I was being a bit optimistic hoping that the default config for a target would actually work!
There has been some changes, which has killed the AVR32 toolchain in the main trunk, and I am trying to find out why.
You can try the Buildroot at http://www.atmel.no/buildroot/
Quoted 6 lines
Has anyone tested the buildroot/target/device/Atmel/atngw100/atngw100_defconfig file or am I missing something in what is in svn at present... or am I perhaps going about it the wrong way - I assumed I should copy this to the top level .config and run 'make oldconfig' then 'make'
Signature · 2 lines
Best Regards, Ulf Samuelsson
Quoted 5 lines · Ulf Samuelsson
Quoted 1 line
There has been some changes, which has killed the AVR32 toolchain in the main trunk, and I am trying to find out why.
You can try the Buildroot at http://www.atmel.no/buildroot/
I'm getting much further now but I had to patch the Makefile in gcc-final/gcc to get the path correct for ORIGINAL_AS_FOR_TARGET as configure had made it an absolute path instead of relative to (or directly pointing to) the staging_dir directory (i.e. it had /usr/bin/.... instead of /home/...../staging_dir/usr/bin/...)
I think the derivation of this value is buried in the m4 scripting of configure.ac but I can't make head nor tail of that!!
Signature · 14 lines
Robin ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. =======================================================================