Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

32-bit kernel sources include 64-bit binaries #4321

Open
peabee opened this issue Oct 5, 2024 · 9 comments
Open

32-bit kernel sources include 64-bit binaries #4321

peabee opened this issue Oct 5, 2024 · 9 comments

Comments

@peabee
Copy link
Contributor

peabee commented Oct 5, 2024

An example (there may be others) is:
/kernel-kit/kernel_sources-*/usr/src/linux/scripts/basic/fixdep

Could this be a cross-compiling issue given that Github Actions run on 64-bit hosts?

Where in kernel-kit are these binaries compiled?

@peabee
Copy link
Contributor Author

peabee commented Oct 5, 2024

Other examples are:
/usr/src/linux/scripts/kconfig/conf
/usr/src/linux/scripts/selinux/mdp/mdp

@gyrog
Copy link
Contributor

gyrog commented Oct 6, 2024

And:
/usr/src/linux/scripts/sign-file

@peabee
Copy link
Contributor Author

peabee commented Oct 6, 2024

I see that pi2-build.conf contains:

SET_MAKE_COMMAND="make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-"

Do the *-x86-build.conf need something similar??
e.g.
"make ARCH=i386 CROSS_COMPILE=i686-linux-"

@peabee
Copy link
Contributor Author

peabee commented Oct 6, 2024

and
gcc-i686-linux-gnu
added to

apt-get install -y --no-install-recommends curl wget ca-certificates git file squashfs-tools xz-utils diffutils patch make flex bison python3 bc bzip2 kmod rsync libelf-dev libssl-dev dwarves gcc gcc-multilib jq

@dimkr
Copy link
Contributor

dimkr commented Oct 6, 2024

and gcc-i686-linux-gnu added to

gcc-multilib already depends on it

@peabee
Copy link
Contributor Author

peabee commented Oct 6, 2024

and gcc-i686-linux-gnu added to

gcc-multilib already depends on it

scripts/Kconfig.include:39: C compiler 'i686-linux-gcc' not found
make[1]: *** [scripts/kconfig/Makefile:77: olddefconfig] Error 1
make: *** [Makefile:703: olddefconfig] Error 2
make ARCH=i386 CROSS_COMPILE=i686-linux- oldconfig
scripts/Kconfig.include:39: C compiler 'i686-linux-gcc' not found
make[1]: *** [scripts/kconfig/Makefile:77: oldconfig] Error 1
make: *** [Makefile:703: oldconfig] Error 2
Error: Process completed with exit code 1.

@dimkr
Copy link
Contributor

dimkr commented Oct 6, 2024

Why i686-linux-gcc and not gcc -m32?

@peabee
Copy link
Contributor Author

peabee commented Oct 6, 2024

I can't find what the format should be........

@peabee
Copy link
Contributor Author

peabee commented Oct 11, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants