Menu

#25 YAP won't build, errors in absmi.c?

v1.0 (example)
open
nobody
None
5
2016-05-30
2016-05-24
Joseph Nunn
No

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

Related

Bugs: #25

Discussion

  • Yehia Elrakaiby

    Yehia Elrakaiby - 2016-05-30

    I got the same error when I tried to build it on Mac OS 10.11.5

     
    • Joseph Nunn

      Joseph Nunn - 2016-05-30

      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

      On May 30 , 2016, at 9:21 AM, Yehia Elrakaiby yehia1980@users.sf.net wrote:

      I got the same error when I tried to build it on Mac OS 10.11.5

      [bugs:#25] https://sourceforge.net/p/yap/bugs/25/ YAP won't build, errors in absmi.c?

      Status: open
      Group: v1.0 (example)
      Created: Tue May 24, 2016 09:21 PM UTC by Joseph Nunn
      Last Updated: Tue May 24, 2016 09:21 PM UTC
      Owner: nobody

      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

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/yap/bugs/25/ https://sourceforge.net/p/yap/bugs/25/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #25

      • Yehia Elrakaiby

        Yehia Elrakaiby - 2016-05-30

        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

        On 30 mai 2016, at 20:04, Joseph Nunn josephnunn@users.sf.net wrote:

        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

        On May 30 , 2016, at 9:21 AM, Yehia Elrakaiby yehia1980@users.sf.net wrote:

        I got the same error when I tried to build it on Mac OS 10.11.5

        [bugs:#25] https://sourceforge.net/p/yap/bugs/25/ YAP won't build, errors in absmi.c?

        Status: open
        Group: v1.0 (example)
        Created: Tue May 24, 2016 09:21 PM UTC by Joseph Nunn
        Last Updated: Tue May 24, 2016 09:21 PM UTC
        Owner: nobody

        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

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/yap/bugs/25/ https://sourceforge.net/p/yap/bugs/25/
        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

        [bugs:#25] YAP won't build, errors in absmi.c?

        Status: open
        Group: v1.0 (example)
        Created: Tue May 24, 2016 09:21 PM UTC by Joseph Nunn
        Last Updated: Mon May 30, 2016 04:21 PM UTC
        Owner: nobody

        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

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/yap/bugs/25/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #25


Log in to post a comment.