darktable icon indicating copy to clipboard operation
darktable copied to clipboard

Compiler segfaults on src/common/iop_profile.c on github runner macos-13

Open zisoft opened this issue 2 years ago • 0 comments

I am testing the new github runner macos-13 since several weeks now and cannot get dt to compile.

The build process reproducible segfaults the compiler (Xcode current version 15.1) on src/common/iop_profile.c:

/Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DAVIF_DLL -DGDK_DISABLE_DEPRECATED -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_24 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -DHAVE_BUILTIN_CPU_SUPPORTS -DHAVE_CONFIG_H -DHAVE_GAME -DHAVE_GPHOTO2 -DHAVE_ICU -DHAVE_IMAGEMAGICK -DHAVE_IMATH -DHAVE_ISO_CODES -DHAVE_KWALLET -DHAVE_LIBAVIF=1 -DHAVE_LIBEXIV2_WITH_ISOBMFF=1 -DHAVE_LIBHEIF=1 -DHAVE_LIBJXL -DHAVE_LIBRAW=1 -DHAVE_LIBSECRET -DHAVE_LIBSHARPYUV=1 -DHAVE_MAP -DHAVE_OPENCL -DHAVE_OPENEXR -DHAVE_OPENJPEG -DHAVE_OSMGPSMAP_110_OR_NEWER -DHAVE_OSMGPSMAP_NEWER_THAN_110 -DHAVE_P11KIT -DHAVE_PRINT -DHAVE_SQLITE_324_OR_NEWER -DHAVE_VISIBILITY -DHAVE_WEBP -DLIBHEIF_EXPORTS -DLIBRAW_NODLL -DMAC_INTEGRATION -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -DOS_OBJECT_USE_OBJC=0 -DSQLITE_CORE -DSQLITE_ENABLE_ICU -DUSE_LUA -D_XOPEN_SOURCE=700 -Dlib_darktable_EXPORTS -I/Users/runner/work/darktable/darktable/src/build/bin -I/Users/runner/work/darktable/darktable/src/src -I/Users/runner/work/darktable/darktable/src/src/external/LuaAutoC -I/Users/runner/work/darktable/darktable/src/src/external/whereami/src -I/Users/runner/work/darktable/darktable/src/src/external/LibRaw -isystem /Users/runner/work/darktable/darktable/src/src/external -isystem /Users/runner/work/darktable/darktable/src/src/external/OpenCL -isystem /usr/local/include -isystem /usr/local/include/glib-2.0 -isystem /usr/local/include/../lib/glib-2.0/include -isystem /usr/local/Cellar/gtk+3/3.24.39/include/gtk-3.0 -isystem /usr/local/Cellar/glib/2.78.3/include/gio-unix-2.0 -isystem /usr/local/Cellar/cairo/1.18.0/include -isystem /usr/local/Cellar/libepoxy/1.5.10/include -isystem /usr/local/Cellar/pango/1.50.14/include/pango-1.0 -isystem /usr/local/Cellar/harfbuzz/8.3.0/include/harfbuzz -isystem /usr/local/Cellar/fribidi/1.0.13/include/fribidi -isystem /usr/local/Cellar/graphite2/1.3.14/include -isystem /usr/local/Cellar/at-spi2-core/2.50.0/include/atk-1.0 -isystem /usr/local/Cellar/cairo/1.18.0/include/cairo -isystem /usr/local/Cellar/fontconfig/2.14.2/include -isystem /usr/local/opt/freetype/include/freetype2 -isystem /usr/local/Cellar/libxext/1.3.5/include -isystem /usr/local/Cellar/libxrender/0.9.11/include -isystem /usr/local/Cellar/libx11/1.8.7/include -isystem /usr/local/Cellar/libxcb/1.16/include -isystem /usr/local/Cellar/libxau/1.0.11/include -isystem /usr/local/Cellar/libxdmcp/1.1.4/include -isystem /usr/local/Cellar/pixman/0.42.2/include/pixman-1 -isystem /usr/local/Cellar/gdk-pixbuf/2.42.10_1/include/gdk-pixbuf-2.0 -isystem /usr/local/opt/libpng/include/libpng16 -isystem /usr/local/Cellar/libtiff/4.6.0/include -isystem /usr/local/opt/zstd/include -isystem /usr/local/Cellar/xz/5.4.5/include -isystem /usr/local/Cellar/jpeg-turbo/3.0.0/include -isystem /usr/local/Cellar/glib/2.78.3/include -isystem /usr/local/Cellar/glib/2.78.3/include/glib-2.0 -isystem /usr/local/Cellar/glib/2.78.3/lib/glib-2.0/include -isystem /usr/local/opt/gettext/include -isystem /usr/local/Cellar/pcre2/10.42/include -isystem /usr/local/Cellar/xorgproto/2023.2/include -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/ffi -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/include/libxml2 -isystem /usr/local/Cellar/lensfun/0.3.4/include/lensfun -isystem /usr/local/include/pango-1.0 -isystem /usr/local/include/librsvg-2.0 -isystem /usr/local/include/json-glib-1.0 -isystem /usr/local/Cellar/openjpeg/2.5.0_1/include/openjpeg-2.5 -isystem /usr/local/Cellar/libsecret/0.21.2/include/libsecret-1 -isystem /usr/local/Cellar/libgcrypt/1.10.3/include -isystem /usr/local/opt/libgpg-error/include -isystem /usr/local/include/gtkmacintegration -isystem /usr/local/Cellar/p11-kit/0.25.3/include/p11-kit-1 -isystem /usr/local/Cellar/imagemagick@6/6.9.13-1/include/ImageMagick-6 -isystem /usr/local/include/lua -isystem /usr/local/Cellar/osm-gps-map/1.2.0_2/include/osmgpsmap-1.0 -isystem /usr/local/Cellar/libsoup@2/2.74.2_1/include/libsoup-2.4 -isystem /usr/local/Cellar/libpsl/0.21.2_2/include -isystem /usr/local/Cellar/icu4c/73.2/include -isystem /usr/local/include/Imath -isystem /usr/local/include/OpenEXR -isystem /usr/local/opt/icu4c/include -fopenmp-version=45 -D_DARWIN_C_SOURCE -Wall -Wformat -Wformat-security -Wshadow -Wtype-limits -Wvla -Wthread-safety -Wno-unknown-pragmas -Wno-error=varargs -Wno-error=address-of-packed-member -Xclang -fopenmp -mtune=generic -msse2 -g -O3 -DNDEBUG -O3 -ffast-math -fno-finite-math-only -std=c99 -isysroot /Applications/Xcode_15.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -mmacosx-version-min=13.5 -fPIC   -Werror -Wfatal-errors -Wno-error=pass-failed -MD -MT bin/CMakeFiles/lib_darktable.dir/common/iop_profile.c.o -MF bin/CMakeFiles/lib_darktable.dir/common/iop_profile.c.o.d -o bin/CMakeFiles/lib_darktable.dir/common/iop_profile.c.o -c /Users/runner/work/darktable/darktable/src/src/common/iop_profile.c
clang: fatal error: unable to execute command: Segmentation fault: 11
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode_15.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

full log

I cannot reproduce that on my local machine, it is only on the github runner. Maybe the compiler experts can check if there is something critical with iop_profile.c

The build process runs without errors with Xcode 14

zisoft avatar Dec 23 '23 14:12 zisoft