Questions tagged [cross-compilation]
Questions should concern compiling for a platform different than the one the compiler is running on. Compiling inside a VM does not count unless it's some sort of hybrid setup i.e. the host which is a different platform is involved.
265 questions
0 votes
1 answer
44 views
Cross compile error arm64
I have download the toolchain from here enter link description here Precisely this one arm-gnu-toolchain-14.3.rel1-x86_64-aarch64-none-elf.tar.xz I try a simple .c file vim simple.c #include <stdio....
0 votes
1 answer
79 views
Cross compile for ppc64 kernel, no way to generate Debian package?
I start to cross-compile a kernel for an old ppc64 machine using a fast amd64 machine. I have installed all deps apt -y install bash-completion make build-essential linux-source bc kmod cpio flex ...
0 votes
1 answer
136 views
wrong number of arguments specified for '__deprecated__' attribute
I'm trying to compile newlib 3.0.0 for target m68k-aout I've already got binutils and gcc for the target built I'm building it with gcc-13.3.0, But I'm getting these two errors. newlib-3.0.0/newlib/...
0 votes
0 answers
160 views
apt-get build-dep for cross-architecture builds?
I am struggling with cross compiling certain packages. In my environment i do have already the source Debian package including debian/control. Building nativly for the host architecture (e.g. amd64) ...
2 votes
1 answer
300 views
Linking a 32-bit x86 program on 64-bit x86 Debian
I have an sample application and an make file. main.c file contents #include <stdio.h> /*int mainentry_entry(int argc, char *argv[]) {*/ int main(int argc, char *argv[]) { int i; ...
0 votes
0 answers
520 views
How to cross-compile Linux tools/perf for embedded system?
I am working on an embedded Linux system (kernel-5.19.20) on MIPS, and I want to build tools/perf for my system. I want to have libelf feature enabled when cross compile perf, so I firstly cross-...
1 vote
1 answer
89 views
Pi Zero Cross Compilation Floating Point Specification
I am trying to cross compile a go project (syzkaller) to target a Pi Zero so it can emulate usb devices. The problem is that I have been unable to find information regarding how to specify the proper ...
0 votes
1 answer
970 views
Building GCC 12.2.0 from source for aarch64 target
I've been trying to cross compile the source code to build GCC 12.2.0 for my RaspberryPi 4 B running Ubuntu 22.04. SO far I've tried doing this while configuring the project: ../gcc-12.2.0/configure --...
0 votes
1 answer
231 views
Failed to build GNU toolchain and newlib 4.4 for ARM from scratch in X86 Linux
I am working on an embedded RTOS on ARM, now I am going to build the GNU toolchain for the ARM in my X86 Linux host (ubuntu-20.04), so I did followings by referring to https://gnutoolchains.com/...
0 votes
0 answers
349 views
How to compile this SDL2 sample program?
I tried to build this SDL2 sample program, but failed. I made it with Makefile: CFLAGS = -I/usr/include CC = arm-linux-g++ sdltest: sdl2-test.cpp $(CC) sdl2-test.cpp -L/usr/lib/x86_64-...
2 votes
0 answers
145 views
No such file or directory, but ldd reports all present
I have compiled canboat for PiCore64 from my amd64 workstation using docker and qemu. Specifically this is my build script: #!/bin/sh set -e NAME=canboat cd canboat make all cd .. mkdir -p ./root/...
0 votes
0 answers
544 views
Compile git for /lib/ld-linux-armhf.so.3 from vm that links with /lib/ld-linux-aarch64.so.1 by default
I'm building git from source from a debian 10 vm that has /lib/ld-linux-aarch64.so.1, which ends up linked in the git binary after a basic NO_TCLTK=true make prefix=$(pwd)/2.41.0/arm make all and ~ ...
1 vote
1 answer
2k views
How can I create the kernel headers for ARM on X86?
I have an ARM-based board, which I used with factory kernel (5.10.110). To manually build a kernel module, I needed the kernel-header package. To install this package it was explained in the ...
0 votes
2 answers
1k views
could cross compiling be faster than compiling natively?
I've got an arm-based (arm_v8-64, ubuntu20.04) target machine and an amd-based host machine (x86_64, ubuntu20.04). Since the cpu is much more powerful on the host than on the target, I wonder whether ...
-1 votes
1 answer
166 views
What are the best practices on storing cross-compiled libs? [closed]
I have a project I want to cross compile (as well as native). I've installed my cross compiler under /opt/x-compiler/arm32/ and I also add some dependencies I have under /opt/lib/arm32/. The ...