So today, I tried another approach because to see
So I grabbed the rawhide 4.4.3 spec file and modified it a little, by disabling some patches that were not necessary.
Here is the modified spec file
The first time I ran it, this is the error I received:
echo timestamp > stmp-int-hdrs
rm gcj-dbtool.pod jcf-dump.pod jv-convert.pod grmic.pod gcov.pod gcj.pod gc-analyze.pod gfdl.pod cpp.pod gij.pod gcc.pod gfortran.pod fsf-funding.pod
make[2]: Leaving directory `/home/bchao/rpmbuild/BUILD/gcc-4.5/host-x86_64-unknown-linux-gnu/gcc'
Checking multilib configuration for libgcc...
mkdir -p -- x86_64-redhat-linux-gnu/libgcc
Configuring in x86_64-redhat-linux-gnu/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking for x86_64-redhat-linux-gnu-ar... x86_64-redhat-linux-gnu-ar
checking for x86_64-redhat-linux-gnu-lipo... x86_64-redhat-linux-gnu-lipo
checking for x86_64-redhat-linux-gnu-nm... /home/bchao/rpmbuild/BUILD/gcc-4.5/host-x86_64-unknown-linux-gnu/gcc/nm
checking for x86_64-redhat-linux-gnu-ranlib... x86_64-redhat-linux-gnu-ranlib
checking for x86_64-redhat-linux-gnu-strip... x86_64-redhat-linux-gnu-strip
checking whether ln -s works... yes
checking for x86_64-redhat-linux-gnu-gcc... /home/bchao/rpmbuild/BUILD/gcc-4.5/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/bchao/rpmbuild/BUILD/gcc-4.5/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/x86_64-redhat-linux-gnu/bin/ -B/usr/x86_64-redhat-linux-gnu/lib/ -isystem /usr/x86_64-redhat-linux-gnu/include -isystem /usr/x86_64-redhat-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/home/bchao/rpmbuild/BUILD/gcc-4.5/x86_64-redhat-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory `/home/bchao/rpmbuild/BUILD/gcc-4.5'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.O5eDf8 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.O5eDf8 (%build)
So I did some search and found this site, I followed the instructions on the site. Problem is the package it is referring to does not exist.
So I did a yum list glibc-devel.* and found this as the substitute glibc-devel.i686
Now I installed that, and this is the new error I encountered
../../gcc/ada/sem_eval.adb:1703:10: warning: 'Folded_Val' may be used uninitialized in this function
/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/xgcc -B/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/lib/ -isystem /usr/x86_64-redhat-linux/include -isystem /usr/x86_64-redhat-linux/sys-include -c -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -gtoggle -fprofile-generate -gnatpg -gnata -nostdinc -I- -I. -Iada -I../../gcc/ada -I../../gcc/ada/gcc-interface ../../gcc/ada/sem_scil.adb -o ada/sem_scil.o
/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/xgcc -B/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/lib/ -isystem /usr/x86_64-redhat-linux/include -isystem /usr/x86_64-redhat-linux/sys-include -c -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -gtoggle -fprofile-generate -gnatpg -gnata -nostdinc -I- -I. -Iada -I../../gcc/ada -I../../gcc/ada/gcc-interface ../../gcc/ada/sem_smem.adb -o ada/sem_smem.o
/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/xgcc -B/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/lib/ -isystem /usr/x86_64-redhat-linux/include -isystem /usr/x86_64-redhat-linux/sys-include -c -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -gtoggle -fprofile-generate -gnatpg -gnata -nostdinc -I- -I. -Iada -I../../gcc/ada -I../../gcc/ada/gcc-interface ../../gcc/ada/sem_type.adb -o ada/sem_type.o
../../gcc/ada/sem_prag.adb: In function 'Sem_Prag.Analyze_Pragma.Process_Inline':
../../gcc/ada/sem_prag.adb:3678:10: warning: 'Subp' may be used uninitialized in this function
../../gcc/ada/sem_prag.adb: In function 'Sem_Prag.Analyze_Pragma':
../../gcc/ada/sem_prag.adb:8419:13: warning: 'Convention' may be used uninitialized in this function
../../gcc/ada/sem_prag.adb:12104:25: warning: 'Chr' may be used uninitialized in this function
/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/xgcc -B/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/./prev-gcc/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/bin/ -B/usr/x86_64-redhat-linux/lib/ -isystem /usr/x86_64-redhat-linux/include -isystem /usr/x86_64-redhat-linux/sys-include -c -O2 -g -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic -gtoggle -fprofile-generate -gnatpg -gnata -nostdinc -I- -I. -Iada -I../../gcc/ada -I../../gcc/ada/gcc-interface ../../gcc/ada/sem_util.adb -o ada/sem_util.o
sem_util.adb:2249:17: warning: actuals for this call may be in wrong order
make[3]: *** [ada/sem_util.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcj-dbtool.pod jcf-dump.pod jv-convert.pod grmic.pod gcj.pod gc-analyze.pod gfdl.pod cpp.pod gij.pod gcov.pod gfortran.pod fsf-funding.pod gcc.pod
make[3]: Leaving directory `/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux/gcc'
make[2]: *** [all-stageprofile-gcc] Error 2
make[2]: Leaving directory `/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux'
make[1]: *** [stageprofile-bubble] Error 2
make[1]: Leaving directory `/home/bchao/rpmbuild/BUILD/gcc-4.5/obj-x86_64-redhat-linux'
make: *** [profiledbootstrap] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.YnEax1 (%build)
real 12m24.594s
user 16m40.623s
sys 3m57.327s
I went on the #fedora-devel channel on the usual irc.freenode.net server hoping someone can provide me some insight, but no one has responded to my inquiries.
Also must be noted, on my previous builds with my temp spec file, my build times were about 1hour before it fails, now it won't go past 15 mins.
Hopefully I can solve this soon.
Here is the output from the build.
This is the syntax I used to make the output file
rpmbuild -ba gcc4.5.spec.bak 2>&1 | tee output.txt
This allows me to get standard error output and regular output into one file.
Thursday, April 15, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment