users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Users-prolog Digest, Vol 163, Issue 4


From: Duncan Patton a Campbell
Subject: Re: Users-prolog Digest, Vol 163, Issue 4
Date: Tue, 20 Mar 2018 12:57:30 -0600

Howdy?

In http://babayaga.neotext.ca/GProlog/
there are 

gprolog-1.4.5.amd64.tar.gz

and

gprolog-1.4.5.sparc64.tar.gz

They are a betabeta-test of some fixes Daniel made to run Gprolog 
on the Sparc64 OpenBSD, but they work for amd64 as well.

At one point I compiled this on Linux.  You will need to clean them and run 
configure.  use gmake, too.

Dhu


On Tue, 20 Mar 2018 12:00:21 -0400
address@hidden wrote:

> Send Users-prolog mailing list submissions to
>       address@hidden
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.gnu.org/mailman/listinfo/users-prolog
> or, via email, send a message with subject or body 'help' to
>       address@hidden
> 
> You can reach the person managing the list at
>       address@hidden
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users-prolog digest..."
> 
> 
> Today's Topics:
> 
>    1. installed gprolog 1.4.4 on debian 9 (stretch) with gcc 6.3 in
>       a kind  of hackey way, please lmk of a better way if possible
>       (Dan Hitt)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 19 Mar 2018 20:56:39 -0700
> From: Dan Hitt <address@hidden>
> To: address@hidden
> Subject: installed gprolog 1.4.4 on debian 9 (stretch) with gcc 6.3 in
>       a kind  of hackey way, please lmk of a better way if possible
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset="UTF-8"
> 
> I have a debian 9 system on which i tried to build gprolog 1.4.4.
> 
> It was unsuccessful, as a very vanilla build ran into problems where
> some of the *.o files had relocation type R_X86_64_32S and thus could
> not be linked into shared objects.
> 
> The net had some information about this, including some helpful advice
> from Salvador A, in response to a question Sean.  The gist of their
> discussion was to get in flags -fPIC and -no-pie to gcc.
> 
> I did this, but it was not quite enough.
> 
> So i'm describing here how i hacked it through, but would greatly
> appreciate any information on how to do a build without hand-modifying
> any Makefiles.
> 
> 
> My configure command was
> ./configure --prefix=$HOME/path/to/dir  --with-c-flags="-fPIC -no-pie"
> 
> 
> After configuring, make would fail with the bad relocation type, but
> only the files compiled from wam sources triggered the error.
> 
> So in the bowels of the build system, it looks like although gcc was
> getting the -fPIC -no-pie flags, gplc was not.
> 
> So i edited 4 Makefiles, in the directories BipsPl, Pl2Wam, Fd2C,
> BipsFD.  In each of those directories, if the variable GPLCFLAGS was
> specified (generally to --fast-math), i changed it by adding -fPIC (so
> that it would be --fast-math -fPIC).  Also, in the directories BipsPl
> and Pl2Wam i added -fPIC to the rule for .wam.o files.  In the
> directory BipsFD, GPLCFLAGS was used, but not defined, so i made it
> equal to -fPIC.  I did not put --fast-math on it, because i don't
> really know what i'm doing here.
> 
> 
> With these changes, made to a configured but otherwise completely
> clean extraction, compilation was successful and at least the program
> gprolog is willing to accecpt input.  (I haven't pushed it very hard,
> so we'll see how things go.)
> 
> Note that i did not pass -no-pie to gplc, because it does not accept
> that option.
> 
> I imagine this process is far short of ideal, so i'd be grateful for
> any clues on how to do this without hand-editing any Makefiles.  For
> example, a configure option of --with-gplc-flags would be useful, but
> ./configure --help does not reveal such a flag.
> 
> In any event, i'm posting because i don't think my system is very
> unique and other debian users may run into this problem.
> 
> Thanks for any guidance! :)
> 
> dan
> 
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Users-prolog mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/users-prolog
> 
> 
> ------------------------------
> 
> End of Users-prolog Digest, Vol 163, Issue 4
> ********************************************
> 


-- 
 Je suis Canadien. Ce n'est pas Francais ou Anglaise.  
 C'est une esp`ece de sauvage: ne obliviscaris, vix ea nostra voco;-) 

http://babayaga.neotext.ca/PublicKeys/Duncan_Patton_a_Campbell_pubkey.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]