Questions tagged [gcc]

Questions regarding GNU Compiler Collection Suite.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Why does gcc need to the --with-newlib flag when bootstraping for LFS?

When building the first pass of GCC in Linux From Scratch, it says to pass the --with-newlib flag because "Since a working C library is not yet available, this ensures that the inhibit_libc ...
0
votes
1answer
21 views

get error while installing gcc with yum

i changed my yum repository to /media and mounted iso of CentOS-7-x86 to /media and used yum install packagename to install packages with dependencies, got no errors but when i tried to install gcc i ...
0
votes
0answers
14 views

Strange error when compiling lightdm-gtk-greeter-2.0.3.tar.gz

I got the error when compiling lightdm-gtk-greeter-2.0.3.tar.gz as below make[2]: Leaving directory '/sources/lightdm-1.24.0/lightdm-gtk-greeter-2.0.3/po' Making all in src make[2]: Entering ...
-1
votes
1answer
20 views

Shared library built on Ubuntu with -ljpeg doesn't work on Debian

I am making a shared library using C language. This lib has a dependencies from libjpeg and X api. I am building it on Ubuntu 18.04 OS and to build it I use the following command: gcc mycode.c -o ...
0
votes
1answer
7 views

ARMv7: When throwing exception within library: “terminate called without an active exception”

I am cross compiling with gcc 4.9.2 for armv7hv (gcc-4.9.2_armv7hf_glibc-2.9). Theres a main executable and a library with one exported function Foo(). What I experience is that if I throw an ...
0
votes
0answers
16 views

gcc pass 1 looking for libc libraries

I'm attempting to build LFS. I'm currently on step 5.5.1 checking for C compiler default output file name... configure: error: in `/home/ubuntu/linux-toolchain/src/gcc-8.2.0/build/intl': configure: ...
0
votes
1answer
35 views

apt install older version of gcc (not working)

i want to install a previous version of gcc (7.3.0). Currently, i have installed gcc in version 7.4.0. I uninstalled gcc with sudo apt-get remove gcc; sudo apt-get autoremove and tried to install the ...
1
vote
0answers
57 views

gcc g++ - configure: error: *** A compiler with support for C++11 language features is required

I'm trying to compile and build libsigc++-2.10.2 on cygwin with gcc 8.3.0. $ gcc --version gcc (GCC) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for ...
1
vote
0answers
61 views

Why are two binary files always different [closed]

I have two machines, they are all x86 and the OS are the same and the versions of the gcc are the same too. Now I compile the same code on the two machines and get two binary files. However, it ...
0
votes
0answers
13 views

Fixing conflicting libstdc++ libraries (different gcc installations)

On OpenSUSE Leap 15.1: Default is gcc-7. I need gcc-5 (or >4.8). So I compiled it from source and installed into /usr/local. (the official gcc-7 is in /usr). Now a bunch of programs complain about ...
1
vote
0answers
72 views

Shell script cannot find file [duplicate]

I am trying to install a gcc-arm version but run into trouble while trying to run the setup shell script. Following step 2 in the prerequisites I downloaded GNU ARM embedded toolchain v4.9-2015q3. ...
0
votes
0answers
34 views

Installing GCC 4.7.0 fails at make command

I'm attempting to install GCC 4.7.0 in Linux Mint (based off of Ubuntu 18.04). I get past the first step of configuring it. However when I run make -j5, I get the following errors: make[2]: Leaving ...
0
votes
0answers
23 views

How does my application in Linux know how to find libraries in the common places [duplicate]

When I compile a simple C program for Linux, how does it automatically know where to find the standard C libraries when I run it? Take the simple Hello World program for example which uses printf to ...
1
vote
1answer
68 views

What packages the man pages for GCC on Debian 10 Buster / Testing?

I just installed build-essential, which installed gcc-8 but the man pages seem to be unavailable. $ man gcc No manual entry for gcc See 'man 7 undocumented' for help when manual pages are not ...
0
votes
0answers
18 views

Compiling module crc32_intel_glue fails

I have two CentOS hosts and want to install the kernel module crc32_intel_glue.  I don't find it in the official repo, so I tried to build it from source, and failed. I downloaded crc32c-intel_glue.c ...
2
votes
1answer
36 views

What the branch machine op-code means (X86 architecture)?

I have a simple c code which is compiled and then the text code extracted using objdump utility. here is the dump file (A piece of dumped file): 0804841b <main>: 804841b: 8d 4c 24 04 ...
1
vote
0answers
26 views

How to determine the runtime dependencies of gcc-arm-none-eabi?

Background There is a GCC bug that affects Cortex M0 architecture which seems to be introduced in v5.4.1 (...and seems to be fixed in the trunk, however, we aren't interested in this option ATM). ...
0
votes
0answers
21 views

Debian nvidia-cuda-* packages conflict with gcc-6

I'm trying to compile a CUDA program on a Google Cloud VM running Debian Stretch. CUDA does not seem to officially supported on Debian but I was able to to install nvcc by installing the nvidia-cuda-...
0
votes
0answers
90 views

Why am I receiving make errors when trying to compile GCC?

I am currently working on Linux From Scratch part 5.5: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/gcc-pass1.html Although i have followed everything exactly correctly to this point, I ...
0
votes
1answer
89 views

How to cross compile older version of GCC under Debian?

I'm trying to build an older version of GCC toolchain for ARM under x86 because there is a bug with GCC > v5 for Cortex-M0. I'm following the combination of the following instructions: https://...
0
votes
1answer
94 views

Check which library compiled in linux

I want to compile a C file with gcc, to embedded arm that is running Gnu/Linux . How can I known which function/header files that I need to compile statically, and which dynamically?(I don't want to ...
0
votes
1answer
104 views

How to suppress all warnings being treated as errors for format-truncation

I am trying to build my source using gcc 8.3.0 root@eqx-sjc-engine2-staging:/usr/local/src# gcc --version gcc (Debian 8.3.0-2) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free ...
0
votes
0answers
32 views

Browsers recomendations that work without “modern” glibc and libstdc++

Recently a website that I use was modified, and with that, I can no longer bid on an auction I participate in. I use an Firefox 30, a Firefox 45 and a Palemoon 27.9.4, but neither works anymore. To ...
2
votes
1answer
61 views

How to install .net Mono on Solaris 11 (source code compile)?

I downloaded the last mono tar to Solaris 11 I install the required packages: # pkg install autoconf # pkg install automake # pkg install libtool # pkg install gcc When I tried to configure mono 5....
0
votes
0answers
124 views

Fail to initialize plugin stackleak_plugin.so

I'm on Fedora 28, Kernel 4.20.14-100.fc28.x86_64 and trying to get a working dual-screen on a D6000 Dell docking Station. For now I have the following error while trying to restart the displaylink ...
0
votes
1answer
39 views

What are the criteria for including a language in gcc? [closed]

According to man gcc, gcc supports the following languages, which you can choose from with the -x flag: c c-header cpp-output c++ c++-header c++-cpp-output objective-c objective-c-header ...
1
vote
1answer
785 views

G++/GCC installed but still: error trying to exec 'cc1plus': execvp: No such file or directory

Full error message: arm-linux-gnueabihf-g++: error trying to exec 'cc1plus': execvp: No such file or directory So I have got this error message while trying to build a C++ project on my machine ...
2
votes
1answer
639 views

Installing python modules fail - “limits.h” missing?

I am trying to install a number of python 3 modules (e.g. regex, cytoolsz, spacy) that require compilation, but they all fail with an error identical to the below (bottom). I have tried to check for ...
0
votes
0answers
122 views

Cross Compiling GCC - 'glibc' on windows for linux platform

I am trying to cross compile the gcc for linux - i686-elf platform from windows PC. As per the toolchain steps, I have successfully compiled: binutils using /binutils-x.y.z/configure --target=$TARGET ...
7
votes
2answers
2k views

gcc - unknown switches (absent also from the manpage)

I'm trying to experiment with shared objects and found the below snippet on http://www.gambas-it.org/wiki/index.php?title=Creare_una_Libreria_condivisa_(Shared_Library)_.so gcc -g -shared -Wl,-soname,...
4
votes
0answers
120 views

Compile a library aiming to reduce size as much as possible

I have to 'squeeze' all the needed code to run ldaps on an embedded system. So the 3 MiB of lybcrypto and almost 700KiB of libssl are way too much. I'm now experimenting on ldapsearch because reading ...
0
votes
0answers
49 views

unknown value 'cortex-a73.cortex-a53' for -mcpu

Im trying to compile an android kernel. Im using the sourcecode from https://github.com/tytydraco/hex_jasmine . As suggested from the developer i installed a fresh Arch linux box on VmWare 6.5. with ...
0
votes
1answer
189 views

How does __USE_MISC referenced in glibc work?

I'm just wondering how __USE_MISC works and where it's documented. I see a bunch of functions inside .h files require it and mention it. But it seems something is actively undefining it and I would ...
1
vote
0answers
60 views

gcc 8.2.0 build fails on LFS v8.3

While building all packages in order every single one of them has succeeded but gcc 8.2.0 build fails. Below is the build error on executing make: msgfmt: error while loading shared libraries: ...
0
votes
1answer
484 views

LD cannot find lib even with specified path

What I've tried: gcc -L/path/to/lib/ -llib ... gcc -l/path/to/lib/lib.so.x.x.x ... Update ldconfig Added path to LD_LIBRARY_PATH file shows correct build version and link to the correct file No ...
1
vote
0answers
71 views

How to safely reconfigure gcc on my Linux system?

I am trying to install a program (github.com/zhenglz/dockingML) on CentOS 6.10 and at the end of the installation, it gave an error saying that Glibc-2.14 is necessary. I upgraded the current Glibc ...
0
votes
1answer
80 views

How to grep using gcc to find definitions in standard librarys [closed]

I have found in my project a type definition, which is definitely from a standard library. Lets say the definition is called uint64_t I know #include <stdint.h> #include <string.h> #...
3
votes
1answer
359 views

How are GCC versions chosen for compiling the linux kernel?

I know that the linux kernel specifies minimal compilation requirements, but I haven't found any source of information regarding how distros/vendors choose which version of GCC to use when compiling ...
3
votes
1answer
67 views

How to build the GCC HTML documentation from source into a single page?

I had asked a similar thing for GDB at: How to build the GDB documentation from source? , and it changed my life, now I want the same for GCC! I managed to build the docs on Ubuntu 16.04 and gcc 6.4....
0
votes
1answer
291 views

Solaris 11.3 - Unable to install system/header

I'm (unsuccessfully) trying to get GCC installed on Solaris 11.3 but am running into a lot of issues. My current issue is that I'm unable to install the package "pkg://solaris/system/header". ...
0
votes
2answers
1k views

In centos,how to switch to default gcc after switched to a higher version of gcc with devtoolset

I want to install several gcc with different versions in centos. The default version of gcc in centos 6 is 4.9.3. So I use devtoolset install a higher version of gcc. Then I switch to the higher ...
0
votes
1answer
246 views

“-sh: Cannot execute binary file” because of source compiled on “x86_64” and executed on “i686” platform

I need to run some USB NCM related test cases for which i have written some test code in .c file. I have compiled the .c file from Ubuntu Host by using GCC compiler and trying to run from Device's ...
1
vote
2answers
4k views

How to link to a shared library with a relative path?

In the man page for ld.so(8), it says that When resolving library dependencies, the dynamic linker first inspects each dependency string to see if it contains a slash (this can occur if a library ...
-1
votes
1answer
59 views

Makefile fails when trying to run a C program [closed]

I have a bunch of tasks in making a Makefile file, I have these files: https://raw.githubusercontent.com/systems-cs-pub-ro/uso/master/tema1/boo.c https://github.com/systems-cs-pub-ro/uso/raw/master/...
3
votes
1answer
4k views

Centos 7 gcc 8 installation

GCC 8 is out for a white and I would like to test on CentOS 7, but no devtoolset-8 yet in yum. I found https://cbs.centos.org/koji/packageinfo?packageID=7198 but this is cbs; Can I have it as a ...
4
votes
2answers
1k views

What is the difference between “LSB executable” (ET_EXEC) and “LSB shared object” (ET_DYN)?

With two files, one compiled and linked with gcc and the other manually with nasm and ld I get ELF 32-bit LSB shared object ... ELF 32-bit LSB executable ... What's the difference between these two ...
0
votes
1answer
107 views

Does GCC generate Bit Tests (x86 BT)?

Seaching through the GCC source, I see things like X86_TUNE_USE_BT TARGET_USE_BT My goal is to get an answer for myself whether or not GCC generates BT, BTS, BTR, and BTC. I started with BT and I ...
2
votes
1answer
191 views

install different version of GCC side by side

My primary problem is in my Fedora 28, GCC8 is installed. Now, this gives libgfortran.so.5. But many of my applications are not updated and still depends on libgfortran.so.3 So, how can I solve the ...
2
votes
1answer
2k views

Installing VMWare Tools

I am trying to install VMWareTools 9.6.5-270 on my freshly downloaded Linux Mint 19 from OSBoxes. I am running it inside VMWare Workstation 10.0.7 build-2844087 Like many online, I cannot get past ...
0
votes
0answers
67 views

Missing cc1 executable on Amazon Linux

I've been trying to build Tensorflow on Amazon Linux (2016.09). I'm struggling with not being able to get cc1 to install with GCC. Here's what I've tried: Installing gcc Installing gcc-c++ Installing ...