Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] AVR32 toolchain build failure
@ 2013-08-05 12:01 Thomas De Schampheleire
  2013-08-05 12:29 ` Thomas De Schampheleire
  2013-08-06 17:54 ` Thomas Petazzoni
  0 siblings, 2 replies; 42+ messages in thread
From: Thomas De Schampheleire @ 2013-08-05 12:01 UTC (permalink / raw)
  To: buildroot

Hi,

I was looking at an autobuild failure on AVR32 and tried reproducing
it locally. Unfortunately, the AVR32 toolchain that was configured was
pre-built on a 64-bit machine, which I don't have. Hence, the
configured toolchain was not usable.

Then I tried building my own AVR32 toolchain with the internal
backend, see config attached. Unfortunately, this failed as well:

 /home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/./gcc/xgcc
-shared-libgcc -B/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/./gcc
-nostdinc++ -L/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/src
-L/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/src/.libs
-B/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/bin/
-B/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/lib/
-isystem /home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/include
-isystem /home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/sys-include
-shared -nostdlib
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/./gcc/crti.o
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/./gcc/crtbeginS.o
 .libs/bitmap_allocator.o .libs/pool_allocator.o .libs/mt_allocator.o
.libs/codecvt.o .libs/compatibility.o .libs/complex_io.o .libs/ctype.o
.libs/debug.o .libs/debug_list.o .libs/functexcept.o
.libs/globals_io.o .libs/ios.o .libs/ios_failure.o .libs/ios_init.o
.libs/ios_locale.o .libs/limits.o .libs/list.o .libs/locale.o
.libs/locale_init.o .libs/locale_facets.o .libs/localename.o
.libs/stdexcept.o .libs/strstream.o .libs/tree.o
.libs/allocator-inst.o .libs/concept-inst.o .libs/fstream-inst.o
.libs/ext-inst.o .libs/ios-inst.o .libs/iostream-inst.o
.libs/istream-inst.o .libs/istream.o .libs/locale-inst.o
.libs/misc-inst.o .libs/ostream-inst.o .libs/sstream-inst.o
.libs/streambuf-inst.o .libs/streambuf.o .libs/string-inst.o
.libs/valarray-inst.o .libs/wlocale-inst.o .libs/wstring-inst.o
.libs/atomicity.o .libs/codecvt_members.o .libs/collate_members.o
.libs/ctype_members.o .libs/messages_members.o
.libs/monetary_members.o .libs/numeric_members.o .libs/time_members.o
.libs/basic_file.o .libs/c++locale.o -Wl,--whole-archive
../libmath/.libs/libmath.a ../libsupc++/.libs/libsupc++convenience.a
-Wl,--no-whole-archive
-L/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/src
-L/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/src/.libs
-lm ../libmath/.libs/libmath.a -lm
../libsupc++/.libs/libsupc++convenience.a -lm
-L/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/./gcc
-L/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/bin
-L/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/lib
-L/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/lib/gcc/avr32-buildroot-linux-uclibc/4.2.2
-L/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/lib/gcc/avr32-buildroot-linux-uclibc/4.2.2/../../../../avr32-buildroot-linux-uclibc/lib
-L/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/sysroot/lib
-L/home/tdescham/repo/contrib/buildroot-avr32/output/host/usr/avr32-buildroot-linux-uclibc/sysroot/usr/lib
-lgcc -lc -lgcc -lm -lgcc -lc -lgcc
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/./gcc/crtendS.o
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/./gcc/crtn.o
 -Wl,-O1 -Wl,--gc-sections -Wl,-soname -Wl,libstdc++.so.6 -o
.libs/libstdc++.so.6.0.9
.libs/bitmap_allocator.o: In function `.LLSDA217':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/include/ext/bitmap_allocator.h:400:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
.libs/bitmap_allocator.o: In function `.LLSDA294':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/include/ext/bitmap_allocator.h:400:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
.libs/bitmap_allocator.o: In function `.LLSDA295':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/include/ext/bitmap_allocator.h:400:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
.libs/bitmap_allocator.o: In function `.LLSDA268':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/include/ext/bitmap_allocator.h:400:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
.libs/bitmap_allocator.o: In function `.LLSDA269':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/include/ext/bitmap_allocator.h:400:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
../libsupc++/.libs/libsupc++convenience.a(new_op.o): In function `.LLSDA20':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/libsupc++/../../../../libstdc++-v3/libsupc++/new_op.cc:50:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
../libsupc++/.libs/libsupc++convenience.a(new_opnt.o): In function `.LLSDA15':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/libsupc++/../../../../libstdc++-v3/libsupc++/new_opnt.cc:41:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
../libsupc++/.libs/libsupc++convenience.a(new_opv.o): In function `.LLSDA15':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/libsupc++/../../../../libstdc++-v3/libsupc++/new_opv.cc:35:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9bad_alloc' defined in
.data.DW.ref._ZTISt9bad_alloc[DW.ref._ZTISt9bad_alloc] section in
.libs/bitmap_allocator.o
../libsupc++/.libs/libsupc++convenience.a(vterminate.o): In function `.LLSDA59':
/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/libsupc++/../../../../libstdc++-v3/libsupc++/vterminate.cc:65:
relocation truncated to fit: R_AVR32_32_PCREL against symbol
`DW.ref._ZTISt9exception' defined in
.data.DW.ref._ZTISt9exception[DW.ref._ZTISt9exception] section in
../libsupc++/.libs/libsupc++convenience.a(vterminate.o)
collect2: ld returned 1 exit status
make[5]: *** [libstdc++.la] Error 1
make[5]: Leaving directory
`/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build/avr32-buildroot-linux-uclibc/libstdc++-v3'
make[2]: *** [all-target-libstdc++-v3] Error 2
make[2]: Leaving directory
`/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/build'
make: *** [/home/tdescham/repo/contrib/buildroot-avr32/output/build/host-gcc-final-4.2.2-avr32-2.1.5/.stamp_built]
Error 2



Anyone seen this before?


Thomas Petazzoni: could you send the toolchain configuration you used
to create the AVR32 toolchain used for the autobuilders, like this
one: http://autobuild.buildroot.net/results/645b357d470b75baa9a93eb5be4f1dc5c8c337fa/

Thanks,
Thomas

^ permalink raw reply	[flat|nested] 42+ messages in thread
* [Buildroot] AVR32 toolchain build failure
@ 2013-11-13 21:36 Thomas Petazzoni
  2013-11-14  8:53 ` Simon Dawson
  0 siblings, 1 reply; 42+ messages in thread
From: Thomas Petazzoni @ 2013-11-13 21:36 UTC (permalink / raw)
  To: buildroot

Hello Simon,

I've tried to build an AVR32 toolchain with 2013.11-rc1, with the
following defconfig:

BR2_avr32=y
BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
# BR2_TARGET_ROOTFS_TAR is not set

and the build failed with:

In file included from /opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/kernel.h:4,
                 from /opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/netlink.h:4,
                 from /opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/rtnetlink.h:5,
                 from libc/inet/netlinkaccess.h:27,
                 from libc/inet/if_index.c:36:
/opt/br-avr32-full-2013.11-rc1/usr/avr32-buildroot-linux-uclibc/sysroot/usr/include/linux/sysinfo.h:8: error: expected specifier-qualifier-list before '__kernel_long_t'
make[1]: *** [libc/inet/if_index.os] Error 1
make[1]: Leaving directory `/opt/toolchain-build/build/uclibc-0.9.31.1'

It is apparently reported at:

  https://lkml.org/lkml/2013/5/18/1

However, I've also built several other toolchains with the same
Buildroot version and haven't had any problem.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2013-11-15  8:58 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 12:01 [Buildroot] AVR32 toolchain build failure Thomas De Schampheleire
2013-08-05 12:29 ` Thomas De Schampheleire
2013-08-06  9:27   ` Alexander Lukichev
2013-08-06  9:39     ` Alexander Lukichev
2013-08-06 14:40     ` Thomas De Schampheleire
2013-08-06 15:03       ` Thomas De Schampheleire
2013-08-08 15:35   ` Alexander Lukichev
2013-08-06 17:54 ` Thomas Petazzoni
2013-08-06 19:33   ` Thomas De Schampheleire
2013-08-07  7:05     ` Thomas De Schampheleire
2013-08-07 15:20       ` Thomas Petazzoni
2013-08-07 16:01         ` Thomas De Schampheleire
2013-08-07 18:20           ` Thomas De Schampheleire
2013-08-07 22:07             ` Thomas Petazzoni
2013-08-08  5:55               ` Thomas De Schampheleire
2013-08-08  7:21                 ` Simon Dawson
2013-08-08  8:03                   ` Thomas Petazzoni
2013-08-08 10:56                     ` Gustavo Zacarias
2013-08-08 16:18                       ` Simon Dawson
2013-08-08 17:57                         ` Gustavo Zacarias
2013-08-08 17:59                         ` Thomas Petazzoni
2013-08-13  6:15                           ` Arnout Vandecappelle
2013-08-08  8:12                   ` Thomas De Schampheleire
2013-08-08 16:09                     ` Simon Dawson
2013-08-08 17:34                       ` Thomas De Schampheleire
2013-08-08 17:57                         ` Thomas Petazzoni
2013-08-08 18:05                           ` Thomas De Schampheleire
2013-08-08 19:42                         ` Simon Dawson
2013-08-08 20:09                           ` Thomas De Schampheleire
2013-08-08 20:24                             ` Thomas De Schampheleire
2013-08-08 22:22                               ` Thiago A. Corrêa
2013-08-09  4:51                               ` Alexander Lukichev
2013-08-09  7:16                             ` Simon Dawson
2013-08-09 11:12                               ` Thomas De Schampheleire
2013-08-09 20:29                                 ` Thomas Petazzoni
2013-08-09 22:34                                   ` Gustavo Zacarias
2013-08-08  7:29                 ` Alexander Lukichev
2013-08-08  8:13                   ` Thomas De Schampheleire
  -- strict thread matches above, loose matches on Subject: below --
2013-11-13 21:36 Thomas Petazzoni
2013-11-14  8:53 ` Simon Dawson
2013-11-14  9:10   ` Thomas Petazzoni
2013-11-15  8:58     ` Simon Dawson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox