Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

1
vote
2answers
14 views

How do I install older programs located on older ISO distros?

Linux distro: SLES 11 SP4 I have on hand SLES 11 ISO's: SP1, SP2, & SP3 I need to locate and install older programs located on older ISO's. For example: I have gcc 4.7 on SP4, but I need to ...
0
votes
2answers
23 views

Install Linux distro with gcc4

How can I find a linux-distro with gcc4-installed? I've searched internet but without success for instance this wikipedia page
0
votes
1answer
86 views

Error Installing Single Assignment C (SAC)

I followed the instructions to download and install SAC, however, upon executing the "make fast" command I receive the following error: maxx@ubuntu:~/sac2c-1.00-beta-linux-x86_64/stdlib$ make fast ...
0
votes
1answer
176 views

GCC “__gmpn_invert_limb” compilation error

I'm currently trying to compile GCC 4.9.2 using GCC 4.2. The problem I have run into is that I have a working GMP installation (6.0.0a) but GCC fails to link to it after a while. The error I get is: ...
0
votes
1answer
282 views

LFS 7.6 GCC make error

I do not have much experience with Linux systems, but I decided to work on an LFS system for a bit. I understand that this was a large undertaking for my limited knowledge, but I thought I was ...
211
votes
4answers
75k views

Why is FreeBSD deprecating GCC in favor of Clang/LLVM?

So I was surfing the net and stumbled upon this article. It basically states that FreeBSD, starting from Version 10 and above will deprecate GCC in favor of Clang/LLVM. From what I have seen around ...
0
votes
1answer
27 views

Simple BASH script treating flags as commands

I've been trying to write a really simple bash script as follows: #!/bin/bash gcc –Werror –std=c99 client.c –o client gcc –Werror –std=c99 server.c –o server Each of the commands works fine when ...
0
votes
2answers
1k views

gcc: fail sanity check error, I suppose due to cxx USE flag missed

Recently I've done emerge -e world and then found that gcc was compiled without cxx flag. Now I can't compile any C++ package due to configure: error: C++ preprocessor "/lib/cpp" fails sanity check ...
0
votes
1answer
8 views

fglrx's libGL.so & gcc trouble

I'm trying to compile a QT5 application, but it fails over an incompatible libGL.so: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libGL.so ...
0
votes
2answers
139 views

How to install latest stable release of GCC in Linux Mint?

I want to install the latest version of GCC (GNU compiler collection) in Linux Mint 17.3. Currently g++ --version returns 4.8.4, whereas the latest stable release is 5.3.
0
votes
2answers
98 views

Linux/compiler-gcc5.h: No such file or directory

I run into problem compiling a kernel scheduler for testing the compiling error linux-2.6.32-rc3/include/linux/compiler-gcc.h:86:30: fatal error: linux/compiler-gcc5.h: No such file or directory ...
0
votes
2answers
56 views

Kali Linux 2.0: Can't install build-essential(s)

I recently installed Kali 2.0 minimal on a Virtual Machine. More specifically, 26 GiB Virtual HD, Macbook Air as the host of the VirtualBox. Immediately after installing, I went to install GCC, and ...
0
votes
0answers
17 views

Build location-independent GCC binaries

I have some problems with GCC. I want a portable version of GCC because the PC I use for programming cannot be connected to Internet due to some driver issues. So, I read an article on how to compile ...
0
votes
1answer
881 views

How to specify a custom include directory in Debian?

I am trying to compile my program on a Debian system via ssh and without root privileges. PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" NAME="Debian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" I ...
0
votes
0answers
19 views

GCC Compile Error: /usr/bin/ld: cannot find -lsqlite3.lib [migrated]

I'm trying to compile a little C-program using SQLite3. I've already included the Header-File and converted the .dll file into a .lib file. The interesting thing is that on windows, gcc (CodeBlocks) ...
0
votes
1answer
43 views

GCC 5.1.0 fails to compile following the LFS guide — pass 2; linking errors?

I'm trying to follow the LFS guide for compiling the GCC 5.1 with binutils 5.25 and glibc 2.21 and the process fails when reaching the "gcc pass 2" step giving me the error: ld: ...
2
votes
1answer
2k views

Understanding SPL & U-Boot Memory Map using bdinfo?

We are using beaglebone black based custom board, I want to write some test results into RAM location from SPL, and read that log and send it via tftpput to the host PC. So far I'm able to do tftpput ...
3
votes
1answer
25 views

How to get the compiler flags that are used to build the binaries in a (.deb) package?

I know that apt-get source <package_name> gives you the source package. It contains a debian folder with a file called rules. If I understand it correctly, this file describes how the source ...
1
vote
2answers
1k views

gcc installation on CentOS 6.6: configure issue

I'm trying to build/install gcc on CentOS6.6, following this instructions: http://qt-project.org/wiki/How-to-Install-Qt-5-and-Qwt-on-CentOS-6 After the auto-config err'ed out: [felix@localhost ...
0
votes
1answer
73 views

Maintaining single binary across Debian distributions

We are currently migrating our system from Debian 6 to 8. The agenda is to try to maintain single binary across OS platforms (x86 based) However, I tried running a Debian 8–compiled binary in ...
0
votes
1answer
934 views

Installation of QEMU, GCC for ARM in RHEL

We are setting up a lab which has the QEMU system to emulate an ARM processor and run assembly programs. The lab is currently setup with the host operating system as Ubuntu. We are migrating the lab ...
3
votes
1answer
4k views

Linker error: /usr/bin/ld: cannot find -lgcc_s

I am trying to compile symlinks (tar.gz-file), which is a very small tool with one line for compilation: gcc -Wall -Wstrict-prototypes -O2 -N -s -o symlinks symlinks.c which gives the error .... ...
6
votes
1answer
536 views

Enabling support for AddressSanitizer in FreeBSD

The question essentially is how to compile a program that uses AddressSanitizer in FreeBSD. I use FreeBSD 10.0 (64-bit). I am trying to compile the following code with -fsanitize=address flag: int ...
0
votes
0answers
45 views

Cross compilation of gcc on ARM

I am getting the following error during cross compilation of gcc on ARM: TLS -o _udivsi3.o -MT _udivsi3.o -MD -MP -MF _udivsi3.dep -DL_udivsi3 -xassembler-with-cpp \ -c ...
3
votes
1answer
102 views

Unable to compile Linux kernel

I am trying to upgrade my kernel to 4.5 in Linux Mint 17.3, but I get the following error: Makefile:666: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler ...
10
votes
3answers
3k views

Find and install man file manually

I seem to be missing some man pages, notably gcc and g++. It doesn't help that I specify the section. whereis doesn't list man pages for those two, so I think they are simply not there. With Google I ...
2
votes
1answer
1k views

Gcc configuration error

I am trying to build GNU toolchain for OpenRISC by following the guide given at http://openrisc.net/toolchain-build.html#_stage_1_gcc on Fedora Virtual Box Image. I am getting error saying ...
2
votes
3answers
2k views

How to set the default gcc version for only one user

I share a server (Ubuntu 11.04) with other people and I am the only one who has to use gcc 4-4 for my code, the rest is using 4.5. I already installed gcc 4.4 but how do I make it the default for me, ...
1
vote
1answer
42 views

Install GCC 4.8+ on rhel x86_64 workstation 6

I want to install gcc 4.8+, preferrably 4.9 on my Red Hat Enterprise Linux Workstation release 6.7 (santiago) I have a subscription to rhn-classic. I tried installing devtoolset as given in ...
0
votes
0answers
20 views

install arm gcc on Wheezy [duplicate]

I'm trying to build an application for Debian 8 on ARM arch on a virtualmachine running Debian 7 using cross-compiler. But when I try to run sudo apt-get install gcc-arm-linux-gnueabihf I get an ...
3
votes
2answers
117 views

installing virtualbox apt-get wants to download gcc-4.8 --> replacing gcc-4.9?

I'm trying to install virtuabox on Debian 8.3 using the contrib repos. When I use apt-get install virtualbox it wants to install gcc-4.8, but I already have gcc version 4.9.2 installed. What am I ...
1
vote
1answer
41 views

Location of executable file formed after compiling a C program

I have compiled my C source code using: gcc filename.c It got compiled, but I cannot see the executable in the same directory where my source code is. But when I compile my program using: gcc ...
0
votes
1answer
31 views

how can the gcc 6 option “-Wmisleading-indentation” work reliable?

Reading the GCC 6 Release Series Changes, New Features, and Fixes I find very interesting the new option -Wmisleading-indentation: -Wmisleading-indentation warns about places where the indentation of ...
0
votes
1answer
36 views

Gentoo failed to emerge GParted 0.25.0

My system is Gentoo 64 bit GCC version is gcc (Gentoo 5.3.0 p1.0, pie-0.6.5) 5.3.0. I got this error while emerging sys-block/gparted-0.25.0 ...
0
votes
1answer
64 views

How to install a custom GMP lib for just one user?

I'm doing some heavy number crunching on one system and I'd like to compile (and finetune) a custom GMP 6.1.0 for the user launching the number crunching computation. Previously I had a Debian wheezy ...
2
votes
4answers
20k views

install latest gcc on rhel 6 x86_64

I have an RHEL 6 server with gcc version 4.4.7. I wanted to update the gcc version (I think the current one is 4.8). Yum update doesn't work. Also, SO answers for a similar question on CentOS does not ...
0
votes
0answers
13 views

gcc profiling - gmon.out contains partial data

Out app is built using libtool (2.4.2), that in turn is using both g++ and gcc (4.8.4). OS is Ubuntu 14.04. All source files are compiled using -pg and the link command includes the -pg flag as well. ...
0
votes
2answers
9k views

CentOS yum install gcc error: glibc-common conflicts with glibc

I met a problem with installing gcc on my CentOS. Outputs of my command sudo yum install gcc: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: centos.ustc.edu.cn ...
1
vote
1answer
128 views

Linux kernel, missing '__fentry__' symbol

Trying to build the EtherCAT master driver (realtime I/O driver) on a RT Linux (SL6.3) I keep bumping into a missing symbol issue when building the EtherCAT kernel modules: # make modules make -C ...
2
votes
1answer
3k views

How to configure OpenIndiana(151a8 aka “hipster”) for development?

I saw a similar post about Solaris and thought of a similar howto. I've heard of recent news (as in 2013) with the distribution and I learned I could easily update my initial OpenIndiana 151a7 release ...
8
votes
2answers
281 views

Would it be possible to compile and bootstrap GNU?

A new Guix release came out some time ago. And I got the idea that if I can bootstrap glibc, gcc, and guix to HURD and Mach, I can have a non-Linux GNU system. But I also need some software like bash, ...
6
votes
4answers
6k views

C compiler cannot create executables

I'm trying to install wine on Linux Mint 17.1. I ./configure'd as root to install it. Input: cd Downloads/wine-1.6.2 ./configure Output: checking build system type... x86_64-unknown-linux-gnu ...
1
vote
2answers
467 views

Arch: Compiling toplev.o fails in GCC install

I'm currently trying to install gcc41 using the AUR and I'm experiencing an issue. Everytime it goes through the compiling process the build fails because it cannot complete compilation of the toplev ...
1
vote
0answers
61 views

Some commands are no longer responding?

I have a Debian based distribution & lately a problem has been encountered when trying to execute the gcc or man command's (And probably other commands I haven't found yet). When I type them in ...
1
vote
2answers
37 views

stuff in quotes are hidden in the compilation error message for gcc?

this happens with both g++ and gcc as whenever I tried gcc file_name and the above happens.
0
votes
2answers
81 views

bash command to print gcc environment variables

Is there a way to print all the GCC environment variables(path for include directory, library) from the command line, i.e something similar to 'printenv' that gives all bash environment variables ?
8
votes
1answer
8k views

Install g++ when having gcc (C only) — RH6

I have a RHEL 6 machine, which came with gcc but without g++. The gcc version is 4.4.4 20100726 (this is what I got from gcc --version). How can I get g++ working? Currently, the shell just returns ...
1
vote
1answer
264 views

Unable to use VMWare Workstation 12

I found myself unable to use the VMWare Workstation 12 trial on Debian Stretch as well as on Ubuntu 15.10. It installs just fine, but when I attempt to start it, it simply does nothing, no error or ...
0
votes
3answers
97 views

How to install GCC 4.7.2 on CentOS 5.2?

I'm trying to install GCC 4.7.2 on a CentOS (virtual) machine. In order to do this, I downloaded GCC 4.7.2, and tried to configure and to make it. Unfortunately the configuring didn't work, as other ...
1
vote
1answer
19 views

Adding gdbm on Debian (Beagle Bone Black)

So right now I'm going through my An Introduction to GCC book and I'm up to chapter 3 with gdbm. Now it wasn't there in the first place, and I've tried some "gdbm" "gdbm-devel" to get C gdbm on ...