Hello Everyone, my first post.
I downloaded YAP and tried to build it on MacOS 10.11 by following the instructions in the README, but there is an undefined symbol in absmi.c, P1REG, causing problems compiling. Here is what I get:
LSP-17-MacBook-Pro:arch josephnunn$ make cc -no-cpp-precomp -c -DBP_FREE -O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -DCOROUTINING=1 -DRATIONAL_TREES=1 -DDEPTH_LIMIT=1 -DHAVE_CONFIG_H -I. -I../H -I../OPTYap -I../BEAM -I../MYDDAS ../C/absmi.c -o absmi.o ../C/absmi.c:469:21: error: use of undeclared identifier 'P1REG' yamop* PCBACKUP = P1REG; ^ ../C/absmi.c:559:5: error: use of undeclared identifier 'P1REG'; did you mean 'PREG'? P1REG = PCBACKUP; ^~~~~ PREG ../C/absmi.c:479:19: note: 'PREG' declared here register yamop *PREG = P; ^ ../C/absmi.c:695:7: error: use of undeclared identifier 'P1REG'; did you mean 'PREG'? P1REG = PCBACKUP; ^~~~~ PREG ../C/absmi.c:479:19: note: 'PREG' declared here register yamop *PREG = P; ^ ../C/absmi.c:713:7: error: use of undeclared identifier 'P1REG'; did you mean 'PREG'? P1REG = PCBACKUP; ^~~~~ PREG ../C/absmi.c:479:19: note: 'PREG' declared here register yamop *PREG = P; ^ ../C/absmi.c:12949:3: error: use of undeclared identifier 'P1REG'; did you mean 'PREG'? P1REG = PCBACKUP; ^~~~~ PREG ../C/absmi.c:479:19: note: 'PREG' declared here register yamop *PREG = P; ^ 5 errors generated. make: *** [absmi.o] Error 1
I can see from the compiler call that ../H is included as a header location, and that P1REG should be definied as per that header file. Any ideas?
Joseph
I got the same error when I tried to build it on Mac OS 10.11.5
Hello Yehia, I am the original poster below.
I believe the error is related to 32bit vs 64bit support and how that is detected when determining what platform YAP is building for. It would appear YAP for OSX is only 32bit, but that is a problem I believe for the newer OSX versions. Likely it would still run if the build were successful though. I have a 32bit version of BProlog that runs find on OSX 10.11, you might try that its pretty fast. However I personally want to experiment with the parallel aspects of YAP and am hoping to eventually get it build to try out.
Joseph Nunn
josephnunn@gmail.com
joseph.nunn@uci.edu
Related
Bugs: #25
Hello Joseph,
Thanks for your email. I wanted to install Yap for a tool which requires it to run. Now, I will see if I can run the tool using BPtolog. If you mange to get Yap to run on your machine, please let me know.
Cheers,
Yehia
Sent from my iPhone
Related
Bugs: #25