You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Podofo 0.11.0 can't be built with gcc 13.2.0 on "UnionTech OS GNU/Linux 20".
Here are some advices to get it built. Tested ok.
Optionally remove "-Wno-unknown-warning-option" from CMAKE_CXX_FLAGS in CMakeLists.txt.
This option is not reconized by gcc 13.2.0. But it only warns.
add "-fpermissive" to CMAKE_CXX_FLAGS in CMakeLists.txt.
Or it will complains "__builtin_is_constant_evaluated is not delcared", introduced by source file "podofo/3rdparty/numerics/safe_conversions.h".
add "-fpermissive" to CMAKE_CXX_FLAGS in CMakeLists.txt.
Or it will complains "__builtin_is_constant_evaluated is not delcared", introduced by source file
"podofo/3rdparty/numerics/safe_conversions.h".
__builtin_is_constant_evaluated is documented, and also it appears to work anyway in gcc 13.2.0 so I believe this not the right fix.
add "stdc++fs" to PODOFO_LIB_DEPENDS in CMakeLists.txt, to remove all undefined references to std::filesystem symbols.
list(APPEND PODOFO_LIB_DEPENDS "stdc++fs")
Also this appears to be unnecessary. See cppreference:
Using this library may require additional compiler/linker options. GNU implementation prior to 9.1 requires linking with -lstdc++fs
Are you compiling with CMake? Maybe you are picking an older compiler.
Almost for sure you are picking an old gcc 8.x compiler, see the test on Wandbox. If you want to produce a patch to support gcc 8.x you are very welcome, because earlier it worked for sure.
ceztko
changed the title
Podofo build problems
Podofo build problems with GCC 8.x
Dec 27, 2023
hello,
Podofo 0.11.0 can't be built with gcc 13.2.0 on "UnionTech OS GNU/Linux 20".
Here are some advices to get it built. Tested ok.
Optionally remove "-Wno-unknown-warning-option" from CMAKE_CXX_FLAGS in CMakeLists.txt.
This option is not reconized by gcc 13.2.0. But it only warns.
add "-fpermissive" to CMAKE_CXX_FLAGS in CMakeLists.txt.
Or it will complains "__builtin_is_constant_evaluated is not delcared", introduced by source file "podofo/3rdparty/numerics/safe_conversions.h".
#define IsConstantEvaluated() (__builtin_is_constant_evaluated())
list(APPEND PODOFO_LIB_DEPENDS "stdc++fs")
Thanks!
The text was updated successfully, but these errors were encountered: