2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

Cross Compilation ARMHF or Compilation for Android from Debian or Ubuntu package?

I have two options to compile: Cross-compile using an amd64 Ubuntu or Debian system for armhf package compilation. Run an armhf image of Ubuntu or Debian in QEMU. The problem I have is that when ...
user avatar
1 vote
0 answers
45 views

libtool (arm): error: only absolute run-paths are allowed

I am cross-compiling SSSD for ARM architecture.  When I run make, I obtain the following error: arm-xilinx-linux-gnueabi-libtool: error: only absolute run-paths are allowed I configure it as ...
user avatar
0 votes
0 answers
264 views

Cross-compile libgpiod library and use it in my program

I am trying to cross-compile a program with the "gpiod" library. My host pc has Ubuntu 18.04 and the target platform I am cross-compiling for is a Board with IMX8X SOM. I found source code ...
user avatar
0 votes
0 answers
52 views

skipping incompatible -lgpiod

I am trying to compile a code with libgpiod library. I downloaded the last version libgpiod and built it. Everything is looking good so far. But when I want to compile my code -lgpiod flag. aarch64-...
user avatar
1 vote
1 answer
213 views

How can I install multi-architecture packages on RHEL 8

On an x86_64 Ubuntu 20.04 system, after some minor modifications under /etc/apt and running dpkg --add-architecture s390x, I can install the foo-dev:s390x package and the gcc-8-s390x-linux-gnu package ...
user avatar
  • 247
0 votes
0 answers
241 views

Glibc 2.34 cross-compiling issue for aarch64 on x86_64

aarch64-linux-gnueabihf-gcc ../sysdeps/gnu/getutmpx.c -c -std=gnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -...
user avatar
  • 101
0 votes
0 answers
14 views

Manually creating a bootable sdcard after building linux kernel

This is a follow up for the previous question here I managed to get the kernel to build but I am not sure yet if I have done everything correctly I now have a zImage file, modules folder and u-boot....
user avatar
  • 169
0 votes
0 answers
45 views

How do I find out which toolchain to use to compile a linux kernel for an ARM processor?

I am trying to build the linux kernel for an Orange pi 2g-IoT board I am following the instructions in their official manual I have followed all the instructions in page 61 section 5, under Compile ...
user avatar
  • 169
1 vote
0 answers
34 views

.NET 5 issue on "old" arm64 / how to publish for arm64/gcc4.x

Background I'm having more success than expected running binaries from a (relatively simple) C# program on "antiquated" arm and arm64 systems built on linux-x64 and published with RIDs linux-...
user avatar
  • 105
0 votes
0 answers
27 views

Ubuntu can't run on vm-ware after installing local packages

i want to do petalinux cross-compilation at ubuntu on vm-ware and offline. so, i downloaded all needed packages and installed them. and then i tried to restart ubuntu. but, unfortunately, ubuntu not ...
user avatar
0 votes
0 answers
44 views

In ubuntu, when i install some libraries such as autoconf for petalinux cross-compile, following errors appear. how it fix?

i want to compile xilinx project by using petalinux cross-compiler in ubuntu. so, i tried to download and install all needed libraries by using apt download, apt-rdepends and dpkg. download was ...
user avatar
0 votes
1 answer
38 views

Compilation order when cross compiling Linux

I've been following the Linux From Scratch book and just need to fill some gaps in my understanding of cross compiling Linux. Where a toolchain has already been built for the target machine, is the ...
user avatar
  • 101
6 votes
3 answers
2k views

Why is the Canadian Cross used for cross-compilation in Linux From Scratch?

I'm going through the Linux From Scratch 11.0 book. In III. Building the LFS Cross Toolchain and Temporary Tools, ii. Toolchain Technical Notes, there is a bit about Canadian Cross cross-compilation. ...
user avatar
  • 259
0 votes
0 answers
150 views

Kernel LOADADDR for QEMU ‘virt’ generic virtual platform? Not enough space for DTB after kernel/initrd

I am trying to emulate an Arm Cortex A8 processor / Texas Instruments Sitara AM335x processor using QEMU to run the firmware of an embedded device. My first attempt was to cross-compile kernel and ...
user avatar
0 votes
0 answers
563 views

Crosscompile go(lang) app with docker for alpine linux (musl) aarch64 with native libs so CGO enabled

Background I'm writing an open-source GTK go app subsonic API client which: targets on first place mobile friendly Linux like postmarketOS (alpine linux), Mobian (debian) in future will be also ...
user avatar
  • 1
1 vote
0 answers
82 views

Error while loading shared libraries (libandroid.so): internal error

I'm trying to run a sample sensor NDK application in an embedded target with Qualcomm Snapdragon QCS610 running a Linux BSP supplied from the dev board manufacturer. The sensor application depends on ...
user avatar
  • 11
0 votes
1 answer
100 views

emacs ./configure encounters missing function 'tputs' when cross-compiling for arm-linux-gnueabihf

I'm trying to cross compile Emacs for an armv7l system on my main rig through an Arch virtual-box, and so far I've had no issues until the ./configure stage. I've properly set up the build, host, and ...
user avatar
  • 1
0 votes
1 answer
913 views

Where to get linux "5.4.0-77-generic" kernel source?

I have installed ubuntu 20.04 on a qemu arm64 virtual machine. This is based on qemu's arm64 'virt' machine and I added a peripheral in the virtual machine. Now to test device driver, I need to build ...
user avatar
  • 269
0 votes
1 answer
486 views

How do I cross compile the Linux kernel?

I've spent hours, if not days figuring out how to cross compile Linux for AArch64. I'm using Ubuntu in a VM to do this, however all guides I managed to find didn't work completely. Most of them ...
user avatar
0 votes
0 answers
15 views

Raspbian kernel cross compilation with linaro toolchain failing

I want to cross-compile a Raspbian kernel that I downloaded from www.github.com/raspberrypi/linux on my host machine (Linux Mint Cinnamon 64bit). I was executing the following steps: Create folders ...
user avatar
0 votes
0 answers
420 views

How to crosscompile a kernel for raspbian in an arch linux host?

I have a raspberrypi 3B and want to compile and install a new kernel on it, but I only have an arch linux(x86_64) host to compile it on. Following the official documentation I get stuck trying to ...
user avatar
1 vote
1 answer
149 views

LFS GCC-10.2.0 Pass 2 Fails with source-code error in crtstuff.c

When I'm trying to run Chapter 6.18 of the LFS (with systemd) book, make fails because in the file crtstuff.c, line 695, there is an undefined reference to __CTOR_END__. This seems like some sort of g+...
user avatar
1 vote
1 answer
271 views

Why can my statically compiled ARM binary of BusyBox run on my x86_64 PC? [duplicate]

Bit of a strange situation there. I compiled a static executable of BusyBox 1.32.1 for the ARM platform (32-bit) and strangely it runs without problems on both platforms. Look by yourself: root@...
user avatar
0 votes
1 answer
91 views

Linux Kernel custom module build skips module

I'm trying to cross-compile (arm64) a custom module on my linux box. So what I did so far is: install the target Kernel sources install the cross-compiler enable module and build the Kernels with the ...
user avatar
  • 1
1 vote
1 answer
420 views

Cross-compiling Linux kernel fails on bzImage

I want to compile a Linux kernel from scratch for the arm64 (aarch64) platform, used for booting a Raspberry Pi 4. The host is amd64 and is running a Debian-variant (Ubuntu 20.04.1 LTS) I created the ...
user avatar
  • 21
1 vote
0 answers
59 views

what are the leftovers from the previous builds of Qt?

it's been a while that I am trying to cross compile Qt for my Raspberry pi 4 on a lite version of OS (that has no desktop, no x server ..) on my Ubuntu 18.04 I tried many times and I changed the ...
user avatar
  • 111
0 votes
1 answer
49 views

What is convention on where to install cross-platform libraries?

What is the prevailing (or correct) convention on where to install cross-platform libraries? E.g. libfoo.so.1.0.0 compiled for the host might typically be located at /usr/local/lib/. If I also had to ...
user avatar
  • 1,291
0 votes
1 answer
948 views

Building a gcc cross compiler on linux, how do I know which "--target"s are supported and the exact keyword for specifying them?

I'm trying to build gcc compiler to producing executables that are supposed to run on x86-64 machines. I'm actually using existing 64bit gcc compiler on my computer. It is redundant but I'm doing it ...
user avatar
0 votes
0 answers
59 views

Error on building gcc cross compiler toolchain

I'm following this guide to build a linux system for learning experience On the the guide at the section titled GCC (Static), I'm having an error, on running the command ` $ ln -vs libgcc.a `${...
user avatar
0 votes
1 answer
190 views

Which of these commands actually installs gcc?

I'm writing a "custom" Linux system, mainly using this guide. Great guide! But, my problem is, once I boot into my system, I don't have gcc. Now, it's completely possible that I missed a ...
user avatar
  • 367
0 votes
1 answer
2k views

-lcrypt error cross compiling 64 to 32

I am trying to compile dirtycow exploit file which can be found in here. gcc -pthread dirty.c -o dirty -m32 -lcrypt Because my target is 32 bit I compile it with -m32 and -lycrypt to make sure it ...
user avatar
  • 93
1 vote
0 answers
24 views

Ubuntu Core/Debian Compiling for MT2712

I want to build latest kernel of Ubuntu core or Debian for MT2712 but I cannot find any ways to compile the Debian or Ubuntu for this. Is MT2712 supported by Ubuntu or Debian? Can anyone guide me ...
user avatar
  • 11
0 votes
1 answer
455 views

How to compile busybox for cortex-m7 (-march=armv7-m)?

I'm trying to run busybox on my waveshare stm32 development board but my SOC has "armv7-m" architecture not "armv7-a". so I've put the march flag in the menuconfig of busybox (-...
user avatar
0 votes
1 answer
568 views

cannot cross-compile busybox for arm

I've configured my busybox in menuconfig and made it as a static binary (no shared libs) + forced no MMU build. I'm using the prebuilt arm cross compiler and when I enter the below command, it gave me ...
user avatar
0 votes
0 answers
1k views

WARNING: No NSS support for mDNS detected, consider installing nss-mdns!

I have cross compiled avahi-0.8 library for MIPS plateform. I am able to run avahi daemon on consol. but getting below warning : WARNING: No NSS support for mDNS detected, consider installing nss-mdns!...
user avatar
-12 votes
1 answer
131 views

Why do FOSS developers claim cross-platform support when their stuff is frequently broken on Windows in frustrating ways? [closed]

Two examples out of thousands I've countered: Bitcoin Core on Windows has a very annoying glitch which causes a cmd.exe (or similar) window to briefly appear and immediately go away, showing only for ...
user avatar
1 vote
1 answer
271 views

/usr/bin/aarch64-linux-gnu-as: invalid option -- 'B'

I am trying to cross compile this code with aarch64 compiler and I get this error: /usr/bin/aarch64-linux-gnu-as: invalid option -- 'B' make[2]: *** [third_party/boringssl-with-bazel/CMakeFiles/crypto....
user avatar
  • 121
1 vote
1 answer
383 views

compiling old glibc on arm fails with undefined references in nis and nss

It seems to have become a bit complex, so first some background: I need to compile self-contained programs that run on arm systems with glibc versions typically between 2.13 and 2.17. When trying to ...
user avatar
  • 105
1 vote
1 answer
243 views

Crosscompiling for ARM926EJ-s device with hardware float operations support

I need to cross compile c++ code for an embedded device with the specs shown below with hardware float operations support. Cross compiling from Ubuntu 20.04 without hardware float support is easy, i ...
user avatar
  • 143
0 votes
1 answer
799 views

Cannot cross-compile SDL2 with Mingw-w64 on Ubuntu

SDL downloads I am on Ubuntu using WSL2 and I want to create an executable that will run on Windows. Currently I can build executables for linux just fine. I downloaded the SDL MinGw windows ...
user avatar
2 votes
0 answers
111 views

Cross-compiling backports for kernel 3.0

I am trying to compile backports (I have chosen latest [5.6.8-1] release) for an i.MX35 (armv6) Embedded Linux system with the provided toolchain (arm-fsl-gnueabi-gcc 4.6.2, a different compiler is ...
user avatar
  • 121
0 votes
1 answer
763 views

How to set compiler specific standard headers #include paths?

What is a smart way to tell two compilers to look for their #include headers? Running on a standard Linux 86x64 system, my standard compiler is gcc (currently v9.3). Now I'd like to compile some ...
user avatar
1 vote
0 answers
912 views

Cross-Compilation using kernel headers

I coded a kernel module for my RaspberryPi. However, I need to cross-compile the module on my Ubuntu Development machine. I already downloaded the correct kernel-headers on my RaspberryPi and pushed ...
user avatar
  • 11
1 vote
0 answers
27 views

Cross-installing a package for a different distribution

I have a piece of (ARM64) hardware running a linux kernel and I'd like to put the aplay utility on it to test audio. The hardware does not have a network connection, and is not running the same kernel/...
user avatar
-1 votes
1 answer
439 views

Building Kernel Image for Embedded Linux Platform

I am interested in compiling a linux image for Ingenic SoC based platform. The vendor vaguely provided instruction on how to compile the linux kernel for the target SoC. So based on vendor ...
user avatar
0 votes
2 answers
98 views

Compile NCFTP for 32 bit target

System details- Linux Kernel Release(2.6.18-164.el5), Machine Hardware Architecture(i686) I have to compile ncftp client source code on 64 bit architecture to create 32 bit binaries. I don't have ...
user avatar
2 votes
0 answers
256 views

Native vs Cross Compile? Porting X86 for ARM Target Platform [closed]

Onlyoffice Document Server is supported and compiled for Intel platforms. Compile instructions and system requirements. This posting indicates that it is possible to compile for ARM platforms: I ...
user avatar
  • 1,104
0 votes
0 answers
115 views

Predicting if an Application will NOT compile

Onlyoffice is supported and compilable on Intel platforms. Compile instructions and system requirements. This posting indicates that it is possible to compile for ARM platforms: I have ...
user avatar
  • 1,104
2 votes
0 answers
98 views

How to cross-compile the criu for arm64( Raspberry pi ) ? from: https://criu.org/ARM_crosscompile

I tried the commands from: https://criu.org/ARM_crosscompile site, but it doesn't seem to work.
user avatar
  • 21
1 vote
0 answers
406 views

Compile Linux kernel module without .config

I have an embedded Linux device based on BusyBox which doesn't ship with WiFi drivers. I'd like to make WiFi work by compiling the rtl8192cu driver for it (for the wifi usb dongle I have). The device ...
user avatar
  • 119

1
2 3 4 5