LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-15-2010, 09:18 AM   #1
Gavin Harper
Member
 
Registered: Feb 2010
Location: Finland
Distribution: Slackware
Posts: 169

Rep: Reputation: 24
gprolog Slack32 not compiling (Compiles fine on Slack64)


I am rebuilding all my Software for x86 due to an impending switch from 64 to 32.

I have an issue with gprolog. It will not compile on x86, I get this error:

gplc -c --fast-math fd2c.pl
fd2c.pl:215-220: fatal error: exception raised: error(instantiation_error,sort/2)
compilation failed
make[1]: *** [fd2c.o] Error 1
make[1]: Leaving directory `/tmp/SBo/gprolog-1.3.1/src/Fd2C'
make: *** [all] Error 1



Any ideas?
 
Old 09-15-2010, 02:35 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The cvs version : Not quite the same error in src/Fd2C/.

Getting the cvs : http://sourceforge.net/scm/?type=cvs&group_id=9715
1)
cvs -d: pserver:anonymous@gprolog.cvs.sourceforge.net:/cvsroot/gprolog login
( And : <Enter> )
2)
cvs -z3 -d: pserver:anonymous@gprolog.cvs.sourceforge.net:/cvsroot/gprolog co -P src

( cd src/src/ && ./configure )

The only solution ( for both versions ), I can find right now, is :
./configure --disable-fd-solver
( Please see ' ./configure --help ' )
.....

Last edited by knudfl; 09-15-2010 at 02:39 PM.
 
Old 09-15-2010, 02:41 PM   #3
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Never heard about prolog for Linux. Thanks.
 
Old 09-15-2010, 09:43 PM   #4
Gavin Harper
Member
 
Registered: Feb 2010
Location: Finland
Distribution: Slackware
Posts: 169

Original Poster
Rep: Reputation: 24
Quote:
Originally Posted by knudfl View Post
The cvs version : Not quite the same error in src/Fd2C/.

Getting the cvs : http://sourceforge.net/scm/?type=cvs&group_id=9715
1)
cvs -d: pserver:anonymous@gprolog.cvs.sourceforge.net:/cvsroot/gprolog login
( And : <Enter> )
2)
cvs -z3 -d: pserver:anonymous@gprolog.cvs.sourceforge.net:/cvsroot/gprolog co -P src

( cd src/src/ && ./configure )

The only solution ( for both versions ), I can find right now, is :
./configure --disable-fd-solver
( Please see ' ./configure --help ' )
.....
This worked, but it puzzles me why it compiles fine on Slackware64 (same setup, machine, packages installed) but not Slackware32...

Odd...
 
Old 09-17-2010, 02:33 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Debian uses these options :
./configure --without-ebp --disable-regs --enable-watermark

.. And it seems, that the 'src/Fd2C/' files are then used.
http://packages.debian.org/sid/gprolog
http://ftp.de.debian.org/debian/pool....0.orig.tar.gz
The "patch" http://ftp.de.debian.org/debian/pool....debian.tar.gz
Please see the file gprolog-1.3.0/debian/rules (when the patch is unpacked).
.....
.....

32bit , make ..
Code:
make[1]: Entering '/home/knudfl/7tmp/gprolog-1.3.0/src/Fd2C'
gplc -c --fast-math fd2c.pl
gplc -c --fast-math read_file.pl
gplc -c --fast-math parse.pl
gplc -c --fast-math compile.pl
gplc -o fd2c --no-fd-lib --min-bips fd2c.o read_file.o parse.o compile.o
make[1]: Leaving '/home/knudfl/7tmp/gprolog-1.3.0/src/Fd2C'

Last edited by knudfl; 09-17-2010 at 06:01 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slack64 vs slack32 marciobarbalho Slackware 1 01-11-2010 10:30 PM
icculus.org Duke Nukem 3d: compiles fine but won't run mr.gizm0 Linux - Games 1 04-23-2005 04:03 AM
G++ compiles fine but program does not work MaddDog696 Programming 3 04-15-2004 05:39 PM
Java, code compiles and supposedly runs fine in windows, but not linux exodist Programming 4 03-16-2004 12:47 PM
compiles fine but a make error bosewicht Linux - Newbie 3 01-04-2004 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration