cross-compilation

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

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. I do not understand why there need to be 3 stages and …

Total answers: 3

What is the correct location for PS1 shell variable?

What is the correct location for PS1 shell variable? I am following Cross-Compiled Linux From Scratch – Embedded. In section 3.3 "Setting Up the Environment", PS1 is declared in .bash_profile. When I log in as su – clfs, both .bash_profile and .bashrc get executed. When I log in as su clfs, only .bashrc gets executed. …

Total answers: 3

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

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 is still showing # CONFIG_BLK_DEV_IO_TRACE is not set. Isn’t the .config file in the root directory of kernel source which is …

Total answers: 2

How to install cross-compiler on Ubuntu 18.04?

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) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 158 Model name: Intel(R) Core(TM) i5-7400 CPU @ …

Total answers: 2

Cross-compile for armhf and install a static library

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 repositories to /etc/apt/sources.list apt-get update apt-get install libudev-dev:armhf During this last step, I get the following error: The …

Total answers: 3

Running executable file: No such file or directory

Running executable file: No such file or directory 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 I wrote can both see that the file exists, when its time …

Total answers: 1

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 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. Asked By: subbu || Source From Install the ARM cross compiler toolchain on Ubuntu: How to install on Ubuntu the complete …

Total answers: 1

Docker CrossCompile Debian build-essential:armhf unmet dependencies

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-essential:armhf The complete Docker code looks like this: FROM debian:jessie RUN apt-get update …

Total answers: 2

How is Mono magical?

How is Mono magical? I’m learning C#, so I made a little C# program that says Hello, World!, then compiled it with mono-csc and ran it with mono: $ mono-csc Hello.cs $ mono Hello.exe Hello, World! I noticed that when I hit TAB in bash, Hello.exe was marked executable. Indeed, it runs by just a …

Total answers: 1

fatal error: netlink/genl/genl.h: No such file or directory

fatal error: netlink/genl/genl.h: No such file or directory I am cross-compiling hostapd for openwrt. I am getting fatal error: netlink/genl/genl.h: No such file or directory. I already have libnl-3.2.24 installed. If i directly compile (not cross-compile) then hostapd is compiling properly without any error. Asked By: Rafal || Source The header file …/netlink/genl/genl.h is found …

Total answers: 4

Can I write C programs for Linux on OS X?

Can I write C programs for Linux on OS X? In case I’m writing a program (of any kind) in C, that is meant to be run on Linux environment, can I write it under OS X? (concurrency wise for example) I’m asking this because I like programming in Xcode. Asked By: johni || Source …

Total answers: 1

How do I cross-compile Chromium for ARM?

How do I cross-compile Chromium for ARM? Goal I need to install Chromium on FriendlyARM mini210s running Linux 3.0.8 armv7l Environment Vagrant box with Ubuntu Precise64 Installed depot_tools following these guidelines Get-the-code and Linux Chromium ARM Toolchain depot_tools After getting the depot_tools: vagrant@vagrant:~/depot_tools$ fetch chromium Environment variables export GYP_CROSSCOMPILE=1 export GYP_DEFINES=”target_arch=arm arm_float_abi=hard” Dependencies vagrant@vagrant:~/depot_tools/src$ ./chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py …

Total answers: 1

Error compiling buildroot

Error compiling buildroot I updated my buildroot for the version “2014.08” (stable version) and I updated the Kernel version (3.12.26) of my project, when the buildroot try to build the linux-headers-3.12.26 package, occurs the following error: /output/host/usr/arm-buildroot-linux-gnueabi/sysroot 2.6; then exit 1; fi Incorrect selection of kernel headers: expected 2.6.x, got 3.12.x” How can I fix …

Total answers: 1

Cross compiling GLIBC for my ARM SoC

Cross compiling GLIBC for my ARM SoC I am seeing something really weird inside a chroot-ed Debian armel environment. But first, a bit of backstory… This is long, but the question is complex and any potential help depends on knowing the full story. I have an embedded ARM SoC that runs Linux – more specifically, …

Total answers: 1

Installing a cross-toolchain to build ARM binaries on Debian

Installing a cross-toolchain to build ARM binaries on Debian I tried to install a cross toolchain so I could build Linux kernel on amd64 (Debian testing “jessie”) for my ARM system. I have this entry in sources.list: deb http://www.emdebian.org/debian sid main When I tried to install gcc-4.7-arm-linux-gnueabi, I got an error: cc-4.7-arm-linux-gnueabi : Depends: libgomp1-armel-cross …

Total answers: 4

Backporting OpenSSL-1.0.1e to Debian Lenny (armv4l)

Backporting OpenSSL-1.0.1e to Debian Lenny (armv4l) I have an old embedded board that supports only Debian Lenny. I need to install OpenSSL-1.0.1e on it. If I download the source code then try to compile the source code, I get this error ts7500:/home/openssl-1.0.1e# make making all in crypto… make[1]: Entering directory `/home/openssl-1.0.1e/crypto’ gcc -I. -I.. -I../include …

Total answers: 1

FreeBSD source and how to build

FreeBSD source and how to build A few questions about FreeBSD Where/how should I obtain the source code (ex. through terminal, Download off website) How (on ubuntu) should I build it? Before I build it can I customize it (in other words is possible)? Asked By: Coder404 || Source You can check the source for …

Total answers: 2

Building 32-Bit on a 64-Bit system

Building 32-Bit on a 64-Bit system I’m trying to build the PHP memcache extension (v2.2.6) for i386 (32bit) on my x86_64 Ubuntu 11.04. ./configure uses config.guess by default (which outputs x86_64-unknown-linux-gnu on my system) but I want to override that. How would I have to proceed? Asked By: thwd || Source You need two things …

Total answers: 1

What distribution-maintained cross-compile toolchain packages exist?

What distribution-maintained cross-compile toolchain packages exist? I have just learned of Gentoo’s sys-devel/crossdev package. This is a package that is useful for creating a cross-compiling toolchain. Are there any other such packages out there on other distributions? I’m specifically interested in distro-maintained packages because I’ve tried a couple of others (buildroot, crosstool) and it seems …

Total answers: 1