Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

0
votes
1answer
23 views

compile one file of linux kernel

I want to compile one of linux kernel source files (/net/rds/recv.c) for this, call gcc like below : gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) cc1 -E -quiet -nostdinc -v -...
37
votes
1answer
3k views

How does this Makefile makes C program without even specifying a compiler?

I was using a Makefile from the book "Advanced Linux Programming (2001)" [code]. It was strange for me to see that GNU make does compile the code correctly, without even specifying a compiler in the ...
0
votes
1answer
27 views

How to get the REAL gcc (not the one that is hashed to clang) in MacOS?

I am trying to compile a program that uses the OpenSSL library. I had a problem where it couldn't find the header files. I fixed this problem by adding the option -I /usr/local/opt/openssl/include ...
2
votes
1answer
76 views

-fstack-protector-strong available but compiler is broken while compiling kernel using gcc

I have looked around for this specific error however I did not find it, instead I found errors that are similar such as 'not supported by compiler'. I am trying to compile Kernel version 4.8.8, i ...
0
votes
2answers
34 views

/proc/version show a gcc version, but I can't find the binary

A Linux computer at my university does not have gcc, that is to say, when typing gcc in command prompt it gives: /bin/sh: gcc: not found I was not able to find it with whereis, and locate gives me ...
1
vote
2answers
43 views

Debian Realtek RTL7832BS driver

I recently installed Linux Debian on my Lark Ultimate 7i WIN tablet, that was originally running windows, but Windows was so much laggy on this device. I succesfully installed Debian with LXDE, that ...
2
votes
1answer
49 views

Checkinstall fail installing gnu gcc 6.2.0

I try to install from source GCC 6.2.0 with checkinstall but it fails. I run configure and make, all seems fine, but when I try checkinstall I have this error: ranlib: could not create temporary ...
0
votes
1answer
40 views

What consequences may arise from using an alternate GCC version to compile the kernel? [closed]

Related to: Cannot compile kernel: error, kernel does not support PIC mode I also just had this issue, instead of patching; I configured alternates with a different gcc version, jumped from v4 to ...
-2
votes
1answer
39 views

Unable to update GCC version [closed]

In order to update gcc version in my debian pc. I am following this answer but it didn't work for me. ┌─[shravan40@ChangeStreet] - [/etc/apt/sources.list.d] - [Mon Oct 24, 13:27] └─[$] <> cat ...
1
vote
2answers
30 views

Where to find the source tarball for libgfortran3?

I've been using the multithreaded linear algebra package jblas on Chrome OS, which is called from some Java code. When attempting matrix multiplication via mmul, the following error is thrown: ...
0
votes
1answer
47 views

inverse translation from fortran90 (or gfortran) into ratfor90?

I have most likely a silly question, and asking perhaps a wrong forum, but don't know where to go. OK, I work with gfortran via ratfor90 (it is a nice little preprocessor for gfortran and fortran90, ...
3
votes
1answer
33 views

Using *Autotools*, how do I save the compiler listing on a file by file basis?

Please understand I'm using Autotools / Automake / Autoconf, and I can not use redirection because it needs to be applied command by command in the make file generated by autotools. I need a way for ...
0
votes
1answer
85 views

Can't update GCC version from 4.9.2 to 5.4 or 6.2? [duplicate]

I am trying to update gcc version in debian pc, but no luck yet. I have followed the instruction given in this answer and changed the last command to apt-get install gcc-5.4 g++-5.4 but it seems no ...
0
votes
1answer
43 views

Why does GCC stop working?

I've followed this tutorial which shows how you can enable the GCC compiler on ChromeOS, which uses the following commands below. sudo /usr/share/vboot/bin/make_dev_ssd.sh --...
1
vote
1answer
55 views

Is it ok to use gcc to compile userspace binaries on FreeBSD 10?

I know that recently FreeBSD 10 dumped gcc in favour of clang due to licensing reasons (Ref). I wanted to understand if this restriction to use clang is limited only to kernel compilation. Can I use ...
0
votes
1answer
41 views

How to get gcc-4.7 to /usr/bin/gcc-4.7 as second gcc in Debian Jessie?

I would like to keep my gcc 4.9 but let Matlab use gcc 4.7 because Stable Debian does not support 4.7, as observed in the thread Debian Jessie: Why gcc-4.7 conflicts with gcc-4.8? I do the following ...
0
votes
0answers
34 views

LFS 7.10 - why am I getting an error when using make command for expect-5.45

I am trying to compile expect-5.45 for LFS everything works until I use the make command, below is the output of using the make command: gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -...
0
votes
1answer
58 views

Gdb pretty printer is not working in Ubuntu 16.04

I have debugged C++ codes using gdb in Ubuntu 14.04. When I pass a stl container to the print command, it used to print the contents of the container. But then I upgraded to Ubuntu 16.04 LTS a week ...
3
votes
1answer
33 views

How can I cross-compile standard libraries?

I'm trying to set up a cross-compiler for ARM. I followed this tutorial and I'm at the point now where I can run the cross compiler and get: arm-unknown-eabi-gcc (GCC) 4.8.4 Copyright (C) 2013 Free ...
0
votes
2answers
122 views

error starting vmware workstation 12 on kali linux

When I try to run vmware workstation 12, I'm greeted with the following message. I've tried the following: pointing the location to /usr/bin/gcc apt-get install libglib2.0-0 apt-get install build-...
-2
votes
1answer
45 views

C compiler while installing GCC!

I have a virtual machine running RHEL7. I am trying to install GCC from source following https://gcc.gnu.org/wiki/InstallingGCC I am unable to do yum groupinstall "Development Tools" or yum ...
0
votes
2answers
707 views

VMware kernel module: a compatible version of gcc was not found

When running the VMware kernel module updater, I get the following message: A compatible version of gcc was not found. How can I setup GCC to compile the VMware kernel module?
1
vote
0answers
68 views

configure failed because of See `config.log' for more details

I am trying to compile Tcl, but I got the following error: ~/apps/tcl8.6.6/unix> ./configure --prefix=$HOME/.local/Tcl checking whether to use symlinks for manpages... no checking whether to ...
0
votes
1answer
50 views

how to link against only the last shared library [closed]

My shared library libnew.so uses some symbols form an already built third-party shared library libold.so. I would like to build an executable binary file that should be only linked against libnew.so. ...
1
vote
1answer
32 views

building from source code fails

I'm trying to build some software from scratch on a full installation of Slackware64 14.2. I follow the instructions in readme ./autogen.sh # only needed if building from git repo CFLAGS="-march=...
2
votes
1answer
82 views

How to Resolve undefined reference to 'RAND_egd'

Debian 8 Jessie, OpenSSL version 1.1.0, cURL version: 7.50.2 I am trying to build curl on a Linux Debian system. All stages go well up until trying to build with make command. The linking stage fails ...
1
vote
0answers
110 views

Properly installing GMP, MPFR, MPC and GCC

Im trying to install the LibND4J library, which requires GCC 4.9 or above. I'm using a Linux Mint 17 (Rebecca). To install GCC, I downloaded the 6.2.0 tar from the website and I extracted and ./...
0
votes
1answer
174 views

Installing GeForce drivers to Kali

I'm currently trying to install GeForce drivers for Kali Linux, but it isn't going so smooth. I have a GTX 285 and when I try the apt-get method for drivers I'm told that my card is no longer ...
0
votes
1answer
292 views

How to install gcc 4.9 arm cross compiler on debian stretch

Debian "stretch" has built-in cross compilers for gcc versions 5 and 6, but apparently only includes the native architecture in its gcc-4.x packages. Unfortunately I need to compile software that ...
0
votes
1answer
34 views

How to get a particular gcc version on debian armhf?

I need gcc 4.9.3 installed on my armhf debian box. But the version in the jessie repositories are 4.9.2 and the version in stretch is 5. How can i get a particular version through the repositories?
1
vote
2answers
2k 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
121 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
53 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
92 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 =&...
-1
votes
1answer
129 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
120 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
110 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
75 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
235 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
45 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
123 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
160 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 ...
3
votes
2answers
5k 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
69 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
1answer
45 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
31 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
2answers
4k 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
837 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
127 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
142 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 ...