Skip to contentSkip to conversation

New: Ninja 1.10 build Error

Buildroot bugzilla at busybox.net 1 participant 6 messages Feb 5, 2020 – Feb 10, 2020

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=12546

Bug ID: 12546
Summary: Ninja 1.10 build Error
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: damian.tometzki at familie-tometzki.de
CC: buildroot at uclibc.org
Target Milestone: ---

Hello,

i got with the actual buildroot git master the following error in step building ninja 1.10:

Make Error at CMakeLists.txt:124 (target_link_libraries):
Target "libninja-re2c" of type OBJECT_LIBRARY may not be linked into another target. One may link only to INTERFACE, STATIC or SHARED libraries, or to executables with the ENABLE_EXPORTS property set.

CMake Error at CMakeLists.txt:124 (target_link_libraries):
Target "libninja" of type OBJECT_LIBRARY may not be linked into another target. One may link only to INTERFACE, STATIC or SHARED libraries, or to executables with the ENABLE_EXPORTS property set.

CMake Error at CMakeLists.txt:124 (target_link_libraries):
Target "libninja-re2c" of type OBJECT_LIBRARY may not be linked into another target. One may link only to INTERFACE, STATIC or SHARED libraries, or to executables with the ENABLE_EXPORTS property set.

Best regards
Damian

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 12546] Ninja 1.10 build Error

https://bugs.busybox.net/show_bug.cgi?id=12546

yegorslists at googlemail.com changed:

What |Removed |Added
----------------------------------------------------------------------------

           Assignee|unassigned at buildroot.uclibc |yegorslists at googlemail.com
                   |.org                        |
             Status|NEW                         |ASSIGNED

--- Comment #1 from yegorslists at googlemail.com ---
There is already a patch in the mailing list [1]. Could you please test it and report your results to the mailing list? Thanks.

[1] http://lists.busybox.net/pipermail/buildroot/2020-February/273355.html

Yegor

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 12546] Ninja 1.10 build Error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12546

--- Comment #2 from damian.tometzki at familie-tometzki.de --- Hello,

it works now but with some warnings:

-- Detecting CXX compile features - done
CMake Warning at CMakeLists.txt:36 (message):
re2c was not found; changes to src/*.in.cc will not affect your build.

-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

BUILD_DOC
BUILD_DOCS
BUILD_EXAMPLE
BUILD_EXAMPLES
BUILD_TEST
BUILD_TESTING
BUILD_TESTS
CMAKE_ASM_COMPILER
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY

-- Build files have been written to:
/data/kernel/buildroot/output/build/host-ninja-1.10.0

Quoted 1 line
Quoted 1 line
Quoted 1 line

host-ninja 1.10.0 Building

PATH="/data/kernel/buildroot/output/host/bin:/data/kernel/buildroot/output/host/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/damian/.local/bin:/home/damian/bin" PKG_CONFIG="/data/kernel/buildroot/output/host/bin/pkg-config"
PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/data/kernel/buildroot/output/host/lib/pkgconfig:/data/kernel/buildroot/output/host/share/pkgconfig"
/usr/bin/make -j3 -C /data/kernel/buildroot/output/build/host-ninja-1.10.0/
Scanning dependencies of target libninja-re2c
Scanning dependencies of target libninja
[ 3%] Built target libninja-re2c
[ 42%] Built target libninja
Scanning dependencies of target hash_collision_bench
Scanning dependencies of target depfile_parser_perftest
Scanning dependencies of target clparser_perftest
[ 45%] Built target hash_collision_bench
[ 49%] Built target clparser_perftest
[ 52%] Built target depfile_parser_perftest
Scanning dependencies of target ninja
Scanning dependencies of target manifest_parser_perftest
Scanning dependencies of target build_log_perftest
[ 59%] Built target manifest_parser_perftest
[ 59%] Built target ninja
[ 63%] Built target build_log_perftest
Scanning dependencies of target ninja_test
Scanning dependencies of target canon_perftest
[ 66%] Built target canon_perftest
[100%] Built target ninja_test

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 12546] Ninja 1.10 build Error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12546

yegorslists at googlemail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2020.02

--- Comment #3 from yegorslists at googlemail.com --- Hallo Damian,

thanks for testing. Could you add your Tested-By tag to my patch e-mail? See
[1] for more information.

The warning are OK. re2c is an optional dependency and "Manually-specified variables" are common BR settings. If they cannot be applied, they are just ignored.

[1] http://nightly.buildroot.org/manual.html#_reviewing_and_testing_patches

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 12546] Ninja 1.10 build Error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=12546

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Peter Korsgaard <[email protected]> --- Fixed in git:
https://git.buildroot.org/buildroot/commit/?id=bb5ffe3c907ac2abc12d2d09d913c2fccaa71330

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.