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
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
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
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
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
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) ...
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 ...
0
votes
1answer
44 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: ...
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
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 ...
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.
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 ...
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 ...
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. ...
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
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 ...
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 ?
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 ...
4
votes
1answer
51 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
29 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
32 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
35 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 ...
0
votes
0answers
61 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
341 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
80 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 ...
4
votes
1answer
39 views

Does Gentoo Hardened use -fstack-protector-strong?

I'm trying to build a fairly hardened Gentoo install and I'd like to at least make sure that everything is built with -fstack-protector-strong if not -fstack-protector-all. I'm on the ...
1
vote
0answers
44 views

Remove package with yum but leave libraries in place?

During setup on a specific set of servers, I need gcc-c++ installed to compile some of the software I am setting up. After install is complete I need to remove the compiler for security reasons. ...
0
votes
0answers
44 views

Missing library in ia32-libs when compiling with gcc-3.4.6 in 32 bit mode

I installed gcc-3.4 on Ubuntu 14.04 and tried to run a program with the -m32 flag. #gcc --v gcc version 3.4.6 (Debian 3.4.6-5) When trying to run the program I receive the following error ...
2
votes
1answer
50 views

Why install gcc again in chapter 6 linux from scratch

I am trying to follow the LFS book, and couldn't get my mind around this question: we built the GCC compiler in chapter 5 in the target partition, why do we do that again after entering the chroot ...
0
votes
0answers
74 views

Custom GCC installation - how should I set my environment variables?

After some pains I was finally able to build me a gcc 4.9.3 (I don't have root on the machine I'm working on, and Fedora 22 doesn't package gcc 4.9 anyway). And it even works, i.e. using it to compile ...
0
votes
0answers
97 views

profiling cannot open gcda file

I am compiling file UT_test.c and linking my file using gcc on cygwin environment using flags -fprofile-arcs -ftest-coverage. The objects and gcno are created at location ...
2
votes
1answer
80 views

No dpkg or apt, no make or gcc. Need to install them all [closed]

I have a minimal Debian Linux based machine (i686) and need to get some .deb installed. This does not even have make or gcc installed. So I am unable to compile anything on this. So to get it ...
1
vote
2answers
124 views

Cross-Compiling kernel can't find gcc

I am cross compiling the Raspbian kernel since it will take about 12 hours for the Pi to do (Raspberry Pi 1). I have the build tools for ARM and the kernel in two separate folders in ...
1
vote
1answer
36 views

Binary executable from Debian to Ubuntu?

I compiled some big c++ programs with gcc 4.9 on Debian. I want to know if the executable binary code is compatible and safe also on ubuntu, or must recompile program on Ubuntu?
2
votes
0answers
296 views

Installing GCC on SLES 12

I'm having trouble installing gcc on a new SLES 12 box. The goal here is actually to get R Shiny running, but when I try to install any packages I get the below error: sudo su - -c "R -e ...
0
votes
2answers
43 views

How to create and use dynamic and static libraries in linux (c programming)?

I'm a beginner and I'm so confused of how I can create and use dynamic and static libraries? I studied different websites and searched on Google but I can't understand. Can anyone explain here in an ...
0
votes
0answers
88 views

GCC: library linked several times can cause “multiple definition” errors?

I have a toolchain generated through Buildroot with which I am trying to compile something statically but the build fails with gcc saying something about "multiple definition". Now looking at the ...
0
votes
0answers
33 views

How to use edk2 with gcc 5.1.1

I need to use all of edk2 (on fedora23), so I tried to build gcc 4.4.7 but the instructions didn't work. Is it possible to use gcc 5.1.1? If so, what do I set the TOOL_CHAIN_TAG as in conf/target.txt? ...
1
vote
1answer
50 views

Recompile gcc with the built version

I am just wondering if it is a good idea [better optimization, less bugs] to recompile the gcc compiler with the own version. I compiled gcc 4.9.3 with the current system gcc 4.3.4. Once gcc 4.9.3 ...
1
vote
1answer
140 views

Why is my stdbool.h not in /usr/include?

I'm used to standard C header files being in /usr/include (e.g. stdio.h, stdlib.h, string.h, ctype.h and so on); yet - stdbool.h isn't. Now, I know it's newer than the rest, only being part of C99. ...