[MacPorts] #66888: graphene @1.10.8_0+universal: arm64/x86_64 fails due to conflicting pkgconfig files

MacPorts noreply at macports.org
Sat Feb 11 17:18:54 UTC 2023


#66888: graphene @1.10.8_0+universal: arm64/x86_64 fails due to conflicting
pkgconfig files
-----------------------+----------------------
  Reporter:  kencu     |      Owner:  dbevans
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  graphene  |
-----------------------+----------------------

Comment (by kencu):

 well, unfortunately not going to be so simple.

 I built graphene +universal without trouble by telling muniversal to not
 diff the pkgconfig files:
 {{{
 % port -v installed | grep graphene
   graphene @1.10.8_1+universal (active) requested_variants='+universal'
 platform='darwin 22' archs='arm64 x86_64' date='2023-02-10T21:00:47-0800'
 }}}

 and then replaced them with these:
 {{{
 % cat /opt/local/lib/pkgconfig/graphene-1.0.pc
 prefix=/opt/local
 includedir=${prefix}/include
 libdir=${prefix}/lib

 graphene_has_sse2=1
 graphene_has_gcc=0
 graphene_has_neon=1
 graphene_has_scalar=1

 Name: Graphene
 Description: Math classes for graphic libraries
 URL: https://ebassi.github.io/graphene
 Version: 1.10.8
 Requires.private: gobject-2.0 >=  2.30.0
 Libs: -L${libdir} -lgraphene-1.0
 Libs.private: -lm
 Cflags: -I${includedir}/graphene-1.0 -I${libdir}/graphene-1.0/include
 -mfpmath=sse -msse -msse2

 % cat /opt/local/lib/pkgconfig/graphene-gobject-1.0.pc
 prefix=/opt/local
 includedir=${prefix}/include

 graphene_has_sse2=1
 graphene_has_gcc=0
 graphene_has_neon=1
 graphene_has_scalar=1

 Name: Graphene-GObject
 Description: GObject types for Graphene
 Version: 1.10.8
 Requires: graphene-1.0, gobject-2.0
 Cflags: -I${includedir}/graphene-1.0
 }}}

 but during the build of the arm64 slice, the compiler errors out on one of
 the sse flags after all:

 {{{
 [20/1069] /usr/bin/clang -Igdk/x11/libgdk-x11.a.p -Igdk/x11
 -I../gtk-4.8.2-arm64/gdk/x11 -I. -I../gtk-4.8.2-arm64 -Igdk
 -I../gtk-4.8.2-arm64/gdk -I/opt/local/include/gdk-pixbuf-2.0
 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/cairo
 -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
 -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi
 -I/opt/local/include/harfbuzz -I/opt/local/include/graphene-1.0
 -I/opt/local/lib/graphene-1.0/include -I/opt/local/include/gio-unix-2.0
 -I/opt/local/include -fcolor-diagnostics -Wall -Winvalid-pch -std=gnu99
 -O2 -g -DG_LOG_USE_STRUCTURED=1 -DGLIB_DISABLE_DEPRECATION_WARNINGS
 '-DGTK_VERSION="4.8.2"' -D_GNU_SOURCE -DG_ENABLE_DEBUG -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk
 -mfpmath=sse -msse -msse2 -DGTK_COMPILATION '-DG_LOG_DOMAIN="Gdk"' -fno-
 strict-aliasing -Wno-c++11-extensions -Wno-missing-include-dirs -Wno-
 typedef-redefinition -Wformat=2 -Wformat-nonliteral -Wformat-security
 -Wignored-qualifiers -Wimplicit-function-declaration -Wmisleading-
 indentation -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-
 noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wshadow
 -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wundef -Wuninitialized
 -Wunused -Werror=address -Werror=array-bounds -Werror=empty-body
 -Werror=implicit -Werror=implicit-fallthrough -Werror=init-self -Werror
 =int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=missing-
 prototypes -Werror=nonnull -Werror=pointer-to-int-cast -Werror=redundant-
 decls -Werror=return-type -Werror=sequence-point -Werror=trigraphs
 -Werror=vla -Werror=write-strings -Wnull-dereference -fvisibility=hidden
 -MD -MQ gdk/x11/libgdk-x11.a.p/gdkdevice-xi2.c.o -MF
 gdk/x11/libgdk-x11.a.p/gdkdevice-xi2.c.o.d -o gdk/x11/libgdk-x11.a.p
 /gdkdevice-xi2.c.o -c ../gtk-4.8.2-arm64/gdk/x11/gdkdevice-xi2.c
 FAILED: gdk/x11/libgdk-x11.a.p/gdkdevice-xi2.c.o
 clang: warning: argument unused during compilation: '-msse' [-Wunused-
 command-line-argument]
 clang: warning: argument unused during compilation: '-msse2' [-Wunused-
 command-line-argument]
 error: unknown FP unit 'sse'
 }}}

 so that approach is not going to work, like that at least...

-- 
Ticket URL: <https://trac.macports.org/ticket/66888#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list