StanfordSNR / gg

The Stanford Builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gg infer errors: unknown option: -plugin

RonaldGalea opened this issue · comments

I am trying to compile Inkscape and OpenCV but am running into errors with gg infer. In both cases the error seems to be the same:

For OpenCV

[ 33%] Linking CXX shared library ../../lib/libopencv_core.so
terminate called after throwing an instance of 'std::runtime_error'
  what():  unknown option: -plugin
/app/gg/src/models/wrappers/ld: line 2: 275384 Aborted                 (core dumped) model-ld "$@"
collect2: error: ld returned 134 exit status
make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/build.make:1690: lib/libopencv_core.so.4.7.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:2146: modules/core/CMakeFiles/opencv_core.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

and Inkscape:

[ 24%] Linking CXX shared library ../../../../../lib/lib2geom.so
terminate called after throwing an instance of 'std::runtime_error'
  what():  unknown option: -plugin
/app/gg/src/models/wrappers/ld: line 2: 293765 Aborted                 (core dumped) model-ld "$@"
collect2: error: ld returned 134 exit status
make[2]: *** [src/3rdparty/2geom/src/2geom/CMakeFiles/2geom.dir/build.make:805: lib/lib2geom.so.1.2.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:3237: src/3rdparty/2geom/src/2geom/CMakeFiles/2geom.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:163: all] Error 2

I am running gg infer make -j$(nproc).

Relevant system details:

  • Ubuntu 20.04.6 LTS
  • gcc (Ubuntu 7.5.0-6ubuntu2) 7.5.0
  • g++ (Ubuntu 7.5.0-6ubuntu2) 7.5.0
  • Inkscape version 1.2.2, OpenCV version 4.7.0

I could provide complete details to reproduce in a containerized environment, if necessary. Thank you!

I have exactly the same problem compiling LLVM on Ubuntu 23.10 with g++-13 (I patched gg to use g++-13).