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.

1
vote
1answer
29 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
19 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
15 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
66 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
55 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
56 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
56 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
31 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
50 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
90 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 ...
0
votes
1answer
440 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
347 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
92 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
1k 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
74 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
20 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
40 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
143 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
51 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
230 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
64 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
72 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
227 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
65 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
209 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
853 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
214 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
3k 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
58 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
752 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
79 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
152 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
60 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
108 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
28 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
292 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
410 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
187 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
159 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 ...
9
votes
2answers
1k views

What sets fs:[0x28] (stack canary)?

From this post it is shown that FS:[0x28] is a stack-canary. I'm generating that same code using GCC on this function, void foo () { char a[500] = {}; printf("%s", a); } Specifically, I'm ...
3
votes
1answer
7k views

How to install a functional ARM cross-gcc toolchain on Ubuntu 18.04?

Context I recently installed Ubuntu 18.04, Linux foobar-VirtualBox 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux on a VM. I want to cross-compile ...
-1
votes
1answer
893 views

What does the -O2 option for gcc do? [closed]

What does the -O2 option for gcc do? eg. gcc -O2 file1.c -o file1.o
1
vote
1answer
447 views

Difference between the linker flags

I'm adding c++ runtime and exception support to the Linux kernel. For that, I need to provide my own lib/gcc and lib/libstdc++instead of the standard libraries provided by the compiler. So, I am ...
0
votes
2answers
877 views

Where is stddef.h defined in Linux?

If I want to find the values of stddef.h, where is it defined? The /usr/include/linux/stddef.h almost has nothing, /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef ...
-2
votes
1answer
208 views

error: types may not be defined in ‘sizeof’ expressions

I'm trying to compile linux kernel verison 4.14.41 and got the following error: ./arch/x86/include/asm/acpi.h: In function ‘void arch_acpi_set_pdc_bits(u32*)’: ./include/linux/build_bug.h:30:45: ...
3
votes
1answer
419 views

How to install php7 on solaris 10 with OpenSSL 1.0.1

I am trying to install php7 on Solaris 10. OpenSSL 1.0.1 was installed from https://www.opencsw.org/packages/libssl1_0_0/ To check for the installed ssl I did pkginfo -i | grep -i "ssl" and I ...