NanoComp / libctl

Guile-based library implementing flexible control files for scientific simulations
GNU General Public License v2.0
18 stars 23 forks source link

Error when building without Guile/Scheme #68

Open oskooi opened 4 months ago

oskooi commented 4 months ago

When trying to compile libctl from source (069e736) with the flag --without-guile, I run into this error:

$ ./configure --without-guile
$ make

Making all in utils
make[2]: Entering directory '/home/oskooi/install/libctl/utils'
make[2]: *** No rule to make target 'geom-ctl-io.c', needed by 'all'.  Stop.

Inspecting config.log, I find these lines which seems should not be there:

config.status:1169: creating utils/gen-ctl-io

GEN_CTL_IO='/home/oskooi/install/libctl/utils/gen-ctl-io'
oskooi commented 4 months ago

Some additional information.

Building from source with Guile 3.0 using the tarball of the latest release (4.5) works fine.

wget https://github.com/NanoComp/libctl/releases/download/v4.5.1/libctl-4.5.1.tar.gz
tar xvzf libctl-4.5.1.tar.gz
cd libctl-4.5.1/
./configure --enable-shared LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib"
make && sudo make install

However, adding the --without-guile option to ./configure produces the same error as above.

stevengj commented 4 months ago

./configure --without-guile && make worked fine for me on the release tarball.

You will need guile to build from the github source (which also requires --enable-maintainer-mode), because it is needed to generate the utils/geom-ctl-io.c file (which is included in the release tarball).