* Building x64 kernel on i686 broken in 6.12.
@ 2025-06-20 4:14 David F.
2025-06-20 6:37 ` Sven Joachim
0 siblings, 1 reply; 2+ messages in thread
From: David F. @ 2025-06-20 4:14 UTC (permalink / raw)
To: Linux Kbuild mailing list
I'm resending this since no response. It appears something was
changed to address ARM64 and it broke building x64 on i686 which I've
done for a very long time.
Resending:
I always build both the i686 and x64 kernel on my VM which has changed
through the years from debian (several distros) to now devuan-chimaera
(couple years now). Last build was 6.6.x but now jumping to 6.12.x. I
can build the 686 version however, it won't build the x64 version and
gives me a dependency issue.
At first it was gcc-x86-64-linux-gnu, libssl-dev
I first updated libssl-dev, then the gcc-x86-64-linux-gnu with apt-get install
It now just says it doesn't like libssl-dev but it's installed and up to date.
pkg-architecture: warning: specified GNU system type x86_64-linux-gnu
does not match CC system type i686-linux-gnu, try setting a correct CC
environment variable
dpkg-buildpackage --build=binary --no-pre-clean --unsigned-changes
-R'make -f debian/rules' -j1 -a$(cat debian/arch)
dpkg-buildpackage: info: source package linux-upstream
dpkg-buildpackage: info: source version 6.12.32-amd64-1
dpkg-buildpackage: info: source distribution chimaera
dpkg-buildpackage: info: source changed by root <root@devuan-chimaera.acme.com>
dpkg-architecture: warning: specified GNU system type x86_64-linux-gnu
does not match CC system type i686-linux-gnu, try setting a correct CC
environment variable
dpkg-buildpackage: info: host architecture amd64
dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: libssl-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
make[2]: *** [scripts/Makefile.package:126: bindeb-pkg] Error 3
make[1]: *** [/usr/src/mydisk/kernel/linux-6.12.32-64/Makefile:1566:
bindeb-pkg] Error 2
make: *** [Makefile:224: __sub-make] Error 2
root@devuan-chimaera:/usr/src/mydisk/kernel# apt-get install libssl-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libssl-dev is already the newest version (1.1.1w-0+deb11u3).
The following packages were automatically installed and are no longer required:
libwpe-1.0-1 libwpebackend-fdo-1.0-1 linux-image-5.10.0-16-686
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 298 not upgraded.
HOWEVER, I got the build to start by doing this:
DPKG_FLAGS="-d" make -j$(nproc) ${extraversion} bindeb-pkg
It built everything, stripped/signed all the modules, look like it was
going to finish then bam:
dpkg-deb: building package 'linux-image-6.12.32-amd64-mine' in
'../linux-image-6.12.32-amd64-mine_6.12.32-amd64-1_amd64.deb'.
dpkg-buildpackage: error: make -f debian/rules binary subprocess
returned exit status 2
make[2]: *** [scripts/Makefile.package:126: bindeb-pkg] Error 2
make[1]: *** [/usr/src/mydisk/kernel/linux-6.12.32-64/Makefile:1566:
bindeb-pkg] Error 2
make: *** [Makefile:224: __sub-make] Error 2
So still stuck. Can someone help with what I need to do for it to
build the x64 kernel on i686 linux like i've been doing for over a
decade.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Building x64 kernel on i686 broken in 6.12.
2025-06-20 4:14 Building x64 kernel on i686 broken in 6.12 David F.
@ 2025-06-20 6:37 ` Sven Joachim
0 siblings, 0 replies; 2+ messages in thread
From: Sven Joachim @ 2025-06-20 6:37 UTC (permalink / raw)
To: David F.; +Cc: Linux Kbuild mailing list
On 2025-06-19 21:14 -0700, David F. wrote:
> I'm resending this since no response. It appears something was
> changed to address ARM64 and it broke building x64 on i686 which I've
> done for a very long time.
>
> Resending:
>
>
> I always build both the i686 and x64 kernel on my VM which has changed
> through the years from debian (several distros) to now devuan-chimaera
> (couple years now). Last build was 6.6.x but now jumping to 6.12.x. I
> can build the 686 version however, it won't build the x64 version and
> gives me a dependency issue.
>
> At first it was gcc-x86-64-linux-gnu, libssl-dev
>
> I first updated libssl-dev, then the gcc-x86-64-linux-gnu with apt-get install
>
> It now just says it doesn't like libssl-dev but it's installed and up to date.
You need to install libssl-dev for both the host and the build
architecture, so install libssl-dev:amd64.
Alternatively, if you do not need the linux-headers package, use the
pkg.linux-upstream.nokernelheaders build profile, like so:
$ DEB_BUILD_PROFILES=pkg.linux-upstream.nokernelheaders make [...] bindeb-pkg
See commit e2c318225ac1 ("kbuild: deb-pkg: add
pkg.linux-upstream.nokernelheaders build profile").
Cheers,
Sven
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-20 6:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20 4:14 Building x64 kernel on i686 broken in 6.12 David F.
2025-06-20 6:37 ` Sven Joachim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.