I created a new repo for making CGAL (Computational Geometry Algorithms Library) features avaiiable in PARI/GP:
https://github.com/Hermann-SW/cgal4gp
I did that on Ubuntu 22.04 Intel laptop, and after submission I cloned the repo on my Pi5 with 64bit Raspberry Pi OS. I was surprised that the shared library compilation of cgal4gp.cpp produced tons of ABI changes warnings. So as a first measure I addded "-Wno-psabi" to CPPFLAGS::Then I read that global blocking of all ABI related messages is not the right way and to use narrow #pragma for this:
https://stackoverflow.com/a/52391447/5674289But that did not work with installed g++:
How can I remove "-Wno-psabi" from Makefile CPPFLAGS and get the pragma in cgal4gp.cpp avoding the tons of messages on current 64bit Raspberry Pi OS?
https://github.com/Hermann-SW/cgal4gp
I did that on Ubuntu 22.04 Intel laptop, and after submission I cloned the repo on my Pi5 with 64bit Raspberry Pi OS. I was surprised that the shared library compilation of cgal4gp.cpp produced tons of ABI changes warnings. So as a first measure I addded "-Wno-psabi" to CPPFLAGS::
Code:
CPPFLAGS = -O3 -ffp-contract=off -fno-strict-aliasing -fPIC -Wall -pedantic -Wextra -Wno-psabi
https://stackoverflow.com/a/52391447/5674289
Code:
#pragma GCC diagnostic push#pragma GCC diagnostic ignored "-Wpsabi"void foo(){}#pragma GCC diagnostic pop
Code:
pi@raspberrypi5:~/cgal4gp $ g++ --versiong++ (Debian 12.2.0-14) 12.2.0Copyright (C) 2022 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.pi@raspberrypi5:~/cgal4gp $
How can I remove "-Wno-psabi" from Makefile CPPFLAGS and get the pragma in cgal4gp.cpp avoding the tons of messages on current 64bit Raspberry Pi OS?
Statistics: Posted by HermannSW — Sun Jul 14, 2024 12:54 am — Replies 0 — Views 68