« Return to Thread: [Cooker] libobjc_gc.so missing from the gcc srpm build

Re: [Cooker] libobjc_gc.so missing from the gcc srpm build

by Mika Laitio :: Rate this Message:

Reply to Author | View in Thread

Sorry it took a while to respond...

> Le mercredi 24 juin 2009 à 06:39 +0300, Mika Laitio a écrit :
>> I would need to get the libobjc_gc.so to be able to build the gnustep
>> libraries with gc support enabled. It seems that this library should be
>> build as a part of
>> gcc build with some flags enabled.
>
> What flags ?

According to mail link below, gcc would require a flag:
"--enable-objc-gc", but I have not been able to test it yet.
http://osdir.com/ml/lib.gnustep.general/2001-12/msg00242.html

>> I tried to test that by myself by trying to rebuild the
>> http://ftp.sunet.se/pub/os/Linux/distributions/mandrakelinux/official/2009.1/SRPMS/main/release/gcc-4.3.2-5mnb2.src.rpm
>> but it will fail for me for in patching phase for many patches.
>>
>> I tried with following steps and I am wondering whether I am doing
>> something wrong...
>> - rpm -ivh gcc-4.3.2-5mnb2.src.rpm
>> - cd rpmbuild/SPECS
>> - rpmbuild -bb gcc.spec
>>
>> First failing patch is gcc33-pass-slibdir.patch, but once I fixed that
>> manually I am getting similar looking patch errors in other patches like
>> gcc33-multi-do-libdir.patch
>
> What does the error look like ?
This is the first failure after issuing commands:
rpm -ivh gcc-4.3.2-5mnb2.src.rpm
cd rpmbuild/SPECS
rpmbuild -bb gcc.spec

[lamikr@iiris SPECS]$ rpmbuild -bb gcc.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.58AuoS
+ umask 022
+ cd /home/lamikr/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/lamikr/rpmbuild/BUILD
+ rm -rf gcc-4.3.2
+ /usr/bin/bzip2 -dc /home/lamikr/rpmbuild/SOURCES/gcc-4.3.2.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gcc-4.3.2
+ /usr/bin/bzip2 -dc
/home/lamikr/rpmbuild/SOURCES/gcc35-gpc-20040516.tar.bz2
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ echo 'Patch #1 (gcc33-pr11536-testcase.patch):'
Patch #1 (gcc33-pr11536-testcase.patch):
+ /usr/bin/patch -U -s -p1 -b --suffix .pr11536-testcase --fuzz=0 -i
/home/lamikr/rpmbuild/SOURCES/gcc33-pr11536-testcase.patch
+ echo 'Patch #2 (gcc33-pr9929-testcase.patch):'
Patch #2 (gcc33-pr9929-testcase.patch):
+ /usr/bin/patch -U -s -p1 -b --suffix .pr9929-testcase --fuzz=0 -i
/home/lamikr/rpmbuild/SOURCES/gcc33-pr9929-testcase.patch
+ echo 'Patch #101 (gcc33-pass-slibdir.patch):'
Patch #101 (gcc33-pass-slibdir.patch):
+ /usr/bin/patch -U -s -p1 -b --suffix .pass-slibdir --fuzz=0 -i
/home/lamikr/rpmbuild/SOURCES/gcc33-pass-slibdir.patch
1 out of 2 hunks FAILED -- saving rejects to file Makefile.in.rej
error: Bad exit status from /var/tmp/rpm-tmp.58AuoS (%prep)


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


>
>> I am running 2009.1 and therefore trying to build the 2009.1 versions from
>> the rpms in x86_64 machine. Are those patches in srpm really the ones that
>> has been
>> used for building the rpm and am I missing some parameters for the
>> rpmbuild command?
>
> Yes, that is what have been used.
>
>

 « Return to Thread: [Cooker] libobjc_gc.so missing from the gcc srpm build