Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot find -lc #13

Open
willvio opened this issue Dec 12, 2023 · 0 comments
Open

cannot find -lc #13

willvio opened this issue Dec 12, 2023 · 0 comments

Comments

@willvio
Copy link

willvio commented Dec 12, 2023

I'm on kirkstone branch of poky and got an error when building my yocto image:
build/tmp/hosttools/ld: cannot find -lc: No such file or directory

my recipe file:

inherit core-image cmake slint
IMAGE_ROOTFS_SIZE ?= "8192"
IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}"

# IMAGE_INSTALL+=" nativesdk-slint-cpp"

local.conf

MACHINE ??= "qemux86-64"
DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    HALT,${TMPDIR},100M,1K \
    HALT,${DL_DIR},100M,1K \
    HALT,${SSTATE_DIR},100M,1K \
    HALT,/tmp,10M,1K"

PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"
RUSTVERSION = "1.71.0"

PREFERRED_VERSION_slint-cpp = "1.3.2"
PREFERRED_VERSION_slint-cpp-native = "1.3.2"

BBLAYERS

BBLAYERS ?= " \
  /home/user/Github/personal/TONE/tone-bsp/poky/meta \
  /home/user/Github/personal/TONE/tone-bsp/poky/meta-poky \
  /home/user/Github/personal/TONE/tone-bsp/poky/meta-yocto-bsp \
  /home/user/Github/personal/TONE/tone-bsp/meta-openembedded/meta-oe \
  /home/user/Github/personal/TONE/tone-bsp/meta-rust \
  /home/user/Github/personal/TONE/tone-bsp/meta-slint \
  /home/user/Github/personal/TONE/tone-bsp/meta-tone \
  "

the complete message:

NOTE: Executing Tasks
ERROR: slint-cpp-native-1.3.2-r0 do_configure: ExecutionError('/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/temp/run.do_configure.582105', 1, None, None)
ERROR: Logfile of failure stored in: /home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/temp/log.do_configure.582105
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/user/Github/personal/TONE/tone-bsp/poky/meta/recipes-devtools/cmake/cmake-native_3.22.3.bb:do_populate_sysroot', '/home/user/Github/personal/TONE/tone-bsp/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/user/Github/personal/TONE/tone-bsp/meta-rust/recipes-devtools/cargo/cargo_1.71.0.bb:do_populate_sysroot', 'virtual:native:/home/user/Github/personal/TONE/tone-bsp/meta-rust/recipes-devtools/rust/rust_1.71.0.bb:do_populate_sysroot', 'virtual:native:/home/user/Github/personal/TONE/tone-bsp/poky/meta/recipes-devtools/ninja/ninja_1.10.2.bb:do_populate_sysroot', 'virtual:native:/home/user/Github/personal/TONE/tone-bsp/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/user/Github/personal/TONE/tone-bsp/poky/meta/recipes-devtools/python/python3_3.10.13.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['cmake-native', 'quilt-native', 'cargo-native', 'rust-native', 'ninja-native', 'pkgconfig-native', 'python3-native', 'rust-llvm-native', 'xz-native', 'libnsl2-native', 'zlib-native', 'gdbm-native', 'bzip2-native', 'libtool-native', 'util-linux-libuuid-native', 'readline-native', 'libffi-native', 'openssl-native', 'libtirpc-native', 'ncurses-native', 'sqlite3-native', 'curl-native', 'zstd-native', 'libssh2-native', 'ca-certificates-native', 're2c-native', 'gettext-minimal-native', 'texinfo-dummy-native', 'perl-native', 'make-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| -- The CXX compiler identification is GNU 11.4.0
| -- Detecting CXX compiler ABI info
| -- Detecting CXX compiler ABI info - done
| -- Check for working CXX compiler: /home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/wrapper/target-rust-cxx - skipped
| -- Detecting CXX compile features
| -- Detecting CXX compile features - done
| -- The C compiler identification is GNU 13.2.0
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - failed
| -- Check for working C compiler: /home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/wrapper/target-rust-cc
| -- Check for working C compiler: /home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/wrapper/target-rust-cc - broken
| CMake Error at /home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
|   The C compiler
|
|     "/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/wrapper/target-rust-cc"
|
|   is not able to compile a simple test program.
|
|   It fails with the following output:
|
|     Change Dir: /home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/build/CMakeFiles/CMakeTmp
|
|     Run Build Command(s):ninja cmTC_d96ec && [1/2] Building C object CMakeFiles/cmTC_d96ec.dir/testCCompiler.c.o
|     [2/2] Linking C executable cmTC_d96ec
|     FAILED: cmTC_d96ec
|     : && /home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/wrapper/target-rust-cc --sysroot=/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot -isystem/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/include -O2 -pipe   -isystem/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/include -L/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/lib                         -L/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/user/Github/personal/TONE/tone-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -L/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/lib                         -L/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/user/Github/personal/TONE/tone-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 CMakeFiles/cmTC_d96ec.dir/testCCompiler.c.o -o cmTC_d96ec   && :
|     /home/user/Github/personal/TONE/tone-bsp/build/tmp/hosttools/ld: cannot find -lc: No such file or directory
|     collect2: error: ld returned 1 exit status
|     ninja: build stopped: subcommand failed.
|
|
|
|
|
|   CMake will not be able to correctly generate this project.
| Call Stack (most recent call first):
|   api/cpp/CMakeLists.txt:7 (project)
|
|
| -- Configuring incomplete, errors occurred!
| See also "/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/build/CMakeFiles/CMakeOutput.log".
| See also "/home/user/Github/personal/TONE/tone-bsp/build/tmp/work/x86_64-linux/slint-cpp-native/1.3.2-r0/build/CMakeFiles/CMakeError.log".
| WARNING: exit code 1 from a shell command.
ERROR: Task (virtual:native:/home/user/Github/personal/TONE/tone-bsp/meta-slint/recipes-slint/slint/slint-cpp_1.3.2.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3694 tasks of which 3693 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  virtual:native:/home/user/Github/personal/TONE/tone-bsp/meta-slint/recipes-slint/slint/slint-cpp_1.3.2.bb:do_configure
Summary: There was 1 ERROR message, returning a non-zero exit code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant