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

Errors then installing with brew #1178

Open
bentxt opened this issue Mar 19, 2024 · 8 comments
Open

Errors then installing with brew #1178

bentxt opened this issue Mar 19, 2024 · 8 comments
Assignees

Comments

@bentxt
Copy link

bentxt commented Mar 19, 2024

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
Copy link
Collaborator

vyzo commented Mar 19, 2024

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
Copy link
Collaborator

vyzo commented Mar 19, 2024

these are all libgambit symbols.

@vyzo
Copy link
Collaborator

vyzo commented Mar 19, 2024

what version of macos is this?

@vyzo
Copy link
Collaborator

vyzo commented Mar 19, 2024

See also #1159, we have precompiled bottles now.

@drewc
Copy link
Collaborator

drewc commented Mar 19, 2024 via email

@vyzo
Copy link
Collaborator

vyzo commented Mar 19, 2024

we have fixed that on master, right?

@drewc
Copy link
Collaborator

drewc commented Mar 19, 2024 via email

@vyzo
Copy link
Collaborator

vyzo commented Mar 19, 2024

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

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

No branches or pull requests

3 participants