70 questions
2
votes
2
answers
181
views
Where is GCC's __divti3 defined?
For GCC's __int128 type
__int128 div128(__int128 a, __int128 b) {return a / b;}
GCC will generate a call to __divti3 instead of inline assembly. So where is this actually defined? Github's search ...
1
vote
2
answers
356
views
Why does my hello-world Rust executable depend on libgcc_s?
I'm building the following program in Rust:
fn main() {
println!("Hello, world!\n");
}
on a Devuan Excalibur system (like Debian Trixie but without systemd; rustc version 1.84). After ...
5
votes
1
answer
711
views
How to tell if my program needs libgcc_s.so.1?
Context
I have a bunch of C/C++ code on Linux that I need to build on a Linux host machine and run inside a custom container solution (clean Linux). In order to be able to run the program inside my ...
0
votes
0
answers
959
views
What is the difference between libgcc and libc?
I need to use the C standard to compile with my POSIX implementation. I downloaded the precompiled lib of gcc-11.2, but after unzipping, I am facing libgcc.a and libc.a libraries.
I tried to compile ...
1
vote
1
answer
147
views
How to detect if libgcc has been loaded
I want to use GNU libc's backtrace() and backtrace_symbols_fd() functions in a signal handler. However, the backtrace docs page tells me to make sure that libgcc is loaded already in that case.
But ...
0
votes
1
answer
114
views
libgcc subroutines documentation for avr-gcc
I disassembled some C++ code with the avr-gcc compiler in godbolt and often found calls to libgcc subroutines like __udivmodhi4 or __mulhi3.
Where can I find good and insightful documentation about ...
2
votes
1
answer
221
views
libgcc - Overview from the used functions by gcc depending on the architecture
Is there somewhere an overview for functions in libgcc, which functions are used for a specific architecture (amd64, ARMv8, ...) ? Major projects like Linux or U-Boot uses their own implementation of ...
3
votes
1
answer
15k
views
ERROR: Could not build wheels for netifaces, which is required to install pyproject.toml-based projects
I am trying to deploy some code onto a remote Raspberry Pi CM4 hub running BalenaOS. However, my build has been failing while trying to install the netifaces library. The error message is as follows:
...
2
votes
2
answers
2k
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/...
3
votes
1
answer
139
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
2k
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
...
0
votes
1
answer
253
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
3k
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 ...
2
votes
0
answers
1k
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
88
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 (...
10
votes
1
answer
4k
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
vote
0
answers
3k
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 ...
1
vote
1
answer
282
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
221
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
230
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
655
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
603
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 ...
1
vote
0
answers
598
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
vote
1
answer
3k
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....
0
votes
0
answers
1k
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-...
0
votes
1
answer
329
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 ...
5
votes
0
answers
2k
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).
...
0
votes
1
answer
103
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 ...
0
votes
0
answers
723
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 =...
0
votes
0
answers
266
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 real ...
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 ...
0
votes
1
answer
187
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
6k
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
135
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....
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 ...
19
votes
2
answers
37k
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: ...
1
vote
1
answer
843
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 ...
1
vote
0
answers
323
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): ...
1
vote
1
answer
6k
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 ...
0
votes
1
answer
1k
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
661
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 ...
6
votes
2
answers
6k
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 ...
0
votes
2
answers
2k
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.
...
0
votes
1
answer
157
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....
0
votes
1
answer
652
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&...
1
vote
1
answer
191
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
378
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 ...