Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working 18.1 homebrew. I blame git for thinking it worked. #1100

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Conversation

drewc
Copy link
Collaborator

@drewc drewc commented Jan 2, 2024

18.2 should work for everyone, right? :)

Copy link

netlify bot commented Jan 2, 2024

Deploy Preview for elastic-ritchie-8f47f9 ready!

Name Link
🔨 Latest commit 7f4e755
🔍 Latest deploy log https://app.netlify.com/sites/elastic-ritchie-8f47f9/deploys/659b70f485ff190008b5beb0
😎 Deploy Preview https://deploy-preview-1100--elastic-ritchie-8f47f9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@drewc drewc requested review from fare and ober January 2, 2024 04:19
@drewc drewc enabled auto-merge (squash) January 2, 2024 04:24
@chiefnoah
Copy link
Collaborator

I'll give this a test shortly

@chiefnoah
Copy link
Collaborator

I finally got to testing this and it's still broken for me, though I suspect it's something going on with my system, not the build script:

... compile /private/tmp/gerbil-scheme-202401ld: Undefined symbols:
  ____S_any, referenced from:
      ____LNK_gerbil____expander____stxcase in gerbil__expander__stxcase.o
      ____LNK_std____srfi____1 in std__srfi__1.o
      ____LNK_std____srfi____115 in std__srfi__115.o
      ____LNK_std____net____httpd____server in std__net__httpd__server.o
  ____S_char_2d_set, referenced from:
      ____LNK_std____srfi____115 in std__srfi__115.o
  ____S_char_2d_set_2d_any, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_contains_3f_, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_count, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_cursor_2d_next, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_every, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_fold, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_for_2d_each, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_map, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_f, referenced from:
      ____LNK_std____misc____number in std__misc__number.o
      ____LNK_std____srfi____134 in std__srfi__134.o
  ____S_lower, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
      ____LNK_std____srfi____115 in std__srfi__115.o
  ____S_p, referenced from:
      ____LNK_std____lazy in std__lazy.o
      ____LNK_std____srfi____101 in std__srfi__101.o
      ____LNK_std____net____sasl in std__net__sasl.o
  ____S_upper, referenced from:
      ____LNK_std____srfi____115 in std__srfi__115.o
collect2: error: ld returned 1 exit status
04-4220-mssfe3/build/lib/static/std__web__rack.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/std__db__dbi.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/std__db__conpool.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/std__db__postgresql-driver.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/std__db__postgresql.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/std__db___sqlite.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/std__db__sqlite.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/libgerbil-builtin-modules.c
... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/libgerbil-link.c
... build /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/libgerbil.so
process gcc exited with non-zero status 256
*** ERROR IN build-libgerbil, "build/build-libgerbil.ss"@374.9-378.35 -- 
*** ERROR IN ? [Error]: error executing process
--- irritants: "gcc" 256 
--- continuation backtrace:
[0] error                                                                              
[1] build-libgerbil                                                                    "build/build-libgerbil.ss"@374:9-378:35                                                 (invoke-gcc (cons "-shared" (cons "-o" (cons #:libgerbil517 (foldr cons (fold...
┏━━━━━ build/build-libgerbil.ss ━━━━━
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃⋯
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     373┃      (if (eq? mode 'shared)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     374┃        (invoke-gcc ["-shared" "-o" libgerbil
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃        ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     375┃                     libgerbil-ldd ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     376┃                     static-module-o-paths ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     377┃                     builtin-modules-o-path
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     378┃                     link-o-path])
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     379┃        (invoke-ar ["cq" libgerbil
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃⋯
*** ERROR; build failed
build failed
make: *** [build] Error 1
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/git --version
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --version
/opt/homebrew/Library/Homebrew/ignorable.rb:29:in `block in raise'
BuildError: Failed executing: make
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 1    
No such option
1. raise
2. ignore
3. backtrace
4. irb
5. shell
Choose an action: 1
==> Temporary files retained at:
/private/tmp/gerbil-scheme-20240104-4220-mssfe3
/usr/bin/env git --git-dir /Users/noah/Library/Caches/Homebrew/gerbil-scheme--git/.git rev-parse --short=7 HEAD

==> Formula
Path: /Users/noah/Documents/repos/gerbil/homebrew/gerbil-scheme.rb
==> Configuration
HOMEBREW_VERSION: 4.2.2-18-gdcd267b
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/git --version
ORIGIN: https://github.com/Homebrew/brew
HEAD: dcd267ba4caecb253220cb02a8a2bb1c46a7a65b
Last commit: 8 hours ago
Core tap HEAD: ada527959d3fab181119572f4316290f70071070
Core tap last commit: 52 minutes ago
Core tap JSON: 04 Jan 22:41 UTC
Core cask tap HEAD: 688312725a9107d5e93652b5b96f491af70d0ed3
Core cask tap last commit: 56 minutes ago
Core cask tap JSON: 04 Jan 22:41 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.5z79PEazeu/org.xquartz:0
HOMEBREW_EDITOR: nvim
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_blizzard_avalanche
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --version
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.2.1-arm64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.1
Rosetta 2: false
==> ENV
HOMEBREW_CC: gcc-13
HOMEBREW_CXX: g++-13
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew/opt/readline:/opt/homebrew/opt/sqlite:/opt/homebrew/opt/zlib:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /opt/homebrew/opt/openssl@3/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/zlib/lib/pkgconfig:/opt/homebrew/opt/gmp/lib/pkgconfig:/opt/homebrew/opt/isl/lib/pkgconfig:/opt/homebrew/opt/mpfr/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/openssl@3/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/gcc/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: gerbil-scheme HEAD-b905fe8 did not build
Logs:
     /Users/noah/Library/Logs/Homebrew/gerbil-scheme/00.options.out
     /Users/noah/Library/Logs/Homebrew/gerbil-scheme/01.configure
     /Users/noah/Library/Logs/Homebrew/gerbil-scheme/01.configure.cc
     /Users/noah/Library/Logs/Homebrew/gerbil-scheme/02.make
     /Users/noah/Library/Logs/Homebrew/gerbil-scheme/02.make.cc
     /Users/noah/Library/Logs/Homebrew/gerbil-scheme/src
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

gerbil-scheme's formula was built from an unstable upstream --HEAD.
This build failure is expected behaviour.
Do not create issues about this on Homebrew's GitHub repositories.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

@drewc
Copy link
Collaborator Author

drewc commented Jan 4, 2024 via email

@drewc
Copy link
Collaborator Author

drewc commented Jan 5, 2024

And to confirm. --HEAD works fine on both my Macs.

@chiefnoah
Copy link
Collaborator

Failed with both builds at the same spot with the same error. I strongly suspect it's a "just on my machine" problem, I'm heavily considering nuking the install and starting over

@chiefnoah
Copy link
Collaborator

Oh, actually it failed at a slightly different spot this time on something that is probably actually a bug:

collect2: error: ld returned 1 exit status
db__postgresql-driver.c
... compile /private/tmp/gerbil-scheme-20240104-19860-xcgc88/build/lib/static/std__db__postgresql.c
... compile /private/tmp/gerbil-scheme-20240104-19860-xcgc88/build/lib/static/std__db___sqlite.c
... compile /private/tmp/gerbil-scheme-20240104-19860-xcgc88/build/lib/static/std__db__sqlite.c
... compile /private/tmp/gerbil-scheme-20240104-19860-xcgc88/build/lib/static/libgerbil-builtin-modules.c
... compile /private/tmp/gerbil-scheme-20240104-19860-xcgc88/build/lib/libgerbil-link.c
... build /private/tmp/gerbil-scheme-20240104-19860-xcgc88/build/lib/libgerbil.so
process gcc exited with non-zero status 256

It's trying to link to postgres for some reason. I'm pretty sure we pulled that out into a separate package and the build script doesn't declare the Postgres lib as a dependency (and it's probably not on my system). It's entirely possible this is still a cache issue, as I think postgres hasn't been part of the stdlib for awhile.

I'm going to try installing libpostgres and trying again

@chiefnoah
Copy link
Collaborator

Nope 🙁

... compile /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/static/std__ld: Undefined symbols:
  ____S_any, referenced from:
      ____LNK_gerbil____expander____stxcase in gerbil__expander__stxcase.o
      ____LNK_std____srfi____1 in std__srfi__1.o
      ____LNK_std____srfi____115 in std__srfi__115.o
      ____LNK_std____net____httpd____server in std__net__httpd__server.o
  ____S_char_2d_set, referenced from:
      ____LNK_std____srfi____115 in std__srfi__115.o
  ____S_char_2d_set_2d_any, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_contains_3f_, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_count, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_cursor_2d_next, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_every, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_fold, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_for_2d_each, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_char_2d_set_2d_map, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
  ____S_f, referenced from:
      ____LNK_std____misc____number in std__misc__number.o
      ____LNK_std____srfi____134 in std__srfi__134.o
  ____S_lower, referenced from:
      ____LNK_std____srfi____14 in std__srfi__14.o
      ____LNK_std____srfi____115 in std__srfi__115.o
  ____S_p, referenced from:
      ____LNK_std____lazy in std__lazy.o
      ____LNK_std____srfi____101 in std__srfi__101.o
      ____LNK_std____net____sasl in std__net__sasl.o
  ____S_upper, referenced from:
      ____LNK_std____srfi____115 in std__srfi__115.o
collect2: error: ld returned 1 exit status
db__postgresql-driver.c
... compile /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/static/std__db__postgresql.c
... compile /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/static/std__db___sqlite.c
... compile /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/static/std__db__sqlite.c
... compile /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/static/libgerbil-builtin-modules.c
... compile /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/libgerbil-link.c
... build /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/libgerbil.so
process gcc exited with non-zero status 256
*** ERROR IN build-libgerbil, "build/build-libgerbil.ss"@374.9-378.35 -- 
*** ERROR IN ? [Error]: error executing process
--- irritants: "gcc" 256 
--- continuation backtrace:
[0] error                                                                              
[1] build-libgerbil                                                                    "build/build-libgerbil.ss"@374:9-378:35                                                 (invoke-gcc (cons "-shared" (cons "-o" (cons #:libgerbil517 (foldr cons (fold...
┏━━━━━ build/build-libgerbil.ss ━━━━━
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃⋯
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     373┃      (if (eq? mode 'shared)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     374┃        (invoke-gcc ["-shared" "-o" libgerbil
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃        ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     375┃                     libgerbil-ldd ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     376┃                     static-module-o-paths ...
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     377┃                     builtin-modules-o-path
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     378┃                     link-o-path])
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     379┃        (invoke-ar ["cq" libgerbil
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ┃⋯
*** ERROR; build failed

@drewc
Copy link
Collaborator Author

drewc commented Jan 5, 2024

... build /private/tmp/gerbil-scheme-20240104-19860-xcgc88/build/lib/libgerbil.so

We do not rely on any libraries for Postgres. To me that failure says it's the 'libgerbil.so' that fails when the 'ld' is trying to link symbols. What version of MacOS is it?

It ends with "... build /private/tmp/gerbil-scheme-20240104-80355-naj8lc/build/lib/libgerbil.so" and --- continuation backtrace:
[0] error
[1] build-libgerbil "build/build-libgerbil.ss"@374:9-378:35 (invoke-gcc (cons "-shared" (cons "-o" (cons #:libgerbil517 (foldr cons (fold...
┏━━━━━ build/build-libgerbil.ss ━━━━━

Am I mistaken? What does the log file say at the end?

@chiefnoah
Copy link
Collaborator

Whatever the latest is, I installed the most recent patch earlier today but this has been broken on my machine for awhile.

The rest of the error message is the same as above.

I was thinking of the MySQL driver, oops!

Copy link
Collaborator

@fare fare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
except one English thingie

homebrew/README.org Outdated Show resolved Hide resolved
@drewc drewc removed the request for review from ober January 8, 2024 03:02
@drewc drewc disabled auto-merge January 8, 2024 03:49
@drewc drewc enabled auto-merge (squash) January 8, 2024 03:49
@drewc drewc merged commit ea43631 into master Jan 8, 2024
12 checks passed
@drewc drewc deleted the homebrew branch January 8, 2024 04:25
@chiefnoah
Copy link
Collaborator

I've confirmed that it's the existence of a Gambit install on my system that was giving me trouble. After removing it, it seems to work fine (note, I have not pulled, so any changes you've made in the last few days wouldn't have impacted this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants