Subject: Re: pkg/31854: cairo 1.0.2 doesn't build on macppc -current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Timo Schoeler <timo.schoeler@riscworks.net>
List: pkgsrc-bugs
Date: 10/18/2005 13:59:02
The following reply was made to PR pkg/31854; it has been noted by GNATS.
From: Timo Schoeler <timo.schoeler@riscworks.net>
To: Quentin Garnier <cube@cubidou.net>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/31854: cairo 1.0.2 doesn't build on macppc -current
Date: Tue, 18 Oct 2005 15:57:47 +0200
Quentin Garnier wrote:
> On Tue, Oct 18, 2005 at 11:32:00AM +0000, timo.schoeler@riscworks.net wrote:
>
>>>Number: 31854
>>>Category: pkg
>>>Synopsis: cairo 1.0.2 doesn't build on macppc -current
>>>Confidential: no
>>>Severity: serious
>>>Priority: medium
>>>Responsible: pkg-manager
>>>State: open
>>>Class: sw-bug
>>>Submitter-Id: net
>>>Arrival-Date: Tue Oct 18 11:32:00 +0000 2005
>>>Originator: Timo Schoeler
>>>Release: 3.99.9
>>>Organization:
>>
>>RISCworks
>>
>>>Environment:
>>
>>NetBSD ubiytsa.ts39-bln.riscworks.net 3.99.9 NetBSD 3.99.9 (GENERIC.MP) #0: Sat Oct 8 04:11:39 UTC 2005 builds@b4.netbsd.org:/home/builds/ab/HEAD/macppc/200510070000Z-obj/home/builds/ab/HEAD/src/sys/arch/macppc/compile/GENERIC.MP macppc
>>
>>>Description:
>>
>>cairo fails here:
>>
>>(...)
>>cc -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -O4 -I/usr/pkgsrc/graphics/cairo/work/.buildlink/include -I/usr/pkgsrc/graphics/cairo/work/.buildlink/include/freetype2 -DGLX_GLXEXT_LEGACY -I/usr/pkgsrc/graphics/cairo/work/.buildlink/gcc34/include -I/usr/pkgsrc/graphics/cairo/work/.buildlink/gcc34/lib/gcc/powerpc--netbsd3.99.9/3.4.4/include -Wl,-R/usr/pkg/gcc34/lib/gcc/powerpc--netbsd3.99.9/3.4.4 -Wl,-R/usr/pkg/gcc34/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/gcc34/lib/gcc/powerpc--netbsd3.99.9/3.4.4/ -Wl,-R/usr/X11R6/lib -o .libs/imagediff imagediff.o -pthread -L/usr/pkgsrc/graphics/cairo/work/.buildlink/gcc34/lib/gcc/powerpc--netbsd3.99.9/3.4.4 -L/usr/pkgsrc/graphics/cairo/work/.buildlink/gcc34/lib -L/usr/pkgsrc/graphics/cairo/work/.buildlink/lib -L/usr/pkgsrc/graphics/cairo/work/.buildlink/gcc34/lib/gcc/powerpc--netbsd3.99.9/3.4.4/ -L/usr/pkgsrc/graphics/cairo/work/.x11-buildlink/lib ./.libs/libcairotest.a ../src/.libs/libcairo.so /usr/pkgsrc/graphics/cairo/work/.buildlink/l
i
b/
>> libXrender.so -lX11 /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libpng.so /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libglitz.so /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libfontconfig.so /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libexpat.so /usr/pkgsrc/graphics/cairo/work/.buildlink/lib/libfreetype.so -lz -lintl -lm -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath -Wl,/usr/pkgsrc/graphics/cairo/work/.buildlink/lib
>>/usr/bin/ld: .libs/imagediff: hidden symbol `__popcountsi2' in /usr/pkgsrc/graphics/cairo/work/.buildlink/gcc34/lib/gcc/powerpc--netbsd3.99.9/3.4.4/libgcc.a(_popcountsi2.oS) is referenced by DSO
>>collect2: ld returned 1 exit status
>>*** Error code 1
>
>
> I think this is a problem tied to gcc 3.4, more than the fact that it
> happens on NetBSD/macppc.
>
> The following bit of code from pixman/src/icint.h looks especially
> suspicious WRT the error:
>
> #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
> # if __INT_MIN__ == 0x7fffffff
> # define _FbOnes(mask) __builtin_popcount(mask)
> # else
> # define _FbOnes(mask) __builtin_popcountl((mask) & 0xffffffff)
> # endif
>
> I'd like to know if disabling that code works around the issue.
yip, thanks, that fixes the problem! :)
thanks again,
timo