GNU Compiler Collection, a family of compilers for various languages from the GNU Project. Questions about gcc should be limited to installation and basic usage/configuration.

learn more… | top users | synonyms

0
votes
0answers
16 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
46 views

gcc 4.8 on MacOS fails depending on -arch order

I am trying to get a recent version of gcc 4.8.2 up on my machine. I have tried installs that come from MacPorts as well as the one that gets installed alongside the binary install of gfortran. For ...
1
vote
0answers
33 views

gcc --as-needed linker flag not working

I have two computers with Gentoo, both on AMD64. I try to build a following program: int main() {tgetent();} The command to compile is: gcc -v 1.c -Wl,--as-needed -lncurses On one computer it ...
0
votes
1answer
75 views

Using gcc (>= 4.8) with OBS (OpenSUSE Build Service)

I am currently using the OpenSUSE Build Service (https://build.opensuse.org/) to build ArangoDB. However, for some newer C++ features I need a fairly current C++ compiler. For some of the older ...
0
votes
0answers
33 views

Running exe generated with GCC using cygwin without admin rights

So this awesome company that I work for has a picky IT department that doesn't allow developers to have admin rights. What is the best way to go about running a .exe generated from Cygwin GCC without ...
0
votes
0answers
43 views

how can i install the gcc compiler on linux mint?

While installing ns2 i get the following error: gcc -V 4.7.0 -c -g -O2 -DNDEBUG -DUSE_SHM -DHAVE_UNISTD_H=1 -I. -I/home/me/ns- allinone-2.35/include -I/home/asna/ns-allinone-2.35/include ...
0
votes
0answers
35 views

Why is gcc --version giving this error message?

When I run gcc --version on my Mac OSX Mavericks with Xcode v5.1 installed it sends to stderr the following error output: Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr ...
1
vote
1answer
30 views

How to install gcc 4.4.7 on Mountain Lion

I need to install a specific version of the GNU GCC compiler, gcc 4.4.7, on my macbook, but I'm not sure how to do this. Most places I've found install later versions but I need to install that ...
0
votes
0answers
27 views

How do I install GCJ on OSX

I've looked at the gcj page and though there's downloads links they're only for downloading gcc, and with the apple version of gcc there is no gcj included: $ gcc --version Configured with: ...
0
votes
0answers
37 views

Error installing HandBrake on Amazon AMI Linux

When I tried to compile Hand Brake, I get the following error: checking whether we are using the GNU C++ compiler... no checking whether /usr/bin/g++ accepts -g... no checking dependency style of ...
0
votes
1answer
74 views

linker error: could not read symbols: Invalid operation

I am trying to compile GMediaRender on Ubuntu 12.04. I got an error during make: gcc -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -L/usr/lib -o gmediarender ...
0
votes
0answers
32 views

Slow mac when compiling and running jobs in terminal

I am having numerous problems with the newest Macbook Pro 13 inch (16GB RAM i7 13inch retina display) when compiling programs in the terminal. Every time I start a process whether it is compiling a ...
0
votes
1answer
29 views

Compiling Opensmmpbox in Cygwin for windows service

Need a opensmppbox as a windows service so i try to compile it under cygwin...get this error: /usr/lib/gcc/i686-pc-cygwin/4.8.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lwap ...
0
votes
2answers
157 views

Unable to install TI Linux emulator on Linux Mint 16 KDE

I have Linux Mint 16 KDE, and I wanted to install the Texas Instruments Emulator from http://lpg.ticalc.org/prj_tilem/download.html. I downloaded and extracted the source code, and installed all the ...
0
votes
0answers
56 views

Trouble installing gcc-4.0 in Ubuntu 11.10

I have gcc-4.6.1 installed in my Ubuntu 11.10 system. For compiling some other software I require gcc-4.0. I download the gcc-4.0.0 tar file and extracted it. I created a new folder and ran the ...
0
votes
1answer
251 views

Use scons with gcc 4.7 on CentOS 6

I followed the instructions at Install gcc 4.7 on CentOS for installing gcc 4.7.2 under /opt/centos/devtoolset-1.1/root/. Now I'd like to build a project which is configured to use scons. I did the ...
0
votes
0answers
79 views

gcc: error trying to exec 'as': execvp: Too many levels of symbolic links

I have an Problem with archs gcc (Got by pacman). When I want to compile a file, Like the following, every time this happends: gcc: error trying to exec 'as': execvp: Too many levels of symbolic links ...
1
vote
2answers
75 views

Error while loading shared libraries - libwebsock

Im trying to setup libwebsock, simple C websocket library. I followed the installation procedure from INSTALL file, everything went fine. Im able to compile test program given in the examples. But ...
0
votes
1answer
197 views

gcc-4.8.2 make command error

our server has "gcc-4.4.7-3.el6.x86_64" I was trying to upgrade to "gcc-4.8.2" from source. configure completed without errors make command has reported following errors in config.log file : ...
0
votes
0answers
94 views

Garry's Mod - GLIBCXX_3.4.14 Missing, etc

This is what happens to my Gmod server whenever I start it up. I've tried yum install glib and gcc, etc. and nothing has worked. Anybody know how to get this stuff. I've even tried yum whatprovides ...
1
vote
0answers
84 views

Uninstall gcc from source

For fun, I compiled and installed gcc 4.7.2 in ~/build, which contains bin, doc, lib, include, man, share, et al. directories, all of which are added to the appropriate environment variables. Now I ...
0
votes
1answer
79 views

What does dynamic vs static linking

When it is said that in dynamic linking the linker resolves the addresses of shared libraries at run time, does that mean the same linker that is used in static linker is called at run time? For ...
1
vote
1answer
449 views

Gentoo LDFLAGS optimizations really needed?

I'm using Gentoo Linux. Here is my toolchain: sys-kernel/linux-headers-3.9 sys-devel/binutils-2.23.1 USE="cxx nls zlib -multislot -multitarget -static-libs {-test} -vanilla" ...
0
votes
1answer
60 views

Cant compile SDL source file with gcc

i downloaded a manual of introduction to graphics programming with SDL, so i tried to compile my first source and it logged the next error the command to compile it was: $ gcc helloWorld.c [-o ...
0
votes
1answer
886 views

update gcc /g++ on Cent Os 5.9

I would like to update gcc/g++ on my Cent Os 5.9. The version I have is 4.1.2 : Would it be possible to update it to 4.4.7 like Cent Os 6.4 WITHOUT updating the entire operating system? It looks to ...
0
votes
1answer
365 views

GLIBCXX 3.4.14 missing for Garry's Mod on CentOS

When installing Garry's Mod via Steam on my CentOS server I get the following errors: -- ConVarRef mat_dxlevel doesn't point to an existing ConVar Game_srv.so loaded for "Garry's Mod" ...
0
votes
0answers
99 views

Segmentation fault with glibc

I tried to install Chromium browser on Salix 13.37 Fluxbox, I got an error that said it requires newer versions of libstdc++.so.6 and libc.so.6, so I download and compile gcc and glibc, as I still get ...
1
vote
2answers
222 views

Change GCC version on Mac OSX Lion

I'm currently running GCC 4.2. I would like to switch to a more recent version. I have Homebrew and I have MacPorts for package management. I've followed several tutorials today for installing a ...
0
votes
2answers
908 views

gcc not finding header file though its path has been included with -I

I'm trying to install a module (Package::Stash::XS) via cpanm, but the installation is failing due to a gcc error. The command gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing ...
0
votes
0answers
123 views

Installation of QEMU and GCC for emulation of ARM processor - RHEL

I am trying to install the QEMU to emulate the ARM processor and run assembly programs. As part of the emulation in RHEL systems, I need to install the following. QEMU Emulator GCC for ARM GDB ...
0
votes
0answers
116 views

Cannot compile Python Image Library on cygwin

I'm on cygwin 32bits and I'm trying to build PIL but when I run: >>> python setup.py install gcc exits with the following error message: _imaging.c:75:20: fatal error: Python.h: No such ...
1
vote
2answers
303 views

Building GCC and Binutils on Windows 7 x64

I am trying to build GCC following the instructions in: Building GCC. At the moment I am building binutils but getting the error: * BFD does not support target x86_64-unknown-cygwin. Look in ...
1
vote
2answers
112 views

Configure Makefile

I am trying to create a file Makefile to use with make so I can compile my codes faster. What I would like to do is just type in the terminal: make dev myOutputName And it should run: gcc -Wall ...
1
vote
2answers
858 views

RHEL Desktop: How to install g++?

I bought a RHEL Desktop (not workstation) subscription recently to support Red Hat. Now I would like to install the gcc-c++ package. When I search for it with yum, I get No matches found. Searching ...
0
votes
1answer
44 views

When was gcc last updated in my system?

Is it possible to know the last update date of gcc in Centos? If yes, how can it be checked? The problem is that one my applications, which used to run before in gcc, is not running in gcc.
1
vote
1answer
1k views

Installing a GCC/G++ for my mac OSX 10.8

My problem is simple, I would like to get the OSX/BSD version of the GCC and G++ compilers from the GNU.org website. However after some research (as described below) I learned that Apple uses LLVM ...
0
votes
0answers
126 views

gcc won't compile. Compile Error : Bus Error

I use fedora 17 and from last two days gcc has started behaving weird. Whenever I try to compile a file whether its a *.c or *.cpp it gives following result: $ gcc -c c.c cc1: internal ...
0
votes
0answers
157 views

How to get gcc compiler version in python script on linux?

I'm trying to write a simple python script that will print the the gcc compiler version which is available on the current Linux system. may i know how to get the compiler version in python?
1
vote
1answer
155 views

downgrade gcc/g++ after upgrading; compiler error

I just upgraded gcc/g++ from 4.4 to 4.8 (via this method How can I update gcc to the latest version in Ubuntu 10.04?). I realized that 4.8 is going to break a lot of my code and now I want to roll ...
0
votes
0answers
384 views

How to install downloaded version of GCC?(4.8.1, Windows)

I want to make sure before I download anything unnecessary or do something stupid. Currently I'm using Code::Blocks IDE (nightly build, svn 8982), and my compiler is GCC 4.4.1. However, I would like ...
2
votes
1answer
880 views

How to install an old version of gcc using yum on fedora 18?

I want to install gcc 3.6 on fedora 18. when I do yum install gcc I get the gcc 4.7. but I want an old version.
-2
votes
1answer
110 views

OSX zsh - Why do binaries only execute with the full path? [duplicate]

I'm just writing some small C scripts and testing them. Why dose ~ Desktop: gcc test.c -o test ; /Users/xx/Desktop/test ; work just fine while ~ Desktop: gcc test.c -o test ; test ; dose not ...
0
votes
0answers
252 views

Adding gcc 4.9 as a compiler option in Xcode

I asked this question on StackOverflow, but it's pretty much stagnant. Sorry if this is considered a repost/double-post. I just installed gcc 4.9 (with C11 support), and want to add it to Xcode ...
5
votes
3answers
630 views

Why doesn't '>' redirect error messages from gcc?

I stored the following program in new.c int main() { a; return 0; } It returns an error message. I want to send this message to a file. So I used the following command gcc new.c > ...
0
votes
1answer
99 views

Cygwin - gcc-java installed but cannot call

I'm running Cygwin on Windows 7, with environment variables set up correctly (as far as I can tell). When I do this gcc-java shows up: cygcheck-c .. gcc-core 3.4.4-999 OK ...
2
votes
1answer
3k views

GCC 4.8.1 failed complilation

I am using Ubuntu 13.04 64 bit. This is the error message: checking for x86_64-unknown-linux-gnu-gcc... /home/hoangtu/Downloads/gcc-4.8.1/host-x86_64-unknown-linux-gnu/gcc/xgcc ...
0
votes
1answer
134 views

Libraries which exist in a binary's elf DT_RUNPATH are not being chosen?

I have custom built gcc-4.7.2 in my environment. The system gcc is gcc-4.3.4. I have patched the DT_RUNPATH for all my custom gcc's binaries and shared libraries using patchelf --set-rpath However, ...
0
votes
1answer
139 views

Run local GCC on remote linux server

I'm sure this has been asked before but after some time searching I'm not finding quite what I want. I have a test server that I cannot install GCC or other development needs on. On my development ...
1
vote
0answers
324 views

PHP static compiling

Has anyone managed to compile PHP statically? I configured PHP with: ./configure --enable-embed=static --enable-static=yes --enable-shared=no --disable-cli --disable-all Before i ran make i edited ...
0
votes
0answers
167 views

Python 3 on ChromeOS

I just got a Chromebook (Acer C7) and would like to do very minimal local development on it. I would like to have Python 3.x at a minimum, and pygame would be even better, but I'm not banking on ...