I'm working with Fedora Core 15 as well. If you check out the latest
sparse code, just Google
mirrors/ftp.kernel.org/pub/scm/devel/sparse/sparse.git
and then git clone one of them, you can see in the header parse.h that
that union member has been removed. It is redundant to another union
member with the same types and the new compiler complains.
You could edit the file yourself after the build crashes and remove the
lines.
$ vi /opt/ltib/usr/src/rpm/BUILD/sparse-0.4/parse.h
After that you could do a patchmerge to apply the patch to your spec file.
$ ./ltib --hostcf -f -p sparse -m patchmerge
The patches to the sparse package and to the spec file are attached.
Alternatively, the sparse.spec could be updated to the most recent source
tarball.
Aaron
> Hi Jens,
>
> It look like a bug in the sparse package that is triggered by the later
> host gcc on Fedora 15 (I've not tried this distro).
>
> If you (or someone at your organisation) can send a patch to fix this
> package, I'd be happy to get it applied to the .spec file in the
> repository.
>
> Regards, Stuart
>
> On 20/09/11 11:54, Jens Bause wrote:
>>
>> Hello,
>>
>> I'm using a Fedora 15 and the latest ltib from cvs (version 10.1.1 Rev
>> 1.75).
>>
>> Starting ltib for the first time ends up in a "These packages failed
>> to build: sparse Build failed" error.
>>
>> log-file:
>>
>> Build path taken because: directory build, no prebuilt rpm,
>>
>> Processing: sparse
>>
>> ====================
>>
>> Build path taken because: no prebuilt rpm,
>>
>> rpmbuild --dbpath ///opt/ltib/var/lib/rpm --target i686 --define
>> '_unpackaged_files_terminate_build 0' --define '_target_cpu i686'
>> --define '__strip strip' --define '_topdir /opt/ltib/usr/src/rpm'
>> --define '_prefix /opt/ltib/usr' --define '_tmppath
>> /home/jens/ltib/tmp' --define '_rpmdir /opt/ltib/usr/src/rpm/RPMS'
>> --define '_mandir /opt/ltib/usr/share/man' --define '_sysconfdir
>> /opt/ltib/etc' --define '_localstatedir /var' -bb --clean --rmsource
>> /home/jens/ltib/dist/lfs-5.1/sparse/sparse.spec
>>
>> Building target platforms: i686
>>
>> Building for target i686
>>
>> Executing(%prep): /bin/sh -e /home/jens/ltib/tmp/rpm-tmp.46095
>>
>> + umask 022
>>
>> + cd /opt/ltib/usr/src/rpm/BUILD
>>
>> + cd /opt/ltib/usr/src/rpm/BUILD
>>
>> + rm -rf sparse-0.4
>>
>> + /bin/gzip -dc /opt/ltib/usr/src/rpm/SOURCES/sparse-0.4.tar.gz
>>
>> + tar -xf -
>>
>> + STATUS=0
>>
>> + '[' 0 -ne 0 ']'
>>
>> + cd sparse-0.4
>>
>> + exit 0
>>
>> Executing(%build): /bin/sh -e /home/jens/ltib/tmp/rpm-tmp.46095
>>
>> + umask 022
>>
>> + cd /opt/ltib/usr/src/rpm/BUILD
>>
>> + cd sparse-0.4
>>
>> + make DESTDIR=/home/jens/ltib/tmp/sparse
>> PREFIX=/opt/freescale/rootfs/i686//opt/ltib/usr
>>
>> CC test-lexing.o
>>
>> CC target.o
>>
>> CC %
diff --exclude CVS --exclude .git -uNr sparse-0.4/parse.h sparse-0.4.modified/parse.h
--- sparse-0.4/parse.h 2007-09-15 15:56:10.000000000 -0400
+++ sparse-0.4.modified/parse.h 2011-09-21 12:49:35.586591006 -0400
@@ -35,10 +35,6 @@
struct /* declaration */ {
struct symbol_list *declaration;
};
- struct /* label_arg */ {
- struct symbol *label;
- struct statement *label_statement;
- };
struct {
struct expression *expression;
struct expression *context;
Binary files sparse-0.4/target.o and sparse-0.4.modified/target.o differ
Binary files sparse-0.4/test-lexing.o and sparse-0.4.modified/test-lexing.o differ--- dist/lfs-5.1/sparse/sparse.spec 2011-09-21 12:50:25.412588705 -0400
+++ dist/lfs-5.1/sparse/sparse.spec.new 2011-09-21 12:50:25.413588704 -0400
@@ -9,6 +9,7 @@
URL : http://kernel.org/pub/software/devel/sparse/
Source0 : %{name}-%{version}.tar.gz
Patch0 : %{name}-%{version}-array-fix.patch
+Patch1 : sparse-0.4-1316623824.patch
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
@@ -32,6 +33,7 @@
%setup -q
### This patch causes a SEGV under Debian Lenny (and others)
### %patch0 -p1
+%patch1 -p1
%build
make DESTDIR=$RPM_BUILD_ROOT PREFIX="%{pfx}/%{_prefix}"_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib