Closed ghost closed 4 years ago
It looks like void linux forces Chez Scheme to dynamically link against zlib; the normal behavior is for Chez Scheme to build its own static library version of zlib to link against. Luckily, when running gen-config you can specify extra command line arguments and those will always be used when building programs with compile-chez-program:
./gen-config.ss (whatever normal options you specify) -lzlib
I've cloned ChezScheme's master repo inside chez-exe, wrote a simple automation script with the flags and it worked:
#!/bin/bash
arch=ta6le
procs=5
instdirprefix=/usr/local
cd ChezScheme
git pull origin master
./configure --disable-x11 --threads
make -j$procs
cd ..
scheme --script gen-config.ss --prefix "$instdirprefix" \
--scheme "$GITREPOS/chez-exe/ChezScheme/$arch/bin/scheme" \
--bootpath "$GITREPOS/chez-exe/ChezScheme/$arch/boot/$arch"
make -j$procs
echo "Installation prefix set to \"$instdirprefix\""
echo "Issue a 'sudo make install' to install the program."
echo "Issue a 'sudo make uninstall' to uninstall the program."
Note: Makefile for chez-exe was modified to include an uninstall task.
I will try to build chez-exe with the 9.5.2 version installed with the pkg manager tho and see if I can accomplish the same thing.
Good news: the following flags worked!
./gen-config.ss --prefix /usr --scheme /usr/bin/scheme --bootpath /usr/lib/csv9.5.2/ta6le -lz
Packages used (Void Linux):
I've forked the project to add my own modifications, let me know if you could eventually accept a merge request from my fork :smiley:
Merge requests are welcome.
Specs:
Trying to compile chez-exe results in the following compilation error: