[ruby-core:113203] [Ruby master Bug#19594] Cannot statically compile 3.0.5 on MacOS 12.6 x86_64

Issue #19594 has been reported by brodock (Gabriel Mazetto). ---------------------------------------- Bug #19594: Cannot statically compile 3.0.5 on MacOS 12.6 x86_64 https://bugs.ruby-lang.org/issues/19594 * Author: brodock (Gabriel Mazetto) * Status: Open * Priority: Normal * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- I'm triggering the compilation using RVM. A regular, non static compilation works, but I want to generate a cacheable binary to use inside CI. Here is the config log: ``` This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.71. Invocation command line was $ ./configure --prefix=/Users/gitlab/builds/gitlab-org/gitlab-development-kit/.rvm/rubies/ruby-3.0.5 --disable-install-doc --disable-shared --with-arch=x86_64 ## --------- ## ## Platform. ## ## --------- ## hostname = Gitlabs-iPro uname -m = x86_64 uname -r = 21.6.0 uname -s = Darwin uname -v = Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 Kernel configured for up to 4 processors. 4 processors are physically available. 4 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 2 3 Primary memory available: 9.40 gigabytes Default processor set: 228 tasks, 784 threads, 4 processors Load average: 4.47, Mach factor: 0.69 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/local/opt/coreutils/bin/ PATH: /usr/local/opt/pkg-config/bin/ PATH: /usr/local/opt/libtool/bin/ PATH: /usr/local/opt/automake/bin/ PATH: /usr/local/opt/autoconf/bin/ PATH: /Users/gitlab/.asdf/shims/ PATH: /Users/gitlab/.asdf/bin/ PATH: /usr/local/opt/python@3.9/libexec/bin/ PATH: /usr/local/opt/python@3.9/bin/ PATH: /usr/local/lib/ruby/gems/3.0.0/bin/ PATH: /usr/local/opt/ruby/bin/ PATH: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/ PATH: /usr/local/bin/ PATH: /usr/bin/ PATH: /bin/ PATH: /usr/sbin/ PATH: /sbin/ PATH: /Library/Apple/usr/bin/ PATH: /Users/gitlab/.rvm/bin/ PATH: /Users/gitlab/builds/gitlab-org/gitlab-development-kit/.rvm/bin/ ## ----------- ## ## Core tests. ## ## ----------- ## configure:3440: looking for aux files: install-sh config.guess config.sub configure:3453: trying ./tool/ configure:3464: ./tool/install-sh found configure:3482: ./tool/config.guess found configure:3482: ./tool/config.sub found configure:3743: checking for ruby configure:3766: found /usr/bin/ruby configure:3779: result: /usr/bin/ruby configure:3874: checking build system type configure:3889: result: x86_64-apple-darwin21.6.0 configure:3909: checking host system type configure:3923: result: x86_64-apple-darwin21.6.0 configure:3943: checking target system type configure:3957: result: x86_64-apple-darwin21.6.0 configure:4738: checking for ld configure:4759: found /usr/bin/ld configure:4770: result: ld configure:4840: checking for gcc-ar configure:4875: result: no configure:4942: checking for g++ configure:4963: found /usr/bin/g++ configure:4974: result: g++ configure:5044: checking for gcc-nm configure:5079: result: no configure:5146: checking for gcc-ranlib configure:5181: result: no configure:6302: checking for C++ compiler version configure:6311: g++ --version >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:6322: $? = 0 configure:6311: g++ -v >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:6322: $? = 0 configure:6311: g++ -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:6322: $? = 1 configure:6311: g++ -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files configure:6322: $? = 1 configure:6342: checking whether the C++ compiler works configure:6364: g++ -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz conftest.cpp >&5 configure:6368: $? = 0 configure:6418: result: yes configure:6421: checking for C++ compiler default output file name configure:6423: result: a.out configure:6429: checking for suffix of executables configure:6436: g++ -o conftest -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz conftest.cpp >&5 configure:6440: $? = 0 configure:6463: result: configure:6485: checking whether we are cross compiling configure:6493: g++ -o conftest -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz conftest.cpp >&5 configure:6497: $? = 0 configure:6504: ./conftest configure:6508: $? = 0 configure:6523: result: no configure:6528: checking for suffix of object files configure:6551: g++ -c conftest.cpp >&5 configure:6555: $? = 0 configure:6577: result: o configure:6581: checking whether the compiler supports GNU C++ configure:6601: g++ -c conftest.cpp >&5 configure:6601: $? = 0 configure:6611: result: yes configure:6622: checking whether g++ accepts -g configure:6643: g++ -c -g conftest.cpp >&5 configure:6643: $? = 0 configure:6687: result: yes configure:6707: checking for g++ option to enable C++11 features configure:6722: g++ -c -g -O2 conftest.cpp >&5 conftest.cpp:55:3: error: "Compiler does not advertise C++11 conformance" # error "Compiler does not advertise C++11 conformance" ^ conftest.cpp:60:3: error: unknown type name 'constexpr' constexpr int get_val() { return 20; } ^ conftest.cpp:72:17: error: delegating constructors are permitted only in C++11 delegate(): delegate(2354) {} ^~~~~~~~ conftest.cpp:83:26: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions] virtual int getval() override final { return this->n * 2; } ^ conftest.cpp:83:35: warning: 'final' keyword is a C++11 extension [-Wc++11-extensions] virtual int getval() override final { return this->n * 2; } ^ conftest.cpp:90:16: warning: defaulted function definitions are a C++11 extension [-Wc++11-extensions] nocopy() = default; ^ conftest.cpp:91:29: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] nocopy(const nocopy&) = delete; ^ conftest.cpp:92:41: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions] nocopy & operator=(const nocopy&) = delete; ^ conftest.cpp:104:25: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] template <typename V> auto sum(V first) -> V ^ conftest.cpp:104:25: error: 'auto' not allowed in function return type template <typename V> auto sum(V first) -> V ^~~~ conftest.cpp:104:42: error: expected ';' at end of declaration template <typename V> auto sum(V first) -> V ^ ; conftest.cpp:104:43: error: cannot use arrow operator on a type template <typename V> auto sum(V first) -> V ^ conftest.cpp:108:33: warning: variadic templates are a C++11 extension [-Wc++11-extensions] template <typename V, typename... Args> auto sum(V first, Args... rest) -> V ^ conftest.cpp:108:43: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] template <typename V, typename... Args> auto sum(V first, Args... rest) -> V ^ conftest.cpp:108:43: error: 'auto' not allowed in function return type template <typename V, typename... Args> auto sum(V first, Args... rest) -> V ^~~~ conftest.cpp:108:74: error: expected ';' at end of declaration template <typename V, typename... Args> auto sum(V first, Args... rest) -> V ^ ; conftest.cpp:108:75: error: cannot use arrow operator on a type template <typename V, typename... Args> auto sum(V first, Args... rest) -> V ^ conftest.cpp:132:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a1 = 6538; ^ conftest.cpp:133:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a2 = 48573953.4; ^ conftest.cpp:134:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a3 = "String literal"; ^ conftest.cpp:137:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto i = a3; *i; ++i) { total += *i; } ^ conftest.cpp:153:8: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] for (auto &x : array) { x += 23; } ^ conftest.cpp:153:16: warning: range-based for loop is a C++11 extension [-Wc++11-extensions] for (auto &x : array) { x += 23; } ^ conftest.cpp:158:17: error: expected expression assert (eval ([](int x) { return x*2; }, 21) == 42); ^ conftest.cpp:160:17: error: expected expression assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); ^ conftest.cpp:162:17: error: expected expression assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); ^ conftest.cpp:168:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto a = sum(1); ^ conftest.cpp:168:12: error: no matching function for call to 'sum' auto a = sum(1); ^~~ conftest.cpp:169:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto b = sum(1, 2); ^ conftest.cpp:169:12: error: no matching function for call to 'sum' auto b = sum(1, 2); ^~~ conftest.cpp:170:3: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions] auto c = sum(1.0, 2.0, 3.0); ^ conftest.cpp:170:12: error: no matching function for call to 'sum' auto c = sum(1.0, 2.0, 3.0); ^~~ conftest.cpp:175:25: warning: empty parentheses interpreted as a function declaration [-Wvexing-parse] cxx11test::delegate d2(); ^~ conftest.cpp:175:25: note: remove parentheses to declare a variable cxx11test::delegate d2(); ^~ conftest.cpp:188:16: error: found '<::' after a template name which forms the digraph '<:' (aka '[') and a ':', did you mean '< ::'? test_template<::test_template<int>> v(test_template<int>(12)); ^~~ < :: conftest.cpp:188:36: error: a space is required between consecutive right angle brackets (use '> >') test_template<::test_template<int>> v(test_template<int>(12)); ^~ > > conftest.cpp:192:22: error: use of undeclared identifier 'u8' char const *utf8 = u8"UTF-8 string \u2500"; ^ conftest.cpp:192:24: error: expected ';' at end of declaration char const *utf8 = u8"UTF-8 string \u2500"; ^ ; fatal error: too many errors emitted, stopping now [-ferror-limit=] 18 warnings and 20 errors generated. configure:6722: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | // Does the compiler advertise C++98 conformance? | #if !defined __cplusplus || __cplusplus < 199711L | # error "Compiler does not advertise C++98 conformance" | #endif | | // These inclusions are to reject old compilers that | // lack the unsuffixed header files. | #include <cstdlib> | #include <exception> | | // <cassert> and <cstring> are *not* freestanding headers in C++98. | extern void assert (int); | namespace std { | extern int strcmp (const char *, const char *); | } | | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | using std::exception; | using std::strcmp; | | namespace { | | void test_exception_syntax() | { | try { | throw "test"; | } catch (const char *s) { | // Extra parentheses suppress a warning when building autoconf itself, | // due to lint rules shared with more typical C programs. | assert (!(strcmp) (s, "test")); | } | } | | template <typename T> struct test_template | { | T const val; | explicit test_template(T t) : val(t) {} | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | }; | | } // anonymous namespace | | | // Does the compiler advertise C++ 2011 conformance? | #if !defined __cplusplus || __cplusplus < 201103L | # error "Compiler does not advertise C++11 conformance" | #endif | | namespace cxx11test | { | constexpr int get_val() { return 20; } | | struct testinit | { | int i; | double d; | }; | | class delegate | { | public: | delegate(int n) : n(n) {} | delegate(): delegate(2354) {} | | virtual int getval() { return this->n; }; | protected: | int n; | }; | | class overridden : public delegate | { | public: | overridden(int n): delegate(n) {} | virtual int getval() override final { return this->n * 2; } | }; | | class nocopy | { | public: | nocopy(int i): i(i) {} | nocopy() = default; | nocopy(const nocopy&) = delete; | nocopy & operator=(const nocopy&) = delete; | private: | int i; | }; | | // for testing lambda expressions | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | { | return f(v); | } | | // for testing variadic templates and trailing return types | template <typename V> auto sum(V first) -> V | { | return first; | } | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | { | return first + sum(rest...); | } | } | | | int | main (int argc, char **argv) | { | int ok = 0; | | assert (argc); | assert (! argv[0]); | { | test_exception_syntax (); | test_template<double> tt (2.0); | assert (tt.add (4) == 6.0); | assert (true && !false); | } | | | { | // Test auto and decltype | auto a1 = 6538; | auto a2 = 48573953.4; | auto a3 = "String literal"; | | int total = 0; | for (auto i = a3; *i; ++i) { total += *i; } | | decltype(a2) a4 = 34895.034; | } | { | // Test constexpr | short sa[cxx11test::get_val()] = { 0 }; | } | { | // Test initializer lists | cxx11test::testinit il = { 4323, 435234.23544 }; | } | { | // Test range-based for | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | for (auto &x : array) { x += 23; } | } | { | // Test lambda expressions | using cxx11test::eval; | assert (eval ([](int x) { return x*2; }, 21) == 42); | double d = 2.0; | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | assert (d == 5.0); | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | assert (d == 5.0); | } | { | // Test use of variadic templates | using cxx11test::sum; | auto a = sum(1); | auto b = sum(1, 2); | auto c = sum(1.0, 2.0, 3.0); | } | { | // Test constructor delegation | cxx11test::delegate d1; | cxx11test::delegate d2(); | cxx11test::delegate d3(45); | } | { | // Test override and final | cxx11test::overridden o1(55464); | } | { | // Test nullptr | char *c = nullptr; | } | { | // Test template brackets | test_template<::test_template<int>> v(test_template<int>(12)); | } | { | // Unicode literals | char const *utf8 = u8"UTF-8 string \u2500"; | char16_t const *utf16 = u"UTF-8 string \u2500"; | char32_t const *utf32 = U"UTF-32 string \u2500"; | } | | return ok; | } | configure:6740: result: none needed configure:6866: checking for gcc configure:6898: result: gcc configure:7251: checking for C compiler version configure:7260: gcc --version >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:7271: $? = 0 configure:7260: gcc -v >&5 Apple clang version 14.0.0 (clang-1400.0.29.202) Target: x86_64-apple-darwin21.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin configure:7271: $? = 0 configure:7260: gcc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:7271: $? = 1 configure:7260: gcc -qversion >&5 clang: error: unknown argument '-qversion'; did you mean '--version'? clang: error: no input files configure:7271: $? = 1 configure:7260: gcc -version >&5 clang: error: unknown argument '-version'; did you mean '--version'? clang: error: no input files configure:7271: $? = 1 configure:7275: checking whether the compiler supports GNU C configure:7295: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:7295: $? = 0 configure:7305: result: yes configure:7316: checking whether gcc accepts -g configure:7337: gcc -c -g conftest.c >&5 configure:7337: $? = 0 configure:7381: result: yes configure:7401: checking for gcc option to enable C11 features configure:7416: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:7416: $? = 0 configure:7434: result: none needed configure:7549: checking how to run the C preprocessor configure:7575: gcc -E conftest.c configure:7575: $? = 0 configure:7590: gcc -E conftest.c conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:7590: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:7617: result: gcc -E configure:7631: gcc -E conftest.c configure:7631: $? = 0 configure:7646: gcc -E conftest.c conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^~~~~~~~~~~~~~~~~~ 1 error generated. configure:7646: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:7724: checking for ranlib configure:7745: found /usr/bin/ranlib configure:7756: result: ranlib configure:7832: checking for gar configure:7867: result: no configure:7832: checking for ar configure:7853: found /usr/bin/ar configure:7864: result: ar configure:7942: checking for gas configure:7977: result: no configure:7942: checking for as configure:7963: found /usr/bin/as configure:7974: result: as configure:8162: checking for gnm configure:8197: result: no configure:8162: checking for nm configure:8183: found /usr/bin/nm configure:8194: result: nm configure:8272: checking for gobjcopy configure:8307: result: no configure:8272: checking for objcopy configure:8307: result: no configure:8382: checking for gobjdump configure:8417: result: no configure:8382: checking for objdump configure:8403: found /usr/bin/objdump configure:8414: result: objdump configure:8492: checking for gstrip configure:8527: result: no configure:8492: checking for strip configure:8513: found /usr/bin/strip configure:8524: result: strip configure:8649: checking for stdio.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for stdlib.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for string.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for inttypes.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for stdint.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for strings.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for sys/stat.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for sys/types.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for unistd.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for wchar.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8649: $? = 0 configure:8649: result: yes configure:8649: checking for minix/config.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 conftest.c:47:10: fatal error: 'minix/config.h' file not found #include <minix/config.h> ^~~~~~~~~~~~~~~~ 1 error generated. configure:8649: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | /* end confdefs.h. */ | #include <stddef.h> | #ifdef HAVE_STDIO_H | # include <stdio.h> | #endif | #ifdef HAVE_STDLIB_H | # include <stdlib.h> | #endif | #ifdef HAVE_STRING_H | # include <string.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | #include <minix/config.h> configure:8649: result: no configure:8649: checking for vfork.h configure:8649: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 conftest.c:47:10: fatal error: 'vfork.h' file not found #include <vfork.h> ^~~~~~~~~ 1 error generated. configure:8649: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | /* end confdefs.h. */ | #include <stddef.h> | #ifdef HAVE_STDIO_H | # include <stdio.h> | #endif | #ifdef HAVE_STDLIB_H | # include <stdlib.h> | #endif | #ifdef HAVE_STRING_H | # include <string.h> | #endif | #ifdef HAVE_INTTYPES_H | # include <inttypes.h> | #endif | #ifdef HAVE_STDINT_H | # include <stdint.h> | #endif | #ifdef HAVE_STRINGS_H | # include <strings.h> | #endif | #ifdef HAVE_SYS_TYPES_H | # include <sys/types.h> | #endif | #ifdef HAVE_SYS_STAT_H | # include <sys/stat.h> | #endif | #ifdef HAVE_UNISTD_H | # include <unistd.h> | #endif | #include <vfork.h> configure:8649: result: no configure:8680: checking whether it is safe to define __EXTENSIONS__ configure:8699: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8699: $? = 0 configure:8707: result: yes configure:8710: checking whether _XOPEN_SOURCE should be defined configure:8732: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 conftest.c >&5 configure:8732: $? = 0 configure:8759: result: no configure:8856: gcc -E conftest.c configure:8856: $? = 0 configure:8871: checking if minimum required OS X version is supported configure:8882: gcc -E conftest.c configure:8882: $? = 0 configure:8891: result: yes configure:8983: checking whether the linker is GNU ld configure:9000: result: no configure:9004: checking whether gcc -E accepts -o configure:9017: gcc -E -o conftest-1.i conftest.c configure:9017: $? = 0 configure:9025: result: yes configure:9058: checking for gcc configure:9081: found /usr/bin/gcc configure:9093: result: /usr/bin/gcc configure:9179: checking target architectures configure:9206: result: x86_64 configure:9353: checking for ar flags configure:9368: result: rcu configure:9650: checking whether ln -s works configure:9654: result: yes configure:9661: checking whether make sets $(MAKE) configure:9684: result: yes configure:9708: checking for a BSD-compatible install configure:9781: result: /usr/local/opt/coreutils/bin/ginstall -c configure:9793: checking for a race-free mkdir -p configure:9837: result: /usr/local/opt/coreutils/bin/gmkdir -p configure:9861: checking for dtrace configure:9882: found /usr/sbin/dtrace configure:9893: result: dtrace configure:9953: checking for dot configure:9988: result: no configure:10000: checking for doxygen configure:10035: result: no configure:10047: checking for pkg-config configure:10073: found /usr/local/opt/pkg-config/bin/pkg-config configure:10096: result: pkg-config configure:10107: checking whether it is Android configure:10124: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 -arch x86_64 conftest.c >&5 configure:10124: $? = 0 configure:10126: result: no configure:10171: checking for cd using physical directory configure:10191: result: cd -P configure:10211: checking whether CFLAGS is valid configure:10224: gcc -c -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 -arch x86_64 conftest.c >&5 configure:10224: $? = 0 configure:10226: result: yes configure:10238: checking whether LDFLAGS is valid configure:10258: gcc -o conftest -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 -arch x86_64 -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz -arch x86_64 conftest.c >&5 ld: warning: dylib (/usr/local/opt/zlib/lib/libz.dylib) was built for newer macOS version (12.0) than being linked (10.7) configure:10258: $? = 0 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define HAVE_STDIO_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_WCHAR_H 1 | #define STDC_HEADERS 1 | #define _ALL_SOURCE 1 | #define _DARWIN_C_SOURCE 1 | #define _GNU_SOURCE 1 | #define _HPUX_ALT_XOPEN_SOCKET_API 1 | #define _NETBSD_SOURCE 1 | #define _OPENBSD_SOURCE 1 | #define _POSIX_PTHREAD_SEMANTICS 1 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 | #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 | #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 | #define __STDC_WANT_LIB_EXT2__ 1 | #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 | #define _TANDEM_SOURCE 1 | #define __EXTENSIONS__ 1 | /* end confdefs.h. */ | | int | main (void) | { | | ; | return 0; | } configure:10265: result: no configure:10267: error: something wrong with LDFLAGS="-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz -arch x86_64" ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-apple-darwin21.6.0 ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_AR_set= ac_cv_env_AR_value= ac_cv_env_AS_set= ac_cv_env_AS_value= ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set=set ac_cv_env_CC_value=gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7' ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz' ac_cv_env_LD_set= ac_cv_env_LD_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_NM_set= ac_cv_env_NM_value= ac_cv_env_OBJCOPY_set= ac_cv_env_OBJCOPY_value= ac_cv_env_OBJDUMP_set= ac_cv_env_OBJDUMP_value= ac_cv_env_RANLIB_set= ac_cv_env_RANLIB_value= ac_cv_env_STRIP_set= ac_cv_env_STRIP_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_cflags_set= ac_cv_env_cflags_value= ac_cv_env_cppflags_set= ac_cv_env_cppflags_value= ac_cv_env_cxxflags_set= ac_cv_env_cxxflags_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_header_inttypes_h=yes ac_cv_header_minix_config_h=no ac_cv_header_stdint_h=yes ac_cv_header_stdio_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_header_vfork_h=no ac_cv_header_wchar_h=yes ac_cv_host=x86_64-apple-darwin21.6.0 ac_cv_objext=o ac_cv_path_BASERUBY=/usr/bin/ruby ac_cv_path_MJIT_CC=/usr/bin/gcc ac_cv_path_install='/usr/local/opt/coreutils/bin/ginstall -c' ac_cv_path_mkdir=/usr/local/opt/coreutils/bin/gmkdir ac_cv_prog_CPP='gcc -E' ac_cv_prog_DTRACE=dtrace ac_cv_prog_PKG_CONFIG=pkg-config ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_AS=as ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_LD=ld ac_cv_prog_ac_ct_NM=nm ac_cv_prog_ac_ct_OBJDUMP=objdump ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c11= ac_cv_prog_cc_g=yes ac_cv_prog_cc_stdc= ac_cv_prog_cxx_11=no ac_cv_prog_cxx_g=yes ac_cv_prog_cxx_stdcxx= ac_cv_prog_make_make_set=yes ac_cv_safe_to_define___extensions__=yes ac_cv_should_define__xopen_source=no ac_cv_target=x86_64-apple-darwin21.6.0 rb_cv_arflags=rcu rb_cv_cppoutfile=yes rb_cv_prog_gnu_ld=no rb_cv_target_archs=x86_64 ## ----------------- ## ## Output variables. ## ## ----------------- ## ADDITIONAL_DLDFLAGS='' ALLOCA='' AR='ar' ARCHFILE='' ARCH_FLAG=' -arch x86_64' ARFLAGS='rcu ' AS='as' ASFLAGS='' ASMEXT='' BASERUBY='/usr/bin/ruby --disable=gems' BOOTSTRAPRUBY='' BTESTRUBY='' BUILTIN_ENCOBJS='' BUILTIN_TRANSOBJS='' BUILTIN_TRANSSRCS='' CAPITARGET='' CC='gcc' CCDLFLAGS='' CC_VERSION='$(CC) --version' CC_VERSION_MESSAGE='Apple clang version 14.0.0 (clang-1400.0.29.202) CC_WRAPPER='' CFLAGS='-O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 -arch x86_64 ' CHDIR='cd -P' COMMON_HEADERS='' COMMON_LIBS='' COMMON_MACROS='' CONFIGURE='' COUTFLAG='-o ' CP='cp' CPP='gcc -E' CPPFLAGS='' CPPOUTFILE='-o conftest.i' CROSS_COMPILING='' CSRCFLAG='' CXX='g++' CXXFLAGS='' DEFS='' DESTDIR='' DLDFLAGS='-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz' DLDLIBS='' DLDSHARED='' DLEXT2='' DLEXT='' DLLWRAP='' DLNOBJ='' DOT='' DOXYGEN='' DTRACE='dtrace' DTRACE_EXT='' DTRACE_OBJ='' DTRACE_OPT='' DTRACE_REBUILD='' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='' ENABLE_DEBUG_ENV='' ENABLE_SHARED='' ENCOBJS='' ENCSTATIC='' EXECUTABLE_EXTS='' EXEEXT='' EXPORT_PREFIX='' EXTDLDFLAGS='' EXTLDFLAGS='' EXTOBJS='' EXTOUT='' EXTSTATIC='' GCC='yes' GIT='git' GNU_LD='no' GREP='' HAVE_BASERUBY='yes' HAVE_GIT='yes' INSTALLDOC='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STATIC_LIBRARY='' InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin' LD='ld' LDFLAGS='-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz -arch x86_64' LDSHARED='' LDSHAREDXX='' LIBEXT='' LIBOBJS='' LIBPATHENV='' LIBPATHFLAG='' LIBRUBY='' LIBRUBYARG='' LIBRUBYARG_SHARED='' LIBRUBYARG_STATIC='' LIBRUBY_A='' LIBRUBY_ALIASES='' LIBRUBY_A_OBJS='' LIBRUBY_DLDFLAGS='' LIBRUBY_LDSHARED='' LIBRUBY_RELATIVE='' LIBRUBY_SO='' LIBRUBY_SONAME='' LIBS='' LINK_SO='' LN_S='ln -s' LTLIBOBJS='' MAINLIBS='' MAJOR='3' MAKEDIRS='/usr/local/opt/coreutils/bin/gmkdir -p' MAKEFILES='' MANTYPE='' MINIOBJS='' MINIRUBY='' MINOR='0' MJIT_CC='/usr/bin/gcc' MJIT_CFLAGS='' MJIT_DEBUGFLAGS='' MJIT_HEADER_FLAGS='' MJIT_HEADER_INSTALL_DIR='' MJIT_LDSHARED='' MJIT_OPTFLAGS='' MJIT_SUPPORT='' MJIT_TABS='' MKDIR_P='/usr/local/opt/coreutils/bin/gmkdir -p' NM='nm' NULLCMD='' OBJCOPY='' OBJDUMP='objdump' OBJEXT='o' OUTFLAG='-o ' PACKAGE='' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_URL='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PKG_CONFIG='pkg-config' PLATFORM_DIR='' POSTLINK='' PRELOADENV='' PREP='' RANLIB='ranlib' RDOCTARGET='' RI_BASE_NAME='' RM='rm -f' RMALL='rm -fr' RMDIR='rmdir' RMDIRS='rmdir -p' RPATHFLAG='' RUBYW_BASE_NAME='rubyw' RUBYW_INSTALL_NAME='' RUBY_API_VERSION='$(MAJOR).$(MINOR)' RUBY_BASE_NAME='ruby' RUBY_EXEC_PREFIX='' RUBY_INSTALL_NAME='' RUBY_LIB_VERSION='' RUBY_LIB_VERSION_STYLE='' RUBY_PROGRAM_VERSION='$(MAJOR).$(MINOR).$(TEENY)' RUBY_SEARCH_PATH='' RUBY_SO_NAME='' RUBY_VERSION_NAME='${RUBY_BASE_NAME}-${ruby_version}' RUNRUBY='' RUNRUBY_COMMAND='' SET_MAKE='' SHELL='/bin/sh' SOEXT='' SOLIBS='' STATIC='' STRIP='strip' SYMBOL_PREFIX='' TEENY='5' TEST_RUNNABLE='' THREAD_MODEL='' TRY_LINK='' Target: x86_64-apple-darwin21.6.0 Thread model: posix UNIVERSAL_ARCHNAMES='' UNIVERSAL_INTS='' USE_RUBYGEMS='' WERRORFLAG='' WINDRES='' XCC_WRAPPER='' XCFLAGS='' XLDFLAGS='' XRUBY='' XRUBY_LIBDIR='' XRUBY_RUBYHDRDIR='' XRUBY_RUBYLIBDIR='' X_COROUTINE_H='' X_COROUTINE_SRC='' ac_ct_AR='ar' ac_ct_AS='as' ac_ct_CC='gcc' ac_ct_CXX='g++' ac_ct_LD='ld' ac_ct_NM='nm' ac_ct_OBJCOPY='' ac_ct_OBJDUMP='objdump' ac_ct_STRIP='strip' arch='' archincludedir='' archlibdir='' bindir='${exec_prefix}/bin' build='x86_64-apple-darwin21.6.0' build_alias='' build_cpu='x86_64' build_os='darwin21.6.0' build_vendor='apple' cflags='' codesign='' configure_args='' cppflags='' cxxflags='' datadir='${datarootdir}' datarootdir='${prefix}/share' debugflags='' docdir='${datarootdir}/doc/${PACKAGE}' dsymutil='' dvidir='${docdir}' exec='' exec_prefix='NONE' host='x86_64-apple-darwin21' host_alias='' host_cpu='x86_64' host_os='darwin21' host_vendor='apple' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libdirname='' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' optflags='-O3' pdfdir='${docdir}' prefix='/Users/gitlab/builds/gitlab-org/gitlab-development-kit/.rvm/rubies/ruby-3.0.5' program_transform_name='s&^&&' psdir='${docdir}' ridir='' ruby_pc='' ruby_version='' rubyarchdir='' rubyarchhdrdir='' rubyarchprefix='' rubyhdrdir='' rubylibdir='' rubylibprefix='' rubysitearchprefix='' rubyw_install_name='' runstatedir='${localstatedir}/run' sbindir='${exec_prefix}/sbin' setup='' sharedstatedir='${prefix}/com' sitearch='' sitearchdir='' sitearchhdrdir='' sitearchincludedir='' sitearchlibdir='' sitedir='' sitehdrdir='' sitelibdir='' strict_warnflags='' sysconfdir='${prefix}/etc' target='x86_64-apple-darwin21' target_alias='' target_cpu='x86_64' target_os='darwin21' target_vendor='apple' try_header='' vendorarchdir='' vendorarchhdrdir='' vendordir='' vendorhdrdir='' vendorlibdir='' warnflags='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define HAVE_STDIO_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_STRINGS_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_UNISTD_H 1 #define HAVE_WCHAR_H 1 #define STDC_HEADERS 1 #define _ALL_SOURCE 1 #define _DARWIN_C_SOURCE 1 #define _GNU_SOURCE 1 #define _HPUX_ALT_XOPEN_SOCKET_API 1 #define _NETBSD_SOURCE 1 #define _OPENBSD_SOURCE 1 #define _POSIX_PTHREAD_SEMANTICS 1 #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 #define __STDC_WANT_IEC_60559_DFP_EXT__ 1 #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1 #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1 #define __STDC_WANT_LIB_EXT2__ 1 #define __STDC_WANT_MATH_SPEC_FUNCS__ 1 #define _TANDEM_SOURCE 1 #define __EXTENSIONS__ 1 configure: exit 1 ``` -- https://bugs.ruby-lang.org/

Issue #19594 has been updated by nobu (Nobuyoshi Nakada). File config.log added Description updated Status changed from Open to Feedback
configure:10238: checking whether LDFLAGS is valid configure:10258: gcc -o conftest -O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -fPIC -mmacosx-version-min=10.7 -arch x86_64 -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -fPIC -Bstatic -lz -arch x86_64 conftest.c >&5 ld: warning: dylib (/usr/local/opt/zlib/lib/libz.dylib) was built for newer macOS version (12.0) than being linked (10.7)
You'll need other shared libraries built for the targeting version. Libraries built for newer version may not work on older versions. ---------------------------------------- Bug #19594: Cannot statically compile 3.0.5 on MacOS 12.6 x86_64 https://bugs.ruby-lang.org/issues/19594#change-102750 * Author: brodock (Gabriel Mazetto) * Status: Feedback * Priority: Normal * ruby -v: 3.0.5 * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- I'm triggering the compilation using RVM. A regular, non static compilation works, but I want to generate a cacheable binary to use inside CI. Here is the config log: ---Files-------------------------------- config.log (40.3 KB) -- https://bugs.ruby-lang.org/
participants (2)
-
brodock (Gabriel Mazetto)
-
nobu (Nobuyoshi Nakada)