Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

0
votes
1answer
23 views

Compilation and build using make

Excuse me here but I'm a bit of a noob where Linux make/build is concerned. Typical over reliant on IDE programmer. So trying to fill in those missing foundations. Hope someone can help Anyway ...
0
votes
0answers
28 views

compiling the 3.3 linux kernel in 2016

[Update]: So I hope this is clear, essentially the kernel is wired to check the installed gcc version. So it doesn't seem to build with gcc6. One error more or less causes another one. I'm trying to ...
0
votes
0answers
23 views

GCC / clang default error flag [migrated]

I am usually coding on OSX and compile all my program with : -Wall -Wextra -Werror I download on another laptop nixos and when i want to compile the same project, i have -Wunused-result error. I can ...
1
vote
2answers
49 views

Why LFS and CLFS change the path used to find the dynamic linker?

Both LFS and CLFS apply patches to the GCC source before building. The CLFS patches are a bit more involved than the LFS patches, but what they have in common is the changing of the path used to find ...
0
votes
0answers
41 views

sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'

I try to use the ElastAlert framework for alerting on Elasticsearch. This one is built with python and I installed the required packages. But when I try python setup.py install, I get the following ...
0
votes
0answers
36 views

install older version of gcc - debian sid

I have Debian testing. My version of gcc is : gcc (Debian 6.2.1-5) 6.2.1 20161124 I would like to install the version 4.7 of gcc but any attempts fail. I added deb http //ftp.fr.debian.org/debian/...
0
votes
1answer
33 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 -...
38
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
34 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
122 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
41 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
52 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
76 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
52 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
40 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
36 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
49 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
37 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
125 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
48 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
67 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
60 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
56 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
68 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
45 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
196 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
51 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
3answers
1k 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
90 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
59 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
35 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
123 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
152 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
210 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
354 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
37 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
148 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
54 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
110 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
149 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
126 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
119 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
79 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
296 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
49 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
126 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
194 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
1answer
6k 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
73 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 -...