Skip to content

[SCIP,SCIP_PaPILO] #7726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed

Conversation

matbesancon
Copy link
Contributor

Up-ing to 8.1.0 for both, trying the flag suggestion from #6054

@matbesancon
Copy link
Contributor Author

[15:29:27] -- Check for working C compiler: /opt/bin/x86_64-unknown-freebsd13.2-libgfortran3-cxx11/x86_64-unknown-freebsd13.2-clang - broken
[15:29:27] CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:69 (message):
[15:29:27]   The C compiler
[15:29:27] 
[15:29:27]     "/opt/bin/x86_64-unknown-freebsd13.2-libgfortran3-cxx11/x86_64-unknown-freebsd13.2-clang"
[15:29:27] 
[15:29:27]   is not able to compile a simple test program.
[15:29:27] 
[15:29:27]   It fails with the following output:
[15:29:27] 
[15:29:27]     Change Dir: /workspace/srcdir/scipoptsuite-8.1.0/build/CMakeFiles/CMakeTmp
[15:29:27]     
[15:29:27]     Run Build Command(s):/usr/bin/make -f Makefile cmTC_9611c/fast && /usr/bin/make  -f CMakeFiles/cmTC_9611c.dir/build.make CMakeFiles/cmTC_9611c.dir/build
[15:29:27]     make[1]: Entering directory '/workspace/srcdir/scipoptsuite-8.1.0/build/CMakeFiles/CMakeTmp'
[15:29:27]     Building C object CMakeFiles/cmTC_9611c.dir/testCCompiler.c.o
[15:29:27]     /opt/bin/x86_64-unknown-freebsd13.2-libgfortran3-cxx11/x86_64-unknown-freebsd13.2-clang --sysroot=/opt/x86_64-unknown-freebsd13.2/x86_64-unknown-freebsd13.2/sys-root/    -MD -MT CMakeFiles/cmTC_9611c.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_9611c.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_9611c.dir/testCCompiler.c.o -c /workspace/srcdir/scipoptsuite-8.1.0/build/CMakeFiles/CMakeTmp/testCCompiler.c
[15:29:27]     Linking C executable cmTC_9611c
[15:29:27]     /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_9611c.dir/link.txt --verbose=1
[15:29:27]     /opt/bin/x86_64-unknown-freebsd13.2-libgfortran3-cxx11/x86_64-unknown-freebsd13.2-clang --sysroot=/opt/x86_64-unknown-freebsd13.2/x86_64-unknown-freebsd13.2/sys-root/ -lrt -L/workspace/destdir/lib -liconv -Wl,-rpath-link,/opt/x86_64-unknown-freebsd13.2/x86_64-unknown-freebsd13.2/lib64  CMakeFiles/cmTC_9611c.dir/testCCompiler.c.o -o cmTC_9611c 
[15:29:27]     ld.lld: error: unable to find library -liconv
[15:29:27]     clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
[15:29:27]     make[1]: *** [CMakeFiles/cmTC_9611c.dir/build.make:100: cmTC_9611c] Error 1
[15:29:27]     make[1]: Leaving directory '/workspace/srcdir/scipoptsuite-8.1.0/build/CMakeFiles/CMakeTmp'
[15:29:27]     make: *** [Makefile:127: cmTC_9611c/fast] Error 2

Seems to occur for all failing ones I've checked, this is new?

Comment on lines +26 to +30
export LDFLAGS="-lrt -L${prefix}/lib -liconv -Wl,-rpath-link,/opt/${target}/${target}/lib"
elif [[ "${target}" != *-apple-* ]]; then
export LDFLAGS="-lrt -L${prefix}/lib -liconv -Wl,-rpath-link,/opt/${target}/${target}/lib64"
else
export LDFLAGS="-L${prefix}/lib -liconv -lrt"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export LDFLAGS="-lrt -L${prefix}/lib -liconv -Wl,-rpath-link,/opt/${target}/${target}/lib"
elif [[ "${target}" != *-apple-* ]]; then
export LDFLAGS="-lrt -L${prefix}/lib -liconv -Wl,-rpath-link,/opt/${target}/${target}/lib64"
else
export LDFLAGS="-L${prefix}/lib -liconv -lrt"
export LDFLAGS="-lrt -L${prefix}/lib -Wl,-rpath-link,/opt/${target}/${target}/lib"
elif [[ "${target}" != *-apple-* ]]; then
export LDFLAGS="-lrt -L${prefix}/lib -Wl,-rpath-link,/opt/${target}/${target}/lib64"
else
export LDFLAGS="-L${prefix}/lib -lrt"

Alternatively you might want to add Libiconv_jll as a dependency, but it was not necessary previously?

@matbesancon
Copy link
Contributor Author

matbesancon commented Nov 28, 2023

🤦 no clue how I introduced that, closing in favor of #7729

@matbesancon matbesancon deleted the scipup branch November 28, 2023 17:01
@matbesancon
Copy link
Contributor Author

thanks @benlorenz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants