Project

General

Profile

Actions

Bug #19594

closed

Cannot statically compile 3.0.5 on MacOS 12.6 x86_64

Added by brodock (Gabriel Mazetto) over 1 year ago. Updated over 1 year ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:113203]

Description

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) config.log nobu (Nobuyoshi Nakada), 04/13/2023 12:50 AM
Actions #1

Updated by brodock (Gabriel Mazetto) over 1 year ago

  • ruby -v set to 3.0.5

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0