Questions tagged [cross-compilation]

Questions about cross compilation - creating executable code for a platform different than the one on which compiler is running.

Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

Cross compiling for arm64 on amd64 architecture

I trying compiling rpi-imager for arm64 and I have a problem. dpkg --add-architecture arm64 apt update Status of 'apt update' is OK, because I edited sources.list, where I'm changing from archive....
user avatar
  • 11
2 votes
0 answers
817 views

how to install libpython3.6m.so.1.0 on ubuntu 20.04?

I tried updating my cross tools for arm64 on my x86-64 ubuntu 20.04 machine. The installed cross tools gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf from arm. When I run the aarch64-none-elf-gdb, it ...
user avatar
  • 1,277
0 votes
1 answer
59 views

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

I have two options to compile, Option1: Cross-compile using a x86_x64 ubuntu or debian system for armhf package compilation, Option2 Image of ubuntu or debian armhf in Qemu. The problem I have is that ...
user avatar
1 vote
0 answers
110 views

Cross Compile QEMU from Ubuntu to Windows 10

For several days I have been stuck trying to cross compile QEMU for windows 10 x64. I am not familiar with minwg at all. I read a lot of pages but most of time it seems to be to old or or to not use ...
user avatar
  • 11
0 votes
0 answers
56 views

not able to cross compile openvpn in arm64 docker container in ubuntu 20.04 focal distribution

Able to enter arm64 enviorntment by "docker run --rm -it arm64v8/ubuntu" in ubuntu Ubuntu 20.04.4 LTS focal distribution git clone https://github.com/mattock/sbuild_wrapper.git added arm64 ...
user avatar
0 votes
0 answers
86 views

GCC cross compiler - what are the "none", "elf", and how to know which version to download?

I usually get lost when I need to download a cross-compiler. I know it might be a broad subject, but I'd appreciate a few guidelines/tools so I know what I'm doing instead of guessing and hoping for ...
user avatar
  • 27
2 votes
0 answers
123 views

gcc-multilib-arm-linux-gnueabihf used to install on disco, missing on impish

I have a Dockerfile to build a cross compiling environment for Rust. In the past I have only support musl builds for static executables. When I upgraded from disco to impish I am missing the important ...
user avatar
  • 121
0 votes
1 answer
283 views

Why is there no cross-compiler in Arm64 version of Ubuntu?

In the Amd64 version of Ubuntu, there's the gcc-{version}-{architecture}-linux-gnu packages that I can use to build binaries for different architectures, of which, the built binaries can be tested ...
user avatar
  • 117
2 votes
0 answers
325 views

How to build gcc-mips-linux-gnu from source

I've been using the gcc-mips-linux-gnu package, and now I want to make a small modification to the compiler. How can I build the exact same package locally? I already tried using apt-get source based ...
user avatar
  • 121
0 votes
0 answers
82 views

How to install libweston-8-0 weston and libweston-8-dev and keep the arm64 packages?

This has got to be a packaging bug. I'm using Ubuntu 20.04 LTS in a VM under Oracle VirtualBox I am multi-arch and can successfully cross compile X11 applications for an ARM64 target. Wanted to be ...
user avatar
0 votes
0 answers
106 views

Trying to recompile kernel in order to enable rfcomm support

I'm trying to recompile the android_kernel_oneplus_msm8998 in order to enable RFCOMM support. I have followed the following instructions: https://github.com/offensive-security/kali-nethunter/wiki/...
user avatar
  • 1
2 votes
0 answers
74 views

Compiling ARMv7A (AArch32) code on an ARMv8A (AArch64) machine?

I've read in many places that ARMv8A supports backwards compatible ARMv7A code (the former is now called AArch64 and the later is now called AArch32). I'm running an ARMv8A machine (on the Raspberry ...
user avatar
1 vote
0 answers
42 views

Why can't I install coreutils:armhf alongside coreutils

I am trying to install coreutils:armhf on my machine I am cross compiling for armhf architecture. When I execute sudo apt-get install coreutils:armhf Ubuntu tells me WARNING: The following essential ...
user avatar
  • 111
1 vote
1 answer
258 views

Cannot find gtk3 packages for mingw64

I was trying to cross compile a Gtk-rs application for windows but the linker complains that it cannot find some gtk libraries. Note that the same application will run when compiled for native linux: ...
user avatar
1 vote
2 answers
158 views

Why can't I install two architecture versions of libi2c-dev?

I am running Ubuntu 20.04 on a 64bit ARM architecture. I am trying to build some code which links libi2c (-li2c). However I want to be able to build both as local architecture and also cross compile ...
user avatar
0 votes
0 answers
188 views

Ubuntu 18.04: error while loading shared libraries: libstdc++.so.6 during cross platform compilation

I'm experience very strange error on Ubuntu 18.04 while doing cross compilation: "arm-hisiv400-linux-gnueabi-g++: error while loading shared libraries: libstdc++.so.6: cannot open shared object ...
user avatar
1 vote
1 answer
201 views

add the line with xenial-updates

This is a follow up question on Cross-compile for armhf and install a static library In the accepted answer following is mentioned at the end, Clarification: Multiarch packages need to be installed ...
user avatar
  • 11
0 votes
0 answers
5k views

Installing anydesk armhf on 20.10 arm64 machine

am trying to install any desk:arm-hf in Ubuntu 20.10 arm64 machine. because of cross platform I used dpkg for installation. > > pi@pi-desktop:~/Downloads$ sudo dpkg --force architecture -i ...
user avatar
1 vote
0 answers
480 views

arm64 packages not installed into arm64 sysroot, so CMake doesn't find them

I need to cross compile an application, using CMake. I install the toolchain packages and the arm64 versions of my dependencies. Looks like the sysroot is in /usr/aarch64-linux-gnu, which contains ...
user avatar
  • 21
0 votes
1 answer
2k views

GCC Issue with Building an Old Linux Kernel

I am trying to build from source version 2.6.37 of the Linux Kernel compiled for ARM. The reason I need to do so is related to work; I need that specific version. I am able to build the most recent ...
user avatar
1 vote
0 answers
1k views

undefined reference to `log@GLIBC_2.29' collect2: error: ld returned 1 exit status

cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS" aarch64-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=aarch64-...
user avatar
  • 11
0 votes
1 answer
512 views

How to install libseccomp-dev for different CPU arch

I am trying to install libseccomp-dev:armhf (and arm64) on Ubuntu bionic (same on Xenial). I'm doing this because I would like to cross compile something that depends on libseccomp-dev. This works ...
user avatar
  • 101
0 votes
0 answers
918 views

Cross compile C++ application for ARM64 with openSSL libraries

I made an application in C++ for x86_64 and it works fine on Ubuntu. Now I want to run the same application on arm64 board running Ubuntu. For this I downloaded a cross-compilation tool chain from ...
user avatar
  • 36
5 votes
1 answer
2k views

How to set the CC environmental variable during debian cross packing

I'm trying to build a debian package for an ARM64 platform on my AMD64 Ubuntu OS. I execute the command debuild -us -uc --host-arch arm64 but get the warning dpkg-architecture: warning: specified ...
user avatar
4 votes
1 answer
4k views

Cross-compiler path

I have some compilers for different architectures: $ > whereis gcc gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz $ > whereis arm-linux-gnueabi-gcc arm-linux-gnueabi-gcc: /usr/bin/...
user avatar
1 vote
0 answers
346 views

Qt 4.8.7 - Cross compilation error - symbol lookup error: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent

I have cross compiled executable file from QT 4.8.7 and i am running it on Raspberry PI(Ubuntu OS installed in it) which have installed QT 4.8.7 and QT declarative module also. When i run the cross ...
user avatar
  • 95
1 vote
1 answer
1k views

ARM cross compiler - arm-linux-gnueabihf error. liblto_plugin.so not found

I am trying to make a linux kernel - 4.15.17. It is a project I have inherited, and it appears to use the arm-linux-gnueabihf-gcc compiler. Below is the output from the make process: ndu@ndu-...
user avatar
0 votes
1 answer
1k views

How to install a package of another architecture

I want to cross compile from my Intel i7 for a Raspberry Pi4. Now I added the following to my sources.list: deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic main restricted which seems ...
user avatar
1 vote
1 answer
8k views

How to switch the version of arm-linux-gnueabihf-gcc?

I would like to use version 5 of arm-linux-gnueabihf-gcc. So I installed it via: apt-get install gcc-5-arm-linux-gnueabihf But now when I do gcc --version it will tell me it's version 7. How do ...
user avatar
12 votes
1 answer
6k views

How do I create a DMG file on linux Ubuntu for MacOS

I cross compiled a program on linux for MacOS and now I want that MacOS binary to convert to DMG file for MacOS. Is there a way to convert a MacOS binary on Linux (Ubuntu) into DMG file for MacOS?
user avatar
0 votes
0 answers
1k views

libc.so.6: cannot open shared object file: No such file or directory

I want to cross compile the C code from Linux Ubuntu PC to Beagle Bone Black using "arm-cortexa8-linux-gnueabihf-gcc compiler. But I face following error: root@ubuntu:/home/teqlinux/HMI_SCADA/...
user avatar
5 votes
1 answer
6k views

Cross-compile for armhf and install a static library

I have set up a cross-compile docker instance. In a nutshell I started setting up the apt-get update apt-get install binutils-multiarch dpkg --add-architecture armhf # Manually add correct armhf ...
user avatar
  • 818
2 votes
2 answers
2k views

Install Python2.7 and 3 arm headers in a amd64 architecture machine

I've been struggling around because I want to cross-compile an application which needs the Python to compile. Just in case you are curious the case is that when it goes to the pyconfig.h it tries to ...
user avatar
  • 141
0 votes
0 answers
443 views

rebuild ubuntu from source, is it possible? How?

I want to rebuild Ubuntu for another hardware. So I'm wondering if there is any way to get the current stable source code for all software locally installed on my computer and recompiled them with ...
user avatar
  • 237
2 votes
0 answers
991 views

What are the officially supported cross compilers for Ubuntu server alternative architectures like ARM?

I'm interested in the official Ubuntu server ARM image: https://www.ubuntu.com/download/server/arm How to properly cross compile for it from my x86_64 host? While a gcc-5-aarch64-linux-gnu C hello ...
user avatar
1 vote
1 answer
1k views

How to compile and integrate ffmpeg with openssl support?

How can I cross-compile FFMPEG for ARM with openssl support? I have tried normal compilation of FFMPEG, but I need openssl support also.
user avatar
0 votes
1 answer
790 views

Exec format error on node-v8.11.1/out/Release/icupkg while cross compiling Nodejs for ARM7

I forked Nodejs-ARM-builder repository and update Vagrant box to Ubuntu 18.04 (here's my repo: https://github.com/lbrutti/Nodejs-ARM-builder ). When trying to cross compile NodeJS for ARM Cortex (I ...
user avatar
  • 101
0 votes
1 answer
2k views

fatal error: netlink/genl/genl.h: No such file or directory during cross compile [closed]

I need to cross compile hostapd, even after editing makefile to do cross compilation,am getting the above error
user avatar
2 votes
0 answers
233 views

obtain gcc-6-cross for u-boot making on ubuntu 16.04

Try to build RPi 3 u-boot, but it required cross compiler aarch64-linux-gun-gcc to be version 6 or later. On Ubuntu 16.04, it's version 5. Find gcc-6-cross source but has not much knowledge or ...
user avatar
  • 23
0 votes
0 answers
1k views

Ubuntu Cross-compile for ARM - PATH variable - bash error

I have downloaded CodeSourcery Toolchain tools located to the following path: root@ab-pc:~/arm-2009q1/bin# arm-none-linux-gnueabi-ar arm-none-linux-gnueabi-ld arm-none-linux-gnueabi-as arm-none-...
user avatar
2 votes
2 answers
8k views

Cross-compiling to ARM: error trying to exec 'cc1': No such file or directory

I am trying to compile for my target machine which uses the arm-none-gnueabi-gcc compiler. But when I try to cross-compile I get the error in my Ubuntu machine as: arm-none-linux-gnueabi-gcc: error ...
user avatar
-1 votes
1 answer
117 views

Which package contains libstdc++ mips cross n32?

I'm looking for the package that contains libstdc++ for mips cross compile, n32 alignment. Ubuntu 16.04 host.
user avatar
1 vote
1 answer
280 views

I'm looking for materials or links about cross-compiling, like eabi, etc

I'm looking for materials or links about cross-compiling, like eabi, etc. I'm new to Linux-based cross-compiling, and I want to develop my knowledge.
user avatar
  • 27
3 votes
2 answers
8k views

How to compile C GTK3+ program in Ubuntu for windows?

I am using and gcc-7 and mingw-w64.I want to compile a c gtk3+ program in Linux using mingw so that it will produce .exe file which can be run in windows.I am able to Compile normal c programs using ...
user avatar
0 votes
0 answers
423 views

pam_authenticate return's PAM_MODULE_UNKNOWN ( returns 28 ), how to resolve?

Downloaded the source Linux-PAM-1.3.0.tar.gz version then, configured and compiled using command ./configure --prefix=/u02/tasks/linux-pam/Linux-PAM-1.3.0/output/pre --exec-prefix=/u02/tasks/linux-...
user avatar
  • 433
3 votes
1 answer
9k views

cross compilation for ARM: error no such file or directory

I have written simple Hello world program and compiled it with gcc-arm-linux-gnueabi compiler. It compiles well but when i try to execute it on ARM machine it complains "no such file or directory". I ...
user avatar
1 vote
1 answer
862 views

linaro cross compiling with .deb dependency

I can't find the answers so I am asking here. I use Linaro 64bit ARM cross compiler to compile my code on a local Ubuntu 14.04 64bit Linux on Intel (gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/...
user avatar
  • 11
0 votes
1 answer
8k views

cannot find crt1.o No such file or directory

I am trying to compile and link a 32 bit version of a program because the language does not have 64 bit libraries. My ubuntu is 14.04 64 bit. When I try to link the program it complains cannot find ...
user avatar
3 votes
2 answers
1k views

snapcraft crosscompile

I am on a x86_64-linux-gnu machine and trying to build a snap from source for arm-linux-gnueabihf (Raspberry Pi3) using autotools. I manage to build the snap but after I upload to the store it always ...
user avatar
  • 653
2 votes
0 answers
475 views

Updating Ubuntu's ARM64 toolchain

I was trying to compile an ARM64 linux kernel with CONFIG_KASAN and CONFIG_KCOV and it seems that the compiler toolchain I have is too old. I get an error message stating Cannot use ...
user avatar