LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 02-24-2013, 02:16 AM   #1
smith283
Member
 
Registered: Aug 2012
Posts: 39

Rep: Reputation: Disabled
Error while compiling gcc (pass2)..


hey mates,
I'm compiling a cross-toolchain for ARM and i get error on compiling gcc in pass2.

ERROR:-
configure: error: in `/home/toolchain/Control-project/build-tools/build-gcc/arm-linux/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libgomp] Error 1
make[1]: Leaving directory `/home/toolchain/Control-project/build-tools/build-gcc'
make: *** [all] Error 2

configure it with:
../gcc-4.5.1/configure --target=${TARGET} --prefix=$PREFIX --enable-languages="c,c++" --disable-shared --disable-threads

And im using these packages:- linux-2.6.18 (headers)
gcc-4.5.1
gmp-5.0.1
mpc-0.8.2
mpfr-3.0.0
binutils-2.20.1
glibc-2.13
glibc-ports-2.13
working on- fedora15 + linux-2.6.38.

I've no idea whats wrong with this. plzzzzzz... help me find a solution as soon as possible.

Thnk you
 
Old 02-24-2013, 05:54 AM   #2
linux-sys-adm
LQ Newbie
 
Registered: Oct 2012
Distribution: ArchLinux
Posts: 13

Rep: Reputation: Disabled
What is the tail of config.log?
 
Old 02-25-2013, 02:30 AM   #3
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
build-gcc2/arm-linux/libgomp/config.log :-



This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU OpenMP Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ /home/toolchain2/build-tools/gcc-4.5.1/libgomp/configure --cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix=/home/toolchain2/tools --disable-shared --disable-threads --enable-languages=c,c++ --program-transform-name=s&^&arm-linux-& --disable-option-checking --with-target-subdir=arm-linux --build=i686-pc-linux-gnu --host=arm-linux --target=arm-linux --srcdir=../../../gcc-4.5.1/libgomp
Code:
## --------- ##
## Platform. ##
## --------- ##

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.38
uname -s = Linux
uname -v = #1 SMP Sun Nov 4 23:46:35 IST 2012

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/toolchain2/tools/bin
PATH: /home/toolchain2/tools/bin
PATH: /home/toolchain2/tools/bin
PATH: /usr/lib/ccache
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin
Code:
## ----------- ##
## Core tests. ##
## ----------- ##

configure:2454: loading cache ./config.cache
configure:2545: checking for --enable-version-specific-runtime-libs
configure:2560: result: no
configure:2568: checking for --enable-generated-files-in-srcdir
configure:2583: result: no
configure:2640: checking build system type
configure:2654: result: i686-pc-linux-gnu
configure:2674: checking host system type
configure:2687: result: arm-unknown-linux-gnu
configure:2707: checking target system type
configure:2720: result: arm-unknown-linux-gnu
configure:2776: checking for a BSD-compatible install
configure:2844: result: /usr/bin/install -c
configure:2855: checking whether build environment is sane
configure:2905: result: yes
configure:2954: checking for arm-linux-strip
configure:2981: result: /home/toolchain2/tools/arm-linux/bin/strip
configure:3046: checking for a thread-safe mkdir -p
configure:3085: result: /bin/mkdir -p
configure:3098: checking for gawk
configure:3125: result: gawk
configure:3136: checking whether make sets $(MAKE)
configure:3158: result: yes
configure:3322: checking for arm-linux-gcc
configure:3349: result: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include   
configure:3618: checking for C compiler version
configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include    --version >&5
xgcc (GCC) 4.5.1
Copyright (C) 2010 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.

configure:3638: $? = 0
configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include    -v >&5
Reading specs from /home/toolchain2/build-tools/build-gcc2/./gcc/specs
COLLECT_GCC=/home/toolchain2/build-tools/build-gcc2/./gcc/xgcc
COLLECT_LTO_WRAPPER=/home/toolchain2/build-tools/build-gcc2/./gcc/lto-wrapper
Target: arm-linux
Configured with: ../gcc-4.5.1/configure --target=arm-linux --prefix=/home/toolchain2/tools --enable-languages=c,c++ --disable-shared --disable-threads : (reconfigured) ../gcc-4.5.1/configure --target=arm-linux --prefix=/home/toolchain2/tools --enable-languages=c,c++ --disable-shared --disable-threads
Thread model: single
gcc version 4.5.1 (GCC) 
configure:3638: $? = 0
configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include    -V >&5
xgcc: '-V' must come at the start of the command line
configure:3638: $? = 1
configure:3627: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include    -qversion >&5
xgcc: unrecognized option '-qversion'
xgcc: no input files
configure:3638: $? = 1
configure:3658: checking for C compiler default output file name
configure:3680: /home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include    -g -O2   conftest.c  >&5
/home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3)
/home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3)
/home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3)
/home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/Scrt1.o: Relocations in generic ELF (EM: 3)
/home/toolchain2/tools/arm-linux/lib/Scrt1.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
configure:3684: $? = 1
configure:3721: result: 
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU OpenMP Runtime Library"
| #define PACKAGE_TARNAME "libgomp"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
| #define PACKAGE "libgomp"
| #define VERSION "1.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3727: error: in `/home/toolchain2/build-tools/build-gcc2/arm-linux/libgomp':
configure:3731: error: C compiler cannot create executables
See `config.log' for more details.
Code:
## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=
ac_cv_env_FC_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-linux
ac_cv_host=arm-unknown-linux-gnu
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include   '
ac_cv_prog_STRIP=/home/toolchain2/tools/arm-linux/bin/strip
ac_cv_prog_make_make_set=yes
ac_cv_target=arm-unknown-linux-gnu
Code:
## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run tar'
AR='/home/toolchain2/tools/arm-linux/bin/ar'
AUTOCONF='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run autoconf'
AUTOHEADER='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run autoheader'
AUTOMAKE='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/missing --run automake-1.11'
AWK='gawk'
BUILD_INFO_FALSE=''
BUILD_INFO_TRUE=''
CC='/home/toolchain2/build-tools/build-gcc2/./gcc/xgcc -B/home/toolchain2/build-tools/build-gcc2/./gcc/ -B/home/toolchain2/tools/arm-linux/bin/ -B/home/toolchain2/tools/arm-linux/lib/ -isystem /home/toolchain2/tools/arm-linux/include -isystem /home/toolchain2/tools/arm-linux/sys-include   '
CCDEPMODE=''
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FC=''
FCFLAGS=''
FGREP=''
GENINSRC_FALSE=''
GENINSRC_TRUE='#'
GREP=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/home/toolchain2/build-tools/build-gcc2/./gcc/collect-ld'
LDFLAGS=''
LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=''
LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO='arm-linux-lipo'
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='makeinfo --split-size=5000000'
MKDIR_P='/bin/mkdir -p'
NM='/home/toolchain2/build-tools/build-gcc2/./gcc/nm'
NMEDIT=''
OBJDUMP='/home/toolchain2/tools/arm-linux/bin/objdump'
OBJEXT=''
OMP_LOCK_25_ALIGN=''
OMP_LOCK_25_KIND=''
OMP_LOCK_25_SIZE=''
OMP_LOCK_ALIGN=''
OMP_LOCK_KIND=''
OMP_LOCK_SIZE=''
OMP_NEST_LOCK_25_ALIGN=''
OMP_NEST_LOCK_25_KIND=''
OMP_NEST_LOCK_25_SIZE=''
OMP_NEST_LOCK_ALIGN=''
OMP_NEST_LOCK_KIND=''
OMP_NEST_LOCK_SIZE=''
OPT_LDFLAGS=''
OTOOL64=''
OTOOL=''
PACKAGE='libgomp'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU OpenMP Runtime Library'
PACKAGE_STRING='GNU OpenMP Runtime Library 1.0'
PACKAGE_TARNAME='libgomp'
PACKAGE_URL='http://www.gnu.org/software/libgomp/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PERL=''
RANLIB='/home/toolchain2/tools/arm-linux/bin/ranlib'
SECTION_LDFLAGS=''
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='/home/toolchain2/tools/arm-linux/bin/strip'
USE_FORTRAN_FALSE=''
USE_FORTRAN_TRUE=''
VERSION='1.0'
XCFLAGS=''
XLDFLAGS=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
ac_ct_FC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
config_path=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_shared='no'
enable_static=''
exec_prefix='NONE'
host='arm-unknown-linux-gnu'
host_alias='arm-linux'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/toolchain2/build-tools/gcc-4.5.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libtool_VERSION=''
link_gomp=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
multi_basedir='../../../gcc-4.5.1/libgomp/..'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/toolchain2/tools'
program_transform_name='s&^&arm-linux-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-unknown-linux-gnu'
target_alias='arm-linux'
target_cpu='arm'
target_os='linux-gnu'
target_vendor='unknown'
toolexecdir='$(exec_prefix)/$(target_alias)'
toolexeclibdir='$(toolexecdir)/lib'
Code:
## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU OpenMP Runtime Library"
#define PACKAGE_TARNAME "libgomp"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgomp/"
#define PACKAGE "libgomp"
#define VERSION "1.0"

configure: exit 77
[mod note]Please learn to use vbcode tags to allow clean read of post. You can break up your code snippets or outputs to allow a member to read a cleaner post therefore provide feedback to help you clarify the problem/query. [mod note end]

Last edited by onebuck; 03-01-2013 at 10:00 AM. Reason: Show OP vbcode tags to clean up thread/post therefore easier to read
 
Old 02-26-2013, 04:52 AM   #4
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
hmmm.. i've solved this problem by separately configuring and compiling libgomp, libmudflap ,libssp.I dont know if this is a good solution but it does the trick.

But now i get some error with libgcc when i configure gcc with --enable-shared. Error is: crti.o could not read symbols
 
Old 02-26-2013, 05:25 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,199

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Not an easy task to build a new cross toolchain.

You may pick up "non arm" components from your OS.
Looks like you you have some kind of mix-up concerning crti.o.

The proof way is said to be crosstool-ng http://crosstool-ng.org/
> http://crosstool-ng.org/download/cro...1.18.0.tar.bz2
> crosstool-ng-1.18.0.tar.bz2 : 31 Jan 2013.
( crosstool-ng is constantly maintained, unlike other available tool-chains.)


Remark : You can use the 'Report' button for asking the thread moved
to the 'Embedded Forum', where you can get expert help.

-
 
Old 02-27-2013, 12:17 AM   #6
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
Hey knudfl , thnx for ur reply but this doesnt help me solve my problem
 
Old 02-27-2013, 03:43 AM   #7
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
specifically the error i get is:

/home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/crti.o: Relocations in generic ELF (EM: 3)
/home/toolchain2/tools/arm-linux/bin/ld: /home/toolchain2/tools/arm-linux/lib/crti.o: Relocations in generic ELF (EM: 3)
/home/toolchain2/tools/arm-linux/lib/crti.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/home/toolchain2/build-tools/build-gcc2/arm-linux/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/toolchain2/build-tools/build-gcc2'
make: *** [all] Error 2
 
Old 02-27-2013, 08:04 AM   #8
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
One thing i came across is, when i type the command :
file /home/toolchain2/tools/arm-linux/lib/*.o

/home/toolchain2/tools/arm-linux/lib/crt1.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, not stripped
/home/toolchain2/tools/arm-linux/lib/crti.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
/home/toolchain2/tools/arm-linux/lib/crtn.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
/home/toolchain2/tools/arm-linux/lib/gcrt1.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, not stripped
/home/toolchain2/tools/arm-linux/lib/Mcrt1.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
/home/toolchain2/tools/arm-linux/lib/Scrt1.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, not stripped

i think all these .o files must be of ARM specific, am i right???
If yes the problem is here.

Plzzzz help me solve this problem, its almost 10days and i still dont hv the solution
 
Old 03-04-2013, 01:34 PM   #9
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,390
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
There is a very good reason why packages such as the aforementioned crosstool-NG exist. It's because there is a lot of knowledge required to build a cross toolchain. Do yourself a favor and use the knowledge that is embedded in the package (and there are others, as well). Especially for ARM architectures where there are so many combinations and permutations of various CPUs, library types, ABIs, FPUs, etc, you should make use of all the hard work that others have done to produce a quality toolchain.
 
1 members found this post helpful.
Old 03-07-2013, 03:52 AM   #10
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
I've successfully build the cross-toolchain for ARM.
But now i want to enable soft-float support in it, any ideas how to do that???

thnx smith
 
Old 03-08-2013, 12:18 PM   #11
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
aaahh.. succesfully build the cross-toolchain with softfloat enable

Just apply the patch to gcc-4.5.1 ( 810-arm-softfloat-libgcc.patch ) and add --with-float=soft configuration option in each step. And ur Done!!!
 
Old 03-09-2013, 01:19 AM   #12
smith283
Member
 
Registered: Aug 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
when i compile u-boot for beagle board like this:

cd u-boot-2011.06-rc3/
make ARCH=arm CROSS_COMPILE=arm-linux- distclean
make ARCH=arm CROSS_COMPILE=arm-linux- omap3_beagle_config
make ARCH=arm CROSS_COMPILE=arm-linux-

i get this error:
/home/toolchain3/tools/lib/gcc/arm-linux/4.5.1/libgcc.a(_dvmd_lnx.o): In function `__div0':
/home/toolchain3/build-tools/build-gcc2/arm-linux/libgcc/../../../gcc-4.5.1/libgcc/../gcc/config/arm/lib1funcs.asm:1265: undefined reference to `raise'
arm-linux-ld: BFD (GNU Binutils) 2.20.1.20100303 assertion fail ../../binutils-2.20.1/bfd/elf32-arm.c:12191
arm-linux-ld: BFD (GNU Binutils) 2.20.1.20100303 assertion fail ../../binutils-2.20.1/bfd/elf32-arm.c:12425
/bin/sh: line 1: 18242 Segmentation fault (core dumped) arm-linux-ld -pie -T u-boot.lds -Bstatic -Ttext 0x80008000 $UNDEF_SYM arch/arm/cpu/armv7/start.o --start-group api/libapi.o arch/arm/cpu/armv7/libarmv7.o arch/arm/cpu/armv7/omap-common/libomap-common.o arch/arm/cpu/armv7/omap3/libomap3.o arch/arm/lib/libarm.o common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o drivers/block/libblock.o drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o drivers/pcmcia/libpcmcia.o drivers/power/libpower.o drivers/rtc/librtc.o drivers/serial/libserial.o drivers/spi/libspi.o drivers/twserial/libtws.o drivers/usb/eth/libusb_eth.a drivers/usb/gadget/libusb_gadget.o drivers/usb/host/libusb_host.o drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o drivers/video/libvideo.o drivers/watchdog/libwatchdog.o fs/cramfs/libcramfs.o fs/ext2/libext2fs.o fs/fat/libfat.o fs/fdos/libfdos.o fs/jffs2/libjffs2.o fs/reiserfs/libreiserfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o lib/lzo/liblzo.o lib/zlib/libz.o net/libnet.o post/libpost.o board/ti/beagle/libbeagle.o --end-group -L /home/toolchain3/tools/lib/gcc/arm-linux/4.5.1 -lgcc -Map u-boot.map -o u-boot
make: *** [u-boot] Error 139`


Any idea whats wrong??? :/
 
  


Reply

Tags
arm-softfloat, softfloat


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] strucking gcc-4.5.1-pass2(lfs-6.7) janakiramulu Linux From Scratch 10 04-08-2011 05:42 AM
Error in compiling gcc-3.3.3 with gcc-4.3.2 asahlot Linux - Software 6 02-08-2009 11:25 AM
Error compiling gcc 3.3.6 with 64bit gcc 4.0.3 cs-cam Linux - Software 0 04-22-2006 05:20 AM
which directories do I untar during GCC pass2? microsoft/linux Linux From Scratch 6 09-09-2005 08:35 AM
Error in Binutils Pass2 AdamS Linux From Scratch 4 07-21-2004 09:55 PM


All times are GMT -5. The time now is 09:32 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration