openwrt / openwrt/packages

lttng-ust: [PATCH] Fails to build while relinking, needs `PKG_FIXUP:=autoreconf`, in 22.03

Open
#18,941 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/22.03 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer:

No maintainer specified in package/feeds/packages/lttng-ust/Makefile, see issue #18940.

Environment:
  • Building for Xunlog OrangePi Plus (sun8i):
    grep ^CONFIG_TARGET .config:
    CONFIG_TARGET_sunxi=y
    CONFIG_TARGET_sunxi_cortexa7=y
    CONFIG_TARGET_sunxi_cortexa7_DEVICE_xunlong_orangepi-plus=y
    CONFIG_TARGET_BOARD="sunxi"
    CONFIG_TARGET_SUBTARGET="cortexa7"
    CONFIG_TARGET_PROFILE="DEVICE_xunlong_orangepi-plus"
    CONFIG_TARGET_ARCH_PACKAGES="arm_cortex-a7_neon-vfpv4"
    [...]
    
  • OpenWrt version:
    • Git branch openwrt-22.03 from git://git.openwrt.org/openwrt/openwrt.git,
    • initially checked out on 2022-07-05,
    • latest git pull and ./scripts/feeds update -a && ./scripts/feeds update -a on 2022-07-14, ca. 12:00 UTC
      (I give up on posting latest commit date and hash, since git log gives me some old dates, and I don't know how I can make git log printing out the last operation. I don't know much about git.)
  • Building on GNU/Linux on x86_64-architecture (Distribution: Artix Linux).
  • OpenWrt configuration: → config.txt.
  • grep -i lttng .config:
    CONFIG_PACKAGE_lttng-tools=m
    CONFIG_PACKAGE_lttng-ust=m
    
Description:

After a make dirclean, a subsequent make -j6 fails in above configuration on package/feeds/packages/lttng-ust. After a make package/feeds/packages/lttng-ust/clean, an explicit run of
make -j1 V=sc package/feeds/packages/lttng-ust/compile
fails with

libtool: relink: ccache_cc -shared  -fPIC -DPIC  -Wl,--whole-archive ../snprintf/.libs/libustsnprintf.a ../liblttng-ust-comm/.libs/liblttng-ust-comm.a ./.libs/liblttng-ust-runtime.a ./.libs/liblttng-ust-support.a -Wl,--no-whole-archive  -L/home/felics/download/Router-OS/OpenWRT/OpenWRT/openwrt-22.03/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-11.2.0_musl_eabi/usr/lib -L/home/felics/download/Router-OS/OpenWRT/OpenWRT/openwrt-22.03/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-11.2.0_musl_eabi/lib -L/home/felics/download/Router-OS/OpenWRT/OpenWRT/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/lttng-ust-2.12.0/ipkg-install/usr/lib -L/usr/lib -llttng-ust-tracepoint -lrt -ldl -lurcu-bp -lurcu-cds -lpthread  -O3 -g0 -mfloat-abi=hard -fstack-protector -Wl,-z -Wl,now -Wl,-z -Wl,relro -specs=/home/felics/download/Router-OS/OpenWRT/OpenWRT/openwrt-22.03/include/hardened-ld-pie.specs   -Wl,-soname -Wl,liblttng-ust.so.0 -o .libs/liblttng-ust.so.0.0.0
/usr/lib/liburcu-bp.so: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
libtool:   error: error: relink 'liblttng-ust.la' with the above command before installing it
make[5]: *** [Makefile:570: install-libLTLIBRARIES] Error 1

Full output of above make command is too long to be pasted here, so it is attached: → lttng-ust.compile.log.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with package/feeds/packages/lttng-ust/Makefile and review the attached lttng-ust.compile.log alongside the failing package/feeds/packages/lttng-ust/compile command. Reproduce the relinking failure with make -j1 V=sc, then verify that the package builds successfully after the build-system adjustment.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.