Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [cross-compiling]

For general cross compiling issues, where a separate 'hosting' environment is used to build for the 'target' platform.

cross-compiling
0 votes
0 answers
29 views

How can I use VSCode with CMake and have different targets each with a different architecture and toolchain?

I'm working on a project with Visual Studio Code and CMake where I'm compiling / cross-compiling different targets for different platforms. Currently the project has three platforms, each of which ...
Bri Bri's user avatar
  • 2,359
0 votes
0 answers
5 views

PcapPlusPlus cross compilation

I use the PcapPlusPlus library to craft packets and use them in my unit tests for my C application. These packets are not sent over the network. I just use functions to create/add protocol headers and ...
VIPPER's user avatar
  • 342
0 votes
0 answers
20 views

Libsanitizer Error When Building GCC Cross-Compiler

I'm encountering compilation issues while building a GCC cross-compiler for RISC-V. Here is the last part of the GCC make command output if it might be helpful: ../../../../../src/gcc-14.1.0/...
lotobis's user avatar
0 votes
0 answers
11 views

Linking Error with RELIC Library on ARM Cortex-M0+ (Raspberry Pi Pico)

I'm working on a project for the Raspberry Pi Pico (ARM Cortex-M0+) using the RELIC cryptographic library. I'm facing a linking error during the build process, and I could use some help resolving the ...
Aymen Basly's user avatar
0 votes
1 answer
26 views

When cross-compiling for an ARM embedded target using GCC, is it reasonable to expect the Windows and Linux versions to produce identical output?

I have a build for an ARM embedded target that is developed using eclipse and GCC toolchain release 12.2-rel1. I have set up a build in TeamCity that runs in a Linux-based Docker container, also using ...
Tim Long's user avatar
  • 13.7k
1 vote
0 answers
34 views

C - Packed struct - different behavior in different compilers

I've wrote a function that writes file-info into another file (in bin-format). I've built it for WINDOWS executable, in two different environments: eclipse, using mingw gcc: GCC: (MinGW.org GCC-6.3.0-...
LYB's user avatar
  • 23
0 votes
1 answer
23 views

Is the libsnark library compatible with the arm-none-eabi toolchain for ARM Cortex-M microcontrollers?

I am currently working on a project that involves implementing cryptographic protocols on ARM Cortex-M microcontrollers, specifically the Raspberry Pi Pico (RP2040). I am interested in using the ...
Aymen Basly's user avatar
1 vote
0 answers
28 views

Building microchip-ung/mepa C library gives error related to timercmp call syntax

Cross-compiling the microchip-ung/mepa library to ARM, using xilinx 2016.4 SDK (trying C11 flag) is leading to the following error: /home/mesa/mesa-v2024.06-1/mepa/common/include/mepa_os_linux.h:58:...
user2132190's user avatar
-2 votes
0 answers
30 views

Building binaries with qemu or cross building give different binaries [closed]

I've been building a tool written in Rust and I do the release builds with GitHub Action. Considering I want to release a version for linux amd64 and linux arm64, I need to cross build the binary or ...
Jeremie's user avatar
  • 375
1 vote
0 answers
18 views

How to handle odd libc.so from Yocto GCC cross-compiler when running modules_prepare?

When attempting to set up an environment for cross-compiling for Yocto Linux, I am getting an unusual build error when it's building some of the host tools used by the Linux kernel. This seems to be ...
penguin359's user avatar
  • 1,449
0 votes
0 answers
41 views

How to cross compile Clang/LLVM to musl with cmake?

I've been trying to build Clang/LLVM for a different C standard library, namely musl. If I build Clang for my host system (x86_64 Linux, glibc), I can build a binary written in C for musl by passing --...
popovicu's user avatar
  • 101
0 votes
0 answers
28 views

Unable to locate package makeinfo

I need to install a cross-compiler for the Pi and I'm following https://xmleye.wordpress.com/2017/10/17/running-uml-rt-models-on-a-raspberry-pi-based-rover/#comments because it's really similar to my ...
melisa's user avatar
  • 103
-1 votes
0 answers
42 views

Cross compile of the pqxx in c++ for arm7

I want to use the library libpqxx in my plc next project, and i used the toolchain of the plc next and after i followed the instructions how to build my library: $env:ARP_TOOLCHAIN_ROOT = "C:/...
Fuad Hajdarevic's user avatar
0 votes
0 answers
13 views

libmnl library arm cross-compile failed

I try to build command ./configure --host=arm-linux-gnueabihf --enable-static=no --prefix="/arm/libmnl-1.0.5/build" make I want to use the lib/libmnl.a generated in the build directory by ...
DHJ's user avatar
  • 1
0 votes
0 answers
26 views

compiling SWUpdate into a toolchain

My apologies for my poor explanation, I am autistic and poor with English. And Grammarly doesn't like code being anywhere near. So I solved my previous issue. I had an environment variable set wrong ...
Joshua Strutton's user avatar

15 30 50 per page
1
2 3 4 5
308