Opened 10 years ago

Closed 10 years ago

#696 closed defect (worksforme)

Stock 4.7.0 chicken cannot compile current trunk

Reported by: johnwcowan Owned by:
Priority: major Milestone:
Component: compiler Version: 4.7.x
Keywords: Cc:
Estimated difficulty:

Description

When attempting to compile setup-api.scm, setup-download.scm, chicken-install.scm, chicken-uninstall.scm, and chicken-status.scm, my stock 4.7.0 chicken in /usr/local/bin crashes with the absurd error message:

Syntax error (import): cannot import from undefined module

        scheme

        Expansion history:

        <syntax>          (##core#begin (module setup-api ((run execute) compile standard-extension make make/proc host-extens......
        <syntax>          (module setup-api ((run execute) compile standard-extension make make/proc host-extension install-ex......
        <syntax>          (##core#module setup-api ((run execute) compile standard-extension make make/proc host-extension ins......
        <syntax>          (import scheme chicken foreign irregex utils posix ports extras data-structures srfi-1 srfi-13 files......    <--

The workaround is to recompile these files using the chicken already built in the working directory, which has no problem with them. This is after setting CSC_OPTIONS to "-I/usr/local/include/chicken", as required on Cygwin.

Change History (4)

comment:1 Changed 10 years ago by johnwcowan

Summary: On Cygwin, stock 4.7.0 chicken cannot compile current trunkStock 4.7.0 chicken cannot compile current trunk

The same is true on Linux.

comment:2 Changed 10 years ago by felix winkelmann

Milestone: 4.8.0

Chicken versions from the git repository are likely to introduce incompatibilities. You should have done "make ... boot-chicken" first. Have you tried this?

comment:3 Changed 10 years ago by Christian Kellermann

This works for me when doing the following:

make PLATFORM=linux boot-chicken
make PLATFORM=linux CHICKEN=./chicken-boot
make PLATFORM=linux install

This is the recommended way of building a chicken from git, especially in these unstable times of scrutinizer / type db changes.

If there is any misunderstanding in the documentation about this process, please feel free to point them out so future attempts will be more successful.

comment:4 Changed 10 years ago by felix winkelmann

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.