-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Closed
Description
brew doctor output
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: You have uncommitted modifications to Homebrew/homebrew-core.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
cd /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core && git stash -u && git clean -d -f
Uncommitted files:
?? Formula/n/nfs-ganesha.rb
?? Formula/p/p9ufs.rb
?? Formula/r/rquickshare.rbVerification
- My "
brew doctoroutput" above saysYour system is ready to brew.and am still able to reproduce my issue. - I ran
brew updatetwice and am still able to reproduce my issue. - This issue's title and/or description do not reference a single formula e.g.
brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.
brew config output
HOMEBREW_VERSION: 4.4.26-94-g76e154f
ORIGIN: https://github.com/Homebrew/brew
HEAD: 76e154fe823f49d4c4ad433ff3c3310f071865ce
Last commit: 6 hours ago
Branch: master
Core tap HEAD: 1772e59dae3a3e16203ec6414a152f24a00b91c1
Core tap last commit: 2 hours ago
Core tap JSON: 27 Mar 07:08 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.7 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.7/bin/ruby
CPU: quad-core 64-bit haswell
Clang: N/A
Git: 2.49.0 => /bin/git
Curl: 8.9.1 => /bin/curl
Kernel: Linux 6.13.6-200.fc41.x86_64 x86_64 GNU/Linux
OS: Fedora release 41 (Forty One)
Host glibc: 2.40
/usr/bin/gcc: 14.2.1
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: 14.2.0_1
xorg: N/AWhat were you trying to do (and why)?
I am trying to pack go application, but install with build from source fails.
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source --verbose --debug p9ufsHere is the formula.
class P9ufs < Formula
desc "Idiomatic Go 9P2000.L client and server, extracted from gVisor for general use"
homepage "https://github.com/hugelgupf/p9"
url "https://github.com/hugelgupf/p9/archive/refs/tags/v0.3.0.tar.gz"
sha256 "4eca617bff4a2bf4924cc4cfee5ec5fe6af51590cb06068cd239d5f366244c92"
license "Apache-2.0"
depends_on "go" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/p9ufs"
end
test do
system "false"
end
end
What happened (include all command output)?
$ HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source --verbose --debug p9ufs
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading p9ufs
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading p9ufs
/usr/bin/env PATH=/home/linuxbrew/.linuxbrew/opt/gh/bin:/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared:/usr/bin:/bin:/usr/sbin:/sbin HOME=/home/anatoli gh auth token --hostname github.com
/usr/bin/env HOME=/home/anatoli git credential-osxkeychain get
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/git --version
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
==> Fetching p9ufs
==> Downloading https://github.com/hugelgupf/p9/archive/refs/tags/v0.3.0.tar.gz
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.4.26-95-gc047667\ \(Linux\;\ x86_64\ Fedora\ Linux\ 41\ \(Workstation\ Edition\)\)\ curl/8.9.1 --header Accept-Language:\ en --retry 3 -V
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Linuxbrew/4.4.26-95-gc047667\ \(Linux\;\ x86_64\ Fedora\ Linux\ 41\ \(Workstation\ Edition\)\)\ curl/8.9.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://github.com/hugelgupf/p9/archive/refs/tags/v0.3.0.tar.gz
Already downloaded: /home/anatoli/.cache/Homebrew/downloads/bcd30c7909b482a13a10b398d080d55ef46291d33b9bc43fe344cfa8cc024f96--p9-0.3.0.tar.gz
==> Verifying checksum for 'bcd30c7909b482a13a10b398d080d55ef46291d33b9bc43fe344cfa8cc024f96--p9-0.3.0.tar.gz'
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading p9ufs
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/p/p9ufs.rb
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/git --version
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading go
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading gcc@11
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading binutils
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading make
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading gcc
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading gcc
/usr/bin/env tar --extract --no-same-owner --file /home/anatoli/.cache/Homebrew/downloads/bcd30c7909b482a13a10b398d080d55ef46291d33b9bc43fe344cfa8cc024f96--p9-0.3.0.tar.gz --directory /tmp/homebrew-unpack-20250327-542523-w0nhnx
mv /tmp/homebrew-unpack-20250327-542523-w0nhnx/p9-0.3.0 /tmp/p9ufs-20250327-542523-hlkcd3/p9-0.3.0
==> go build -trimpath -o=/home/linuxbrew/.linuxbrew/Cellar/p9ufs/0.3.0/bin/p9ufs -ldflags=-s -w ./cmd/p9ufs
# runtime/cgo
gcc_libinit.c:23:1: error: braces around scalar initializer [-Werror]
23 | static pthread_cond_t runtime_init_cond = PTHREAD_COND_INITIALIZER;
| ^~~~~~
gcc_libinit.c:23:1: note: (near initialization for 'runtime_init_cond.__data.__g1_orig_size')
gcc_libinit.c:23:43: error: excess elements in scalar initializer [-Werror]
23 | static pthread_cond_t runtime_init_cond = PTHREAD_COND_INITIALIZER;
| ^~~~~~~~~~~~~~~~~~~~~~~~
gcc_libinit.c:23:43: note: (near initialization for 'runtime_init_cond.__data.__g1_orig_size')
gcc_libinit.c:23:1: error: braces around scalar initializer [-Werror]
23 | static pthread_cond_t runtime_init_cond = PTHREAD_COND_INITIALIZER;
| ^~~~~~
gcc_libinit.c:23:1: note: (near initialization for 'runtime_init_cond.__data.__g_signals[1]')
gcc_libinit.c:23:43: error: excess elements in scalar initializer [-Werror]
23 | static pthread_cond_t runtime_init_cond = PTHREAD_COND_INITIALIZER;
| ^~~~~~~~~~~~~~~~~~~~~~~~
gcc_libinit.c:23:43: note: (near initialization for 'runtime_init_cond.__data.__g_signals[1]')
cc1: all warnings being treated as errors
/usr/bin/env /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared/curl --version
/usr/bin/env /usr/bin/ruby -e puts\ RUBY_VERSION
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading glibc
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading gcc@11
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::FromNameLoader): loading gcc
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/build.rb (Formulary::NullLoader): loading xorg
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/ignorable.rb:27:in `block in raise'
BuildError: Failed executing: go build -trimpath -o=/home/linuxbrew/.linuxbrew/Cellar/p9ufs/0.3.0/bin/p9ufs -ldflags=-s\ -w ./cmd/p9ufs
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action:This happens with all go packages.
What did you expect to happen?
$ go build -trimpath -o=/tmp/xxx -ldflags="-s -w" ./cmd/p9ufs
$ echo $?
0
This actually happens if I just cd into unpacked source and build it manually. Without Homebrew shell.
Step-by-step reproduction instructions (by running brew commands)
1. `brew edit p9ufs`
2. copy formula from above
3. run install build
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source --verbose --debug p9ufsMetadata
Metadata
Assignees
Labels
No labels