[MacPorts] #10874: YAP Doesn't compile on Intel Core Duo (macbook)

MacPorts noreply at macports.org
Thu Nov 12 10:18:47 PST 2009


#10874: YAP Doesn't compile on Intel Core Duo (macbook)
-------------------------------+--------------------------------------------
Reporter:  mellon85@…          |       Owner:  yeled@…           
    Type:  defect              |      Status:  new               
Priority:  Normal              |   Component:  ports             
 Version:  1.3.2               |    Keywords:                    
    Port:  yap                 |  
-------------------------------+--------------------------------------------

Comment(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.

-- 
Ticket URL: <http://trac.macports.org/ticket/10874#comment:14>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list