Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on PowerPC Mac with R 4.1.2 fails #160

Open
barracuda156 opened this issue Dec 9, 2021 · 2 comments
Open

Build on PowerPC Mac with R 4.1.2 fails #160

barracuda156 opened this issue Dec 9, 2021 · 2 comments

Comments

@barracuda156
Copy link

Here is the log:

* installing *source* package ‘later’ ...
** package ‘later’ successfully unpacked and MD5 sums checked
** using staged installation
Running configure script
-latomic linker flag needed.
** libs
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c RcppExports.cpp -o RcppExports.o
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c callback_registry.cpp -o callback_registry.o
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c debug.cpp -o debug.o
/opt/local/bin/gcc-mp-7 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include   -fPIC  -pipe -Os -arch ppc -m32  -c init.c -o init.o
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c later.cpp -o later.o
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c later_posix.cpp -o later_posix.o
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c later_win32.cpp -o later_win32.o
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c timer_posix.cpp -o timer_posix.o
/opt/local/bin/g++-mp-7  -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -pthread -DSTRICT_R_HEADERS  -I'/Users/svacchanda/Library/R/powerpc/4.1/library/Rcpp/include' -I/opt/local/include -I/opt/local/Library/Frameworks/R.framework/Resources/include     -pipe -Os -arch ppc -m32  -c timestamp_unix.cpp -o timestamp_unix.o
timestamp_unix.cpp: In function 'void get_current_time(timespec*)':
timestamp_unix.cpp:10:17: error: 'CLOCK_MONOTONIC' was not declared in this scope
   clock_gettime(CLOCK_MONOTONIC, ts);
                 ^~~~~~~~~~~~~~~
timestamp_unix.cpp:10:3: error: 'clock_gettime' was not declared in this scope
   clock_gettime(CLOCK_MONOTONIC, ts);
   ^~~~~~~~~~~~~
timestamp_unix.cpp:10:3: note: suggested alternative: 'localtime'
   clock_gettime(CLOCK_MONOTONIC, ts);
   ^~~~~~~~~~~~~
   localtime
make: *** [timestamp_unix.o] Error 1
ERROR: compilation failed for package ‘later’
* removing ‘/Users/svacchanda/Library/R/powerpc/4.1/library/later’
Warning in file(con, "r") :
  cannot open file '/var/db/timezone/zoneinfo/+VERSION': No such file or directory
@wch
Copy link
Member

wch commented Dec 9, 2021

Hi, it's unlikely that we'll fix this for OSX on PowerPC, but if you want to try, we'd look at a pull request. What version of OS X are you using?

@barracuda156
Copy link
Author

barracuda156 commented Dec 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants