pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/45278: bootstrap fails in libfetch NetBSD -current (gcc4.5)
The following reply was made to PR pkg/45278; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/45278: bootstrap fails in libfetch NetBSD -current (gcc4.5)
Date: Sun, 21 Aug 2011 08:29:18 +0000
Not sent to gnats.
------
From: Kai-Uwe Eckhardt <kuehro%gmx.de@localhost>
To: pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/45278: bootstrap fails in libfetch NetBSD -current (gcc4.5)
Date: Sun, 21 Aug 2011 09:39:00 +0200
Hi,
> > half of the network code. So let us try with -fno-strict-aliasing on
> > ftp.c then. Other suggestions besides turning to another compiler ? ;-)
>
> *sigh* What I am telling you is that this is not about strict aliasing.
Ok, but our default compiler thinks so and fails on an important part
of pkgsrc infrastructure. But this works on NetBSD current i386:
export CFLAGS=-fno-strict-aliasing
./testbootstrap
I will try to check the gcc bug lists and otherwise create a small test
example to get this resolved in gcc. Otherwise this will hit us again.
I stumbled over this kind of problem before and suitable aligning shorts
and ints made all compilers happy. But I apologize for too quickly
blaiming the code. Anyway, using -fno-strict-aliasing somewhere in the
Makefiles for gcc solves this problem.
Have a nice day,
Kai-Uwe
--
--
Home |
Main Index |
Thread Index |
Old Index