r-spatial / s2

Spherical Geometry Operators Using the S2 Geometry Library
https://r-spatial.github.io/s2/
69 stars 10 forks source link

Help me fix PowerPC :) #235

Open barracuda156 opened 1 year ago

barracuda156 commented 1 year ago

The build fails immediately after building abseil part:

/opt/local/bin/g++-mp-12 -std=gnu++11 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../src -DSTRICT_R_HEADERS -I'/opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.2/Resources/library/wk/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include  -DOPENSSL_SUPPRESS_DEPRECATED -DIS_BIG_ENDIAN -pthread -fPIC  -pipe -Os -arch ppc  -c s2-accessors.cpp -o s2-accessors.o
make: *** [s2-accessors.o] Error 1

There is no specific error output (I have tried running the command on the file directly, same result). Any ideas what to try?

jmr commented 1 year ago

Also reported as google/s2geometry#315.

barracuda156 commented 6 months ago

Ok, so while the cause for the failure is still unknown, it happens only in Rosetta, but not on native PowerPC. This is something very uncommon, AFAICT.