From: Nataraj S Narayan <natarajsn@gmail.com>
To: barebox@lists.infradead.org
Subject: Issues in compiling
Date: Wed, 12 Jan 2011 10:31:05 +0000 [thread overview]
Message-ID: <AANLkTim3AJb3tTuL1x1syWzt-Z1W6vcOJ16PAX_uk0j1@mail.gmail.com> (raw)
Hi
When compiling using
"make ARCH=arm CROSS_COMPILE=/software/buildroot-git/output/external-toolchain/bin/arm-none-linux-gnueabi-"
where Codesourcery tool chain is the external-toolchain, getting the following:-
AS arch/arm/cpu/cache-armv5.o
LD arch/arm/cpu/built-in.o
LD barebox
common/built-in.o: In function `image_multi_getimg':
memsize.c:(.text.image_multi_getimg+0x38): undefined reference to `__bswapsi2'
memsize.c:(.text.image_multi_getimg+0x50): undefined reference to `__bswapsi2'
common/built-in.o: In function `image_print_contents':
memsize.c:(.text.image_print_contents+0x30): undefined reference to `__bswapsi2'
memsize.c:(.text.image_print_contents+0xc8): undefined reference to `__bswapsi2'
memsize.c:(.text.image_print_contents+0xd4): undefined reference to `__bswapsi2'
common/built-in.o:memsize.c:(.text.image_print_contents+0xec): more
undefined references to `__bswapsi2' follow
make: *** [barebox] Error 1
But with Buildroot internal tool chain, compiles to give barebox.bin.
# /buildroot/output/staging/usr/bin/arm-linux-gcc -v
Using built-in specs.
Target: arm-unknown-linux-uclibcgnueabi
Configured with: /buildroot/output/toolchain/gcc-4.4.4/configure
--prefix=/buildroot/output/staging/usr --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=arm-unknown-linux-uclibcgnueabi
--enable-languages=c,c++ --with-sysroot=/buildroot/output/staging
--with-build-time-tools=/buildroot/output/staging/usr/arm-unknown-linux-uclibcgnueabi/bin
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--disable-libssp --disable-multilib --enable-tls --enable-shared
--with-gmp=/buildroot/output/toolchain/gmp
--with-mpfr=/buildroot/output/toolchain/mpfr --enable-threads
--disable-decimal-float --with-float=soft --with-abi=aapcs-linux
--with-arch=armv5te --with-tune=arm926ej-s
--with-pkgversion='Buildroot 2010.08-git'
--with-bugurl=http://bugs.buildroot.net/ : (reconfigured)
/buildroot/output/toolchain/gcc-4.4.4/configure
--prefix=/buildroot/output/staging/usr --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=arm-unknown-linux-uclibcgnueabi
--enable-languages=c,c++ --with-sysroot=/buildroot/output/staging
--with-build-time-tools=/buildroot/output/staging/usr/arm-unknown-linux-uclibcgnueabi/bin
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--disable-libssp --disable-multilib --enable-tls --enable-shared
--with-gmp=/buildroot/output/toolchain/gmp
--with-mpfr=/buildroot/output/toolchain/mpfr --enable-threads
--disable-decimal-float --with-float=soft --with-abi=aapcs-linux
--with-arch=armv5te --with-tune=arm926ej-s
--with-pkgversion='Buildroot 2010.08-git'
--with-bugurl=http://bugs.buildroot.net/ : (reconfigured)
/buildroot/output/toolchain/gcc-4.4.4/configure
--prefix=/buildroot/output/staging/usr --build=i686-pc-linux-gnu
--host=i686-pc-linux-gnu --target=arm-unknown-linux-uclibcgnueabi
--enable-languages=c,c++ --with-sysroot=/buildroot/output/staging
--with-build-time-tools=/buildroot/output/staging/usr/arm-unknown-linux-uclibcgnueabi/bin
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--disable-libssp --disable-multilib --enable-tls --enable-shared
--with-gmp=/buildroot/output/toolchain/gmp
--with-mpfr=/buildroot/output/toolchain/mpfr --enable-threads
--disable-decimal-float --with-float=soft --with-abi=aapcs-linux
--with-arch=armv5te --with-tune=arm926ej-s
--with-pkgversion='Buildroot 2010.08-git'
--with-bugurl=http://bugs.buildroot.net/
Thread model: posix
gcc version 4.4.4 (Buildroot 2010.08-git)
# /software/buildroot-git/output/external-toolchain/bin/arm-none-linux-gnueabi-gcc
-v
Using built-in specs.
COLLECT_GCC=/software/buildroot-git/output/external-toolchain/bin/arm-none-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/vignesh/software/buildroot-git/output/external-toolchain/bin/../libexec/gcc/arm-none-linux-gnueabi/4.5.1/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with:
/scratch/nathan/arm-lite/src/gcc-4.5-2010.09/configure
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap
--disable-libssp --disable-libstdcxx-pch
--enable-extra-sgxxlite-multilibs --with-arch=armv5te --with-gnu-as
--with-gnu-ld --with-specs='%{save-temps: -fverbose-asm}
%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}
-D__CS_SOURCERYGXX_MAJ__=2010 -D__CS_SOURCERYGXX_MIN__=9
-D__CS_SOURCERYGXX_REV__=50 %{O2:%{!fno-remove-local-statics:
-fremove-local-statics}}
%{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics:
-fremove-local-statics}}}' --enable-languages=c,c++ --enable-shared
--enable-lto --enable-symvers=gnu --enable-__cxa_atexit
--with-pkgversion='Sourcery G++ Lite 2010.09-50'
--with-bugurl=https://support.codesourcery.com/GNUToolchain/
--disable-nls --prefix=/opt/codesourcery
--with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc
--with-build-sysroot=/scratch/nathan/arm-lite/install/arm-none-linux-gnueabi/libc
--with-gmp=/scratch/nathan/arm-lite/obj/host-libs-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-mpfr=/scratch/nathan/arm-lite/obj/host-libs-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-mpc=/scratch/nathan/arm-lite/obj/host-libs-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-ppl=/scratch/nathan/arm-lite/obj/host-libs-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic
-lm' --with-cloog=/scratch/nathan/arm-lite/obj/host-libs-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--with-libelf=/scratch/nathan/arm-lite/obj/host-libs-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr
--disable-libgomp --enable-poison-system-directories
--with-build-time-tools=/scratch/nathan/arm-lite/install/arm-none-linux-gnueabi/bin
--with-build-time-tools=/scratch/nathan/arm-lite/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50)
regards
Nataraj
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2011-01-12 10:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 10:31 Nataraj S Narayan [this message]
2011-01-12 13:59 ` Premi, Sanjeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTim3AJb3tTuL1x1syWzt-Z1W6vcOJ16PAX_uk0j1@mail.gmail.com \
--to=natarajsn@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox