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] |
I have successfully compiled gcc 3.4 for a ppc970. The attached patch is very similar to the one I have send a few weeks ago. There are two significant changes: 1) add a "ln -s libgcc.a libgcc_s.a" (cvs libc thinks it needs it) 2) use "--enable-kernel=2.6.5". This is necessary to compile with the headers from kernel 2.6.5 What do you thing about using a variable MIN_KERNEL as the parameter to --enable-kernel? I.e use --enable-kernel=$MIN_KERNEL. Thanks. Rafael Ávila de Espíndola
--- crosstool-0.28-rc4/crosstool.sh 2004-03-25 21:14:44.000000000 -0300 +++ crosstool.sh 2004-04-14 12:36:31.000000000 -0300 @@ -62,6 +62,7 @@ ia64*) ARCH=ia64 ;; mips*) ARCH=mips ;; m68k*) ARCH=m68k ;; + powerpc64*) ARCH=ppc64 ;; powerpc*) ARCH=ppc ;; ppc*) abort "Target $TARGET incompatible with binutils and gcc regression tests; use target powerpc-* instead";; s390*) ARCH=s390 ;; @@ -147,6 +148,12 @@ fi if test -f .config; then yes "" | make ARCH=$ARCH oldconfig +else + make ARCH=$ARCH mrproper + case "$LINUX_DIR" in + *2.6.*) make ARCH=$ARCH defconfig ;; + *) yes "" | make ARCH=$ARCH config ;; + esac fi # check for kernel version 2.6.* @@ -263,6 +270,11 @@ make $PARALLELMFLAGS all-gcc install-gcc +cd ${PREFIX}/lib/gcc/$TARGET/3.4.0/ +ln -s libgcc.a libgcc_eh.a +ln -s libgcc.a libgcc_s.a +cd - + cd .. test -x ${PREFIX}/bin/${TARGET}-gcc || abort Build failed during gcc-core @@ -293,9 +305,9 @@ ${GLIBC_DIR}/configure --host=$TARGET --prefix=/usr \ --build=$HOST \ ${GLIBC_EXTRA_CONFIG} \ - --without-tls --without-__thread --enable-kernel=2.4.3 \ + --without-tls --without-__thread --enable-kernel=2.6.5 \ --without-cvs --disable-profile --disable-debug --without-gd \ - --enable-add-ons --with-headers=$HEADERDIR + --enable-add-ons=$GLIBC_ADD_ONS --with-headers=$HEADERDIR fi # If this fails with an error like this:
------ 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] |