Closed zisoft closed 8 months ago
Hm, that's not good.
Could you try limiting the amount of build jobs, for a start, down to 1
?
Put -j1
in https://github.com/darktable-org/darktable/blob/7fcbdba13e1133a080abd6355ff3d081b590e189/.ci/ci-script.sh#L34
Can you reproduce with a brew-provided clang-15 / clang-16 / clang-17?
I am now able to reproduce the crash on my local machine.
The file compiles fine without -DHAVE_OPENCL
.
Digging further...
I'd next try applying creduce to that file. Though, if you've never did that before, that is a big ask...
If I comment out the following two function calls:
and
the compiler is happy.
it is indeed the __DT_CLONE_TARGETS__
in front of that function definitions
Is __DT_CLONE_TARGETS__
really not empty there, is it not ARM64/AArch64 (not to be confused with AMD64)?
#if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH)
# if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
#define __DT_CLONE_TARGETS__ __attribute__((target_clones("default", "sse2", "sse3", "sse4.1", "sse4.2", "popcnt", "avx", "avx2", "avx512f", "fma4")))
# elif defined(__PPC64__)
/* __PPC64__ is the only macro tested for in is_supported_platform.h, other macros would fail there anyway. */
#define __DT_CLONE_TARGETS__ __attribute__((target_clones("default","cpu=power9")))
# else
#define __DT_CLONE_TARGETS__
# endif
#else
#define __DT_CLONE_TARGETS__
#endif
__x86_64__
is true
Well, it's mac, so unlike normal distributions, it's not like there's a zoo of CPU versions to support, i think?
So is there even a need for __DT_CLONE_TARGETS__
there, or even -DBINARY_PACKAGE_BUILD=ON
?
Looks good on my machine with
#if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH) && !defined(__APPLE__)
Let's see what github runner macos-13 gives.
EDIT: success!
Nice!
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
: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