Project

General

Profile

Actions

Bug #1089

closed

lttng-ust examples build fail when invoking make more than once

Added by Mathieu Desnoyers almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
02/20/2017
Due date:
% Done:

100%

Estimated time:

Description

cmake seems to expect to be invoked only once per build directory, so the following invocations cause errors:

if [ x"cmake-multiple-shared-libraries" != x"" ]; then \
    for subdir in cmake-multiple-shared-libraries; do \
        ( \
            cd cmake-multiple-shared-libraries && \
            /bin/mkdir -p build && \
            cd build && \
            cmake \
            -DCMAKE_INCLUDE_PATH="/home/compudj/git/lttng-ust/include;/home/compudj/git/lttng-ust/include" \
            -DCMAKE_LIBRARY_PATH="/home/compudj/git/lttng-ust/liblttng-ust/.libs" \
            -DCMAKE_C_COMPILER="gcc" \
            -DCMAKE_C_FLAGS="-Wall -g -O2 " \
            -DCMAKE_CXX_COMPILER="g++" \
            -DCMAKE_CXX_FLAGS="-g -O2 " \
            -DCMAKE_EXE_LINKER_FLAGS="" \
            .. && \
            make && \
            cd .. \
        ) || exit 1; \
    done; \
fi;
-- Configuring done
-- Generating done
-- Build files have been written to: /home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build
make[4]: Entering directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
make[5]: Entering directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
make[6]: Entering directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
Scanning dependencies of target tracepoint-provider
make[6]: Leaving directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
make[6]: Entering directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
[ 20%] Building CXX object CMakeFiles/tracepoint-provider.dir/tracepoint-provider.cpp.o
make[6]: /home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build/g++: Command not found
CMakeFiles/tracepoint-provider.dir/build.make:54: recipe for target 'CMakeFiles/tracepoint-provider.dir/tracepoint-provider.cpp.o' failed
make[6]: *** [CMakeFiles/tracepoint-provider.dir/tracepoint-provider.cpp.o] Error 127
make[6]: Leaving directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
CMakeFiles/Makefile2:203: recipe for target 'CMakeFiles/tracepoint-provider.dir/all' failed
make[5]: *** [CMakeFiles/tracepoint-provider.dir/all] Error 2
make[5]: Leaving directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
Makefile:76: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/compudj/git/lttng-ust/doc/examples/cmake-multiple-shared-libraries/build'
Makefile:968: recipe for target 'all-local' failed
make[3]: *** [all-local] Error 1
make[3]: Leaving directory '/home/compudj/git/lttng-ust/doc/examples'
Makefile:445: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/compudj/git/lttng-ust/doc'
Makefile:566: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/compudj/git/lttng-ust'
Makefile:441: recipe for target 'all' failed
make: *** [all] Error 2
Actions

Also available in: Atom PDF