Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Two problems while cross-compiling gcc and glibc for ppc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
tarkus
n00b
n00b


Joined: 08 Jul 2004
Posts: 27

PostPosted: Wed Aug 25, 2004 4:46 pm    Post subject: Two problems while cross-compiling gcc and glibc for ppc Reply with quote

I'm trying to create a ppc cross-compiler on my Pentium 4 machine so that I can install stuff faster. I'm following the instructions here:
http://www.sable.mcgill.ca/~dbelan2/crossdev-powerpc-i686.html

I get the following errors:

Quote:
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/var/tmp/portage/gcc-3.3.3/work/gcc-3.3.3/buildfullhere-ppc/gcc/xgcc -B/var/tmp/portage/gcc-3.3.3/work/gcc-3.3.3/buildfullhere-ppc/gcc/ -B/home/crossdev/ppc/powerpc-unknown-linux-gnu/bin/ -B/home/crossdev/ppc/powerpc-unknown-linux-gnu/lib/ -isystem /home/crossdev/ppc/powerpc-unknown-linux-gnu/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -DHAVE_SYSLOG -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -D_LIBC_PROVIDES_SSP_ -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o libgcc_s.so.1 libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_stack_smash_handler.o libgcc/./_ffssi2.o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o libgcc/./_clzdi2.o libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_popcountsi2.o libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_paritydi2.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./_pack_sf.o libgcc/./_unpack_sf.o libgcc/./_addsub_sf.o libgcc/./_mul_sf.o libgcc/./_div_sf.o libgcc/./_fpcmp_parts_sf.o libgcc/./_compare_sf.o libgcc/./_eq_sf.o libgcc/./_ne_sf.o libgcc/./_gt_sf.o libgcc/./_ge_sf.o libgcc/./_lt_sf.o libgcc/./_le_sf.o libgcc/./_unord_sf.o libgcc/./_si_to_sf.o libgcc/./_sf_to_si.o libgcc/./_negate_sf.o libgcc/./_make_sf.o libgcc/./_sf_to_df.o libgcc/./_sf_to_tf.o libgcc/./_thenan_sf.o libgcc/./_sf_to_usi.o libgcc/./_usi_to_sf.o libgcc/./_pack_df.o libgcc/./_unpack_df.o libgcc/./_addsub_df.o libgcc/./_mul_df.o libgcc/./_div_df.o libgcc/./_fpcmp_parts_df.o libgcc/./_compare_df.o libgcc/./_eq_df.o libgcc/./_ne_df.o libgcc/./_gt_df.o libgcc/./_ge_df.o libgcc/./_lt_df.o libgcc/./_le_df.o libgcc/./_unord_df.o libgcc/./_si_to_df.o libgcc/./_df_to_si.o libgcc/./_negate_df.o libgcc/./_make_df.o libgcc/./_df_to_sf.o libgcc/./_df_to_tf.o libgcc/./_thenan_df.o libgcc/./_df_to_usi.o libgcc/./_usi_to_df.o libgcc/./tramp.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde-glibc.o libgcc/./unwind-sjlj.o libgcc/./unwind-c.o -lc && rm -f libgcc_s.so && ln -s libgcc_s.so.1 libgcc_s.so
/home/crossdev/ppc/powerpc-unknown-linux-gnu/bin/ld: crti.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.3/work/gcc-3.3.3/buildfullhere-ppc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.3/work/gcc-3.3.3/buildfullhere-ppc/gcc'
make: *** [all-gcc] Error 2


and

Quote:
: /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a
powerpc-unknown-linux-gnu-gcc -O2 -nostdlib -nostartfiles -O2 -g -shared -static-libgcc -Wl,-O1 -Wl,-z,defs -Wl,-dynamic-linker=/home/crossdev/ppc/lib/ld.so.1 -B/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/csu/ -Wl,--version-script=/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/libm.map -Wl,-soname=libm.so.6 -Wl,-z,combreloc -Wl,-z,relro -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/elf -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/dlfcn -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/nss -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/nis -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/rt -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/resolv -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/crypt -L/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/linuxthreads -Wl,-rpath-link=/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/elf:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/dlfcn:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/nss:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/nis:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/rt:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/resolv:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/crypt:/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/linuxthreads -o /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm.so -T /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/shlib.lds /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/csu/abi-note.o -Wl,--whole-archive /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a -Wl,--no-whole-archive /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/elf/interp.os /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/elf/ld.so /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/libc.so /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/libc_nonshared.a
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llrint.os)(.text+0x10): In function `__llrint':
../sysdeps/powerpc/powerpc32/fpu/s_llrint.c:25: undefined reference to `__fixdfdi'
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llround.os)(.text+0x20): In function `__llround':
../sysdeps/powerpc/fpu/s_llround.c:33: undefined reference to `__fixdfdi'
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llround.os)(.text+0x24):../sysdeps/powerpc/fpu/s_llround.c:34: undefined reference to `__floatdidf'
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llround.os)(.text+0x58):../sysdeps/powerpc/fpu/s_llround.c:44: undefined reference to `__fixdfdi'
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llrintf.os)(.text+0x10): In function `__llrintf':
../sysdeps/powerpc/powerpc32/fpu/s_llrintf.c:25: undefined reference to `__fixsfdi'
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llroundf.os)(.text+0x20): In function `__llroundf':
../sysdeps/powerpc/fpu/s_llroundf.c:33: undefined reference to `__fixsfdi'
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llroundf.os)(.text+0x24):../sysdeps/powerpc/fpu/s_llroundf.c:34: undefined reference to `__floatdisf'
/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm_pic.a(s_llroundf.os)(.text+0x60):../sysdeps/powerpc/fpu/s_llroundf.c:44: undefined reference to `__fixsfdi'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/libm.so] Error 1
rm /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_copysignf.S /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_frexp.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_modf.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_ldexpf.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_modff.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_copysign.S /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_isinf.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_scalbnf.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_finite.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_isnan.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_signbitf.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_finitef.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_isinff.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_ldexp.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_scalbn.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_frexpf.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_signbit.c /var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/build-glibc/math/m_isnanf.S
make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2/math'
make[1]: *** [math/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.4.20040619-r1/work/glibc-2.3.2'
make: *** [all] Error 2


Any ideas? Thanks!
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Wed Aug 25, 2004 6:17 pm    Post subject: Reply with quote

No ideas, but....
I was trying to get distcc to work between an 800MHz iBook, and a 17 inch iMac, with bootstrapping, and it would die every time at glibc.

The distcc tutorial page http://www.gentoo.org/doc/en/distcc.xml says that some ebuilds don't work well with distcc and intentionally disable it. Maybe distcc is one of those that is supposed to be disabled.

~Michael[/url]
Back to top
View user's profile Send private message
tarkus
n00b
n00b


Joined: 08 Jul 2004
Posts: 27

PostPosted: Wed Aug 25, 2004 6:21 pm    Post subject: Reply with quote

I'm not compiling this with distcc - I'm compiling it for use with distcc. The warning seems to be targeted at those who use distcc for compiling things - I'm not there yet ;)
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Wed Aug 25, 2004 7:06 pm    Post subject: Reply with quote

Sorry, my misunderstanding.

I will be interested in seeing how this works out. Annother thing I think would be incredibly usefull, is a liveCD that has multiple versions of gcc installed on it. That way a machine that isn't usually a happy gentoo machine could help out with installing things like gnome, kde or openoffice.
It'd also be usefull for when you have a gentoo instalation that you didn't compile cross-compiler compatability into.

~Michael
Back to top
View user's profile Send private message
tarkus
n00b
n00b


Joined: 08 Jul 2004
Posts: 27

PostPosted: Wed Aug 25, 2004 7:47 pm    Post subject: Reply with quote

Interesting - you mean a distcc server on a livecd? I might do something like that, but I would have to get one working first. I should mention that the same errors occur when using crossdev -u --arch=ppc
Back to top
View user's profile Send private message
servobf
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 160

PostPosted: Wed Aug 25, 2004 9:01 pm    Post subject: Reply with quote

Quote:
Interesting - you mean a distcc server on a livecd?


Exactly.

Boot from the CD into a minimal gentoo environment. Start networking services to fit into your environment, choose a gcc version, start distcc, and have a quick way to get some extra compiling power.

I don't now if multiple versions of gcc can be installed at the same time, and having different versions can break stuff supposedly. I was thinking of maybe having different folders to chroot into or something?

I've been thinking about it for about two weeks, but haven't had time to start working on it yet.

My wife would love it if I didn't keep threatening to install gentoo on her iMac. :-D

~Michael
Back to top
View user's profile Send private message
tarkus
n00b
n00b


Joined: 08 Jul 2004
Posts: 27

PostPosted: Thu Aug 26, 2004 12:51 am    Post subject: Reply with quote

I don't know. But I can't get even one to work - let alone multiples... But it's a cool idea nonetheless. But can anyone help with my original problem? I've tried multiple versions of gcc and glibc with similar results.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum