Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#69541 closed defect (duplicate)

libpixman @0.42.2: error: expected identifier before ‘__attribute__’

Reported by: ilovecrts Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: libpixman

Description

I am trying to install matplotlib with "sudo port install py312-matplotlib" and libpixman is a dependency. Installation / building of libpixman fails.

My terminal output when I run "sudo port install libpixman" is:

XXXXX:~ YYYYY$ sudo port install libpixman
--->  Computing dependencies for libpixman
--->  Fetching archive for libpixman
--->  Attempting to fetch libpixman-0.42.2_0.darwin_9.ppc.tbz2 from http://packages.macports.org/libpixman
--->  Attempting to fetch libpixman-0.42.2_0.darwin_9.ppc.tbz2 from http://mirror.fcix.net/macports/packages/libpixman
--->  Attempting to fetch libpixman-0.42.2_0.darwin_9.ppc.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/libpixman
--->  Building libpixman
Error: Failed to build libpixman: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port libpixman failed
XXXXX:~ YYYYY$

I open the log file as instructed and I see an error logged at the end of the file.

:info:build [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
:info:build FAILED: pixman/libpixman-vmx.a.p/pixman-vmx.c.o 
:info:build /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
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_cover_OVER’:
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2973: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_none_OVER’:
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2976: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_pad_OVER’:
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2979: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c: In function ‘fast_composite_scaled_nearest_vmx_8888_8888_normal_OVER’:
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’
:info:build ../pixman-0.42.2/pixman/pixman-vmx.c:2982: error: expected identifier before ‘__attribute__’
:info:build ninja: build stopped: subcommand failed.
:info:build Command failed:  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 -j1 -v 
:info:build Exit code: 1
:error:build Failed to build libpixman: command execution failed
:debug:build Error code: CHILDSTATUS 595 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 10)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/main.log for details.

A copy of my entire log file should be attached here.

Can anyone help me here?

I am a bit of a novice here, so please forgive me if I am unable to provide more details or if my understanding seems low. :)

I am open to running tests and experiments if needed.

Thank you very much!

Attachments (1)

main.log (50.4 KB) - added by ilovecrts 8 months ago.
Log file for failed installation of libpixman

Download all attachments as: .zip

Change History (4)

Changed 8 months ago by ilovecrts

Attachment: main.log added

Log file for failed installation of libpixman

comment:1 Changed 8 months ago by kencu (Ken)

I fixed that here

#69385

with a trivial patch you can try if you like

comment:2 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: duplicate
Status: newclosed
Summary: Unable to build libpixman on eMac with Leopard 10.5.8libpixman @0.42.2: error: expected identifier before ‘__attribute__’

Which was a duplicate of #68473.

Ken, if you have a fix, please submit a pull request.

comment:3 Changed 8 months ago by ilovecrts

It worked! :)

Thanks, Ken!

Note: See TracTickets for help on using tickets.