#69385 closed defect (duplicate)
libpixman @0.42.2 fails to compile on ppc
Reported by: | rmottola (Riccardo) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | leopard gcc | Cc: | mascguy (Christopher Nielsen), ballapete (Peter "Pete" Dyballa) |
Port: | libpixman |
Description
on Leopard PPC, pixman fails to compile:
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__’
I was unable to test gcc 4.8:
meson.build:21:0: ERROR: Unable to detect linker for compiler `/opt/local/bin/gcc-mp-4.8 -Wl,--version -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -pipe -Os -arch ppc -I/opt/local/include` stdout: stderr: gcc-mp-4.8: error: unrecognized command line option '-arch' gcc-mp-4.8: error: unrecognized command line option '-arch'
GCC 7.. fails with nm issues, so futher work needed to confirm it works
Change History (9)
comment:1 follow-up: 4 Changed 3 months ago by kencu (Ken)
comment:2 Changed 3 months ago by jmroot (Joshua Root)
Cc: | mascguy added |
---|---|
Owner: | set to ryandesign |
Status: | new → assigned |
Please remember to assign to or Cc the port maintainer(s).
comment:3 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Duplicate of #68473.
comment:4 Changed 3 months ago by barracuda156
Replying to kencu:
$ port -v installed libpixman The following ports are currently installed: libpixman @0.42.2_0 (active) requested_variants='' platform='darwin 9' archs='ppc' date='2024-02-22T17:35:39-0800'I did this:
# clang on Xcode 4.1 cannot build libpixman
Shouldn’t it be clang < 400
or something alike then? I am afraid the current modification may result in Xcode clang of 3.2.6 being picked, which gonna fail, from what it looks.
UPD. Perhaps I am wrong, 211 is enough to avoid Xcode 4.1 and below (including therefore 3.2.6):
Xcode 4.2 Xcode: BuildVersion: 4C199 llvm-gcc: i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) clang: Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
comment:5 follow-up: 6 Changed 3 months ago by kencu (Ken)
nope, the current looks fine, using the most modern clang that can be installed by Xcode on 10.6:
$ uname -a Darwin kensmacbookpro 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 kensmacbookpro: $ /usr/bin/clang -v Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn) Target: x86_64-apple-darwin10.8.0 Thread model: posix
Edit - actually, I'm not sure if anyone has specifically tested clang-211.10.1 on Intel to see if it can build this any time recently.
clang-211.10.1 corresponds to Xcode 4.2.
comment:6 follow-up: 7 Changed 3 months ago by barracuda156
Replying to kencu:
nope, the current looks fine, using the most modern clang that can be installed by Xcode on 10.6:
Yeah, as long as it is 4.2, we are good. It does not support powerpc so cannot be chosen on Rosetta (maximum is clang of 3.2.6), and since for Intel it works, everything is correct.
comment:7 Changed 3 months ago by kencu (Ken)
Replying to barracuda156:
Replying to kencu:
nope, the current looks fine, using the most modern clang that can be installed by Xcode on 10.6:
Yeah, as long as it is 4.2, we are good. It does not support powerpc so cannot be chosen on Rosetta (maximum is clang of 3.2.6), and since for Intel it works, everything is correct.
Xcode 4.2 builds powerpc code without trouble, but it doesn't exist in powerpc architecture AFAIK (hiding in somebody's desk drawer somewhere in Cupertino notwithstanding).
comment:8 Changed 8 weeks ago by ballapete (Peter "Pete" Dyballa)
Cc: | ballapete added |
---|
I did this: