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

freebsd gmake error : Unbound variable: macro-gc-hash-table-flag-weak-keys #1276

Open
devosalain opened this issue Oct 27, 2024 · 9 comments

Comments

@devosalain
Copy link

gmake -j4 fails on freebsd with the error :

updating gerbil version
... write /home/x/Dirs/Git_Apps/gerbil/src/gerbil/runtime/version.ss
compiling gerbil core
*** ERROR IN "../bootstrap/lib/gerbil/runtime/table~0.scm"@2234.9 -- Unbound variable: macro-gc-hash-table-flag-weak-keys
*** ERROR; build failed
build failed
gmake: *** [Makefile:4: build] Error 1

I used to compile fine previously

@vyzo
Copy link
Collaborator

vyzo commented Oct 27, 2024

interesting, is this with the pinned gambit version or some other version?

@devosalain
Copy link
Author

Just did a git clone & git pull.

@drewc
Copy link
Collaborator

drewc commented Oct 27, 2024 via email

@devosalain
Copy link
Author

After rm -rf build-env.sh src/gambit/* && ./configure i got the same error.
My guess it's not the gerbil version but some sort of incompatibility between freebsd & gerbil which was introduced recently.

@drewc
Copy link
Collaborator

drewc commented Oct 28, 2024 via email

@devosalain
Copy link
Author

devosalain commented Oct 29, 2024

These are my steps
export CC=gcc
export CXX=g++
export PATH=/bin:/usr/bin:/usr/local/bin
git clone https://github.com/mighty-gerbils/gerbil.git
cd gerbil
gmake clean
./configure
gmake -j4

finalizing bootstrap
gerbil/boot/gerbil-boot.scm -> /home/x/Dirs/Git_Apps/gerbil/bootstrap/lib/gerbil-boot.scm
gerbil/boot-gxi -> /home/x/Dirs/Git_Apps/gerbil/bootstrap/bin/boot-gxi
[*] Building Gerbil core
preparing core build
gerbil/builtin.ssxi.ss -> /home/x/Dirs/Git_Apps/gerbil/build/lib/gerbil/builtin.ssxi.ss
gerbil/builtin-inline-rules.ssxi.ss -> /home/x/Dirs/Git_Apps/gerbil/build/lib/gerbil/builtin-inline-rules.ssxi.ss
updating gerbil version
... write /home/x/Dirs/Git_Apps/gerbil/src/gerbil/runtime/version.ss
compiling gerbil core
*** ERROR IN "../bootstrap/lib/gerbil/runtime/table~0.scm"@2234.9 -- Unbound variable: macro-gc-hash-table-flag-weak-keys
*** ERROR; build failed
build failed
gmake: *** [Makefile:4: build] Error 1

gsi -v
v4.9.3 20220102232246 amd64-portbld-freebsd14.0 "./configure '--enable-single-host' '--enable-gcc-opts' '--docdir=/usr/local/share/doc/gambit-c' '--includedir=/usr/local/include/gambit-c' '--libdir=/usr/local/lib/gambit-c' '--enable-compiler-name=gsc-gambit' '--enable-interpreter-name=gsi-gambit' '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/share/man' '--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd14.0' 'build_alias=amd64-portbld-freebsd14.0' 'CC=gcc12' 'CFLAGS=-O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc12 -fno-strict-aliasing ' 'LDFLAGS= -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc12 -L/usr/local/lib/gcc12 ' 'LIBS=' 'CPPFLAGS=' 'CPP=cpp12' 'CXX=g++12' 'CXXFLAGS=-O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc12 -Wl,-rpath=/usr/local/lib/gcc12 '"

uname -a
FreeBSD 14.1-RELEASE

@vyzo
Copy link
Collaborator

vyzo commented Oct 29, 2024

@ober as the bsd czar, any idea what is going on here?

@ober
Copy link
Collaborator

ober commented Oct 29, 2024

https://gist.github.com/ober/642cf0aee95a29fbb8a14391a2511508 This is how I build it. No gmake, and no -jN.
Make sure you have no existing gerbil/gambit installed anywhere in the path as well.

@devosalain
Copy link
Author

Thanks. That worked.

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

4 participants