conan-center-index: [question] libsystemd/251.4: Fails when building for ARM platform

What is your question?

Building libsystemd for arch=ARM fails due to missing libcrypt. This line in the meson build.

Is this expected (e.g. because libcrypt is a system lib)?

This can be fixed in my environment by installing the debian package libcrypt1 but I’m interested whether this can/should be handled via conan.

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20 (16 by maintainers)

Most upvoted comments

@uilianries Sure.

$ conan install . -pr:h $file_path -pr:b default --build missing -s build_type=Release

Configuration (profile_host):

[settings]

arch=armv8

build_type=Release

compiler=gcc

compiler.libcxx=libstdc++11

compiler.version=10.2

os=Linux

[options]

[build_requires]

[env]

CC=/usr/bin/aarch64-linux-gnu-gcc

CONAN_CMAKE_TOOLCHAIN_FILE=/workspaces/[…]/toolchain-aarch64.cmake

CXX=/usr/bin/aarch64-linux-gnu-g++

QEMU_LD_PREFIX=/usr/aarch64-linux-gnu

Configuration (profile_build):

[settings]

arch=x86_64

arch_build=x86_64

build_type=Release

compiler=gcc

compiler.libcxx=libstdc++11

compiler.version=10

os=Linux

os_build=Linux

[options]

[build_requires]

[env]

 

libsystemd/251.4: Not found in local cache, looking in remotes...

libsystemd/251.4: Trying with 'conan-dev-local'...

libsystemd/251.4: Trying with 'conancenter'...

Downloading conanmanifest.txt completed [0.87k]                                         

Downloading conanfile.py completed [8.35k]                                              

Downloading conan_export.tgz completed [0.49k]                                          

Decompressing conan_export.tgz completed [0.00k]                                         

libsystemd/251.4: Downloaded recipe revision 0

conanfile.py (...-logging/0.11.0-alpha+local.0): Installing package

Requirements

    bzip2/1.0.8 from 'conancenter' - Cache

    libbsd/0.10.0 from 'conancenter' - Cache

    libcap/2.65 from 'conancenter' - Cache

    libmount/2.36.2 from 'conancenter' - Cache

    libselinux/3.3 from 'conancenter' - Cache

    libsystemd/251.4 from 'conancenter' - Downloaded

    lz4/1.9.3 from 'conancenter' - Cache

    pcre2/10.40 from 'conancenter' - Cache

    xz_utils/5.2.5 from 'conancenter' - Cache

    zlib/1.2.13 from 'conancenter' - Cache

    zstd/1.5.2 from 'conancenter' - Cache

Python requires

    [conan-base/1.1.0@linux/master](mailto:conan-base/1.1.0@linux/master)

Packages

    bzip2/1.0.8:1cd6b6922a7618b223f2046b88b41a261051313e - Cache

    libbsd/0.10.0:c67fa359d5ede83f0dfcd7cc4c2d2fadd80a5243 - Cache

    libcap/2.65:c67fa359d5ede83f0dfcd7cc4c2d2fadd80a5243 - Cache

    libmount/2.36.2:c67fa359d5ede83f0dfcd7cc4c2d2fadd80a5243 - Cache

    libselinux/3.3:757b23b6ee7da8cbeee79ae38bb9d494a2b7e716 - Cache

    libsystemd/251.4:d69332935ddaa7cd9ea5881c5a9143e290386c71 - Build

    lz4/1.9.3:c67fa359d5ede83f0dfcd7cc4c2d2fadd80a5243 - Cache

    pcre2/10.40:c5f3b6ce9b695a58630185e57c690ff035beee83 - Cache

    xz_utils/5.2.5:c67fa359d5ede83f0dfcd7cc4c2d2fadd80a5243 - Cache

    zlib/1.2.13:c67fa359d5ede83f0dfcd7cc4c2d2fadd80a5243 - Cache

    zstd/1.5.2:42b29be7513b3a4e5073b2ac2b3d3af2b8d696be - Cache

Build requirements

    gperf/3.1 from 'conancenter' - Cache

    [gtest/1.12.1@linux/master](mailto:gtest/1.12.1@linux/master) from 'conan-dev-local' - Cache

    m4/1.4.19 from 'conancenter' - Cache

    meson/0.63.1 from 'conancenter' - Cache

    ninja/1.11.1 from 'conancenter' - Cache

    pkgconf/1.7.4 from 'conancenter' - Cache

Build requirements packages

    gperf/3.1:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache

    [gtest/1.12.1@linux/master:c881c68139832c5e614ad1a808edb6931713f530](mailto:gtest/1.12.1@linux/master:c881c68139832c5e614ad1a808edb6931713f530) - Cache

    m4/1.4.19:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache

    meson/0.63.1:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

    ninja/1.11.1:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache

    pkgconf/1.7.4:24647d9fe8ec489125dfbae4b3ebefaf7581674c - Cache

 

Cross-build from 'Linux:x86_64' to 'Linux:armv8'

Installing (downloading, building) binaries...

bzip2/1.0.8: Already installed!

gperf/3.1: Already installed!

gperf/3.1: Appending PATH environment variable: /home/user/.conan/data/gperf/3.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin

[gtest/1.12.1@linux/master](mailto:gtest/1.12.1@linux/master): Already installed!

libbsd/0.10.0: Already installed!

libcap/2.65: Already installed!

libmount/2.36.2: Already installed!

lz4/1.9.3: Already installed!

m4/1.4.19: Already installed!

m4/1.4.19: Appending PATH environment variable: /home/user/.conan/data/m4/1.4.19/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin

ninja/1.11.1: Already installed!

pkgconf/1.7.4: Already installed!

pkgconf/1.7.4: Appending PATH env var: /home/user/.conan/data/pkgconf/1.7.4/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin

pkgconf/1.7.4: Setting PKG_CONFIG env var: /home/user/.conan/data/pkgconf/1.7.4/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/pkgconf

pkgconf/1.7.4: Appending AUTOMAKE_CONAN_INCLUDES env var: /home/user/.conan/data/pkgconf/1.7.4/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/aclocal

xz_utils/5.2.5: Already installed!

zlib/1.2.13: Already installed!

zstd/1.5.2: Already installed!

meson/0.63.1: Already installed!

pcre2/10.40: Already installed!

pcre2/10.40: Appending PATH environment variable: /home/user/.conan/data/pcre2/10.40/_/_/package/c5f3b6ce9b695a58630185e57c690ff035beee83/bin

libselinux/3.3: Already installed!

libsystemd/251.4: Applying build-requirement: meson/0.63.1

libsystemd/251.4: Applying build-requirement: m4/1.4.19

libsystemd/251.4: Applying build-requirement: gperf/3.1

libsystemd/251.4: Applying build-requirement: pkgconf/1.7.4

libsystemd/251.4: Applying build-requirement: ninja/1.11.1

Downloading conan_sources.tgz completed [5.65k]                                         

Decompressing conan_sources.tgz completed [0.00k]                                       

libsystemd/251.4: Configuring sources in /home/user/.conan/data/libsystemd/251.4/_/_/source/source

Downloading v251.4.tar.gz completed [11172.07k]                                          libsystemd/251.4: :

libsystemd/251.4:

libsystemd/251.4: Copying sources to build folder

libsystemd/251.4: Building your package in /home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71

libsystemd/251.4: Generator 'VirtualBuildEnv' calling 'generate()'

libsystemd/251.4: Generator 'PkgConfigDeps' calling 'generate()'

libsystemd/251.4: Calling generate()

libsystemd/251.4: Aggregating env generators

libsystemd/251.4: Calling build()

libsystemd/251.4: Apply patch (conan): allow to use meson.build with older versions of Python by replacing utf8 message to ascii message in the helper script

libsystemd/251.4: Apply patch (conan): allow to build in environments without 'realpath --relative-to' by replacing it with conan-specific build variable

libsystemd/251.4: Meson configure cmd: meson setup --cross-file "/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/build-release/conan/conan_meson_cross.ini" "/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/build-release" "/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/source" -Dprefix="/home/user/.conan/data/libsystemd/251.4/_/_/package/d69332935ddaa7cd9ea5881c5a9143e290386c71"

The Meson build system

Version: 0.63.1

Source dir: /home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/source

Build dir: /home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/build-release

Build type: cross build

Project name: systemd

Project version: 251

C compiler for the host machine: /usr/bin/aarch64-linux-gnu-gcc (gcc 10.2.1 "aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110")

C linker for the host machine: /usr/bin/aarch64-linux-gnu-gcc ld.bfd 2.35.2

C compiler for the build machine: cc (gcc 10.2.1 "cc (Debian 10.2.1-6) 10.2.1 20210110")

C linker for the build machine: cc ld.bfd 2.35.2

Build machine cpu family: x86_64

Build machine cpu: x86_64

Host machine cpu family: aarch64

Host machine cpu: armv8

Target machine cpu family: aarch64

Target machine cpu: armv8

Program tools/add-git-hook.sh found: YES (/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/source/tools/add-git-hook.sh)

../source/meson.build:79: WARNING:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

 

                    split-usr mode is going to be removed

 

 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Program tools/meson-build.sh found: YES (/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/source/tools/meson-build.sh)

C++ compiler for the build machine: c++ (gcc 10.2.1 "c++ (Debian 10.2.1-6) 10.2.1 20210110")

C++ linker for the build machine: c++ ld.bfd 2.35.2

C++ compiler for the host machine: /usr/bin/aarch64-linux-gnu-g++ (gcc 10.2.1 "aarch64-linux-gnu-g++ (Debian 10.2.1-6) 10.2.1 20210110")

C++ linker for the host machine: /usr/bin/aarch64-linux-gnu-g++ ld.bfd 2.35.2

Compiler for C supports arguments -Wno-format-signedness: YES

Compiler for C supports arguments -Wno-missing-field-initializers: YES

Compiler for C supports arguments -Wno-unused-parameter: YES

Compiler for C supports arguments -Wdate-time: YES

Compiler for C supports arguments -Wendif-labels: YES

Compiler for C supports arguments -Werror=format=2: YES

Compiler for C supports arguments -Werror=implicit-function-declaration: YES

Compiler for C supports arguments -Werror=incompatible-pointer-types: YES

Compiler for C supports arguments -Werror=int-conversion: YES

Compiler for C supports arguments -Werror=overflow: YES

Compiler for C supports arguments -Werror=override-init: YES

Compiler for C supports arguments -Werror=return-type: YES

Compiler for C supports arguments -Werror=shift-count-overflow: YES

Compiler for C supports arguments -Werror=shift-overflow=2: YES

Compiler for C supports arguments -Werror=undef: YES

Compiler for C supports arguments -Wfloat-equal: YES

Compiler for C supports arguments -Wimplicit-fallthrough=5: YES

Compiler for C supports arguments -Winit-self: YES

Compiler for C supports arguments -Wlogical-op: YES

Compiler for C supports arguments -Wmissing-include-dirs: YES

Compiler for C supports arguments -Wmissing-noreturn: YES

Compiler for C supports arguments -Wnested-externs: YES

Compiler for C supports arguments -Wold-style-definition: YES

Compiler for C supports arguments -Wpointer-arith: YES

Compiler for C supports arguments -Wredundant-decls: YES

Compiler for C supports arguments -Wshadow: YES

Compiler for C supports arguments -Wstrict-aliasing=2: YES

Compiler for C supports arguments -Wstrict-prototypes: YES

Compiler for C supports arguments -Wsuggest-attribute=noreturn: YES

Compiler for C supports arguments -Wunused-function: YES

Compiler for C supports arguments -Wwrite-strings: YES

Compiler for C supports arguments -Wno-error=#warnings: NO

Compiler for C supports arguments -Wno-string-plus-int: NO

Compiler for C supports arguments -Wno-maybe-uninitialized: YES

Compiler for C supports arguments -Wno-unused-result: YES

Compiler for C supports arguments -Werror=missing-declarations: YES

Compiler for C supports arguments -Werror=missing-prototypes: YES

Compiler for C supports arguments -fdiagnostics-show-option: YES

Compiler for C supports arguments -fno-common: YES

Compiler for C supports arguments -fno-strict-aliasing: YES

Compiler for C supports arguments -fstack-protector: YES

Compiler for C supports arguments -fstack-protector-strong: YES

Compiler for C supports arguments -fvisibility=hidden: YES

Compiler for C supports arguments --param=ssp-buffer-size=4: YES

Compiler for C supports arguments -ffunction-sections: YES

Compiler for C supports arguments -fdata-sections: YES

Compiler for C supports link arguments -Wl,--fatal-warnings: YES

Compiler for C supports link arguments -Wl,-z,now: YES

Compiler for C supports link arguments -Wl,-z,relro: YES

Compiler for C supports link arguments -fstack-protector: YES

Compiler for C supports link arguments -Wl,--warn-common: YES

Compiler for C supports link arguments -Wl,--gc-sections: YES

Compiler for C supports arguments -Wzero-length-bounds: YES

Checking if "-Werror=shadow with local shadowing" compiles: YES

Compiler for C++ supports arguments -Wno-format-signedness: YES

Compiler for C++ supports arguments -Wno-missing-field-initializers: YES

Compiler for C++ supports arguments -Wno-unused-parameter: YES

Compiler for C supports arguments -Wstringop-truncation: YES

Checking for size of "dev_t" : 8

Checking for size of "ino_t" : 8

Checking for size of "time_t" : 8

Checking for size of "rlim_t" : 8

Checking for size of "typeof(((struct timex *)0)->freq)" : 8

Checking for size of "char16_t" : 2

Checking for size of "char32_t" : 4

Checking for size of "struct mount_attr" : -1

Checking for size of "struct mount_attr" : -1

Checking for size of "struct statx" : 256

Checking for function "secure_getenv" : YES

Checking for function "__secure_getenv" : NO

Checking for function "memfd_create" : YES

Checking for function "gettid" : YES

Checking for function "pivot_root" : NO

Checking for function "ioprio_get" : NO

Checking for function "ioprio_set" : NO

Checking for function "name_to_handle_at" : YES

Checking for function "setns" : YES

Checking for function "renameat2" : YES

Checking for function "kcmp" : NO

Checking for function "keyctl" : NO

Checking for function "copy_file_range" : YES

Checking for function "bpf" : NO

Checking for function "statx" : YES

Checking for function "explicit_bzero" : YES

Checking for function "reallocarray" : YES

Checking for function "set_mempolicy" : NO

Checking for function "get_mempolicy" : NO

Checking for function "pidfd_send_signal" : NO

Checking for function "pidfd_open" : NO

Checking for function "rt_sigqueueinfo" : NO

Checking for function "mallinfo" : YES

Checking for function "mallinfo2" : NO

Checking for function "execveat" : NO

Checking for function "close_range" : NO

Checking for function "epoll_pwait2" : NO

Checking for function "mount_setattr" : NO

Checking for function "move_mount" : NO

Checking for function "open_tree" : NO

Checking for function "getdents64" : YES

Checking for function "getrandom" : YES

Program sh found: YES (/bin/sh)

Program echo found: YES (/bin/echo)

Program sed found: YES (/bin/sed)

Program awk found: YES (/usr/bin/awk)

Program stat found: YES (/usr/bin/stat)

Program ln found: YES (/bin/ln)

Program git found: YES (/usr/bin/git)

Program env found: YES (/usr/bin/env)

Program perl found: YES (/usr/bin/perl)

Program rsync found: YES (/usr/bin/rsync)

Program quotaon /usr/sbin/quotaon /sbin/quotaon found: NO

Program quotacheck /usr/sbin/quotacheck /sbin/quotacheck found: NO

Program kmod /usr/sbin/kmod /sbin/kmod found: NO

Program kexec /usr/sbin/kexec /sbin/kexec found: NO

Program sulogin found: YES (/sbin/sulogin)

Program mount found: YES (/bin/mount)

Program umount found: YES (/bin/umount)

Program loadkeys /usr/sbin/loadkeys /sbin/loadkeys found: NO

Program setfont /usr/sbin/setfont /sbin/setfont found: NO

Program nologin found: YES (/usr/sbin/nologin)

Program python3 found: YES (/usr/bin/python3)

Program gperf found: YES (/home/user/.conan/data/gperf/3.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/bin/gperf)

Message: gperf len type is size_t

Has header "sys/capability.h" : YES

Has header "crypt.h" : YES

Has header "linux/memfd.h" : YES

Has header "linux/vm_sockets.h" : YES

Has header "sys/auxv.h" : YES

Has header "valgrind/memcheck.h" : NO

Has header "valgrind/valgrind.h" : NO

Has header "linux/time_types.h" : YES

Has header "sys/sdt.h" : NO

Run-time dependency threads found: YES

Library rt found: YES

Library m found: YES

Library dl found: YES

 

../source/meson.build:991:0: ERROR: C shared or static library 'crypt' not found

 

A full log can be found at /home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/build-release/meson-logs/meson-log.txt

libsystemd/251.4:

libsystemd/251.4: ERROR: Package 'd69332935ddaa7cd9ea5881c5a9143e290386c71' build failed

libsystemd/251.4: WARN: Build folder /home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/build-release

ERROR: libsystemd/251.4: Error in build() method, line 164

        meson.configure()

        ConanException: Error 1 while executing meson setup --cross-file "/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/build-release/conan/conan_meson_cross.ini" "/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/build-release" "/home/user/.conan/data/libsystemd/251.4/_/_/build/d69332935ddaa7cd9ea5881c5a9143e290386c71/source" -Dprefix="/home/user/.conan/data/libsystemd/251.4/_/_/package/d69332935ddaa7cd9ea5881c5a9143e290386c71"