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
0answers
9 views

Cross compiling Debian packages to armhf with LLVM and GCC

For my research work, I need to compile different Debian packages for armhf (ARMv7) architecture using GCC and Clang i.e. I need the exact same package to compiled with the two compilers. I had been ...
-10
votes
1answer
63 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 ...
0
votes
0answers
14 views

PulseAudio Cross Compilation for ARM | HSP/HFP Profile not working in Pulse Audio

I wants to cross compile pulseaudio for ARM. Is there any zip files which contains all the lib, headers needed for ARM? Or anyone successfully cross compiled for ARM, can you zip the files in CFLAGS, ...
0
votes
0answers
17 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....
1
vote
1answer
23 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 ...
1
vote
1answer
38 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 ...
0
votes
1answer
63 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 ...
2
votes
0answers
20 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
18 views

obtain dkms compatible kernel sources of cross-compiled kernel

How would one go about obtaining minimal kernel sources (used for dkms) when cross-compiling for arm? The problem is, when I try to build the kernel debian packages using make deb-pkg I get a usable ...
0
votes
0answers
81 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 ...
1
vote
0answers
21 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/...
-1
votes
1answer
54 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 ...
0
votes
2answers
48 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 ...
2
votes
0answers
172 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 ...
0
votes
0answers
58 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 ...
0
votes
0answers
139 views

Cross compiling setup for arm-linux-gnueabihf-gcc

In the ALSA directory that I have cloned, I have executing the following instructions. After making changes to the /alsa-utils/aplay folder, I try and make the directory again to the get new ...
2
votes
0answers
42 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.
1
vote
0answers
157 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 ...
0
votes
0answers
23 views

Alpine package for specific processor

I have an embedded project where I use an alpine based docker image to build binaries for micro controllers. These micro controllers have different architectures as well as processors. E.g. armhf ...
2
votes
0answers
75 views

Is it possible to build Single GCC Executable for armv5, armv6, armv7-{cortex-xx-{A,R,M}},armv8 etc.?

Digging into the sources of GCC I noticed in files gcc/config/arm/t-*, There are multiple arm target options. Reading [GCC internal Manual], These are called Target Makefile Fragments, which will be ...
4
votes
3answers
1k views

What is the correct location for PS1 Shell variable?

I am following Cross-Compiled Linux From Scratch - Embedded .In [3.3. Setting Up the Environment], PS1 is declared in .bash_profile file.Practically it is never come up in Terminal. When i login as ...
1
vote
0answers
433 views

How to solve 'rsync' errors?

I have been trying to cross-compile Raspberry Pi applications from Ubuntu 18.04.3 to the Raspberry Pi 3 with Qt 5.12.5. The guide I used is from here: https://mechatronicsblog.com/cross-compile-and-...
1
vote
1answer
423 views

libtool installed but not found by buildconf

I'm trying to cross-compile Apache httpd for ARM. Here what I did: $ sudo apt install libtool $ git clone https://github.com/apache/httpd.git $ cd httpd $ svn co http://svn.apache.org/repos/asf/apr/...
0
votes
0answers
41 views

Remote debugging using gdbserver

I am troubling for 2 days with gdbserver running on my target. Would appreciate if anyone can point to the right direction. Here is the scenario: I have a Targethost that runs GNU/Linux x86_64 with ...
0
votes
0answers
54 views

Is there a way to cross compile gobject-introspection?

I am trying to cross compile gobject-introspection 1.61.2 with meson build script, but build is always failing. I can make meson use installed g-ir-compiler, g-ir-generate, g-ir-inspect but if I try ...
0
votes
0answers
36 views

how to make build toolchains from debian distro

How can I make building toolchain from old debian distro? I develop the applications on Debian 10. I use arm toolchain (from yocto) to compile applications to the ARM platform. Now I need to compile ...
1
vote
1answer
1k views

GCC cross-compiler can't find header file

A host PC with a pre-built cross toolchain for ARM target. I try to build a project from source, the build process stopped due to an error, when code tried to build pppd-2.4.1 module, here is ...
1
vote
0answers
75 views

How to build LLVM/Clang isolated from the host system?

I'm looking for something like the Linux From Scratch process for GCC, but for LLVM/Clang. Linux From Scratch builds an isolated GCC/binutils toolchain, and because of the rather monolithic nature, `...
0
votes
1answer
193 views

Failed sanity check at LFS 5.7.Glibc-2.29

I want to cross-compile LFS on CentOS v. 7.6.1810 with no sudo rights (I want to customize my environment on server). One problem is that globally a lot of packages are outdated (for instance, python ...
1
vote
1answer
538 views

ARMv7: When throwing exception within library: “terminate called without an active exception”

I am cross compiling with gcc 4.9.2 for armv7hv (gcc-4.9.2_armv7hf_glibc-2.9). Theres a main executable and a library with one exported function Foo(). What I experience is that if I throw an ...
4
votes
1answer
775 views

Compile Chromium Browser for ARM (2019)

I've tried compiling Chromium for arm several times on Ubuntu 18, 16 and 14 but they all have their issues (mostly outdated-non existing packages). Building for amd64 has run perfectly, so I know the ...
3
votes
2answers
942 views

Why does “/proc/config.gz” show wrong configuration?

The file /proc/config.gz isn't updated when I rebuild kernel with changed configuration (from make menuconfig). For instance, I have rebuilt kernel with BLK_DEV_IO_TRACE which works fine but config.gz ...
2
votes
0answers
211 views

USB keyboard not working after building the mainline Linux kernel on a generic Allwinner A23 Chinese tablet

For quite a while I've been trying to install a Debian distribution on my useless cheap tablet PC. After reading the details of building Linux kernel on ARM architecture Manual Build Howto I've found ...
1
vote
0answers
362 views

Linux kernel cross-compile failure at arch/arm64/crypto

I encountered an error while trying to cross-compile Linux kernel v.5.0.0 on Ubuntu 18.04. I tested two different versions of aarch64-linux-gnu-gcc: v7.4.0 and v5.5.0, but both results in the same ...
0
votes
0answers
268 views

Installing GCC 4.7.0 fails at make command

I'm attempting to install GCC 4.7.0 in Linux Mint (based off of Ubuntu 18.04). I get past the first step of configuring it. However when I run make -j5, I get the following errors: make[2]: Leaving ...
0
votes
1answer
224 views

Check which library compiled in linux

I want to compile a C file with gcc, to embedded arm that is running Gnu/Linux . How can I known which function/header files that I need to compile statically, and which dynamically?(I don't want to ...
8
votes
2answers
10k views

How to install cross-compiler on Ubuntu 18.04?

My proc info: lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) ...
2
votes
1answer
5k views

G++/GCC installed but still: error trying to exec 'cc1plus': execvp: No such file or directory

Full error message: arm-linux-gnueabihf-g++: error trying to exec 'cc1plus': execvp: No such file or directory So I have got this error message while trying to build a C++ project on my machine ...
0
votes
0answers
399 views

Syntax error: “(” unexpected when execute a cross compiled PJSIP binary in ARM

I am working on PJSIP on the Cortex A8 ARM processor. I built the executable PJSIP binary using Code Sourcery Cross compiler by following command ./configure --host=arm-elf-linux. Resulting binary ...
0
votes
0answers
311 views

How to compile the libcap for cross-platform

I have a question about the library that I downloaded from the following URL; https://git.kernel.org/pub/scm/linux/kernel/git/morgan/libcap.git/ And that's version is 2.26. I need to compile and run ...
1
vote
1answer
1k views

libzip Linux cross-compile configuration

I am trying to cross compile libzip-1.5.1 having previously successfully complied zlib-1.2.11 (these are required by libzip and I have installed in a local home path), but I am experiencing problems ...
0
votes
1answer
556 views

/bin/sh: xscale_be-gcc: command not found

I'm learning how to build a Linux OS image for my embeded project, And I'm reading 'Embedded Linux Primer'. I tried to compile the kernel for the ARM XScale and got stuck at $ make ARCH=arm ...
1
vote
1answer
290 views

How to build instance of Emacs to run on an x86_64 system different from the one it was built on?

I want to build the latest version of Emacs (from git.sv.gnu.org) for a CentOS system, but the building must be done on a Debian system1. Both systems run on x86_64 architectures. I've seen ...
0
votes
2answers
289 views

Actual compilation differences between CPUs

For a project I intend to compile various *NIX OSs and their relative packages with different CPUs in order to maximize optimization and performance for specific systems. In order to save time and ...
0
votes
0answers
502 views

fail to boot custom build Linux kernel in qemu

I installed MIPS port of Linux on qemu. So I downloaded initrd and vmlinux (kernel 4.9.0) images from http://ftp.debian.org/debian/dists/Debian9.5/main/installer-mips/20170615+deb9u4/images/malta/...
1
vote
0answers
383 views

Compile and install printer driver src.rpm for ARM (Raspberry Pi 3)

I have an Epson Stylus NX420 and a Raspberry Pi 3. I am trying to setup Google Cloud Print Connector in order to use the Pi as a print server. I am following this guide, but for Raspbian Stretch. The ...
12
votes
1answer
24k views

How to install a functional ARM cross-GCC toolchain on Ubuntu 18.04 (Bionic Beaver)

Context I recently installed Ubuntu 18.04, Linux foobar-VirtualBox 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux on a VM. I want to cross-compile ...
1
vote
1answer
498 views

Installing a cross-compiled linux kernel on Pine64(or Raspberry Pi or any other similar Single Board Computer)

I am preparing a new linux kernel for Pine64, because it is slow, I did the cross-compilation on a linux PC. I am looking for a way to run make install && make install modules without copying ...
0
votes
1answer
1k views

(Buildroot) “silentoldconfig” error on compile

I just moved an old buildroot folder from an old VM to a newer one to consolidate. I thought that simply moving the folder, along with any dependent folders, and making the appropriate path/name ...

1
2 3 4 5