hey icon indicating copy to clipboard operation
hey copied to clipboard

Syntax error (import): cannot import from undefined module

Open adelq opened this issue 7 years ago • 1 comments

I'm having trouble installing the libraries on Arch Linux. I'm simply running ./build.sh libraries in the hey/ directory, and get this error at the end:

installing openssl:1.9.4 ...
changing current directory to /tmp/temp9f36.14648/openssl
  '/usr/bin/csi' -bnq -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"openssl\" \"1.9.4\"))" -e "(destination-prefix \"/home/adelq/projects/hey/hey_libs/\")" -e "(runtime-prefix \"/home/adelq/projects/hey/hey_libs/\")" -e "(deployment-mode #t)" 'openssl.setup'
  '/usr/bin/csc' -feature compiling-extension    -deployed -O2 -d0 -s -j openssl openssl.scm -lssl -lcrypto

Syntax error (import): cannot import from undefined module

	address-info

	Expansion history:

	<syntax>	  (##core#begin (##core#begin (##core#declare (uses srfi-18)) (import srfi-18)) (##core#begin (##core#...
	<syntax>	  (##core#begin (##core#declare (uses srfi-18)) (import srfi-18))
	<syntax>	  (##core#declare (uses srfi-18))
	<syntax>	  (##core#begin (##core#undefined))
	<syntax>	  (##core#undefined)
	<syntax>	  (import srfi-18)
	<syntax>	  (##core#undefined)
	<syntax>	  (##core#begin (##core#begin (##core#declare (uses tcp)) (import tcp)) (##core#undefined))
	<syntax>	  (##core#begin (##core#declare (uses tcp)) (import tcp))
	<syntax>	  (##core#declare (uses tcp))
	<syntax>	  (##core#begin (##core#undefined))
	<syntax>	  (##core#undefined)
	<syntax>	  (import tcp)
	<syntax>	  (##core#undefined)
	<syntax>	  (##core#undefined)
	<syntax>	  (import (only data-structures ->string) (only files make-pathname) (only address-info address-infos)...	<--

Error: shell command terminated with non-zero exit status 17920: '/usr/bin/chicken' 'openssl.scm' -output-file 'openssl.c' -dynamic -feature chicken-compile-shared -feature compiling-extension -optimize-level 2 -debug-level 0 -emit-import-library openssl

Error: shell command failed with nonzero exit status 256:

  '/usr/bin/csc' -feature compiling-extension    -deployed -O2 -d0 -s -j openssl openssl.scm -lssl -lcrypto

Full log: https://ptpb.pw/LIsK

I also get numerous permission errors for the chicken-install <package> commands. The final chicken-install -deploy -p hey_libs/ openssl is what fails completely. Disclaimer: I don't have any experience with Chicken.

adelq avatar Nov 29 '17 15:11 adelq

Was able to work around it temporarily by installing with sudo:

sudo ./build libraries
sudo chown -R $USER:$USER hey_libs/
./build linux

adelq avatar Nov 29 '17 16:11 adelq