spk121 / guile-gi

Bindings for GObject Introspection and libgirepository for Guile
GNU General Public License v3.0
58 stars 7 forks source link

compile command fails with empty exec? #130

Closed zedth2 closed 1 year ago

zedth2 commented 1 year ago

I'm trying to figure out the source of this bug but I don't know enough about autotools to find it quickly.

So when I edit my PATH to make sure the build-aux/compile script is in it I get this error...

~/usr/bull/guile-gi (0) $ PATH=$PATH:`pwd`/build-aux make
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/zac/usr/bull/guile-gi/module --load-path=/home/zac/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/zacnix/usr/bull/guile-gi/module --load-path=/home/zacnix/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 ...]
make[1]: *** [Makefile:2796: module/gi.go] Error 2
make[1]: Leaving directory '/home/zacnix/usr/bull/guile-gi'
make: *** [Makefile:1097: all] Error 2
zsh: exit 2     PATH=$PATH:`pwd`/build-aux make

I added the echo with the #######. This makes me think there's an empty variable or something?

When I try to install it from the AUR it can't even find the compile command. Hence my editing of my PATH.

----- EDIT ---- I should probably say, I run Arch by the way.....if the mention of the AUR didn't imply that. I could tell you my kernel but I don't think that's relevant in this case. Sorry I'll go away now.

zedth2 commented 1 year ago

Alright I tried a slight command to same result.

GUILE_TOOLS=guild PATH=$PATH:$(pwd)/build-aux make

I can dig some more later.

zedth2 commented 1 year ago

Well guile-ncurses is giving me the same problem. So guess I'll go over here.