Summary
undefined symbol compiling genturfa'i after updating Chicken
Metadata
- Id: 4f9dd38d163825bef954ff9b2ebb9583e7ecb421
- Trac id: 461
- Type: defect
- Reporter: alanpost
- Owner:
- Cc: alanpost@sunflowerriver.org
- Status: closed
- Component: compiler
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: 4.9.0
- Version: 4.6.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2010-12-19 08:48:23 UTC
- Keywords:
Description
I'm running Chicken from the experimental branch. After updating to 806bdb60d143712646a07ae891101a11a1511ab6, I try to install the genturfa'i egg and I get the following error:
/opt/chicken-master/bin/csi:/opt/chicken-master/lib/chicken/5/genturfahi.so: undefined symbol 'C_srfi_2d1_toplevel' lazy binding failed! Segmentation fault (core dumped)
This is the genturfah'i egg r22075.
Do I need to add or remove an srfi declaration? I'm not sure what behavior in Chicken changed and whether I'm seeing a bug introduced in Chicken or whether a fix in Chicken introduced a bug in my code.
Changes and comments
[2010-12-19 08:48:57 UTC] alanpost set cc to alanpost@sunflowerriver.org
[2010-12-20 19:37:58 UTC] alanpost wrote:
I'm also getting this error building the sandbox egg:
retrieving ...
checking platform for `sandbox' ...
checking dependencies for `sandbox' ...
install order:
("sandbox")
installing sandbox: ...
changing current directory to .
/opt/chicken-master/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"sandbox\" \"\"))" -e "(sudo-install #t)" sandbox.setup
/opt/chicken-master/bin/csc -feature compiling-extension -setup-mode -s -O3 -d1 sandbox.scm -j sandbox
/opt/chicken-master/bin/chicken:/opt/chicken-master/lib/chicken/5/defstruct.import.so: undefined symbol 'C_srfi_2d1_toplevel'
lazy binding failed!
Segmentation fault (core dumped)
Error: shell command terminated with non-zero exit status 35584: /opt/chicken-master/bin/chicken sandbox.scm -output-file sandbox.c -dynamic -feature chicken-compile-shared -feature compiling-extension -setup-mode -optimize-level 3 -debug-level 1 -emit-import-library sandbox
Error: shell command failed with nonzero exit status 256:
/opt/chicken-master/bin/csc -feature compiling-extension -setup-mode -s -O3 -d1 sandbox.scm -j sandbox
Error: shell command terminated with nonzero exit code
17920
"/opt/chicken-master/bin/csi -bnq -setup-mode -e \"(require-library setup-api)\"...
[2011-01-05 21:17:00 UTC] alanpost wrote:
I'd like to bump this, I have narrowed down the problem to the defstruct egg. Building and trying to run the tests for this egg (chicken-install -s -test) gives me:
retrieving ...
checking platform for `defstruct' ...
checking dependencies for `defstruct' ...
install order:
("defstruct")
installing defstruct: ...
changing current directory to .
/opt/chicken-master/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"defstruct\" \"\"))" -e "(sudo-install #t)" defstruct.setup
/opt/chicken-master/bin/csc -feature compiling-extension -setup-mode -s -O2 defstruct.scm -j defstruct
/opt/chicken-master/bin/csc -feature compiling-extension -setup-mode -s -O2 defstruct.import.scm
sudo cp -r defstruct.so /opt/chicken-master/lib/chicken/6/defstruct.so
sudo chmod a+r /opt/chicken-master/lib/chicken/6/defstruct.so
sudo cp -r defstruct.import.so /opt/chicken-master/lib/chicken/6/defstruct.import.so
sudo chmod a+r /opt/chicken-master/lib/chicken/6/defstruct.import.so
sudo mv /tmp/temp8d97.tmp /opt/chicken-master/lib/chicken/6/defstruct.setup-info
sudo chmod a+r /opt/chicken-master/lib/chicken/6/defstruct.setup-info
/opt/chicken-master/bin/csi -s run.scm defstruct
/opt/chicken-master/bin/csi:/opt/chicken-master/lib/chicken/6/defstruct.import.so: undefined symbol 'C_srfi_2d1_toplevel'
lazy binding failed!
Segmentation fault (core dumped)
Error: shell command terminated with nonzero exit code
35584
"/opt/chicken-master/bin/csi -s run.scm defstruct "
The error message only happens if I try to run the tests, or if I try to use defstruct from another egg.
I'm running OpenBSD 4.8 on i386, using the experimental branch 35e6429e4f4397c654cec39e0d2bc5cf42073a8d.
What is going on with the defstruct egg here?
[2011-01-05 21:51:11 UTC] alanpost changed status from new to closed
[2011-01-05 21:51:11 UTC] alanpost set resolution to fixed
[2011-01-05 21:51:11 UTC] alanpost wrote:
Thanks to sjamaan on IRC, I have fixed this problem:
I build chicken experimental, then compiled chicken using the chicken-experimental branch, which corrected this problem.
[2011-06-01 09:00:41 UTC] felix changed milestone from 4.7.0 to 4.8.0
[2011-06-01 09:00:41 UTC] felix wrote:
Milestone 4.7.0 deleted
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted