Compiling with gnu-prolog???
- From: pineapple.link@xxxxxxxxx
- Date: Sun, 07 Oct 2007 11:42:17 -0700
I've had serious problems attempting to compile prolog to native code
using gnu-prolog. I've googled for hours, and read the manual, in
addition to trying things like setting paths, etc. Nothing has
worked. I figure someone else must have had the same difficulties (in
fact, I saw one guy posting on the net with identical problems, but he
got nothing useful), so I am posting hoping for a solution.
Anyway, cutting to the chase - when I "gplc pltest.pl" I get:
error trying to execute pl2wam: Invalid argument
Compilation failed
Strangely enough, I can successfully invoke each "sub-compiler" in the
chain of compilations necessary to produce assembly code, and I can
get the result of that compilation. For instance, it is complaining
about the pl2wam compiler above. However when I do "pl2wam pltest.pl"
I get the .wam file. But when I feed the .wam file into the compiler
I get the same error above except with the wam2ma compiler as the
problem. But I can invoke THAT "sub-compiler" and repeat the whole
process again on down.
Suffice to say that I can then get a .ma file, and then a .s file. In
other words, each time it complains about a "sub-compiler," I can
access that sub-compiler no problem. This is evidence that the path
is set correctly - it can always find the proper compiler no matter
what directory I am in.
I wouldn't bother posting (even though this whole process is a pain
that needs to be rectified), except that I don't know how to go
further (past the mingw-as "sub-compiler"). In other words, I don't
know how to compile or link the last file I can produce into an
executable.
Anyone know what the heck is going on? I'm running Win XP. I've
tried doing this from both a dos shell, and cygwin - same results.
Thanks.
.
- Follow-Ups:
- Re: Compiling with gnu-prolog???
- From: anon
- Re: Compiling with gnu-prolog???
- Prev by Date: Re: swi prolog + clpr question
- Next by Date: Re: Compiling with gnu-prolog???
- Previous by thread: How to solve a problem with an infinite loop [beginners question]
- Next by thread: Re: Compiling with gnu-prolog???
- Index(es):
Relevant Pages
|
|