Open clartaq opened 1 year ago
Hmm. You would see this error if fmemopen
is not available on your system. Cyclone's makefile uses the following test to check for support:
echo "main(){char *buf; fmemopen(&buf, 0, \"r\");}" | cc -xc - >/dev/null 2>/dev/null && echo 1 || echo 0
I installed cyclone-bootstrap as directed in the documentation for the Mac since the brew installation is not working.
What happens when you try to install using brew?
When I did try brew, there was a message about installing cyclone-bootstrap, then make started. After awhile there was an error message. Here's the transcript.
brew install cyclone
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 4 taps (homebrew/cask-versions, homebrew/core, homebrew/cask and homebrew/cask-fonts).
You have 1 outdated formula installed.
You can upgrade it with brew upgrade
or list it with brew outdated.
==> Downloading https://github.com/justinethier/cyclone-bootstrap/archive/v0.35.0.tar.gz
Already downloaded: /Users/david/Library/Caches/Homebrew/downloads/7cec8ce3f88253ff73404f06d3d57403e5d57ba656158b610599f5a2b6f1fad5--cyclone-bootstrap-0.35.0.tar.gz
==> Downloading https://github.com/justinethier/cyclone/archive/v0.35.0.tar.gz
Already downloaded: /Users/david/Library/Caches/Homebrew/downloads/860bc1e0a961aaace1ce723c583db421688e8e24bbb7379739015b687289bdba--cyclone-0.35.0.tar.gz
==> Installing cyclone from cyclone-scheme/cyclone
==> Installing dependencies for cyclone-scheme/cyclone/cyclone: cyclone-bootstrap
==> Installing cyclone-scheme/cyclone/cyclone dependency: cyclone-bootstrap
==> make
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/winds
Target /usr/local/bin/winds
already exists. You may want to remove it:
rm '/usr/local/bin/winds'
To force the link and overwrite all conflicting files:
brew link --overwrite cyclone-bootstrap
To list all files that would be deleted:
brew link --overwrite --dry-run cyclone-bootstrap
Possible conflicting files are:
/usr/local/bin/winds
==> Summary
🍺 /usr/local/Cellar/cyclone-bootstrap/v0.35.0: 439 files, 65.8MB, built in 2 minutes 5 seconds
==> Installing cyclone-scheme/cyclone/cyclone
==> make
Last 15 lines from /Users/david/Library/Logs/Homebrew/cyclone/01.make:
a - bn_s_mp_reverse.o
a - bn_s_mp_sqr.o
a - bn_s_mp_sqr_fast.o
a - bn_s_mp_sub.o
a - bn_s_mp_toom_mul.o
a - bn_s_mp_toom_sqr.o
ranlib libcyclonebn.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcyclonebn.a(bn_mp_set_double.o) has no symbols
libtool -static -o libcyclone.a runtime.o gc.o ffi.o mstreams.o hashset.o libcyclonebn.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libcyclonebn.a(bn_mp_set_double.o) has no symbols
cyclone -A . cyclone.scm
Error: Unable to open file:
"/usr/local/share/cyclone/cyclone/foreign.sld"
make: *** [cyclone] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
it is probably useful to you to run the brew install again after removing the /usr/local/bin/winds file it complained about above.
brew install cyclone
==> Downloading https://github.com/justinethier/cyclone/archive/v0.35.0.tar.gz
Already downloaded: /Users/david/Library/Caches/Homebrew/downloads/860bc1e0a961aaace1ce723c583db421688e8e24bbb7379739015b687289bdba--cyclone-0.35.0.tar.gz
==> Installing cyclone from cyclone-scheme/cyclone
==> make
Last 15 lines from /Users/david/Library/Logs/Homebrew/cyclone/01.make:
a - bn_s_mp_reverse.o
a - bn_s_mp_sqr.o
a - bn_s_mp_sqr_fast.o
a - bn_s_mp_sub.o
a - bn_s_mp_toom_mul.o
a - bn_s_mp_toom_sqr.o
ranlib libcyclonebn.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libcyclonebn.a(bn_mp_set_double.o) has no symbols
libtool -static -o libcyclone.a runtime.o gc.o ffi.o mstreams.o hashset.o libcyclonebn.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: libcyclonebn.a(bn_mp_set_double.o) has no symbols
cyclone -A . cyclone.scm
Error: Unable to open file:
"/usr/local/share/cyclone/cyclone/foreign.sld"
make: *** [cyclone] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
Similar result.
Also, running the test you mention:
echo "main(){char *buf; fmemopen(&buf, 0, \"r\");}" | cc -xc - >/dev/null 2>/dev/null && echo 1 || echo 0
0
I started down this path after seeing failures when trying to use
cyclone format
.I installed
cyclone-bootstrap
as directed in the documentation for the Mac since the brew installation is not working.The
make test
command produced an error "outside of tests".But no errors in the tests themselves were noted.
I tried running the tests in the main
cyclone
repository since they are more extensive and have tests for SRFI 28, the one causing my original problem. The same error as above was noted in addition to a crash:It doesn't appear to have made it to the tests for the
format
library.Any ideas?