Category "cross-compiling"

Does the the 'linux' version of arm gcc compiler support -cpu=cortex-m4?

I am using aarch64-none-linux-gnu-gcc for compiling the applications on my Ubuntu 20.04. It has support for cortex-a and few other processor cores. But not on c

How can I call arm-none-eabi-gdb with -x parameter

I want to call arm-none-eabi-gdb with -x parameter when launch debugger after installing cortex-debug. How can I do in launch.json or setting.json, thanks for y

How can I call arm-none-eabi-gdb with -x parameter

I want to call arm-none-eabi-gdb with -x parameter when launch debugger after installing cortex-debug. How can I do in launch.json or setting.json, thanks for y

Select build type at conan build step

This is a simple need of selecting build type when calling conan build. Normally we have to call conan install with the desired build type and then conan build

How to cross compile a c program to aarch64 with cpuid.h?

I'm trying to cross-compile a simple C program to aarch64 (arm64) from a 64bit Ubuntu Linux. Can someone please help me why i'm getting this error. It says 'cpu

How can we detect the host OS type (not the target OS) in Rust?

There are many ways to detect the target OS, e.g. #[cfg(windows)], #[cfg(unix)], std::env::consts::OS. For cross-compilation, how can we detect the OS that our

For LOOP throw away by Compiler optimization

I was doing an experiment to measure the execution time of ''for loop'' on microcotroller. This ''for loop'' contain some integer and pointer operation. Case 1

Makefile won't compile anything other than "kernel.c"

I've been trying to compile an OS however whenever I attempt to compile it using the make file it only compiles "kernel.c" and I can't seem to figure out why. I

gcc cross compiling for raspberry pi /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.34' not found

On Ubuntu 22.04 LTS, I'm cross-compiling for raspberry pi. When I run any built executable on the pi, I get this linking error: /lib/arm-linux-gnueabihf/libc.so

multiple definition of `std::logic_error::logic_error(std::logic_error const&)

I am cross-compiling a windows application from my Linux host machine and I am getting a linking error of multiple definitions between two files in the std! /us

How to write code in Java 11, but target Java 8 and above?

I am working on a small library and for obvious reasons I would like to write code using all the Java 11 features (except modules I guess for now), but I would

executable file compiled by MinGW x86_64-w64-mingw32 in Ubuntu not working on Windows

I am trying to create a executable file works on Windows 64bit from linux. I am using MXE to cross compile c file on my ubuntu server. And after I compile c fil

Run a native X86 binary from inside an ARM chroot

I have setup a chroot for an aarch64 rootfs. I am using qemu-aarch64-static as an emulator. This works. I can login to the chroot and execute aarch64 binaries.

cross compile for armv5, but it creates v7 binary

I managed to creata an object file for arm926ej-s I am using debian arm on qemu arm-linux-gnueabi-gcc-4.4 -static -O -c -mcpu=arm926ej-s hello.c -o hello roo

GCC: Building cross-compiler for ARM - pthread.h not found

Using a Ubuntu 12.04 host, I carefully followed this SO answer here (Recipe for Compiling Binutils and GCC Together) to build GCC and binutils in one tree with