Aw: Re: Aw: Re: build issue in builddeb (dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev) in 6.12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Gesendet: Mittwoch, 27. November 2024 um 10:10
&gt; Von: "Ron Economos" <re@xxxxxxxx>
&gt; An: "Frank Wunderlich" <frank-w@xxxxxxxxxxxxxxx>, masahiroy@xxxxxxxxxx
&gt; CC: nicolas@xxxxxxxxx, nathan@xxxxxxxxxx, linux-kbuild@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
&gt; Betreff: Re: Aw: Re: build issue in builddeb (dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev) in 6.12
&gt;
&gt; On 11/26/24 09:12, Frank Wunderlich wrote:
&gt; &gt; &gt; Gesendet: Donnerstag, 21. November 2024 um 23:09
&gt; &gt; &gt; Von: "Masahiro Yamada" <masahiroy@xxxxxxxxxx>
&gt; &gt; &gt; An: "Frank Wunderlich" <frank-w@xxxxxxxxxxxxxxx>
&gt; &gt; &gt; CC: re@xxxxxxxx, nicolas@xxxxxxxxx, nathan@xxxxxxxxxx, linux-kbuild@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
&gt; &gt; &gt; Betreff: Re: build issue in builddeb (dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev) in 6.12
&gt; &gt; &gt;
&gt; &gt; &gt; On Fri, Nov 22, 2024 at 2:09 AM Frank Wunderlich
&gt; &gt; &gt; <frank-w@xxxxxxxxxxxxxxx> wrote:
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; Hi,
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; i noticed this issue with debian package build-system in final 6.12.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; LOCALVERSION=-main board=bpi-r2 ARCH=arm CROSS_COMPILE=ccache arm-linux-gnueabihf-
&gt; &gt; &gt; &gt; make[1]: Entering directory '/media/data_ext/git/kernel/build'
&gt; &gt; &gt; &gt;   GEN     debian
&gt; &gt; &gt; &gt; dpkg-buildpackage --build=binary --no-pre-clean --unsigned-changes -R'make -f debian/rules' -j1 -a$(cat debian/arch)
&gt; &gt; &gt; &gt; dpkg-buildpackage: info: source package linux-upstream
&gt; &gt; &gt; &gt; dpkg-buildpackage: info: source version 6.12.0-00061-g837897c10f69-3
&gt; &gt; &gt; &gt; dpkg-buildpackage: info: source distribution noble
&gt; &gt; &gt; &gt; dpkg-buildpackage: info: source changed by frank <frank@frank-u24>
&gt; &gt; &gt; &gt; dpkg-buildpackage: info: host architecture armhf
&gt; &gt; &gt; &gt;  dpkg-source --before-build .
&gt; &gt; &gt; &gt; dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev
&gt; &gt; &gt;
&gt; &gt; &gt; This error message means, you need to install "libssl-dev:armhf"
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; &gt; dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
&gt; &gt; &gt; &gt; dpkg-buildpackage: warning: (Use -d flag to override.)
&gt; &gt; &gt; &gt; make[3]: *** [/media/data_ext/git/kernel/BPI-R2-4.14/scripts/Makefile.package:126: bindeb-pkg] Error 3
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; it was ok in at least rc1 and libssl-dev is installed
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; Presumably, you already installed libssl-dev for your build machine
&gt; &gt; &gt; (i.e. "libssl-dev:amd64" if your build machine is x86_64).
&gt; &gt; &gt;
&gt; &gt; &gt; But, you have not installed "libssl-dev" for the architecture
&gt; &gt; &gt; your are building for (i.e, "libssl-dev:armhf")
&gt; &gt;
&gt; &gt; Hi
&gt; &gt;
&gt; &gt; thank you for answer, why is this lib required for the arch? it makes my pipeline very complex
&gt; &gt; just to add the repos for the arch...seems the lib is not yet used, only checked if installed.
&gt; &gt;
&gt; &gt; looks like ubuntu 24 seems to have changed the sources.list for apt, so there is no single-line to
&gt; &gt; be added
&gt; &gt;
&gt; &gt; this is the default apt-source in ubuntu 24:
&gt; &gt;
&gt; &gt; $ cat /etc/apt/sources.list.d/ubuntu.sources
&gt; &gt; Types: deb
&gt; &gt; URIs: http://de.archive.ubuntu.com/ubuntu/
&gt; &gt; Suites: noble noble-updates noble-backports
&gt; &gt; Components: main restricted universe multiverse
&gt; &gt; Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
&gt; &gt;
&gt; &gt; Types: deb
&gt; &gt; URIs: http://security.ubuntu.com/ubuntu/
&gt; &gt; Suites: noble-security
&gt; &gt; Components: main restricted universe multiverse
&gt; &gt; Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
&gt; &gt;
&gt; &gt; if i just add the arches
&gt; &gt;
&gt; &gt; sudo dpkg --add-architecture armhf
&gt; &gt; sudo dpkg --add-architecture arm64
&gt; &gt;
&gt; &gt; apt seems to add the repos on update, but i still cannot install the packages
&gt; &gt;
&gt; &gt; $ LANG=C sudo apt install libssl-dev:armhf
&gt; &gt; Reading package lists... Done
&gt; &gt; Building dependency tree... Done
&gt; &gt; Reading state information... Done
&gt; &gt; E: Unable to locate package libssl-dev:armhf
&gt; &gt;
&gt; &gt; $ LANG=C sudo apt install libssl-dev:arm64
&gt; &gt; Reading package lists... Done
&gt; &gt; Building dependency tree... Done
&gt; &gt; Reading state information... Done
&gt; &gt; E: Unable to locate package libssl-dev:arm64
&gt; &gt;
&gt; &gt; if i revert the commit below, my build is successful without installing the lib.
&gt; &gt;
&gt; &gt; afaik the -dev are source-packages (headers) which should be architecture independ, or am i missing something?
&gt; &gt;
&gt; &gt; regards Frank
&gt; &gt;
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; basicly i use this command after setting crosscompiler
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; LOCALVERSION="${gitbranch}" board="$board" KDEB_COMPRESS=gzip make bindeb-pkg
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; if i Revert "kbuild: deb-pkg: add pkg.linux-upstream.nokernelheaders build profile"
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; i can compile again..any idea why this happens? my build-system is ubuntu 24.4 and github actions with ubuntu-latest.
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; https://github.com/frank-w/BPI-Router-Linux/actions/runs/11955322294/job/33327423877
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; regards Frank</frank@frank-u24>
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt;
&gt; &gt; &gt; --
&gt; &gt; &gt; Best Regards
&gt; &gt; &gt; Masahiro Yamada
&gt; 
&gt; Here's what worked for me in /etc/apt/sources.list.d/ubuntu.sources for 
&gt; 24.04.
&gt; 
&gt; Types: deb
&gt; URIs: http://ports.ubuntu.com/ubuntu-ports
&gt; Suites: noble noble-updates noble-backports
&gt; Components: main universe restricted multiverse
&gt; Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
&gt; Architectures: riscv64
&gt; 
thx for ubuntu 24 i have it done similar (took the whole day to get both systems to the point apt-sources to be added the right way), had to modify the ubuntu.sources to add the arch for host system (amd64) and add additional file with ports.ubuntu.com for the crosscompile-target (armhf/arm64)

https://github.com/frank-w/BPI-Router-Linux/actions/runs/12047237222/job/33589357798#step:6:1

tried most time to get current ubuntu-latest for github actions running which is still ubuntu-22.04, but ran into installing issues where libssl3 cannot be installed for the desired arch...if i add it manually it depends on libc for the arch and so on...

example for ubuntu-latest / ubuntu-22.04
https://github.com/frank-w/BPI-Router-Linux/actions/runs/12038757178/job/33565113600

https://github.com/frank-w/BPI-Router-Linux/actions/runs/12038757178/workflow#L56

&gt; The library is used here:
&gt; 
&gt; https://github.com/torvalds/linux/blob/master/scripts/sign-file.c#L25
&gt; 
&gt; That file is now cross-compiled.

but why needs signing-file to be crosscompiled? the target files (kernel and maybe the deb-file) have to be crosscompiled, but imho
not tools for signing them. After building kernel for target-arch and creating deb isn't it possible to sign it using a amd64 (host
arch) openssl binary? the openssl-binary does not land on target-platform...only used as part of build-chain, or am i wrong?

btw. not sure why my webmailer creates html-tags in plaintext-mails...have reported it to the vendor, but not got any response yet, so 
sorry for that (have replaced quote-chars manually, hope they stay as single chars and not reconverted to entities).

regards Frank
</frank-w@xxxxxxxxxxxxxxx></frank-w@xxxxxxxxxxxxxxx></masahiroy@xxxxxxxxxx></frank-w@xxxxxxxxxxxxxxx></re@xxxxxxxx>





[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux