Questions tagged [libgcc]
67 questions
3
votes
1 answer
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 avr-gcc via cli. Since Flash storage is at a…

Amine Kchouk
- 162
- 1
- 11
3
votes
2 answers
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 found at /usr/arm-linux-gnueabihf/sys/
how do i add…

normad
- 115
- 1
- 10
3
votes
1 answer
Linking libgcc into a -nostdlib compilation
I'm trying to produce a executable without dependency on libc (or any other). First I have done this:
// test.c
void _start()
{
// write(1, "hello!\n", 7);
asm ("int $0x80"::"a"(4), "b"(1), "c"("hello!\n"), "d"(7));
// exit(0);
asm…

Guilherme Bernal
- 8,183
- 25
- 43
3
votes
1 answer
ld: library not found for -lgcc_s.1 when creating AIR iOS package with native extension
I'm trying to create an AIR native extension for iOS, but when try create the package to deploy to my device, I'm getting the following error:
ld: library not found for -lgcc_s.1
Compilation failed while executing : ld64
Its working when I try to…

Paul
- 181
- 1
- 9
2
votes
1 answer
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/lib/gcc/aarch64-redhat-linux/12/libgcc.a | grep…

Anna
- 23
- 4
2
votes
0 answers
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 have some problems.
Here are the command lines I used…

trenzalore
- 31
- 4
2
votes
2 answers
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…

theimpulson
- 101
- 1
- 11
2
votes
1 answer
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 conda pip, not system.
When I 'import healpy' I…

ben thorne
- 61
- 5
1
vote
0 answers
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 some digging into the GCC source code and it…

Ryan Stankiewicz
- 128
- 1
- 6
1
vote
1 answer
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
and the same result is printed by libgcc printf.…

Mirek Fidler
- 330
- 1
- 9
1
vote
1 answer
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.so: object '/lib/snoopy.so' from /etc/ld.so.preload…

Martín
- 11
- 2
1
vote
1 answer
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.

Snooze7
- 9
- 1
- 3
1
vote
0 answers
"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): relocation truncated to fit: R_ARM_THM_JUMP11…

normad
- 115
- 1
- 10
1
vote
1 answer
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 system I can't remove the standalone MinGW.
My…

rbaleksandar
- 8,713
- 7
- 76
- 161
1
vote
1 answer
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 to have gcc implement all built-ins as calls to…

Troels Folke
- 917
- 2
- 9
- 12