Homebrew / homebrew-core

🍻 Default formulae for the missing package manager for macOS (or Linux)
https://brew.sh
BSD 2-Clause "Simplified" License
13.59k stars 12.33k forks source link

Subversion upgrade fails (from 1.14.1_2 to 1.14.1_4) #93294

Closed Yann-R closed 2 years ago

Yann-R commented 2 years ago

brew gist-logs <formula> link OR brew config AND brew doctor output

% brew config
HOMEBREW_VERSION: 3.3.11-2-g02c303c
ORIGIN: https://github.com/Homebrew/brew
HEAD: 02c303c78eec4c4c59174b45edee780fb08249e9
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: e4af8b9958c64e14d484956b1fc791fe71b53f19
Core tap last commit: 42 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/brew
HOMEBREW_REPOSITORY: /opt/brew/Homebrew
HOMEBREW_CELLAR: /opt/brew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.c9eHFs6Q4e/org.xquartz:0
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 2.6.8 => /opt/brew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 12.0.0 build 1200
Git: 2.34.1 => /opt/brew/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.0.0.32.29
Xcode: 12.4

% brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed with `brew diy`.
You should find replacements for the following formulae:
  xtail
  colorsvn
  contacts
  godep
  csv-fix

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  archivemount
  avfs
  curlftpfs
  ext2fuse
  ext4fuse
  fuse-zip
  godep
  growly
  ifuse
  isl@0.18
  mp3fs
  ntfs-3g
  q
  rdesktop
  sdl
  sdl_image
  sdl_mixer
  sdl_ttf
  sshfs
  xmount

Warning: Putting non-prefixed coreutils in your path can cause GMP builds to fail.

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/ublio.h

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  unison

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.

Verification

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_4

What 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)

brew upgrade subversion
carlocab commented 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!

cabo commented 2 years ago

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.

carlocab commented 2 years ago

We're happy to review PRs that fix builds for versions of macOS that are older than Catalina (but newer than El Capitan).