« 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

>>  + 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)
> This happens because the patches are fuzzy and don't apply with --fuzz=0. You
> can work around this by adding
> %define _default_patch_fuzz 2
> to the beginning of gcc.spec

Thanks, it solved the problem for getting the patches to be applied from
the gcc 4.3.2 srpm. But now after a while I am getting build errors at
least in the rpmbuild/BUILD/gcc-4.3.2/libcpp/macro.c

What version of gcc is itself used for building the gcc-4.3.2.rpm for the
mandriva 2009.1? Maybe the gcc 4.3.2 is too new/strict for it... The error
I get is: (two functions which try to report error log)


rpmbuild -bb gcc.spec
...

/home/lamikr/rpmbuild/BUILD/gcc-4.3.2/obj-i586-manbo-linux-gnu/./prev-gcc/xgcc
-B/home/lamikr/rpmbuild/BUILD/gcc-4.3.2/obj-i586-manbo-linux-gnu/./prev-gcc/
-B/usr/i586-manbo-linux-gnu/bin/  -I../../libcpp -I.
-I../../libcpp/../include -I../../libcpp/include  -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-pedantic -Wno-long-long  -I../../libcpp -I. -I../../libcpp/../include
-I../../libcpp/include  -c -o macro.o -MT macro.o -MMD -MP -MF
.deps/macro.Po ../../libcpp/macro.c
../../libcpp/macro.c: In function create_iso_definition:
../../libcpp/macro.c:1659: error: format not a string literal and no
format arguments
../../libcpp/macro.c:1672: error: format not a string literal and no
format arguments

Mika

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