Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
52 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 ...
6
votes
2answers
996 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) ...
0
votes
1answer
401 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
90 views

Cross Compiling GCC - 'glibc' on windows for linux platform

I am trying to cross compile the gcc for linux - i686-elf platform from windows PC. As per the toolchain steps, I have successfully compiled: binutils using /binutils-x.y.z/configure --target=$TARGET ...
0
votes
0answers
167 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
50 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
0answers
333 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
119 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 ...
0
votes
1answer
79 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
110 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
297 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/...
0
votes
0answers
163 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 ...
3
votes
1answer
7k views

How to install a functional ARM cross-gcc toolchain on Ubuntu 18.04?

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
202 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
0answers
212 views

Libudev error cross-compiling libusb example

I am cross-compiling a libusb example using CMake for Arm64. I have the C and CXX compilers installed and I have used an existing image from a board as my sys-root. When I try to compile the program I ...
0
votes
1answer
439 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 ...
0
votes
1answer
480 views

Building “cross linux system” programs, with different libc/musl interpreter

My goal is simple: I would like to create a program that bootstraps the nix package manager on any architecture, as a non-root user, with as few depends as possible. For now, what I did is the ...
3
votes
2answers
272 views

Offload compilation through SSH?

I have a hacked up Chromebook on which I'm running Gentoo. When I try to compile anything, CPU usage spikes up to 100%, the temperature increases by ~10 degrees C, battery usage spikes (4.X W -> 10 W),...
-1
votes
1answer
9k views

Running executable file: No such file or directory [closed]

I am trying to run an executable file called i686-elf-gcc in my Kali Linux that I downloaded from this repository. It's a cross-compiler. The problem is that even though the terminal and a script that ...
0
votes
1answer
274 views

Unable to boot kernel and rootfile system in Qemu

I am using ts-4900 freescale board. I am not able to boot the kernel and rootfile system (initrd) in Qemu. I did the following kernel configuration steps. export the cross compiler parth export ...
1
vote
1answer
44 views

When should “lib” and “include” directories be built when compiling from source?

I am trying to build binutils on platform A, which will be run on platform A and targets platform B. I have the source of binutils in /home/cedric/source/binutils-2.29/, and I perform the following 2 ...
1
vote
1answer
159 views

sh4gcc cross-compiler installation for Centos 7

I am trying to compile a program which requires sh4gcc cross-compiler and I'm not able to find any rpm package which provides sh4gcc compiler. On executing this command [root@localhost stapp]# make ...
2
votes
1answer
2k views

Unable to use Valgrind on executable file for ARM-Linux

I'm having problem using Valgrind on "arm-linux" executable file. I downloaded Valgrind from the main page here : http://valgrind.org/downloads/. Run the following command to install it: sudo ./...
0
votes
0answers
151 views

Local machine libraries when cross compiling

I am cross-compiling a library to an ARM arch. So as an example, in Ubuntu 16, the error message in config.log after running configure was: cc1 libstdc++.so.6: cannot open shared object file file ...
0
votes
1answer
52 views

Does ARM platform have a universal tool chain / compiler?

Recently I tried to make my own cross-compile toolchain for a arm platform. I noticed with the autoconf script of GCC, I have to pass variables like: --with-cpu=cortex-m4 \ --with-fpu=fpv4-sp-d16 \ --...
1
vote
0answers
983 views

Downgrade libstdc++.so.6 to version `GLIBCXX_3.4.20'

I am trying to cross-compile dlib using Raspberry Pi's toolchain, with the SD card mounted to my linux Host. After successful build and install, I start my Pi, and run python -c 'import dlib' This ...
-1
votes
0answers
137 views

Kernel make error “linux/security.h: No such file or directory”

I am trying to compile kernel for Allwinner A10 processor (sun4i, ARMV7) for Android 4.1.2. Config file is copied from the device and some modules are added. $ make ARCH=arm CROSS_COMPILE=/usr/bin/...
1
vote
1answer
190 views

Kernel make error: “sorry, unimplemented: -mfloat-abi=hard and VFP”

I am trying to compile kernel for Allwinner A10 processor (sun4i, ARMV7) for Android 4.1.2. Config file is copied from the device. This is the output : $ make ARCH=arm CROSS_COMPILE=/home/user/...
4
votes
2answers
606 views

Docker CrossCompile Debian build-essential:armhf unmet dependencies

I try to move a VirtualBox VM to a docker image. We use the VirtualBox to crosscompile source code for a armhf device (something based on a BeagleBone) I got problems at RUN apt-get install -y build-...
0
votes
1answer
1k views

Can't find /lib/modules/

I'm using an NXP embedded linux board and I compiled u-boot, the kernel and am using a linaro rootfs. On it I installed freeswitch and loaded mod_gsmopen with a Huawei module and it didn't work. ...
0
votes
1answer
634 views

How do I install powerpc-405-linux-gnu-gcc?

On a C project at work, make builds for various targets, one of them apparently being powerpc-405. The build for that specific target fails because I don't have the toolchain installed. make[7]: /opt/...
0
votes
1answer
5k views

./configure: No such file or directory in GCC [closed]

I'm trying to make an operating following osdev.org. However, I can't do this without cross-compiler mode in gcc. I'm trying to change the host option to i686-elf-gcc (this supposedly activates cc ...
4
votes
0answers
497 views

Compile ffmpeg with hwaccel

I'm trying to compile ffmpeg with hwaccel support, but no matter the options I pass to the configure script, the enable hwaccels list always comes empty. Running ./configure --help says that, to ...
3
votes
2answers
881 views

How to compile when the machine has not enough memory?

I have a low-end VPS that is set up with a ZNC as an IRC bouncer, and it runs just fine, it has around 128 MB of flash memory, which is NOT ENOUGH to compile one of the modules I want to use znc-push ....
1
vote
1answer
137 views

How to enable USB with linux-socfpga?

I use linux-socfpga from Altera's github repository (the master branch which is recently updated) with my DE2-115 FPGA. The output from jtag configuration is: $ jtagconfig1) USB-Blaster [2-2] ...
0
votes
1answer
170 views

How do change a particular option in linux kernel config file?

I tried to follow the default config file for my Creator CI20 in particular setting the CONFIG_HID as follow: # CONFIG_HID is not set See ref here. However everytime, I do a: $ make menuconfig <...
0
votes
0answers
34 views

Got a SIGABRT while building cross-compiler

While building a cross compiler for s390 on x86-32 bit, I got an error : ** (/usr/lib/mono/1.0/mcs.exe:23883): CRITICAL **: _wapi_shm_file_open: shared file [/net/lockbox/homes/wxy/.wapi/shared_data-...
0
votes
1answer
512 views

Cross-compilation of arch linux for Arm on Ubuntu 32bit

I wanted to cross-compile arch linux for arm for raspberry pi b+. I am using Distcc tool on ubuntu 32 bit. I followed every step mentioned here. to building cross-tool chain, it is asking me various ...
0
votes
2answers
999 views

Can not hardcode library search path of binutils

I try to build linux from scratch without root access, at a custom location, and within an existing CentOS installation. I set LFS to an absolute path in my home directory, LFS_TGT=x86_64-lfs-linux-...
3
votes
3answers
241 views

Linux Compiler for CR16 architecture

I have a system that is using a older core, CR16Plus that was made by National Semiconductor, which is now TI. Unfortunately, TI no longer offers support, or tools, for this processor. I'm trying to ...
0
votes
2answers
4k views

/usr/bin/install: cannot stat `run': No such file or directory

Im trying to build embeded software using this RSDK toolchain but after make menuconfig and make Im getting following error make[7]: Entering directory `/mnt/hgfs/A/rtl819x-toolchain/users/gdb/gdb-6....
2
votes
1answer
6k views

Cross-compiling Python

I am using an evaluation board with an ARM926EJ-S running Openembedded and I want to install python on it. I successfully cross-compiled python 2.7.13 on my Fedora 25 with the linaro toolchain (...
0
votes
1answer
54 views

Compilation error when building gnu-screen package for Freescale P2020 Board

I am trying to run screen package on a Freescale P2020RDB Hardware board. I have successfully run ./configure and make and make install commands for the package I get the following log error: No ...
1
vote
3answers
2k views

How to handle error compiling GCC 4.7.0 using GCC 6.2.1

I'm using Arch linux and I need GCC 4.7.0 for a class. I only have GCC 6.2.1 installed on my system currently. I followed all the install instructions correctly but I still yield this error after ...
3
votes
3answers
601 views

Compiling a kernel on a different system

I work for Nimbix and have access to some pretty powerful multicore systems, I intend to make a kernel compilation service. The systems can have upto 128 cores and in my initial test with 32 cores, I ...
1
vote
0answers
87 views

Building software for Linux generated using multistrap

I am working on an embedded device with ARM CPU and Debian Jessie constructed using multistrap. It seems I need to install a slightly patched version of ModemManager into that system and what I am ...
2
votes
2answers
2k views

fatal error: mcrypt.h: No such file or directory

I am trying to cross compile a C code which uses a header file mcrypt.h. I am compiling my code in Ubuntu distribution and my target is an openwrt distribution. I am getting the below error while ...
1
vote
2answers
1k views

Installing libudev for arm on x64 Ubuntu

I'm trying to cross-compile a software using arm-linux-gnueabihf-g++ on my x64 Ubuntu. I have tried to do the following steps to install libudev:armhf: sudo dpkg --add-architecture armhf Added these ...
2
votes
1answer
903 views

Is this error “Only Win32 target is supported” coming from wrong cc1plus?

I am trying to cross compile Hyperion for a 32-bit Windows on a 64-bit Debian linux, but I ran into a few problems in doing so. First of all, in attempt to install a cross compiler, I installed ...
2
votes
2answers
2k views

Cross-compilation: running `make install` on the build (non-target) system

I understand the basic concept of using a cross compiler to compile code on one architecture and then copying the executable to another architecture to run it. But I can't figure out the last step of ...