Unable to successfully compile using Mac Catalina 10.15.7

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install Unable to successfully compile using Mac Catalina 10.15.7

Viewing 2 reply threads
  • Author
    Posts
    • #3592
      Anonymous

        Hello, I am currently unable to correclty compile. I am running a macOS Catalina 10.15.7. 

        The version I am currently using is Rosetta 3.12 with Mac binaries

        I am able to unzip the file and go into the source folder with the following input:

        cd Desktop/Rosetta/main/source/

        Then try to compile using with the following…

        ./scons.py -j3 mode=release bin

        The following error is given

        _HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DPTR_STD -DNDEBUG -Iexternal/include external/cifparse/regerror.c

        <stdout>:1960:3: error: implicit declaration of function ‘read’ is invalid in C99

              [-Werror,-Wimplicit-function-declaration]

                        YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),

                        ^

        <stdout>:1470:20: note: expanded from macro ‘YY_INPUT’

                while ( (result = read( fileno(cifparser_in), (char *) buf, max_size )) < 0 )

                                  ^

        <stdout>:1960:3: note: did you mean ‘fread’?

        <stdout>:1470:20: note: expanded from macro ‘YY_INPUT’

                while ( (result = read( fileno(cifparser_in), (char *) buf, max_size )) < 0 )

                                  ^

        /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:158:9: note: ‘fread’ declared here

        size_t   fread(void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream);

                 ^

        1 error generated.

        scons: *** [build/external/release/macos/10.15/64/x86/clang/12.0/default/cifparse/CifScanner.os] Error 1

        <stdout>:2022:3: error: implicit declaration of function ‘read’ is invalid in C99

              [-Werror,-Wimplicit-function-declaration]

                        YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),

                        ^

        <stdout>:1503:20: note: expanded from macro ‘YY_INPUT’

                while ( (result = read( fileno(dicparser_in), (char *) buf, max_size )) < 0 )

                                  ^

        <stdout>:2022:3: note: did you mean ‘fread’?

        <stdout>:1503:20: note: expanded from macro ‘YY_INPUT’

                while ( (result = read( fileno(dicparser_in), (char *) buf, max_size )) < 0 )

                                  ^

        /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:158:9: note: ‘fread’ declared here

        size_t   fread(void * __restrict __ptr, size_t __size, size_t __nitems, FILE * __restrict __stream);

                 ^

        1 error generated.

        scons: *** [build/external/release/macos/10.15/64/x86/clang/12.0/default/cifparse/DICScanner.os] Error 1

        scons: building terminated because of errors.

        A student suggeted i downgrade to Mojave if this problem cannot be fixed on Catalina.

         

        Thank you.

         

      • #15536
        Anonymous

          This should be fixed in the weekly releases.  I’d download the latest weekly release and try that.

        • #15542
          Anonymous

            Hi all, 

            I’m getting the exact same error while trying to compile on macOS Catalina 10.15.7 as well. I tried the latest weekly release (2020.37) as recommended and received the same error. I tried the latest numbered release (3.12) and an older weekly release (2020.27) for good measure as well, and all yielded the same error. I also tried removing the Werror lines as desccribed in this post, which resulted in a slightly different error but still failed to compile. Any other ideas for what might be going wrong? Is there a possibility it is due to the new Catalina update? I installed the latest version of Xcode for my compiler, but I’m assuming the compiler itself is not the issue here.

            Thanks in advance!

             

            • #15552
              Anonymous

                I fixed the problem by downgrading to MacOs Mojave

                 

          Viewing 2 reply threads
          • You must be logged in to reply to this topic.