gcc 4.1 rebuild question

Justin Conover justin.conover at gmail.com
Thu Aug 4 13:54:53 UTC 2005


I grabbed the latest gcc4 src.rpm from rawhide, changed it to reflect
the latest gcc-4.1-snapshot and kept rpmbuild -bp until the patches
stopped breaking, which were:

#Patch1: gcc4-ice-hack.patch
#Patch2: gcc4-ppc64-m32-m64-multilib-only.patch
#Patch3: gcc4-ia64-libunwind.patch
#Patch8: gcc4-libstdc++-mt-alloc.patch
#Patch11: gcc4-pr17965.patch
#Patch12: gcc4-vsb-stack.patch
#Patch14: gcc4-java-rh163099.patch
#Patch17: gcc4-stack-protector.patch
#Patch18: gcc4-ia64-stack-protector.patch
#Patch19: gcc4-s390-stack-protector.patch
#Patch22: gcc4-ppc32-msecure-plt.patch

Some of the arch specific patch's I might have just taken out because,
well I don't have that arch.  Anyway, after 189mins of build there is
finally an error, can anyone help, here is the last 30 lines or so.

(cd .libs && rm -f libgcjawt.so.7 && ln -s libgcjawt.so.7.0.0 libgcjawt.so.7)
(cd .libs && rm -f libgcjawt.so && ln -s libgcjawt.so.7.0.0 libgcjawt.so)
ar rc .libs/libgcjawt.a  libgcjawt_la-jawt.o
ranlib .libs/libgcjawt.a
creating libgcjawt.la
(cd .libs && rm -f libgcjawt.la && ln -s ../libgcjawt.la libgcjawt.la)
creating gcj-dbtool
./gcj-dbtool -n classmap.db || touch classmap.db
/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/gcc/gcj
-B/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libjava/
-B/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/gcc/
-ffloat-store -g -O2 -o .libs/gij -shared-libgcc 
-L/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libjava
-L/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libjava/.libs
./.libs/libgij.so
-L/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/src
-L/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libstdc++-v3/src/.libs
/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libjava/.libs/libgcj.so
-lpthread -ldl -lz
-L/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/./gcc
-L/usr/lib/gcc/i386-redhat-linux/../.. -lgcc_s -lc -lgcc_s -lgcc_s -lc
-lgcc_s -Wl,--rpath -Wl,/usr/lib
creating gij
/bin/sh: line 1: 24580 Aborted                 ./gcj-dbtool -n classmap.db
make[3]: Leaving directory
`/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libjava'
make[2]: Leaving directory
`/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux/i386-redhat-linux/libjava'
make[1]: Leaving directory
`/home/justin/rpmbuild/BUILD/gcc-4.1-20050730/obj-i386-redhat-linux'
+ for i in 'gcc/ada/rts/lib*-*.so.1'
++ basename 'gcc/ada/rts/lib*-*.so.1'
++ basename 'gcc/ada/rts/lib*-*.so.1' .1
+ ln -sf 'lib*-*.so.1' gcc/ada/rts/libgnarl-4.0.so gcc/ada/rts/libgnat-4.0.so
ln: when making multiple links, last argument must be a directory
error: Bad exit status from /var/tmp/rpm-tmp.80376 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80376 (%build)

real    189m27.754s
user    308m13.264s
sys     27m38.852s

(will distcc work well on amd64 to this box which is a 2x866Mhz p3)  I
know when I used to use Gentoo, they used to say cross platform, which
at the time I had a lot of Ultra 10's running Linux too.

Another question, do you think I should just leave all the patches out
since those aren't really created for 4.1 and is all of this just a
lost cause ;)

My goal was to build 4.1 and rebuild the system against it.  Yes, I
have lots of box's and I can destroy this one on a moments notice.....




More information about the fedora-test-list mailing list