mighty-gerbils / gerbil

Gerbil Scheme
https://cons.io
GNU Lesser General Public License v2.1
1.13k stars 111 forks source link

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

Closed drewc closed 6 months ago

drewc commented 6 months ago

18.2 should work for everyone, right? :)

netlify[bot] commented 6 months ago

Deploy Preview for elastic-ritchie-8f47f9 ready!

Name Link
Latest commit 7f4e755abe60c84daf70d3c541be40d88984b040
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.

chiefnoah commented 6 months ago

I'll give this a test shortly

chiefnoah commented 6 months ago

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 commented 6 months ago

This patch is not for building HEAD. Though I'm not sure why it fails and will try HEAD on my test box now, this patch is for a "release" version.

Can you try this:

brew unlink gerbil-scheme
# Clear the build cache. Helps with subtrees and versions
rm -rf $(brew --cache)/gerbil-scheme--git

rm -rf ~/.gerbil

brew install --formula -vd gerbil-scheme.rb

If that does not work, try this:


brew uninstall gerbil-scheme
rm -rf ~/.gerbil
brew install --formula -vd gerbil-scheme.rb

If both those still fail let me know.

On Thu, Jan 4, 2024 at 3:26 PM Noah Pederson @.***> wrote:

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_gerbilexpander__stxcase in gerbilexpanderstxcase.o __LNK_stdsrfi1 in stdsrfi1.o LNK_stdsrfi115 in stdsrfi115.o ____LNK_stdnethttpdserver in stdnethttpdserver.o __S_char_2d_set, referenced from: LNK_stdsrfi115 in stdsrfi115.o ____S_char_2d_set_2d_any, referenced from: LNK_stdsrfi14 in stdsrfi14.o S_char_2d_set_2d_contains3f, referenced from: ____LNK_stdsrfi__14 in stdsrfi14.o __S_char_2d_set_2d_count, referenced from: LNK_stdsrfi14 in stdsrfi14.o ____S_char_2d_set_2d_cursor_2d_next, referenced from: LNK_stdsrfi14 in stdsrfi14.o S_char_2d_set_2d_every, referenced from: ____LNK_stdsrfi__14 in stdsrfi14.o __S_char_2d_set_2d_fold, referenced from: LNK_stdsrfi14 in stdsrfi14.o ____S_char_2d_set_2d_for_2d_each, referenced from: LNK_stdsrfi14 in stdsrfi14.o S_char_2d_set_2d_map, referenced from: ____LNK_stdsrfi__14 in stdsrfi14.o __S_f, referenced from: LNK_stdmiscnumber in stdmiscnumber.o ____LNK_stdsrfi__134 in stdsrfi134.o __S_lower, referenced from: LNK_stdsrfi14 in stdsrfi14.o ____LNK_stdsrfi__115 in stdsrfi115.o __S_p, referenced from: LNK_std__lazy in stdlazy.o ____LNK_stdsrfi__101 in stdsrfi101.o __LNK_stdnetsasl in stdnetsasl.o S_upper, referenced from: ____LNK_stdsrfi__115 in stdsrfi115.o collect2: error: ld returned 1 exit status 04-4220-mssfe3/build/lib/static/stdwebrack.c ... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/stddbdbi.c ... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/stddbconpool.c ... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/stddbpostgresql-driver.c ... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/stddbpostgresql.c ... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/stddb_sqlite.c ... compile /private/tmp/gerbil-scheme-20240104-4220-mssfe3/build/lib/static/stddb__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, @. -- ERROR IN ? [Error]: error executing process --- irritants: "gcc" 256 --- continuation backtrace: [0] error [1] build-libgerbil @.: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
  6. raise
  7. ignore
  8. backtrace
  9. irb
  10. 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: @./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: @./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.

— Reply to this email directly, view it on GitHub https://github.com/mighty-gerbils/gerbil/pull/1100#issuecomment-1877898960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADVTXKE6DNPSN3RCVUAZADYM43BDAVCNFSM6AAAAABBJRK7OSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXHA4TQOJWGA . You are receiving this because you authored the thread.Message ID: @.***>

drewc commented 6 months ago

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

chiefnoah commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

... 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 commented 6 months ago

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!

chiefnoah commented 6 months ago

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)