Closed ltratt closed 7 years ago
it is a bit odd: cmake was able to get the version of gcc and g++ and there are corrects.
-- The C compiler identification is GNU 4.9.4
-- The CXX compiler identification is GNU 4.9.4
But it is unable to use it to produce binary.
-- Check for working CXX compiler: /home/ltratt/tmp/build-rust/build_dir/bin/c++
-- Check for working CXX compiler: /home/ltratt/tmp/build-rust/build_dir/bin/c++ -- broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCXXCompiler.cmake:44 (message):
The C++ compiler "/home/ltratt/tmp/build-rust/build_dir/bin/c++" is not
able to compile a simple test program.
The problem seems to be that it's not picking up libgcc
. I assume it's supposed to be finding /usr/local/lib/gcc/x86_64-unknown-openbsd6.0/4.9.4/libgcc.a
? I have no idea if it's important, but I notice the failing command has -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib
-- but not /usr/local/lib/gcc/x86_64-unknown-openbsd6.0/4.9.4/
, although I would have guessed it might have picked that up automatically?
eg++
should know itself where is located the libgcc.a
for his version.
the -rpath-link
shouldn't be related. if you are able to test it, you could add rpath = false
in config.toml
under the section [rust]
. It will remove the use of rpath
.
Setting rpath = false
doesn't seem to have fixed things.
I'm wondering if there's some missing package? In terms of gcc packages I have:
$ pkg_info |grep -i gcc
gcc-4.9.4p3 GNU compiler collection: core C compiler
gcc-libs-4.9.4p3 GNU compiler collection: support libs
if you ran ./build.sh init
(with SUDO
env var setted to doas
or sudo
), you should have installed all required packages.
Yep, I'd run SUDO=doas ./build.sh init
first :/
This was magically fixed by upgrading to a newer snapshot. I don't know why, but there's no need to keep this issue open any more.
If I do
./build.sh beta
I get (eventually) this error:I'm not quite sure what the gcc problem is to be honest.