Questions tagged [libgcc]

67 questions
17
votes
2 answers

gcc Invalid version (max ) error adding symbols: Bad value

I've successfully build several 32 bit, static and Shared, libraries on Linux x86_x64 and I'm now trying to link them together to an executable and I get the following error: /usr/bin/ld: foo.so: __moddi3: invalid version 21 (max 0) foo.so: error…
Gil-Mor
  • 681
  • 1
  • 7
  • 15
12
votes
3 answers

Compilng libgcc xgcc error

I'm trying to install cross compiler, this tutorial, and when I want to make libgcc I just put make all-target-libgcc in my terminal. This make throws error checking whether ln -s works... yes checking for i586-elf-gcc... …
Johniak
  • 911
  • 1
  • 9
  • 15
10
votes
1 answer

scipy not using anaconda's local lib for libgcc

I'm using Anaconda 4.10.3, with Python 3.9.7, Scipy 1.7.1 on Ubuntu 16.04.6. A script I need to run uses Scipy's optimize and it throws the following error: ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.26' not found…
vpk
  • 1,240
  • 2
  • 18
  • 32
10
votes
1 answer

what to do with missing libgcc_s.a

cross compiling a library with buildroot using the external toolchain alias code sourcery lite 2011 resulting in output/host/opt/ext-toolchain/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find…
drahnr
  • 6,782
  • 5
  • 48
  • 75
10
votes
3 answers

Why can't rsyslogd find libgcc_s.so.1?

Scenario: Running a debootstrapped Ubuntu 11.4 lxc guest on a Ubuntu 12.4 lxc host (both 64 bit) Inside the lxc guest, rsyslogd is constantly crashing with SIGABRT stating: libgcc_s.so.1 must be installed for pthread_cancel to…
UsAaR33
  • 3,536
  • 2
  • 34
  • 55
8
votes
1 answer

What should printf("%.15e", 1e23); print?

I am experimenting with optimizing double->text conversion (trying to beat grissu, ryu etc...). While doing so, I am comparing my results with sprintf outputs. Now I have encountered the above interesting case. printf("%.15e", 1e23); (e.g. glibc)…
Mirek Fidler
  • 330
  • 1
  • 9
7
votes
1 answer

Fully statically build application with all dependencies (libgcc, etc.)?

I am currently trying to compile all my applications' dependencies as a static library. My motivation: Not to rely on any OS provided libraries in order to have a perfectly reproducible code base Avoid issues when deploying on other systems caused…
user823255
  • 980
  • 9
  • 19
7
votes
2 answers

Is libgcc_s.so linked both statically and dynamically in the same process ok?

My app pulls in many shared libraries. Some are written in C++ which pulls in libstdc++.so which pulls in libgcc_s.so. Yet others are written in plain C and linked with -static-libgcc. So now I have bits of libgcc statically linked inside multiple…
user519179
7
votes
1 answer

Adding linker options to Code::Blocks

When i try to run an executable compiled with Code::Blocks on my Win 7 x64 machine, it says it cannot run because the libgcc_s_dw2-1 is missing. I found a solution, to include the library in the linker options. (here is the reference i got it from: …
user1584421
  • 3,499
  • 11
  • 46
  • 86
7
votes
1 answer

How to Build Libgcc of GCC compiler

Is there any way to build libgcc without building gcc compiler? I have tried to run configure script of libgcc but it says ../../gcc/libgcc.mvars is missing. My basic need is to build libgcc for multiple platforms with multiple configurations for…
user3405046
6
votes
2 answers

Raspberry Pi -fatal error: sys/cdefs.h: No such file or directory

I'm trying to compile gcc5.3.0 on my Raspberry Pi with latest Raspbian system image. $ ./configure --enbale-checking=release --enable-languages=c,c++,fortran --host=arm-cortexa7_neon-linux-gnueabihf --build=arm-cortexa7_neon-linux-gnueabihf…
0xBBC
  • 105
  • 2
  • 8
6
votes
1 answer

Do DLLs built with Rust require libgcc.dll on run time?

If I build a DLL with Rust language, does it require libgcc*.dll to be present on run time? On one hand: I've seen a post somewhere on the Internet, claiming that yes it does; rustc.exe has libgcc_s_dw2-1.dll in its directory, and cargo.exe won't…
akavel
  • 4,789
  • 1
  • 35
  • 66
4
votes
0 answers

How do I link libgcc statically in rust

I am trying to compile a Rust program with statically linked libgcc. The program is meant to run in initramfs in a restricted environment and is compiled for different platforms (arm, x86_64). Currently my only solution is to compile against musl…
Thomas
  • 311
  • 2
  • 17
4
votes
1 answer

Include mingw libraries in compiled file

I am using cmake to generate a Eclipse CDT MinGW Project. (Eclipse Version Kepler) This is my Cmakelist: project(IMGTODICOM) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) add_executable(IMGTODICOM…
Hank81
  • 43
  • 1
  • 4
3
votes
1 answer

Bare-metal mod (%) hangs on ARMv6 with libgcc

When I try to use % in C code in my ARM bare-metal program, it needs a wrapper from libgcc. No problem, I can link that in. When I do, the linker stops complaining, but then the program hangs (if I watch the registers they actually start cycling…
singpolyma
  • 10,999
  • 5
  • 47
  • 71
1
2 3 4 5