Personal tools
You are here: Home Issue tracker compile failed (gcc 4.5 prerelease)

#52 — compile failed (gcc 4.5 prerelease)

State Resolved
Version: 0.6.9
Area Process
Issue type Bug
Severity Medium
Submitted by Stefano
Submitted on Jun 03, 2010
Responsible Seth Heeren
Target release:
Return to tracker
Last modified on Feb 16, 2011
Archlinux
root ~ # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
Thread model: posix
gcc version 4.5.0 20100520 (prerelease) (GCC)
---
root ~ # scons --v
SCons by Steven Knight et al.:
    script: v1.3.0.r4720, 2010/03/24 03:14:11, by jars on jars-desktop
    engine: v1.3.0.r4720, 2010/03/24 03:14:11, by jars on jars-desktop
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
---
[...]
gcc -o zfs-fuse/zfsfuse_socket.o -c -pipe -Wall -std=c99 -Wno-switch -Wno-unused -Wno-missing-braces -Wno-parentheses -Wno-uninitialized -fno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DTEXT_DOMAIN=\"zfs-fuse\" -s -O2 -DNDEBUG -D_KERNEL -DLINUX_AIO -Ilib/libavl/include -Ilib/libnvpair/include -Ilib/libumem/include -Ilib/libzfscommon/include -Ilib/libsolkerncompat/include zfs-fuse/zfsfuse_socket.c
gcc -o zfs-fuse/zfs_operations.o -c -pipe -Wall -std=c99 -Wno-switch -Wno-unused -Wno-missing-braces -Wno-parentheses -Wno-uninitialized -fno-strict-aliasing -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DTEXT_DOMAIN=\"zfs-fuse\" -s -O2 -DNDEBUG -D_KERNEL -DLINUX_AIO -Ilib/libavl/include -Ilib/libnvpair/include -Ilib/libumem/include -Ilib/libzfscommon/include -Ilib/libsolkerncompat/include zfs-fuse/zfs_operations.c
zfs-fuse/zfs_operations.c: In function 'zfsfuse_listxattr':
zfs-fuse/zfs_operations.c:249:5: error: jump into scope of identifier with variably modified type
zfs-fuse/zfs_operations.c:314:1: note: label 'out' defined here
zfs-fuse/zfs_operations.c:262:4: note: 'entry' declared here
zfs-fuse/zfs_operations.c:249:5: error: jump into scope of identifier with variably modified type
zfs-fuse/zfs_operations.c:314:1: note: label 'out' defined here
zfs-fuse/zfs_operations.c:259:2: note: '({anonymous})' declared here
zfs-fuse/zfs_operations.c:253:2: error: jump into scope of identifier with variably modified type
zfs-fuse/zfs_operations.c:314:1: note: label 'out' defined here
zfs-fuse/zfs_operations.c:262:4: note: 'entry' declared here
zfs-fuse/zfs_operations.c:253:2: error: jump into scope of identifier with variably modified type
zfs-fuse/zfs_operations.c:314:1: note: label 'out' defined here
zfs-fuse/zfs_operations.c:259:2: note: '({anonymous})' declared here
scons: *** [zfs-fuse/zfs_operations.o] Error 1
scons: building terminated because of errors.
Steps to reproduce:
unpack the official tarball
cd src
scons
<error>
Added by Seth Heeren on Jun 03, 2010 03:39 PM
Issue state: unconfirmedresolved
Responsible manager: (UNASSIGNED)sgheeren
This was mentioned before on the list, but apparently somehow did not get merged.
#8e51a8b4b7f3bb11" rel="nofollow">http://groups.google.com/[…]/8e51a8b4b7f3bb11?lnk=gst#8e51a8b4b7f3bb11

I have merged this into the now fresh testing branch:

http://gitweb.zfs-fuse.net/[…]a7c68e77fa7b2714c6278d4a9d2

As you can gauge from Emmanuels response on the list, gcc 4.5 support isn't very wide-spread so patches are always welcome
Added by Seth Heeren on Jun 03, 2010 03:42 PM
Sorry, but I have rebased that commit onto master so that the new testing branch includes the new bumped revision. (My mistake)
Added by (anonymous) on Aug 18, 2010 05:43 AM
hi
I have the same problem with archlinux und zfs, what can I do?
Added by Seth Heeren on Aug 18, 2010 06:54 AM
fixed the gitweb link (gitweb moved to zfs-fuse.net)

it is in both maint and testing.

maint is recommended for all purposes, download it from teh zfs-fuse.net homepage or git branch 'maint'