Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

1
vote
2answers
85 views

Install another gcc version

I'm trying to compile NVIDIA CUDA on a Fedora 24 Workstation. I'm using CUDA version 7.5 and when I try to compile it I get this method: gcc versions later than 4.9 are not supported! I have ...
0
votes
1answer
39 views

Running C++11 library with older libc

I have written a shared library using C++11 features, compiled with gcc 4.8, libc 2.18, which needs to be run on a client's CentOS 6 machine, which has gcc 4.4.7, libc 2.12. There are some symbols in ...
0
votes
1answer
40 views

Constraints on gcc / glibc versions between build and run

Probably a basic question but I did not manage to find a clear answer to it: Let's say I am compiling a code (with some parts in C) on a build server and run it on a different server. The build ...
0
votes
1answer
41 views

Force linker to find stdc++ library in non-standard directory

I've read a lot of guidance that says the LD_LIBRARY_PATH is searched before anything else, but one of my .so libraries is linking with libtdc++.so.6 in /usr/lib64. ldd mylib.so: ... libstdc++.so.6 =&...
0
votes
0answers
21 views

Error While compiling GCC4.8.4 from source [duplicate]

I am a non-root user running CentOS 6. While building gcc 4.8.4 from source I was getting this error running the make command: /usr/bin/ld: skipping incompatible /home/internal/evol/sskadam/lib/../...
-1
votes
1answer
53 views

GCC 4.8 compilation error: cannot find the system header directory

I'm trying to compile GCC 4.8.3. I have read the documentation carefully but I'm still unable to cross compile it for 64bit system. I have also gone through this guide. But my requirement is to build ...
1
vote
1answer
66 views

What is -J n Option for in GCC?

I have a final exam next week, and in the exercise paper which is given us to study, there is a gcc option that I could not find on gcc manual page. It is something like that gcc -J 4 program.c -o ...
2
votes
1answer
48 views

Why can't I fetch the gcc-doc package on Debian?

When I was testing some code snippets from Stack Overflow, I realized that I haven't any man-pages for GCC on my Debian System. But when I try to get them from Debian's repositories it outputs E: ...
0
votes
2answers
33 views

Ubuntu - Removing MPFR and installing a new version from source

I am on Ubuntu Hardy Heron trying to compile gcc 4.4 from source. The problem is that I need MPFR version 2.3.2 or greater. I have MPFR version 2.3.1. I can verify this via running this small snippet ...
0
votes
1answer
61 views

What does the file cpuid.h do?

I am trying to build GLIBC 2.14 from source. I keep getting the error message that cpuid.h was not found. What does that file contain and what purpose does it serve ? I have seen that cpuid.h is ...
1
vote
0answers
25 views

How to build GTK2 on the Mac OS X EI Captain?

I tried to build GTK2 to Mac OS X EI Captain from source code. But by the environment variable (INCLUDE?), an error occurred and I failed to build. Please help me by advices? Doesn't someone have the ...
4
votes
0answers
119 views

Using a NFS for gcc, Apache, PHP, MySQL, glibc

I have 7 SLES VM. I am compiling always the newest version of gcc and all dependencies. Apache and all dependencies. PHP and all dependencies. MySQL and all dependencies. glibc and all dependencies. ...
1
vote
1answer
38 views

Problems compiling VASP

I'm trying to compile VASP 5.4 on Ubuntu 14.04 and running into issues. I believe I'm most the way there but when I run the make command it seems to bottle out with out a specific error. I am unable ...
1
vote
2answers
529 views

How to install GCC 5 on debian jessie 8.1

I tried many solutions to install update for my gcc compiler on debian server. None of them worked. I need the compiler update to use new features of c++11, as this provides a stable libcxx11 ABI, and ...
0
votes
1answer
40 views

Can I configure gcc to always output to the code file's name instead of a.exe?

By default, when running gcc test.c, gcc will output the executable as a.exe. Is there a way to globally override this so that gcc will create test.exe? This assumes that there's only one input file -...
0
votes
0answers
35 views

Installing g++ on Oracle Linux Server 7.1 without internet

I have a laptop running Oracle Linux Server 7.1. Trying to make a C++ file and receiving the error: make[1]: g++: Command not Found I assume I need to install g++. I've gone through a number of rpm ...
1
vote
2answers
27 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
1answer
36 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
26 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
25 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
1k 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
180 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
47 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 ...
3
votes
1answer
48 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 ...
0
votes
1answer
172 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: /tools/lib/../lib64/...
0
votes
1answer
84 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
0answers
79 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 ../.././libgcc/../gcc/config/...
0
votes
2answers
837 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.
3
votes
2answers
239 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 ...
1
vote
1answer
307 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 https://...
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
214 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
49 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
62 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
75 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 /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../...
0
votes
1answer
114 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 (...
0
votes
0answers
15 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. ...
1
vote
0answers
63 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
1answer
294 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 "/...
1
vote
2answers
46 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
155 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 ?
0
votes
3answers
149 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
26 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 debian....
4
votes
1answer
61 views

Finding out binary's compiling computer name

We have recently in our workplace stumbled upon a really old binary file that originates from unknown old computer. However in order to run this binary we need to get some local resources and ...
0
votes
2answers
38 views

Printing out standard C/GCC predefined macros in terminal

I am wondering if there is a way to simply output to the terminal the value of some global/standard definitions of C/GCC, e.g. using the echo command, without writing C code and using printf? I mean ...
1
vote
0answers
36 views

Build errors on a copied operating system in a chroot

I'm in a bit of an interesting situation. In an attempt to have root access on my school's physics network computers, I ended up creating a chroot environment, using fakeroot and fakechroot. As every ...
3
votes
1answer
42 views

Where do I find prebuilt binutils and compilers for obsolete operating systems?

I just obtained a Sun SPARCstation 20 and installed SunOS 4.1.4 on it. I'd like to build some software on it with something a little more modern than its stock pre-ANSI C compiler, and without the ...
1
vote
0answers
108 views

Prune yum of stale installed packages/duplicate gcc packages after manual install

I'm in a weird situation, and maybe I've messed something up and just need to hit the reset button and re-install CentOS. Off a fresh install of CentOS7.1 the other day, I noticed the latest version ...
1
vote
0answers
601 views

Need Help Cross Compiling Openssl for MIPS

I've been trying to cross compile Ncat for the MIPS architecture (big endian), and I really need SSL support, so I first must compile OpenSSL. I downloaded the latest version from Github and ...
3
votes
1answer
140 views

Fatal mistake: Uninstalled sys-devel/binutils - emerge don't work anymore

I cleaned up my system 3 weeks ago and made a fatal mistake. Well, I don't really know why, but I uninstalled sys-devel/binutils. After I recognized the mistake I tried re-emerge, but it doesn't work....