Skip to main content

Questions tagged [cross-compiling]

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

1 vote
0 answers
15 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
-2 votes
0 answers
41 views

Address sanitizer CHECK failed [closed]

I am writing a program using the gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux toolchain. There is a task to check if there are any memory leaks in the program. I saw in tutorials that adding ...
Waldemar _'s user avatar
0 votes
0 answers
31 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
27 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
41 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
11 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
23 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
0 votes
1 answer
81 views

Building GCC Cross-Compiler for ARM VxWorks

I am trying to build a cross-compiler from a x86-64 Linux host (Ubuntu-22.04 in WSL, with GCC 11) to arm-wrs-vxworks, and I'm having some serious trouble doing so. I have very limited experience with ...
StardustGogeta's user avatar
0 votes
1 answer
59 views

Cross compiling for AArch64 with Clang built from source

I'm trying to cross compile to AArch64 using clang on Ubuntu. I've installed the right packages and am able to compile successfully using a pre-packaged clang, but doing the same with a self built ...
muke's user avatar
  • 376
3 votes
0 answers
86 views

Can I compile on Linux and target Windows?

Yes, in principle the present question is a duplicate of this one, but that's been asked and answered 12 years ago. The answer might have changed in the meanwhile. And indeed the material I linked to ...
Enlico's user avatar
  • 26.7k
-1 votes
0 answers
47 views

linker cannot find library even though library in search path

I use below command to cross compile for aarch64 on a linux-x86_64 platform, but linker cannot find libstdc++, even though /usr/aarch64-linux-gnu/lib/libstdc++.so.6 really exists, can somebody knows ...
xiedeacc's user avatar
  • 157
0 votes
1 answer
26 views

What part of my project has a C++ version mismatch while cross-compiling the cpr library and why?

Background info: I am cross-compiling a library called cpr. It compiles and links fine. When I went to use it, I got a C++ version mismatch: /tmp/[project name]: /usr/lib/libstdc++.so.6: version '...
13372277's user avatar
0 votes
1 answer
47 views

How do I provide a py_binary's runfiles to a C toolchain in Bazel

I am trying to write a compiler, well, a Python wrapper for Clang that does some platform specific stuff in Bazel. I have created a MRE where I can reproduce my problem here: https://github.com/...
mallwright's user avatar
  • 1,927
0 votes
0 answers
72 views

Cross Compile C Using Clang - can't find header files

I'm trying to do cross compile using Apple MacOs built-in Clang. My compile machine is arm64, MacOs; the target machine is x86_64, Ubuntu. Below is some other info: clang version (used two versions): ...
Ziji Zhang's user avatar
0 votes
1 answer
93 views

Why is this macro redefined, only if cross compiling, and even if there is #ifndef?

I'm trying to cross compile the Azure IoT C SDK. The compilation goes fine for native builds, but when cross compiling I get [ 33%] Building C object out/uamqp/CMakeFiles/uamqp.dir/src/...
Alessandro Bertulli's user avatar

15 30 50 per page
1
2 3 4 5
308