[MacPorts] #62406: labgtk2 Big Sur

MacPorts noreply at macports.org
Fri Apr 30 20:35:33 UTC 2021


#62406: labgtk2 Big Sur
-----------------------+----------------------
  Reporter:  bestlem   |      Owner:  pmetzger
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.4
Resolution:            |   Keywords:
      Port:  lablgtk2  |
-----------------------+----------------------

Comment (by bestlem):

 Looking again I note that thius does build under BigSur - but under
 Homebrew
 As per recent issue upsteam https://github.com/garrigue/lablgtk/issues/120
 The maintainer says it does work and he uses macports (but as a guess not
 for the ocaml bits)

 Thus it is still maintained

 I have a newer log after selfupdate (attached) - still I think the same
 error


 {{{
 :info:build ocamlc.opt -c -ccopt '-DG_DISABLE_ASSERT
 -DG_DISABLE_CAST_CHECKS -fno-unwind-tables -D_REENTRANT
 -I/opt/local/include/libglade-2.0 -I/opt/local/include/libxml2
 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gail-1.0
 -I/opt/local/include/libart-2.0 -I/opt/local/include/gtk-2.0
 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0
 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
 -I/opt/local/include/fribidi -I/opt/local/include/cairo
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pixman-1 -I/opt/local/include/ossp
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -imacros ml_domain.h -O -DHAS_GTKQUARTZ'
 -verbose ml_gdkpixbuf.c
 :info:build + /usr/bin/clang -arch arm64 -O2 -fno-strict-aliasing -fwrapv
 -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch arm64 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk   -c
 -DG_DISABLE_ASSERT -DG_DISABLE_CAST_CHECKS -fno-unwind-tables -D_REENTRANT
 -I/opt/local/include/libglade-2.0 -I/opt/local/include/libxml2
 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gail-1.0
 -I/opt/local/include/libart-2.0 -I/opt/local/include/gtk-2.0
 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0
 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0
 -I/opt/local/include/fribidi -I/opt/local/include/cairo
 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo
 -I/opt/local/include/pixman-1 -I/opt/local/include/ossp
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16
 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/glib-2.0
 -I/opt/local/lib/glib-2.0/include -imacros ml_domain.h -O -DHAS_GTKQUARTZ
 -I'/opt/local/lib/ocaml' 'ml_gdkpixbuf.c'
 :info:build clang: warning: no such sysroot directory:
 '/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk' [-Wmissing-
 sysroot]
 :info:build ml_gdkpixbuf.c:25:10: fatal error: 'string.h' file not found
 :info:build #include <string.h>
 :info:build          ^~~~~~~~~~
 :info:build 1 error generated.
 }}}

 It looks like macports ocamlc.opt is injecting -isysroot into the C
 compilation

 The upstream build instructions use ocaml's dune to build. I tried
 macports' ocaml-dune but that failed with the same error. SO I think the
 issue is with our ocaml stack.

 As I don't know ocaml I can't look further

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


More information about the macports-tickets mailing list