Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gcc]

Questions regarding GNU Compiler Collection Suite.

0
votes
0answers
8 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
votes
1answer
22 views

GCC .lib file format not recognized by shell script

I am trying to run a shell script for gcc arm, but while running the script I get this error File format not recognized The end of the script, line 70 is the last one: include $(...
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
27 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
29 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
17 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
33 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
17 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
72 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
70 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
78 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
70 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
56 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
115 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
636 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
478 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
107 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
97 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
25 views

How to use qcc instead of gcc in this libtool command

I am building a package for a QNX operating system and there is a script that executes several libtool commands in the following form: /bin/bash ../libtool --tag=CC --mode=compile ${CC} -...
0
votes
0answers
44 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
168 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
56 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
353 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
69 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
78 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
313 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
66 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
240 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
231 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
3k 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
854 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
86 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
172 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
63 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 ...
0
votes
1answer
122 views

What version of gcc should I use to compile the latest stable Linux kernel?

Do I need the latest gcc? Can I use the gcc binaries included with my distro? Does it matter?
1
vote
0answers
29 views

Compiled execuatable is seen as shared library [closed]

I worked on a Qt app. i went to a build directory, i was an .out or .elf executable that will run once i click it, but am seeing this shared library of a thing, that only runs when called from a ...
2
votes
2answers
302 views

Are there any successful forks or refactors of the Linux Kernel?

A google search reveals this slashdot story yielding this github repository that hasn't had a commit since 2016. There are 22,602 forks listed on github.com but these are going to be mostly (if not ...
1
vote
1answer
429 views

devtoolset-4 was removed from centos-release-scl?

I need to install gcc 4.9 on CentOS 6. And I usually do the following: yum install -y centos-release-scl yum install -y devtoolset-3-gcc-c++ make cmake re2c libuuid-devel libxml2-devel zlib-devel ...
0
votes
0answers
192 views

/usr/bin/ld: cannot find -lQt5::Core (and others)

I try to compile Simon Voice Recognition Software version 0.4.90 from source on Arch Linux with KDE Plasma. Source was obtained using git clone git://anongit.kde.org/simon simonsource When I execute ....
0
votes
0answers
27 views

Looking up docs for C header files? [duplicate]

On Ubuntu if I type man 2 time I get, NAME time - get time in seconds SYNOPSIS #include <time.h> time_t time(time_t *tloc); ... I get that this works because time is the ...
1
vote
0answers
163 views

How do I install newer or older versions of GCC on Devuan/Debian?

Some distributions come with package sets for different versions of GCC, which you can easily install in parallel; others do not. Specifically, in Devuan ASCII / Debian Stretch, there only seem to be ...