Thread (1 message) 1 message, 1 author, 2021-10-18

Re: [Buildroot] [PATCH] package/softhsm2: new package

From: Gilles Talis <hidden>
Date: 2021-10-18 18:07:18

(adding the buildroot mailing list)

Hi Jose,
Please add the buildroot mailing list to your emails so that they can help
if I miss something or if I am not able to answer your questions.

Le lun. 18 oct. 2021 à 16:31, José Pekkarinen [off-list ref]
a écrit :

On Sun, Oct 17, 2021 at 2:14 PM Gilles Talis [off-list ref]
wrote:
quoted
[...]

I would also recommend you run the following utilities to verify that
your patch is correct:
1) check-package (
https://buildroot.org/downloads/manual/manual.html#check-package) to
check the coding style of added files
2) test-pkg (chapter 18.24.3 of the buildroot documentation) to check if
your package can build in various configurations.
Hi,

Do you have any insights how other packages

get around the following error?
quoted
quoted
quoted
softhsm2 2.6.1 Patching libtool
patching file
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/build/softhsm2-2.6.1/ltmain.sh

Hunk #1 succeeded at 2694 (offset 7 lines).
Hunk #2 succeeded at 4284 (offset 7 lines).
Hunk #3 succeeded at 6579 (offset 25 lines).
Hunk #4 succeeded at 6589 (offset 25 lines).
Hunk #5 succeeded at 6882 (offset 25 lines).
Hunk #6 succeeded at 7174 (offset 25 lines).
Hunk #7 succeeded at 8140 (offset 28 lines).
Hunk #8 succeeded at 10769 (offset 59 lines).
(cd /home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/build/softhsm2-2.6.1/
&& rm -rf config.cache &&
PATH="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin:/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin
:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
AR="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-ar"
AS="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-as"
LD="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc
/host/bin/arm-linux-ld"
NM="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-nm"
CC="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gcc"
GCC="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gcc"
CPP="/hom
e/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-cpp"
CXX="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-g++"
FC="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gfortran"
F77="/home/pekkari/br-test-pkg/boot
lin-armv7m-uclibc/host/bin/arm-linux-gfortran"
RANLIB="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-ranlib"
READELF="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-readelf"
STRIP="/home/pekkari/br-test-pkg/bootlin-armv7
m-uclibc/host/bin/arm-linux-strip"
OBJCOPY="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-objcopy"
OBJDUMP="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-objdump"
AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC
_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc"
CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld"
CPPFLAGS_FOR_BUILD="-I/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/include"
CFLAGS_FOR_BUILD="-O2 -I/home/pekkari/br-test-pkg/bootlin-armv7m-u
clibc/host/include" CXXFLAGS_FOR_BUILD="-O2
-I/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/include"
LDFLAGS_FOR_BUILD="-L/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/lib
-Wl,-rpath,/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/lib" FCFLAG
S_FOR_BUILD=""
DEFAULT_ASSEMBLER="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-as"
DEFAULT_LINKER="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-ld"
CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BI
TS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64  -Os -g0   -Wl,-elf2flt -static"
CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 -Os -g0   -Wl,-elf2flt -static  -Wl,-elf2flt -static" LDFLAGS=" -Wl,-elf
2flt -static" FCFLAGS=" -Os -g0  -Wl,-elf2flt -static" FFLAGS=" -Os -g0
 -Wl,-elf2flt -static"
PKG_CONFIG="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/pkg-config"
STAGING_DIR="/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/arm-buildroot-uclin
ux-uclibcgnueabi/sysroot" INTLTOOL_PERL=/usr/bin/perl
ac_cv_lbl_unaligned_fail=yes ac_cv_func_mmap_fixed_mapped=yes
ac_cv_func_memcmp_working=yes ac_cv_have_decl_malloc=yes
gl_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_calloc_0_nonn
ull=yes ac_cv_func_realloc_0_nonnull=yes lt_cv_sys_lib_search_path_spec=""
ac_cv_c_bigendian=no   CONFIG_SITE=/dev/null ./configure
--target=arm-buildroot-uclinux-uclibcgnueabi
--host=arm-buildroot-uclinux-uclibcgnueabi --build=x86_64-pc-linux-gnu
--prefix=/usr
--exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var
--program-prefix="" --disable-gtk-doc --disable-gtk-doc-html --disable-doc
--disable-docs --disable-documentation --with-xmlto=no --with-fop=no
--disable-dependency-tracking --enable-ipv6 --disable-nls
--enable-static --disable-shared )
configure: WARNING: unrecognized options: --disable-gtk-doc,
--disable-gtk-doc-html, --disable-doc, --disable-docs,
--disable-documentation, --with-xmlto, --with-fop, --enable-ipv6,
--disable-nls
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-buildroot-uclinux-uclibcgnueabi-strip...
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-strip
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for arm-buildroot-uclinux-uclibcgnueabi-gcc...
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gcc
accepts -g... yes
checking for
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gcc
option to enable C11 features... none needed
checking whether
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gcc
understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-gcc...
none
checking whether the compiler supports GNU C++... yes
checking whether
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-g++
accepts -g... yes
checking for
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-g++
option to enable C++11 features... none needed
checking dependency style of
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-g++...
none
checking pkg-config is at least version 0.9.0... ./configure: line 5559:
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/pkg-config: No
such file or directory
no
Here you are missing pkg-config on the host, so you need to add a
dependency to host-pkgconf in your mk file

checking whether
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/host/bin/arm-linux-g++
supports C++11 features by default... yes
checking for dlopen... no
checking for dlopen in -ldl... no
checking for LoadLibrary... no
configure: error: No dynamic library loading support
This means that your package needs dynamic library support. Which means
that your package cannot be built statically. Unless there's an option to
build the package statically, you would need to add a "depends on
!BR2_STATIC_LIBS" and the corresponding comment in your Config.in file. You
can find examples in existing buildroot Config.in files.

make[1]: *** [package/pkg-generic.mk:284:
/home/pekkari/br-test-pkg/bootlin-armv7m-uclibc/build/softhsm2-2.6.1/.stamp_configured]
Error 1


Thanks!


José.
thanks
Gilles.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help