#69146 closed defect (duplicate)
libpixman @0.42.2: error: expected identifier before ‘__attribute__’
Reported by: | barracuda156 | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | snowleopard, rosetta, tiger, leopard | Cc: | mascguy (Christopher Nielsen), ballapete (Peter "Pete" Dyballa) |
Port: | libpixman |
Description
Found ninja-1.11.1 at /opt/local/bin/ninja ---> Building libpixman Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/build" && /opt/local/bin/ninja -j6 -v [1/113] /usr/bin/gcc-4.2 -Ipixman/libpixman-vmx.a.p -Ipixman -I../pixman-0.42.2/pixman -I/opt/local/include -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -DHAVE_CONFIG_H -pipe -Os -arch ppc -maltivec -mabi=altivec -MD -MQ pixman/libpixman-vmx.a.p/pixman-vmx.c.o -MF pixman/libpixman-vmx.a.p/pixman-vmx.c.o.d -o pixman/libpixman-vmx.a.p/pixman-vmx.c.o -c ../pixman-0.42.2/pixman/pixman-vmx.c FAILED: pixman/libpixman-vmx.a.p/pixman-vmx.c.o /usr/bin/gcc-4.2 -Ipixman/libpixman-vmx.a.p -Ipixman -I../pixman-0.42.2/pixman -I/opt/local/include -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -DHAVE_CONFIG_H -pipe -Os -arch ppc -maltivec -mabi=altivec -MD -MQ pixman/libpixman-vmx.a.p/pixman-vmx.c.o -MF pixman/libpixman-vmx.a.p/pixman-vmx.c.o.d -o pixman/libpixman-vmx.a.p/pixman-vmx.c.o -c ../pixman-0.42.2/pixman/pixman-vmx.c ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_cover_OVER’: ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_none_OVER’: ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_pad_OVER’: ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_normal_OVER’: ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’ ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’ [2/113] /usr/bin/gcc-4.2 -Ipixman/libpixman-1.0.dylib.p -Ipixman -I../pixman-0.42.2/pixman -I/opt/local/include -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ pixman/libpixman-1.0.dylib.p/pixman.c.o -MF pixman/libpixman-1.0.dylib.p/pixman.c.o.d -o pixman/libpixman-1.0.dylib.p/pixman.c.o -c ../pixman-0.42.2/pixman/pixman.c [3/113] /usr/bin/gcc-4.2 -Ipixman/libpixman-1.0.dylib.p -Ipixman -I../pixman-0.42.2/pixman -I/opt/local/include -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ pixman/libpixman-1.0.dylib.p/pixman-combine32.c.o -MF pixman/libpixman-1.0.dylib.p/pixman-combine32.c.o.d -o pixman/libpixman-1.0.dylib.p/pixman-combine32.c.o -c ../pixman-0.42.2/pixman/pixman-combine32.c [4/113] /usr/bin/gcc-4.2 -Ipixman/libpixman-1.0.dylib.p -Ipixman -I../pixman-0.42.2/pixman -I/opt/local/include -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ pixman/libpixman-1.0.dylib.p/pixman-bits-image.c.o -MF pixman/libpixman-1.0.dylib.p/pixman-bits-image.c.o.d -o pixman/libpixman-1.0.dylib.p/pixman-bits-image.c.o -c ../pixman-0.42.2/pixman/pixman-bits-image.c [5/113] /usr/bin/gcc-4.2 -Ipixman/libpixman-1.0.dylib.p -Ipixman -I../pixman-0.42.2/pixman -I/opt/local/include -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ pixman/libpixman-1.0.dylib.p/pixman-access.c.o -MF pixman/libpixman-1.0.dylib.p/pixman-access.c.o.d -o pixman/libpixman-1.0.dylib.p/pixman-access.c.o -c ../pixman-0.42.2/pixman/pixman-access.c [6/113] /usr/bin/gcc-4.2 -Ipixman/libpixman-1.0.dylib.p -Ipixman -I../pixman-0.42.2/pixman -I/opt/local/include -Wall -Winvalid-pch -std=gnu99 -O2 -g -Wdeclaration-after-statement -fno-strict-aliasing -fvisibility=hidden -Wundef -ftrapping-math -DHAVE_CONFIG_H -pipe -Os -arch ppc -MD -MQ pixman/libpixman-1.0.dylib.p/pixman-access-accessors.c.o -MF pixman/libpixman-1.0.dylib.p/pixman-access-accessors.c.o.d -o pixman/libpixman-1.0.dylib.p/pixman-access-accessors.c.o -c ../pixman-0.42.2/pixman/pixman-access-accessors.c ninja: build stopped: subcommand failed.
Attachments (1)
Change History (8)
Changed 10 months ago by barracuda156
Attachment: | libpixman_10.6.8.log added |
---|
comment:1 Changed 10 months ago by barracuda156
comment:2 Changed 10 months ago by barracuda156
Keywords: | tiger leopard added; powerpc removed |
---|---|
Summary: | libpixman: build broken on 10.6.8 Rosetta → libpixman: does not build with gcc-4.2 which breaks 10.6.8 Rosetta (and provisionally 10.4–10.5) |
comment:3 Changed 10 months ago by barracuda156
Ok, I can confirm it builds fine on the same 10.6.8 with gcc13. The issue is likely affecting 10.4 and 10.5, any arch.
comment:4 follow-up: 6 Changed 10 months ago by rmottola (Riccardo)
I experience also issues on 10.5 pcc. However, forcing gcc7 makes compilation issues go away, but I have a linker error:
[42/113] /opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-loop.p/infinite-loop.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -arch ppc -Wl,-rpath,@loader_path/../pixman test/libtestutils.a pixman/libpixman-1.0.dylib -lm FAILED: test/infinite-loop /opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-loop.p/infinite-loop.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -arch ppc -Wl,-rpath,@loader_path/../pixman test/libtestutils.a pixman/libpixman-1.0.dylib -lm Undefined symbols: "_posix_memalign", referenced from: _aligned_malloc in libtestutils.a(utils.c.o) ld: symbol(s) not found collect2: error: ld returned 1 exit status
appears to be PPC specific. Didn't see something ismilar during intel upgrades. Ideas, @kencu?
comment:5 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Summary: | libpixman: does not build with gcc-4.2 which breaks 10.6.8 Rosetta (and provisionally 10.4–10.5) → libpixman @0.42.2: error: expected identifier before ‘__attribute__’ |
Duplicate of #68473.
comment:6 Changed 10 months ago by barracuda156
Replying to rmottola:
I experience also issues on 10.5 pcc. However, forcing gcc7 makes compilation issues go away, but I have a linker error:
[42/113] /opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-loop.p/infinite-loop.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -arch ppc -Wl,-rpath,@loader_path/../pixman test/libtestutils.a pixman/libpixman-1.0.dylib -lm FAILED: test/infinite-loop /opt/local/bin/gcc-mp-7 -o test/infinite-loop test/infinite-loop.p/infinite-loop.c.o -L/opt/local/lib -I/opt/local/include -Wl,-dead_strip_dylibs -Wl,-headerpad_max_install_names -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -arch ppc -Wl,-rpath,@loader_path/../pixman test/libtestutils.a pixman/libpixman-1.0.dylib -lm Undefined symbols: "_posix_memalign", referenced from: _aligned_malloc in libtestutils.a(utils.c.o) ld: symbol(s) not found collect2: error: ld returned 1 exit statusappears to be PPC specific. Didn't see something ismilar during intel upgrades. Ideas, @kencu?
I think you need legacysupport
for posix_memalign
on 10.5.
comment:7 Changed 9 months ago by ballapete (Peter "Pete" Dyballa)
Cc: | ballapete added |
---|
Note: See
TracTickets for help on using
tickets.
I will check how did I build it on 10.6 ppc (away from the Quad until morning), but looks like it just cannot build with gcc-4.2, and old Xcode compilers should not be used.