mighty-gerbils / gerbil

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

Errors then installing with brew #1178

Open bentxt opened 6 months ago

bentxt commented 6 months ago
wget https://raw.githubusercontent.com/mighty-gerbils/gerbil/master/homebrew/gerbil-scheme.rb
brew install --formula -vd gerbil-scheme.rb

Error log:

... compile /private/tmp/gerbil-scheme-20240318-40667-701jwl/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-20240318-40667-701jwl/build/lib/static/std__db__postgresql.c
... compile /private/tmp/gerbil-scheme-20240318-40667-701jwl/build/lib/static/std__db___sqlite.c
... compile /private/tmp/gerbil-scheme-20240318-40667-701jwl/build/lib/static/std__db__sqlite.c
... compile /private/tmp/gerbil-scheme-20240318-40667-701jwl/build/lib/static/libgerbil-builtin-modules.c
... compile /private/tmp/gerbil-scheme-20240318-40667-701jwl/build/lib/libgerbil-link.c
... build /private/tmp/gerbil-scheme-20240318-40667-701jwl/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 /usr/local/Homebrew/Library/Homebrew/shims/shared/git --version
/usr/bin/env /usr/local/Homebrew/Library/Homebrew/shims/shared/curl --version
/usr/local/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:
vyzo commented 6 months ago

I think we might have to explicitly link with libgambit in macos. Can you try that in build-libgerbil.ss, with a (cond-expand (darwin ...))?

vyzo commented 6 months ago

these are all libgambit symbols.

vyzo commented 6 months ago

what version of macos is this?

vyzo commented 6 months ago

See also #1159, we have precompiled bottles now.

drewc commented 6 months ago

That's because you have an old gambit installed. Unlink or remove it and try again?

On Tue, Mar 19, 2024, 09:25 vyzo @.***> wrote:

Assigned #1178 https://github.com/mighty-gerbils/gerbil/issues/1178 to @drewc https://github.com/drewc.

— Reply to this email directly, view it on GitHub https://github.com/mighty-gerbils/gerbil/issues/1178#event-12172277170, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADVTXJSNAI4G5PQYQ4YEG3YZBRGRAVCNFSM6AAAAABE5E3RZCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGE3TEMRXG4YTOMA . You are receiving this because you were assigned.Message ID: @.***>

vyzo commented 6 months ago

we have fixed that on master, right?

drewc commented 6 months ago

I think so, but maybe not for all cases. When I get a chance I'll try again and see what happens.

On Tue, Mar 19, 2024 at 10:32 AM vyzo @.***> wrote:

we have fixed that on master, right?

— Reply to this email directly, view it on GitHub https://github.com/mighty-gerbils/gerbil/issues/1178#issuecomment-2007760809, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADVTXMYX2LYAACBPVWKFNLYZBZDVAVCNFSM6AAAAABE5E3RZCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXG43DAOBQHE . You are receiving this because you were mentioned.Message ID: @.***>

vyzo commented 6 months ago

@bentxt can you try building master with --HEAD?