Skip to content

netgen-6.2.2406 failed to link with libjpeg #210

@alexxy

Description

@alexxy

Hi!

While building netgen on Gentoo linux i found an issue

FAILED: ng/netgen 
: && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=skylake -mtune=skylake -Wl,-O1,--hash-style=gnu,--sort-common,--as-needed     -Wl,--dependency-file=ng/CMakeFiles/netgen.dir/link.d ng/CMakeFiles/netgen.dir/ngappinit.cpp.o -o ng/netgen  -Wl,-rpath,/var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build:/var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build/libsrc/core:  libnggui.so  /usr/lib64/libtcl.so  /usr/lib64/libtk.so  libnglib.so  libsrc/core/libngcore.so  -ldl  ng/Togl2.1/libtogl.a  /usr/lib64/libXmu.so  /usr/lib64/libX11.so  /usr/lib64/libtclstub.a  /usr/lib64/libtkstub.a  /usr/lib64/libOpenGL.so  /usr/lib64/libGLX.so  /usr/lib64/libGLU.so && :
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_set_defaults'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_write_scanlines'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_set_quality'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_stdio_dest'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_start_compress'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_std_error'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_finish_compress'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_destroy_compress'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_CreateCompress'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Config options

cmake -C /var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_STUB_FILES=OFF -DENABLE_UNIT_TESTS=no -DINSTALL_PROFILES=OFF -DNG_INSTALL_DIR_CMAKE=lib64/cmake/netgen -DNG_INSTALL_DIR_INCLUDE=include/netgen -DNG_INSTALL_DIR_LIB=lib64 -DUSE_CCACHE=OFF -DUSE_CGNS=OFF -DUSE_GUI=yes -DUSE_INTERNAL_TCL=OFF -DUSE_JPEG=yes -DUSE_MPEG=no -DUSE_NATIVE_ARCH=OFF -DUSE_MPI=no -DUSE_OCC=yes -DUSE_PYTHON=no -DUSE_SUPERBUILD=OFF -DNETGEN_VERSION_GIT=v6.2.2406 -DTK_INCLUDE_PATH=/usr/lib64/tk8.6/include -DUSE_MPI4PY=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build/gentoo_toolchain.cmake /var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406

Ref for gentoo bug https://bugs.gentoo.org/947728

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alexxy

        Issue actions

          netgen-6.2.2406 failed to link with libjpeg · Issue #210 · NGSolve/netgen