From: Christian Stewart <christian@paral.in>
To: buildroot@busybox.net
Subject: [Buildroot] systemd: build failure against pam on arm
Date: Tue, 26 Dec 2017 21:39:12 -0800 [thread overview]
Message-ID: <87y3loenlr.fsf@paral.in> (raw)
In-Reply-To: <20171227030548.GE27558@waldemar-brodkorb.de>
Hi Waldemar,
Waldemar Brodkorb <wbx@openadk.org> writes:
> To verify my analyzation you can add -L<sysrootpathofyourbr> into:
> systemd/Makefile
> PAM_LIBS =
> -L/home/paralin/buildroot/pi3/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
> -lpam -lpam_misc
>
> Like in KMOD_LIBS. Then just continue the build with make V=1 and
> see if it succeeds.
Did the build, after cleaning, again. After encountering the error, I modified the Makefile as you say:
PAM_LIBS = -L/home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib -lpam -lpam_misc
And tried to continue the build. I got the same error. I also tried
doing a "make clean" inside the systemd build directory and deleting the
build and configure stamps to get it to re-configure after the Makefile
change, that too did not work.
Note that I am using an in-tree build here.
> As systemd is switching completely to meson buildsystem a
> upstreamable patch is not possible.
Hopefully some kind of short-term fix is possible in Buildroot or at
least a patch I can apply locally?
Here is the error in full, note how /lib/libpam.so is listed as an
absolute path:
/bin/sh ./libtool --tag=CC --mode=link /home/paralin/buildroot/output/host/bin/arm-buildroot-linux-gnueabihf-gcc -D__SANE_USERSPACE_TYPES__ -pipe -Wall -Wextra -Wundef -Wlogical-op
-Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration
-Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-str
ings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-alia
sing -fvisibility=hidden -fstack-protector -fstack-protector-strong -fPIE --param=ssp-buffer-size=4 -Werror=shadow -flto -ffunction-sections -fdata-sections -I/home/paralin/Documents/synrobo/skiff/buildroot-wor
k/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/libmount -I/home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/blkid -I/home/paralin/D
ocuments/synrobo/skiff/buildroot-work/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/uuid -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fno-lto -Wl,--gc-sections -Wl,--as
-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -pie -o systemd-analyze src/analyze/systemd_analyze-analyze.o src/analyze/systemd_analyze-analyze-verify.o libcore.la
libtool: link: /home/paralin/buildroot/output/host/bin/arm-buildroot-linux-gnueabihf-gcc -D__SANE_USERSPACE_TYPES__ -pipe -Wall -Wextra -Wundef -Wlogical-op -Wmissing-include-dirs -Wol
d-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations
-Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -
Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fs
tack-protector -fstack-protector-strong -fPIE --param=ssp-buffer-size=4 -Werror=shadow -flto -ffunction-sections -fdata-sections -I/home/paralin/buildroot/output/host/arm-buildroot-lin
ux-gnueabihf/sysroot/usr/include/libmount -I/home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/blkid -I/home/paralin/Documents/synrobo/skiff/buildroo
t-work/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/uuid -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -fno-lto -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined -Wl,-z -
Wl,relro -Wl,-z -Wl,now -pie -o systemd-analyze src/analyze/systemd_analyze-analyze.o src/analyze/systemd_analyze-analyze-verify.o ./.libs/libcore.a /home/paralin/buildroot/output/bui
ld/systemd-234/.libs/libsystemd-shared.so -L/home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib -lcap -lresolv -llz4 /home/paralin/Documents/synrobo/skiff
/buildroot-work/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libgcrypt.so /home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libgpg-error.so
/home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libblkid.so /lib/libpam.so /lib/libpam_misc.so /home/paralin/buildroot/o
utput/build/linux-pam-1.3.0/libpam/.libs/libpam.so -ldl /home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libkmod.so /home/paralin/Documents/synrobo/ski
ff/buildroot-work/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/liblzma.so -lz /home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libmount.so
/home/paralin/buildroot/output/build/util-linux-2.31/.libs/libblkid.so /home/paralin/buildroot/output/build/util-linux-2.31/.libs/libuuid.so -lrt -pthread
-Wl,-rpath -Wl,/home/paralin/buildroot/output/build/systemd-234/.libs -Wl,-rpath -Wl,/home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sys
root/usr/lib -Wl,-rpath -Wl,/home/paralin/buildroot/output/build/linux-pam-1.3.0/libpam/.libs -Wl,-rpath -Wl,/home/paralin/buildroot/output/build/util-linu
x-2.31/.libs -Wl,-rpath -Wl,/lib/systemd -Wl,-rpath -Wl,/home/paralin/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib
/lib/libpam.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:12785: systemd-analyze] Error 1
Thanks,
Christian
next prev parent reply other threads:[~2017-12-27 5:39 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-01 2:29 [Buildroot] systemd: build failure against pam on arm Christian Stewart
2017-06-01 18:36 ` Christian Stewart
2017-06-01 22:03 ` Peter Korsgaard
2017-06-01 23:35 ` Christian Stewart
2017-06-03 2:48 ` Christian Stewart
2017-06-03 10:54 ` Waldemar Brodkorb
2017-12-19 23:26 ` Christian Stewart
2017-12-20 0:31 ` Christian Stewart
2017-12-23 7:25 ` Christian Stewart
2017-12-23 10:06 ` Waldemar Brodkorb
2017-12-23 20:36 ` Christian Stewart
2017-12-24 10:38 ` Waldemar Brodkorb
2017-12-24 12:09 ` Waldemar Brodkorb
2017-12-25 1:35 ` Christian Stewart
2017-12-25 15:13 ` Waldemar Brodkorb
2017-12-26 21:50 ` Christian Stewart
2017-12-27 0:55 ` Christian Stewart
2017-12-27 3:05 ` Waldemar Brodkorb
2017-12-27 5:39 ` Christian Stewart [this message]
2017-12-27 8:05 ` Waldemar Brodkorb
[not found] ` <87o9mkdlf1.fsf@paral.in>
2017-12-28 18:04 ` Waldemar Brodkorb
2017-12-29 19:54 ` Christian Stewart
2018-02-14 2:55 ` Christian Stewart
2018-02-14 4:57 ` Waldemar Brodkorb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y3loenlr.fsf@paral.in \
--to=christian@paral.in \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox