Opened 18 years ago

Closed 14 years ago

#10874 closed defect (fixed)

YAP Doesn't compile on Intel Core Duo (macbook)

Reported by: mellon85@… Owned by: yeled@…
Priority: Normal Milestone:
Component: ports Version: 1.3.2
Keywords: Cc: pmoura@…, clarkeje@…, sarming (Sebastian Arming)
Port: yap

Description (last modified by blb@…)

This is the result of the build process

--->  Building yap with target all
Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_yap/work/Yap-5.0.1" && make all" returned error 2
Command output: cc -no-cpp-precomp -c -DBP_FREE -O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -DCOROUTINING=1 -DRATIONAL_TREES=1 -DDEPTH_LIMIT=1 -DTHREADS=1 -D_GNU_SOURCE -DHAVE_CONFIG_H -I/opt/local/include -I/opt/local/include  -I. -I./H -I./OPTYap  ./C/absmi.c -o absmi.o
/var/tmp//ccwqxDxT.s:6075:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:6126:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:9320:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:9552:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:10380:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:11001:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:11334:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:13875:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:13887:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:19691:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:19834:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:23794:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:23830:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:23974:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:24078:Unknown pseudo-op: .previous
/var/tmp//ccwqxDxT.s:25136:Unknown pseudo-op: .previous
make: *** [absmi.o] Error 1

Error: Status 1 encountered during processing.

Attachments (2)

Portfile-yap.diff (1.2 KB) - added by clarkeje@… 16 years ago.
Updated for yap 5.1.3
patch-LGPL-chr-Makefile.in.diff (347 bytes) - added by clarkeje@… 16 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 18 years ago by mellon85@…

I have found that Yap 5.1.1 compiles with gcc 4.0.1 and works (just downloading the tarball, expanding, configure, make)

comment:2 Changed 18 years ago by kballard (Lily Ballard)

Milestone: Available Ports

comment:3 Changed 18 years ago by pipping@…

Milestone: Available PortsPort Bugs

comment:4 Changed 18 years ago by markd@…

I get the same error when trying to update the port to 5.1.1.

comment:5 Changed 18 years ago by pmoura (Paulo Moura)

Use the CVS version. It provides many improvements over 5.1.1. I will update the portfile as soon as a new stable version is out.

comment:6 Changed 17 years ago by pmoura (Paulo Moura)

Follows the commands that I use to compile YAP after changing to its checkout directory:

% mkdir macosx % cd macosx % ../configure --enable-threads --enable-pthread-locking --enable-max-performance=yes --with-gmp=/opt/local && make && sudo make install

Hope this helps,

Paulo

comment:7 Changed 17 years ago by jmroot (Joshua Root)

Cc: pmoura@… added

Cc maintainer.

comment:8 Changed 16 years ago by blb@…

Description: modified (diff)
Port: yap added

Changed 16 years ago by clarkeje@…

Attachment: Portfile-yap.diff added

Updated for yap 5.1.3

Changed 16 years ago by clarkeje@…

comment:9 Changed 16 years ago by clarkeje@…

Cc: clarkeje@… added

Cc Me!

comment:10 Changed 16 years ago by clarkeje@…

I'm not sure my patches are correct. Yap compiles and appears to work but I've been having problems getting Aleph (an ILP solver) to work with Yap. It turns out I had to recompile without thread support, but I cannot seem to get it to compile without thread support within macports.

comment:11 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:12 Changed 15 years ago by sarming (Sebastian Arming)

Cc: sebastian@… added

Cc Me!

comment:13 Changed 15 years ago by tobypeterson

Priority: HighNormal

comment:14 Changed 15 years ago by shawjef3@…

Yap won't install on my powerbook g4 running 10.5.8 with the release portfile or with the patch included above. With the patch for 5.1.3 I get

/usr/bin/gcc-4.0 -no-cpp-precomp -c -O2 -arch ppc -DCOROUTINING=1 -DRATIONAL_TREES=1 -DDEPTH_LIMIT=1 -DTHREADS=1 -D_GNU_SOURCE -DHAVE_CONFIG_H -I/opt/local/include -I/opt/local/include -I/opt/local/include  -I. -I./H -I./OPTYap -I./BEAM -I./MYDDAS ./C/gprof.c -o gprof.o
./C/gprof.c: In function 'prof_alrm':
./C/gprof.c:928: error: 'struct __darwin_mcontext' has no member named 'ss'
make: *** [gprof.o] Error 1

I can get around this error with a patch file,

$ cat patch-C-gprof.c 
--- C/gprof.c	2009-11-12 11:52:02.000000000 -0500
+++ /Users/jeff/gprof.c	2009-11-12 11:47:36.000000000 -0500
@@ -925,7 +925,7 @@
 #else
 #if __POWERPC__ || _POWER
   ucontext_t *sc = (ucontext_t *)scv;
-  void * oldpc=(void *) sc->uc_mcontext->ss.srr0; /* 14= POWER PC */
+  void * oldpc=(void *) sc->uc_mcontext->__ss.__srr0; /* 14= POWER PC */
 #else
   void *NULL;
 #endif

but then i get a bunch of errors

/usr/bin/gcc-4.0 -no-cpp-precomp -DCOROUTINING=1 -DRATIONAL_TREES=1 -DDEPTH_LIMIT=1 -DTHREADS=1 -D_GNU_SOURCE -DHAVE_CONFIG_H -I/opt/local/include -I/opt/local/include -I/opt/local/include  -I. -I./H -I./OPTYap -I./BEAM -I./MYDDAS -I./include -c ./C/c_interface.c -o c_interface.o
In file included from ./C/c_interface.c:337:
./include/yap_structs.h:151: warning: parameter names (without types) in function declaration
./C/c_interface.c: In function 'run_emulator':
./C/c_interface.c:1332: error: 'BK_H' undeclared (first use in this function)
./C/c_interface.c:1332: error: (Each undeclared identifier is reported only once
./C/c_interface.c:1332: error: for each function it appears in.)
./C/c_interface.c:1332: error: 'BK_HB' undeclared (first use in this function)
./C/c_interface.c:1332: error: 'BK_B' undeclared (first use in this function)
./C/c_interface.c:1332: error: 'BK_CP' undeclared (first use in this function)
./C/c_interface.c:1332: error: 'BK_TR' undeclared (first use in this function)
./C/c_interface.c: In function 'YAP_LeaveGoal':
./C/c_interface.c:1430: error: 'BK_H' undeclared (first use in this function)
./C/c_interface.c:1430: error: 'BK_HB' undeclared (first use in this function)
./C/c_interface.c:1430: error: 'BK_B' undeclared (first use in this function)
./C/c_interface.c:1430: error: 'BK_CP' undeclared (first use in this function)
./C/c_interface.c:1430: error: 'BK_TR' undeclared (first use in this function)
./C/c_interface.c: In function 'YAP_Init':
./C/c_interface.c:1781: warning: incompatible implicit declaration of built-in function 'malloc'
make: *** [c_interface.o] Error 1

I really don't know what the patch file I made does. I just noticed that the g95 port did something similar.

comment:15 Changed 15 years ago by pmoura (Paulo Moura)

My recommendation is for you to the YAP 6.0.0 git version until a new stable version is out. It usually compiles fine on MacOS X 10.5.8.

comment:16 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Updated to 6.0.5 in r71683.

Note: See TracTickets for help on using tickets.