Skip to content

'make all / make RxCpp' targets are broken #477

@iam

Description

@iam
iam@invoker:/mnt/ssd3/workspace/github/iam/rxcpp/projects/build$ make -j48

[ 22%] Linking CXX shared library libRxCpp.so
[ 23%] Building CXX object test/CMakeFiles/rxcpp_test_distinct.dir/operators/distinct.cpp.o
[ 25%] Building CXX object test/CMakeFiles/rxcpp_test_on_error_resume_next.dir/operators/on_error_resume_next.cpp.o
[ 26%] Building CXX object test/CMakeFiles/rxcpp_test_start_with.dir/operators/start_with.cpp.o
[ 26%] Building CXX object test/CMakeFiles/rxcpp_test_observer.dir/subscriptions/observer.cpp.o
[ 26%] Building CXX object test/CMakeFiles/rxcpp_test_sample.dir/operators/sample.cpp.o
[ 27%] Building CXX object test/CMakeFiles/rxcpp_test_skip_last.dir/operators/skip_last.cpp.o
[ 27%] Building CXX object test/CMakeFiles/rxcpp_test_window.dir/operators/window.cpp.o
[ 29%] Building CXX object test/CMakeFiles/rxcpp_test_buffer.dir/operators/buffer.cpp.o
[ 30%] Building CXX object test/CMakeFiles/rxcpp_test_skip_until.dir/operators/skip_until.cpp.o
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CMakeFiles/RxCpp.dir/build.make:68: recipe for target 'libRxCpp.so' failed
make[2]: *** [libRxCpp.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/RxCpp.dir/all' failed
make[1]: *** [CMakeFiles/RxCpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

with verbose

$> VERBOSE=1 make -j32 RxCpp

/usr/bin/clang++ -fPIC -O2 -g -DNDEBUG  -shared -Wl,-soname,libRxCpp.so -o libRxCpp.so  
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CMakeFiles/RxCpp.dir/build.make:68: recipe for target 'libRxCpp.so' failed
make[3]: *** [libRxCpp.so] Error 1
make[3]: Leaving directory '/mnt/ssd3/workspace/github/iam/rxcpp/projects/build'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/RxCpp.dir/all' failed
make[2]: *** [CMakeFiles/RxCpp.dir/all] Error 2
make[2]: Leaving directory '/mnt/ssd3/workspace/github/iam/rxcpp/projects/build'
CMakeFiles/Makefile2:79: recipe for target 'CMakeFiles/RxCpp.dir/rule' failed
make[1]: *** [CMakeFiles/RxCpp.dir/rule] Error 2
make[1]: Leaving directory '/mnt/ssd3/workspace/github/iam/rxcpp/projects/build'
Makefile:164: recipe for target 'RxCpp' failed

It appears that 4de03e6 added an 'RxCpp' library target to the CMakeLists, but this doesn't properly use the compiler/linker flags specified in shared.cmake and so this build target will never build.

As a result, the default 'make' command also fails, which seems scary and undesirable.

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

    Issue actions