This is the mail archive of the crossgcc@sources.redhat.com 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]

toolchain compiling questions


Hello,

I tried to compile a m68k-unknown-linux toolchain. I first used DanKegem's
crosstool and it compiled ok. (with gcc3.3.1 and glibc 2.3.2). Now I try to
build it by hand on the same machine with exactly the same switches (after I
removed the already build toolchain). Now I always run into this. It happens
when I build the full glibc.
When I add --disable-shared it compiles, but then it generates another error
when building the full-gcc.

Could you tell me what I'm missing.

the glibc-error:

m68k-unknown-linux-gnu-gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
-Wl,-dynamic-linker=/lib/ld.so.1  -B/mnt/cross/manual/build-glibc/csu/
-Wl,--version-script=/mnt/cross/manual/build-glibc/libc.map
-Wl,-soname=libc.so.6 -Wl,-z,combreloc -nostdlib -nostartfiles -e __libc_main -u
__register_frame -L/mnt/cross/manual/build-glibc
-L/mnt/cross/manual/build-glibc/math -L/mnt/cross/manual/build-glibc/elf
-L/mnt/cross/manual/build-glibc/dlfcn -L/mnt/cross/manual/build-glibc/nss
-L/mnt/cross/manual/build-glibc/nis -L/mnt/cross/manual/build-glibc/rt
-L/mnt/cross/manual/build-glibc/resolv -L/mnt/cross/manual/build-glibc/crypt
-L/mnt/cross/manual/build-glibc/linuxthreads
-Wl,-rpath-link=/mnt/cross/manual/build-glibc:/mnt/cross/manual/build-glibc/math:/mnt/cross/manual/build-glibc/elf:/mnt/cross/manual/build-glibc/dlfcn:/mnt/cross/manual/build-glibc/nss:/mnt/cross/manual/build-glibc/nis:/mnt/cross/manual/build-glibc/rt:/mnt/cross/manual/build-glibc/resolv:/mnt/cross/manual/build-glibc/crypt:/mnt/cross/manual/build-glibc/linuxthreads
-o /mnt/cross/manual/build-glibc/libc.so -T
/mnt/cross/manual/build-glibc/libc.so.lds
/mnt/cross/manual/build-glibc/csu/abi-note.o
/mnt/cross/manual/build-glibc/elf/soinit.os
/mnt/cross/manual/build-glibc/libc_pic.os
/mnt/cross/manual/build-glibc/elf/sofini.os
/mnt/cross/manual/build-glibc/elf/interp.os
/mnt/cross/manual/build-glibc/elf/ld.so -lgcc
/usr/lib/gcc-lib/m68k-unknown-linux-gnu/3.3.1/../../../../m68k-unknown-linux-gnu/bin/ld:/mnt/cross/manual/build-glibc/libc.so.lds:115:
parse error
collect2: ld returned 1 exit status
make[1]: *** [/mnt/cross/manual/build-glibc/libc.so] Error 1
make[1]: Leaving directory `/mnt/cross/manual/glibc-2.3.2'
make: *** [all] Error 2

the gcc error:

I don't have the time now to reproduce it, but it is something about libiberty
complaining that the compiler doesn't work...

this are the exports I use and I install in /usr

export PREFIX=/usr
export BINUTILS_DIR=binutils-2.14.90.0.5
export GCC_DIR=gcc-3.3.1
export GLIBC_DIR=glibc-2.3.2
export LINUX_DIR=linux-2.4.21
export TARGET=m68k-unknown-linux-gnu
export TARGET_CFLAGS="-O"
export KERNELCONFIG=$PWD/m68k.config
export GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.2
export BUILD="/mnt/cross/manual/gcc-3.3.1/config.guess"
export CPU="i686"
export PATH=$PREFIX/bin:$PATH

And another question, while I am at it...
What is the impact of the C-library you choose for your cross-compile toolchain?
What if I have a toolchain with glibc and want dietlibc or newlib on my
target...? Do I have to make another toolchain for every platform with a
different c-library? Or do I just have to be carfull with the linking?

Thanks,

Philippe


| Philippe De Swert -GNU/linux - uClinux freak-    
|    
| "GNU is the way"    
|
| Please do not send me documents in a closed format. (*.doc,*.xls,*.ppt)  
| Use the open alternatives. (*.pdf,*.ps,*.html,*.txt)  
| Why? http://pallieter.is-a-geek.org:7832/~johan/word/english/  

--------------------------------------------------------------------------
Gestuurd via het webmailsysteem van het De Nayer Instituut: www.denayer.be


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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