You are not logged in.
Pages: 1
So I'm trying to build https://github.com/spk121/guile-gi and it keeps looking for a compile command. I found a shell script in automake and libtool. Linking them into /usr/bin gives me a different error. Did we move the compile command at some point and I didn't bother to read about it?
make all-am
make[1]: Entering directory '/home/zacnix/usr/bull/guile-gi'
GUILE_AUTO_COMPILE=0 \
LTDL_LIBRARY_PATH=/home/zacnix/usr/bull/guile-gi/.libs \
compile --target="x86_64-pc-linux-gnu" -O2 -Warity-mismatch -Wformat -Wmacro-use-before-definition -Wunbound-variable --load-path=/home/zacnix/usr/bull/guile-gi/module --load-path=/home/zacnix/usr/bull/guile-gi/module \
-o "module/gi.go" "module/gi.scm"
/bin/sh: line 1: compile: command not found
make[1]: *** [Makefile:2796: module/gi.go] Error 127
make[1]: Leaving directory '/home/zacnix/usr/bull/guile-gi'
make: *** [Makefile:1097: all] Error 2
zsh: exit 2 makeThen after symlinking in /usr/share/automake-1.16/compile to /usr/bin/compile
make all-am
make[1]: Entering directory '/home/zacnix/usr/bull/guile-gi'
GUILE_AUTO_COMPILE=0 \
LTDL_LIBRARY_PATH=/home/zacnix/usr/bull/guile-gi/.libs \
compile --target="x86_64-pc-linux-gnu" -O2 -Warity-mismatch -Wformat -Wmacro-use-before-definition -Wunbound-variable --load-path=/home/zacnix/usr/bull/guile-gi/module --load-path=/home/zacnix/usr/bull/guile-gi/module \
-o "module/gi.go" "module/gi.scm"
/usr/bin/compile: line 307: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]
make[1]: *** [Makefile:2602: module/gi.go] Error 2
make[1]: Leaving directory '/home/zacnix/usr/bull/guile-gi'
make: *** [Makefile:1044: all] Error 2
zsh: exit 2 makeOffline
pacman -Qikk goOffline
I don't think it's a problem with the compile command gone missing. It seems like there's a missing command to be passed to exec and whatever is supposed to fill that in is empty?
@seth yeah I had checked pkgfile for compile and find one in go but that one doesn't help anything either.
I'm also dumb and didn't notice there's a compile shell script in the repo itself.
Offline
There're two errors in yuor OP
1. compile could not be found
2. /usr/bin/compile doesn't like the "--" token in its options because
symlinking in /usr/share/automake-1.16/compile to /usr/bin/compile
was a stupid idea.
Do you have go installed? What's the output for the command in #2?
Undo the symlink.
Offline
I do have go installed but I'm not sure what go has to do with anything. This isn't a go problem. Guiles compiled files have a .go file extension.
If I run the compile command from output #2
~/usr/bull/guile-gi (2) $ /home/zacnix/usr/bull/guile-gi/build-aux/compile --target="x86_64-pc-linux-gnu" -O2 -Warity-mismatch -Wformat -Wmacro-use-before-definition -Wunbound-variable --load-path=/home/zacnix/usr/bull/guile-gi/module --load-path=/home/zacnix/usr/bull/guile-gi/module \
-o "module/gi.go" "module/gi.scm"
########### exec --target=x86_64-pc-linux-gnu -O2 -Warity-mismatch -Wformat -Wmacro-use-before-definition -Wunbound-variable --load-path=/home/zac/usr/bull/guile-gi/module --load-path=/home/zac/usr/bull/guile-gi/module -o module/gi.go module/gi.scm
/home/zacnix/usr/bull/guile-gi/build-aux/compile: line 308: exec: --: invalid option
exec: usage: exec [-cl] [-a name] [command [argument ...]] [redirection ...]
zsh: exit 2 /home/zacnix/usr/bull/guile-gi/build-aux/compile --target="x86_64-pc-linux-gnu"I think there's an empty variable in the autotools setup somewhere that I'm missing. I base this purely on the ###### line echo I added to the compile script.
Offline
compile --target="x86_64-pc-linux-gnu" -O2 -Warity-mismatch -Wformat -Wmacro-use-before-definition -Wunbound-variable --load-path=/home/zacnix/usr/bull/guile-gi/module --load-path=/home/zacnix/usr/bull/guile-gi/module -o "module/gi.go" "module/gi.scm"isn't looking for the autotools compile script, those are compiler flags like for gcc.
What did you run before make?
Comapre the PKGBUILD of https://aur.archlinux.org/packages/guile-gi-git (and maybe just use that package)
Offline
This is indeed not a compile binary/script it is a parameter for another binary: the makefile command starts with "$(GUILE_TOOLS) compile --target...", but apparently in your case GUILE_TOOLS is not defined. It should be defined (by configure) to /usr/bin/guild which is provided by the guile package.
It builds fine for me when following the upstream build instructions: install dependencies, ./bootstrap, ./configure, and make.
The following (start of a) PKGBUILD successfully compiles and builds a package:
_gitname=guile-gi
pkgname=${_gitname}-git
pkgver=0
pkgrel=1
arch=(x86_64)
url=https://github.com/spk121/guile-gi
license=(GPL3)
depends=(gc glib2 glibc guile libffi gobject-introspection-runtime)
makedepends=(git gobject-introspection texinfo)
source=(git+${url})
sha256sums=(SKIP)
prepare() {
cd ${_gitname}
./bootstrap
}
build() {
cd ${_gitname}
./configure --prefix=/usr
make
}
package() {
cd ${_gitname}
make DESTDIR=${pkgdir} install
}I have no idea if other configure flags would be useful / important.
Last edited by Trilby (2023-03-14 22:25:44)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Pages: 1