Questions tagged [libgcc]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
116 views

libgcc linker error: hidden symbol __aarch64_swp1_acq_rel in libgcc.a is referenced by DSO

I am trying to link a shared library I have no control on. This library has an undefined symbol (nm output): U __aarch64_swp1_acq_rel Which seems to be defined in libgcc.a: [user@fedora ~]$ nm -a /usr/...
  • 23
0 votes
0 answers
24 views

Why does building libgcc require crti.o and -lc?

To build a full libgcc with libc support, you need the libc headers, according to these guides (see also the --without-headers option in gcc configuration doc): https://wiki.osdev.org/Hosted_GCC_Cross-...
  • 335
3 votes
1 answer
64 views

Different compiler behavior when dividing unsigned char vs dividing unsigned short

I'm not very experienced in the world of C programming, I just worked with arduino before, and I decided to get my feet more wet by doing a project on an ATtiny13 without using the Arduino IDE, only ...
0 votes
0 answers
39 views

RISC-V toolchain: lds file may make some irrelevant instructions

I want to use risc-v toolchain to compile a simple c code to test my processor. And I refer to PicoRV32's firmware file for my own test.lds : SECTIONS { .memory : { . = 0x000000; *(...
0 votes
0 answers
47 views

build libgcc for mips with micromips

I am trying to build cross compiler gcc for mips architecture. Build and host are x86_64 and target is mips. I also want -micromips built version of libgcc. I am able to build and install binutils and ...
  • 23
0 votes
0 answers
99 views

Error when building gcc with --enable-host-shared and MIPS target

I am trying to build gcc with --enable-host-shared plus the jit backend in order to use it with the rustc gcc backend. I tried with both gcc version 12.1.0 and 11.3.0. Here is how I configure it: $GCC/...
0 votes
0 answers
984 views

cannot find Scrt.o and crti.o

I am trying to compile my assembly code global main extern printf section .data msg db "Testing %i...", 0x0a, 0x00 section .text main: push ebp mov ebp, esp push 123 ...
user avatar
0 votes
1 answer
115 views

libgcc and libstdcplusplus rpms version supported by node 14 LTC (v14.15.4)

I have a query regarding which gcc versions are supported by node js 14 LTC as in my project we recently upgraded to node js 14 LTC and the libgcc and libstdcplusplus rpms version that were used ...
0 votes
1 answer
880 views

While building GCC 8.5.0: "error: `CC' has changed since the previous run"

I'm building GCC 8.5.0 on a Devuan Chimaera GNU/Linux system (using GCC 10). I've configured with ./configure --disable-gnat, then ran make. At some point, I get: echo timestamp > s-selftest-c rm ...
  • 113k
1 vote
0 answers
411 views

GCC: How does GCC disable threading support internally

From the GCC installation configuration docs, you can pass this in as a parameter when configuring GCC. --disable-threads Specify that threading support should be disabled for the system I've done ...
0 votes
1 answer
34 views

In Ubuntu (and Debian), what does -s4 mean in libgcc-s4?

While checking for libgcc for preparing for a cross-compilation environtment, I noticed that there are some libgcc-s[124]-{arch} packages - there's many s1 packages, but only few s2 and s4 packages (...
  • 1,269
0 votes
0 answers
261 views

Errors in installing Homebrew and git

I am trying to work on a linux based external server. I need to install Homebrew and anaconda. So, I have installed anaconda as usual in my home directory. But when I tried to install homebrew, I get ...
9 votes
1 answer
2k views

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/...
  • 1,232
0 votes
0 answers
1k views

I am trying to build a repo and keep getting "libgcc_s.so.1: version `GCC_7.0.0' not found (required by /usr/lib32/libstdc++.so.6)"

I am using Ubuntu 18.04 with gcc 8 installed. I am trying to build a repo but keep getting the following error: libgcc_s.so.1: version `GCC_7.0.0' not found (required by /usr/lib32/libstdc++.so.6) I ...
  • 39
1 vote
1 answer
141 views

What should be the output printf("%.5g", 0.00390625)

While experimenting with code to convert double to text, I am comparing results of my routine to those from standard library. For the number and formatting in the title, my routine returns 0.0039062 ...
8 votes
1 answer
143 views

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 ...
0 votes
1 answer
153 views

Compile not optimized Libgcc for ARM

Good morning, I need to compile libgcc from scratch without deploying the ARM optimized version which is defined in ieee754-sf.s in the ARM back-end. Does anyone knows how to configure GCC for ...
0 votes
1 answer
334 views

apt get update is posting an error while using debian source

my dockerfile is as below: FROM wordpress:5.5.1-php7.4 RUN echo 'deb http://ftp.us.debian.org/debian sid main' >> /etc/apt/sources.list RUN apt-get update && \ apt-get install -y wget ...
0 votes
1 answer
570 views

Unable to Deploy Streamlit app on Heroku - missing libgcc_s.so.1

Overview: I am trying to deploy a web app that uses OpenCV and Tensorflow to classify facial expression of a person. So a person uploads a picture and the app produces a bounding box around the face ...
0 votes
0 answers
228 views

libstdc++ & libgcc forward compatibility

According to the GCC ABI Policy and Guidelines page I get that they try to maintain forward compatibility but I wonder to what extend this is true or if I'm missing something. I am currently trying to ...
  • 1,329
1 vote
1 answer
2k views

Define location of libgcc_s.so.1

First of all I am in a Debian VPS without SUDO permissions, without possibility of installing anything. I want to run a program: ./program And it informs me that it needs libgcc_s.so.1: ERROR: ld....
  • 11
0 votes
0 answers
699 views

Yocto Package have unmet dependencies while installing deb file

I want to install ws-rtsp-proxy_1.8-4_armhf.deb in my armhf7 board while doing this I got the error. But I have all the dependencies which I have attached below. root@rt-work:~# apt-get install ./ws-...
  • 11
0 votes
1 answer
215 views

Adding the -O2 option when cross-compiling causes the unwind backtrace to fail

Add -funwind-tables when cross-compiling, you can successfully unwind backtrace through the interface(_Unwind_Backtrace and _Unwind_VRS_Get) in the libgcc library. But when I added the -O2 option at ...
  • 1
4 votes
0 answers
1k views

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). ...
  • 311
0 votes
1 answer
72 views

Observing an increase in Size after migrating to LibC++ in Android

I am working for migrating to LibC++ from Gnustl and I am observing an overall 8-10% Increase in size after migrating to LibC++ from gnustl in Android. Few additional dependencies that we have added ...
  • 3,953
0 votes
0 answers
567 views

Conversion from uint64_t to double

For an STM32F7, which includes instructions for double floating points, I want to convert an uint64_t to double. In order to test that, I used the following code: volatile static uint64_t m_testU64 =...
  • 4,392
0 votes
0 answers
200 views

How to install 16 bit version of libcc

$uname -i x86_64 $ uname -r 4.15.0-041500-generic I am trying to compile that gets memory map of a system. The OSDev shows some code how that can be done. The code is as follows: // running in ...
2 votes
0 answers
2k views

Compile libgcc.a and libstd++.a for 32 bits

Good afternoon, If I'm here today is because I encounter some compilation problems. For a project, I would like to compile gcc in order to have libgcc.a and libstd++.a for 32 bits. Unfortunatly I ...
0 votes
1 answer
2k views

Building C library (FFmpeg) with Android NDK r17: undefined reference to '__mulodi4'

My problem happens to be with FFmpeg but I suspect that this would happen with almost any C library. Problem Description My app uses FFmpeg that is compiled with NDK r10e. I am trying to update ...
  • 343
0 votes
1 answer
136 views

Different versions of compilers + libgcc on windows encountered

I have a third-party library which depends on libgcc_s_sjlj-1.dll. My own program is compiled under MSYS2 (mingw-w64) and it depends on libgcc_s_dw2-1.dll. Please note that the third-party library is ...
7 votes
1 answer
2k views

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 ...
2 votes
2 answers
3k views

How to fix cannot find libgcc.a: No such file or directory error

I'm trying to make a standalone compile of the kernel for my android phone, using Google Toolchain, and have already tried Uber and linarc. All of them give the same error, which I don't understand: ...
0 votes
0 answers
129 views

libgcc_s_dw2-1.dll contains an error

I have been using Octave 4.03 for about a year on Windows 10 platform. All at a sudden, when I was trying to launch Octave GUI as usual, I recieved the following error message: File libgcc_s_dw2-1....
  • 101
2 votes
1 answer
2k views

anaconda2 can not find GOMP_4.0

I am trying to use healpy the python implementation of HEALPiX. I'm on Ubuntu, using anaconda2. I pip install healpy==1.9.1 and check with conda list that it is installed, and that it is using the ...
17 votes
2 answers
32k views

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: ...
  • 671
1 vote
1 answer
739 views

using GCC 4.4 library with GCC 4.8 application

I am writing an application and I would like to use GCC 4.8 on rhel7. My problem is that I need to use a 3rd party shared lib which was built using GCC 4.4 built on rhel6.
3 votes
2 answers
3k views

gcc won't compile missing sys/cdefs.h

Trying to compile gcc on an armhf embedded device but it halts when trying to compile libgcc with xgcc saying it can't find sys/cdefs.h libc6 and libc6-dev are already installed and cdefs.h can be ...
  • 115
1 vote
0 answers
289 views

"relocation truncated to fit" linker error. armhf gcc

I'm trying to compile tensorflow on an embedded linux device and i keep running into this error, /usr/lib/gcc/arm-linux-gnueabihf/4.9/libgcc.a(fp16.o): In function `__gnu_h2f_ieee': (.text+0x11a): ...
  • 115
1 vote
1 answer
5k views

Missing libgcc_s_dw2-1.dll

I have a Windows 7 64bit system with the latest MinGW (32bit) installed along with the Qt 5.5 SDK (again 32bit) which also ships with its own MinGW. Due to the fact that I'm not the only one using the ...
  • 8,354
0 votes
1 answer
784 views

Libgcc Soft floating point functions

I want to find source code implementation of these functions based on soft floating point __aeabi_dcmpeq __aeabi_dcmplt __aeabi_dmul Basically, I want to to use soft floating point implementation ...
0 votes
1 answer
511 views

Modifying Comipler RT Assembly code to compile for Arm Cortex M3/M4 (CPSR/APSR bit manipulation)

I am trying to get the math routines from Compiler RT working with a GCC toolchain for the ARM Cortex M3/M4F processors (armv7m and armv7em with fpu). I have everything compiling (with minimal ...
  • 13
6 votes
2 answers
5k views

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 ...
  • 105
0 votes
2 answers
1k views

libgcc1 depends gcc-5-base but it is not installable

I am trying to install fbi on Debian 7.8 by using apt-get install fbi, but I get an error message containing the following: libgcc1 : Depends: gcc-5-base (= 5.5.1-14) but it is not installable. ...
  • 263
0 votes
1 answer
149 views

My r.java file is not generated

I get this error from the console: [2016-01-02 19:11:15 - google-play-services_lib] /home/fibrahim/Unduhan/android-sdk-linux/build-tools/23.0.2/aapt: error while loading shared libraries: libgcc_s.so....
  • 17
0 votes
1 answer
584 views

Using javacpp-preset/tesseract crashes java on exit

I am trying to use Tesseract to have OCR functionality in a Java application. To achieve this, I am using the Java/Tesseract bridge found here. pom.xml dependency: <dependency> <groupId&...
  • 628
1 vote
1 answer
130 views

Force calls to libgcc

As far as I understand, libgcc implements some libc functions which are called into when a program uses a built-in and gcc decides not to implement it by some inline assembly. Is it however possible ...
0 votes
1 answer
355 views

Ubuntu gcc compile errors

When I compile my program with the command gcc -o ****** -Xlinker -Bstatic -L/usr/lib -lf2c -lm an error occurs usr/bin/ld: cannot find -lgcc_s Who can tell me the way to solve this error? The ...
0 votes
0 answers
206 views

Link libgcc statically or not? (linux)

Does linking libgcc statically improve backwards compatibility of binaries on Linux? Are there Linux distros that doesn't ship it by default? Or maybe older Linuxes have one with an older, ...
user avatar
7 votes
2 answers
1k views

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 ...
user avatar
1 vote
1 answer
422 views

Math symbols missing from AVR libgcc

I have some AVR assembly which was generated for an unknown version of GCC. I can assemble this source into object code, but if I try to link it I am told that it contains undefined symbols. ...
  • 1,934