Error while compiling trunk with gcc 4.2.0

2 views
Skip to first unread message

Ricardo Martins

unread,
Jun 9, 2007, 10:19:10 AM6/9/07
to zfs-fuse
Hi everyone,

I'm getting this error when I compile the latest/tip trunk.

gcc -o lib/libzpool/build-user/dmu.o -c -pipe -Wall -Werror -std=c99 -
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\" -ggdb -O2 -Ilib/libavl/include -Ilib/
libnvpair/include -Ilib/libzfscommon/include -Ilib/libumem/include -
Ilib/libzpool/include -Ilib/libsolcompat/include lib/libzpool/dmu.c
cc1: warnings being treated as errors
lib/libzpool/dmu.c: In function 'dmu_write':
lib/libzpool/dmu.c:433: warning: passing argument 6 of
'dmu_buf_hold_array' discards qualifiers from pointer target type
scons: *** [lib/libzpool/build-user/dmu.o] Error 1
scons: building terminated because of errors.

Gcc 4.2.0 on Arch Linux. I also tried compiling this on another Arch
box, gcc 4.1.2 20070423 (prerelease), and had success.

Regards,
Ricardo Martins

Ricardo Correia

unread,
Jun 11, 2007, 4:59:34 PM6/11/07
to zfs-...@googlegroups.com, Ricardo Martins
On Saturday 09 June 2007 15:19:10 Ricardo Martins wrote:
> Gcc 4.2.0 on Arch Linux. I also tried compiling this on another Arch
> box, gcc 4.1.2 20070423 (prerelease), and had success.

Yeap, gcc 4.2 is not supported yet. I received a patch from Michał Kowalczuk
(which I have attached), but I haven't tested it. It seems it was made
against zfs-fuse 0.4.0 beta1, so some tweaking might be required.

zfs-fuse-0.4.0_beta1-gcc4.2.patch

Ricardo Martins

unread,
Jun 13, 2007, 6:48:58 AM6/13/07
to zfs-...@googlegroups.com
Oops, I forgot to cc this to the ML.

---------- Forwarded message ----------
From: Ricardo Martins <meqif.k...@gmail.com >
Date: Jun 12, 2007 10:31 PM
Subject: Re: [zfs-fuse] Error while compiling trunk with gcc 4.2.0
To: Ricardo Correia <rcor...@wizy.org>

On 6/11/07, Ricardo Correia <rcor...@wizy.org> wrote:
Yeap, gcc 4.2 is not supported yet. I received a patch from Michał Kowalczuk
(which I have attached), but I haven't tested it. It seems it was made
against zfs-fuse 0.4.0 beta1, so some tweaking might be required.

It applies cleanly against trunk and compiles correctly. Thanks.

Regards,
--
Ricardo Martins  ><><   www.swearing-ape.net  ><><   scarybox.net

Reply all
Reply to author
Forward
0 new messages