Bug 253327 - sysutils/lttng-ust: Fails to build
Summary: sysutils/lttng-ust: Fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-07 21:25 UTC by Dries Michiels
Modified: 2021-02-09 08:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dries Michiels freebsd_committer freebsd_triage 2021-02-07 21:25:54 UTC
I have only checking CURRENT so far.

cc  -fstack-protector-strong  -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -fstack-protector-strong -L../../../liblttng-ust/.libs -Wl,-rpath="/usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/doc/examples/../../liblttng-ust/.libs/" -Wl,-rpath-link="/usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/doc/examples/../../liblttng-ust/.libs/" -Wall -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -o demo-tracelog demo-tracelog.o -llttng-ust
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="/usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/include;/usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/include"  -DCMAKE_LIBRARY_PATH="/usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/liblttng-ust/.libs"  -DCMAKE_C_FLAGS="-Wall -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include"  -DCMAKE_CXX_FLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -isystem /usr/local/include"  -DCMAKE_EXE_LINKER_FLAGS="-fstack-protector-strong"  .. &&  /usr/bin/make &&  cd ..  ) || exit 1;  done;  fi;
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell

  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is Clang 11.0.1
-- The CXX compiler identification is Clang 11.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at cmake/FindLTTngUST.cmake:98 (set_target_properties):
  set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
  CMakeLists.txt:7 (include)


-- Found LTTngUST: /usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/liblttng-ust/.libs/liblttng-ust.so (found version "2.9.0") 
-- Configuring incomplete, errors occurred!
See also "/usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/doc/examples/cmake-multiple-shared-libraries/build/CMakeFiles/CMakeOutput.log"
*** [all-local] Error code 1

make[5]: stopped in /usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/doc/examples
1 error
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-02-08 04:08:37 UTC
A commit references this bug:

Author: danfe
Date: Mon Feb  8 04:07:50 UTC 2021
New revision: 564676
URL: https://svnweb.freebsd.org/changeset/ports/564676

Log:
  Unbreak the build when CMake is installed.

  PR:	253327

Changes:
  head/sysutils/lttng-ust/Makefile
Comment 2 Alexey Dokuchaev freebsd_committer freebsd_triage 2021-02-08 04:09:35 UTC
Should be fixed with ports r564676, thanks for reporting.
Comment 3 Dries Michiels freebsd_committer freebsd_triage 2021-02-08 20:11:08 UTC
Hi Alexey,

The CMAKE error has been resolved, although in my poudriere it now fails at:

libtool: install: strip --strip-debug /wrkdirs/usr/ports/sysutils/lttng-ust/work/stage/usr/local/lib/liblttng-ust-dl.a
libtool: install: chmod 644 /wrkdirs/usr/ports/sysutils/lttng-ust/work/stage/usr/local/lib/liblttng-ust-dl.a
libtool: install: ranlib /wrkdirs/usr/ports/sysutils/lttng-ust/work/stage/usr/local/lib/liblttng-ust-dl.a
libtool: warning: remember to run 'libtool --finish /usr/local/lib'
Making install in tests
Making install in utils
Making install in hello
Making install in same_line_tracepoint
Making install in snprintf
Making install in benchmark
Making install in ust-elf
make[4]: Graph cycles through test_ust_elf
`install' not remade because of errors.

Stop.
make[4]: stopped in /wrkdirs/usr/ports/sysutils/lttng-ust/work/lttng-ust-2.9.0/tests/ust-elf
*** Error code 1
Comment 4 Alexey Dokuchaev freebsd_committer freebsd_triage 2021-02-09 08:31:09 UTC
(In reply to Dries Michiels from comment #3)
> The CMAKE error has been resolved, although in my poudriere it now fails at: [...]
Yeah, tests were a bit broken.  Try updating to ports r564772 (you might need to wait until SVN mirrors catch up) and see if it resolves this issue for you.

The port is in rather poor shape (albeit now it's slightly better), out of date, and desperately needs some love.  If you find it useful, consider taking maintainership and updating to version 2.12.0 (per https://lttng.org/files/lttng-ust/).  Same applies to `sysutils/lttng-tools', I guess.