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

All Questions

Tagged with
0 votes
0 answers
19 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
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
-2 votes
0 answers
54 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
1 answer
89 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
0 answers
32 views

build cross gcc compiler for arm toolchain fails

I try to build a cross gcc compiler for an older ARM platform. Installing binutils was successful but gcc fails. Host platform linux x86_64 binutils version to cross build:2.42 gcc version to cross ...
Klaus's user avatar
  • 25.3k
3 votes
1 answer
89 views

section of static library is changed with unkown reason

I am using arm-none-eabi-gcc (V6.3), and CPU core is ARM COrtexM0. In my linker file, I make 2 sections for text and rodata. The .text section is for all the C code text and rodata, except for the ...
charlie-xue's user avatar
0 votes
0 answers
39 views

Why can't Clang/lld find `__dlopen`, `__dlclose` and `__dlsym`?

Following from this question, I am trying to compile a C/C++ project that targets an old Linux system. To have the old libraries at hand, I made a copy of the target root fs, and since GCC has ...
Alessandro Bertulli's user avatar
0 votes
0 answers
38 views

Linking error while trying to compile binutils from source

My environment: Darwin MacBook-Air-2.local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan 5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64 So im trying to compile binutils-2.42 ...
Mkose's user avatar
  • 43
0 votes
1 answer
25 views

Does MinGW-w64 source code need to be cross-compiled in a system that already has GNU utilities?

I have once compiled emacs from source on Debian to make use of novel features that relied on some flags that needed to be used during compilation of the source code. Having also installed Gentoo on a ...
Felipe Dilho's user avatar
0 votes
0 answers
21 views

Linker error: Undefined reference error _dl_stack_flags with Qt 5.12.5 crosscompiler(Raspberry PI3) and pthreads

I'm trying to include the libusb-1.0 library in order to use it in the Qt 5.12.5 project for Raspberry PI3. I built a cross-compiler for Raspberry Pi3 under Ubuntu, the cross-compiler works fine. When ...
Artem Redko's user avatar
0 votes
0 answers
51 views

cross compile mysql C API on ubuntu 22.04 for windows using x86_64-w64-mingw32-gcc

My mysql C API file links and creates executable on on ubuntu 22.04 using gcc without any problem. When I try to cross compile it using x86_64-w64-mingw32-gcc I get several errors, a few are shown ...
Girish S Joglekar's user avatar
1 vote
1 answer
65 views

How do I override location for dynamically linked libgcc_s?

I'm attempting to build an executable on a Debian Bookworm system to be run on Debian Bullseye. I have downloaded and unpacked library packages for Bullseye in dedicated directories to link against. ...
bodqhrohro's user avatar
0 votes
0 answers
42 views

Shared library dependency is not forwarded by a static library target when privately linked

I have a complex CMake project where an executable links to a shared library. The shared library has a dependency on a static library. The static library in turn depends on other shared libraries. A ...
Richard W's user avatar
  • 651
0 votes
0 answers
183 views

How to get CMake find_package to find and use PkgConfig for cross-compilation

I am trying to cross-compile an application for a Beaglebone black. I've successfully compiled the application directly on the Beaglebone while commenting out the cross-compile related section in my ...
shafe's user avatar
  • 179

15 30 50 per page
1
2 3 4 5
51