I have somewhat made some progress.
Here is the message I get at the end.
Processing files: gcc-debuginfo-4.5-1.fc12.x86_64
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/bchao/rpmbuild/BUILDROOT/gcc-4.5-1.fc12.x86_64
Wrote: /home/bchao/rpmbuild/SRPMS/gcc-4.5-1.fc12.src.rpm
Wrote: /home/bchao/rpmbuild/RPMS/x86_64/gcc-4.5-1.fc12.x86_64.rpm
Wrote: /home/bchao/rpmbuild/RPMS/x86_64/gcc-debuginfo-4.5-1.fc12.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Eh1ssI
+ umask 022
+ cd /home/bchao/rpmbuild/BUILD
+ cd gcc-4.5
+ rm -rf /home/bchao/rpmbuild/BUILDROOT/gcc-4.5-1.fc12.x86_64
+ exit 0
It created the RPM files I wanted without a hitch, but I still face some warnings & alerts.
1. I received warnings of duplicate files below are some examples of the warning:
warning: File listed twice: /usr/lib/gcc/x86_64-unknown-linux-gnu
warning: File listed twice: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0
warning: File listed twice: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/crtbegin.o
2. I'm down to 1 rpath error, but with my 32bit build I did not get any errors
WARNING 0020: file '/usr/bin/gij' contains an rpath referencing '..' of an absolute path [/usr/lib/../lib64/gcj-4.6.0-11]
Its a step to the right direction.
3. Still getting those annoying cpio alerts, examples as follows
cpio: gcc-4.5/host-x86_64-unknown-linux-gnu/gcc/cfns.gperf: Cannot stat: No such file or directory
cpio: gcc-4.5/x86_64-unknown-linux-gnu/gnu/java/locale/LocaleData.java: Cannot stat: No such file or directory
cpio: gcc-4.5/x86_64-unknown-linux-gnu/libjava/com/sun/javadoc/ClassDoc.java: Cannot stat: No such file or directory
cpio: gcc-4.5/x86_64-unknown-linux-gnu/libjava/com/sun/javadoc/ConstructorDoc.java: Cannot stat: No such file or directory
cpio: gcc-4.5/x86_64-unknown-linux-gnu/libjava/com/sun/javadoc/Doc.java: Cannot stat: No such file or directory
cpio: gcc-4.5/x86_64-unknown-linux-gnu/libjava/com/sun/javadoc/DocErrorReporter.java: Cannot stat: No such file or directory
cpio: gcc-4.5/x86_64-unknown-linux-gnu/libjava/com/sun/javadoc/Doclet.java: Cannot stat: No such file or directory
cpio: gcc-4.5/x86_64-unknown-linux-gnu/libjava/com/sun/javadoc/ExecutableMemberDoc.java: Cannot stat: No such file or directory
I later performed an rpmlint on my spec, source rpm file and rpm file. Below are the results that came back from rpmlint
SPEC file only came back with 2 warnings so its a good sign
[bchao@ireland SPECS]$ rpmlint gcc4.5.spec
gcc4.5.spec:48: W: configure-without-libdir-spec
gcc4.5.spec: W: invalid-url Source0: http://scotland.proximity.on.ca/DXR/gcc/x86_64/gcc4.5.tar HTTP Error 403: Forbidden
0 packages and 1 specfiles checked; 0 errors, 2 warnings.
The source rpm, came back with 1 error and 2 warnings
[bchao@ireland SRPMS]$ rpmlint gcc-4.5-1.fc12.src.rpm
gcc.src: E: invalid-spec-name
gcc.src:48: W: configure-without-libdir-spec
gcc.src: W: invalid-url Source0: http://scotland.proximity.on.ca/DXR/gcc/x86_64/gcc4.5.tar HTTP Error 403: Forbidden
1 packages and 0 specfiles checked; 1 errors, 2 warnings.
My rpm file, and came back with this result.
1 packages and 0 specfiles checked; 149 errors, 4524 warnings.
Looks like I got a lot more work to do, but at least I made some progress. LaterI will provide my results from the 32 architecture build next time I go to work.
For now you can grab these rpm files here, all the other files I used here, and my build log and config log.
Just an update, second attempt with distcc was not successful as well.


