Closed Yann-R closed 2 years ago
We don't support source builds, sorry. That's why you see this message:
Warning: Your Homebrew's prefix is not /usr/local.
Some of Homebrew's bottles (binary packages) can only be used with the default
prefix (/usr/local).
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
unsupported configuration.
We recommend installing into /usr/local
. We understand not everyone is able to do that, but we also don't have the resources to help fix the build failures that users inevitably encounter when Homebrew is not installed into the default prefix.
Sorry!
I have had the same problem (libserf does not build on Catalina due to an incorrect rpath= argument) for a while already. It would be good to find a fix for this, despite no official home-brew support.
We're happy to review PRs that fix builds for versions of macOS that are older than Catalina (but newer than El Capitan).
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I typed:
brew upgrade subversion
To upgrade after
brew outdated
mentioned this: subversion (1.14.1_2) < 1.14.1_4What happened (include all command output)?
% brew upgrade subversion Running
brew update --preinstall
... ==> Upgrading 1 outdated package: subversion 1.14.1_2 -> 1.14.1_4 Warning: Building subversion from source as the bottle needs:==> Patching ==> Applying configure-big_sur.diff patching file configure Hunk #1 succeeded at 10798 (offset 2065 lines). ==> scons PREFIX=/opt/brew/Cellar/subversion/1.14.1_4/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk LINKFLAGS=-L/opt/b Last 15 lines from /Users/ricquebo/Library/Logs/Homebrew/subversion/01.scons: /usr/bin/clang -o buckets/response_buckets.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include buckets/response_buckets.c /usr/bin/clang -o buckets/simple_buckets.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include buckets/simple_buckets.c /usr/bin/clang -o buckets/socket_buckets.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include buckets/socket_buckets.c /usr/bin/clang -o buckets/ssl_buckets.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include buckets/ssl_buckets.c /usr/bin/clang -o auth/auth.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include auth/auth.c /usr/bin/clang -o auth/auth_basic.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include auth/auth_basic.c /usr/bin/clang -o auth/auth_digest.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include auth/auth_digest.c /usr/bin/clang -o auth/auth_spnego.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include auth/auth_spnego.c /usr/bin/clang -o auth/auth_spnego_gss.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include auth/auth_spnego_gss.c /usr/bin/clang -o auth/auth_spnego_sspi.os -c -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -std=c89 -Wdeclaration-after-statement -Wmissing-prototypes -Wall -g -O2 -dynamic -fPIC -DNDEBUG -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -DSERF_HAVE_GSSAPI -I. -I/opt/brew/opt/apr/libexec/include/apr-1 -I/opt/brew/opt/apr-util/libexec/include/apr-1 -I/opt/brew/opt/openssl@1.1/include -I/opt/brew/opt/openssl@1.1/include auth/auth_spnego_sspi.c /usr/bin/clang -o libserf-1.1.3.0.dylib -L/opt/brew/opt/openssl@1.1/lib -L/opt/brew/opt/apr/lib -L/opt/brew/opt/python@3.10/lib -L/opt/brew/lib -F/opt/brew/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-install_name,/private/tmp/subversion--serf-20220117-48300-r6w2gt/serf-1.3.9/libserf-1.dylib -Wl,-search_paths_first -dynamiclib -Wl,-current_version,1.3.0 -Wl,-compatibility_version,1.3.0 -Wl,-rpath=/opt/brew/Cellar/subversion/1.14.1_4/libexec/serf/lib -Wl,-rpath=/opt/brew/opt/apr/libexec/lib -Wl,-rpath=/opt/brew/opt/openssl@1.1/lib -Wl,-rpath=/opt/brew/opt/apr-util/libexec/lib -Wl,-rpath=/opt/brew/opt/openssl@1.1/lib context.os incoming.os outgoing.os ssltunnel.os buckets/aggregate_buckets.os buckets/allocator.os buckets/barrier_buckets.os buckets/buckets.os buckets/bwtp_buckets.os buckets/chunk_buckets.os buckets/dechunk_buckets.os buckets/deflate_buckets.os buckets/file_buckets.os buckets/headers_buckets.os buckets/iovec_buckets.os buckets/limit_buckets.os buckets/mmap_buckets.os buckets/request_buckets.os buckets/response_body_buckets.os buckets/response_buckets.os buckets/simple_buckets.os buckets/socket_buckets.os buckets/ssl_buckets.os auth/auth.os auth/auth_basic.os auth/auth_digest.os auth/auth_spnego.os auth/auth_spnego_gss.os auth/auth_spnego_sspi.os -L/opt/brew/opt/apr/libexec/lib -L/opt/brew/opt/openssl@1.1/lib -L/opt/brew/opt/apr-util/libexec/lib -L/opt/brew/opt/openssl@1.1/lib -lssl -lcrypto -lz -lapr-1 -lpthread -laprutil-1 -lexpat -liconv -lkrb5 ld: unknown option: -rpath=/opt/brew/Cellar/subversion/1.14.1_4/libexec/serf/lib clang: error: linker command failed with exit code 1 (use -v to see invocation) scons: *** [libserf-1.1.3.0.dylib] Error 1 scons: building terminated because of errors.
What did you expect to happen?
Installation of subversion 1.14.1_4 finishing without failing.
Step-by-step reproduction instructions (by running
brew
commands)