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

2
votes
1answer
686 views

How to compile gcc-4.0 on Mountain Lion

So far I've successfully launched the configure, but when I type make, I get the following error, after some time (there's a lot which compile successfully): ld: unknown/unsupported architecture ...
0
votes
1answer
322 views

install gcc on MAC 10.7.4

I am trying to install QtCreator on my MacProbook (10.7.4). QtCreator needs gcc. Can any one suggest how to install gcc on Mac 10.7.4
3
votes
1answer
328 views

Why can't I build Deluge?

Deluge is a BitTorrent Client. I am trying to build it from source, since I don't have privilege to install it as root. I am using python setup.py build. But, it failed following message, why? ...
0
votes
1answer
259 views

Can I use a different version of gcc inside Xcode?

I installed gcc4.7 from MacPorts and I would like to use it inside Xcode (4.5). Is there a way to achieve this setup? Thanks
0
votes
3answers
601 views

How to use LC_MESSAGES=C with gcc every time?

Currently I'm using Ubuntu with my system locale and language set to Japanese. However I'd like to have it always displaying gcc messages in English as it would be easier for me. I found here if I ...
1
vote
2answers
2k views

How can I install GCC on Mac OS X Lion without Xcode?

I find it really hard to believe there is not a simple solution to install GCC on Mac without having to download and install more than 1 GB+ of Xcode. I found a site that helps reduce the amount ...
0
votes
0answers
70 views

Error in enabling json support in php on centos

I'm trying to enable JSON support in PHP on a CentOS server. But after running '# yum install gcc" or any other package I'm given this error: " Fatal Python error: PyString_InternInPlace: strings ...
2
votes
1answer
351 views

Python module: Trouble Installing Bitarray 0.8.0 on Mac OSX 10.7.4

I'm new here! I have trouble installing bitarray (vers 0.8.0) on my Mac OSX 10.7.4. Thanks! ('gcc' does not seem to be the problem) Last login: Sun Sep 9 22:24:25 on ttys000 host-001:~ gabriele$ gcc ...
0
votes
1answer
281 views

Kerrighed cluster does not use all nodes when running OpenMP

I've been given access to a recently built cluster that uses Kerrighed. I'm the first user of this cluster, so setup and configuration problems may be a possibility. I'm also totally new to ...
0
votes
1answer
1k views

suse broken? Can't find glibc

I wanted to install the new postgres beta which is only available from source. On my server there was no gcc installed so I wanted to install gcc. After running yast, gcc 4.3.3 could only be installed ...
1
vote
0answers
313 views

Compile MakeMKV 1.7.6 - Segmentation Fault

I've previously been able to compile MakeMKV 1.7.5 and older versions, but the latest version (downloaded from http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224) gives me strange segmentation ...
0
votes
1answer
1k views

I've compiled wine on Mac, but it doesn't work, because it freezes and SEGV

I've compiled successfully wine sources. Also added following line into my ~/.profile export DYLD_FALLBACK_LIBRARY_PATH="/usr/X11/lib:/usr/lib" because of errors like: failed to load ...
1
vote
1answer
42 views

compile command executed inside script gives error, executed outside is fine…might be gcc

I have a script called buildgcc.sh with the following contents. mymac$more buildgcc.sh g++ -Wno-write-strings A.cpp B.cpp B.cpp c.cpp D.cpp E.cpp F.cpp artgdg.cpp G.cpp H.cpp I.cpp J.cpp K.cpp L.cpp ...
2
votes
1answer
1k views

Add a permanent compiler option to g++

I am using a g++ 4.7 on Ubuntu 12.04 to compile my c++ code, and it won't be compiled unless an -std=gnu++11 option is added to my command like this: g++ -std=gnu++11 main.cpp Is there a way to add ...
0
votes
2answers
274 views

Archlinux: Where I can find gcc-4.4-multilib?

As in the topic, I can't find it in AUR, there is only gcc-4.4 or gcc-4.5-multilib. I need gcc-4.4-multilib because of Android compilation. Or if you know - is there any way to compile Android with ...
0
votes
1answer
188 views

Unable to install software on Ubuntu 8.04

I have recently installed 8.04 Ubuntu onto an industrial board and applied the vendor kernel modifications to it. I need to develop applications on another desktop to run on this board in C++ but I am ...
1
vote
0answers
274 views

Building Python h5py on Lion; gcc fail

I am trying to build h5py on OS X Lion; I'm using Python 2.7.2 installed from Scipy Superpack. Using either pip and setup.py approach, I get the same error: lipo: can't figure out the architecture ...
0
votes
1answer
607 views

Installing pdftk on Amazon EC2 Linux Instance

I am having trouble installing pdftk on an amzn-ami-2011.09.2.x86_64-ebs (ami-953b06e1) instance. Since pdftk is not in the list of available packages I have tried to build it from source but failed ...
3
votes
1answer
180 views

how to tune libstdc++ to the native architecture when building gcc

I recently found that when I build my C++ software, I get about a 10% speedup by using the g++ march=native option. When compiling gcc and libstc++, is it possible to tune the libstdc++ library to ...
4
votes
2answers
7k views

Make fails compiling GCC

I'm trying to Linux From Scratch, I'm compiling GCC. I get this error: In file included from /usr/include/stdio.h:28:0, from ../.././gcc-4.7.0/libgcc/../gcc/tsystem.h:88, ...
0
votes
0answers
329 views

Error running gcc on cygwin (bad adress)

I'm trying to get gcc running on cygwin. Whenever I launch it, I get the error: $ gcc a1.c gcc: installation problem, cannot exec '/usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1.exe': Bad address gcc: ...
0
votes
0answers
131 views

Possible to change dynamic libc.so address?

The commands gcc main.c -o main ldd main yield linux-gate.so.1 => (0x00f67000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0x00b7d000) /lib/ld-linux.so.2 (0x00ae5000) Is it ...
13
votes
2answers
4k views

macports gcc select error trying to exec i686-apple-darwin11-llvm-gcc-4.2

I am working on OS X 10.7 (Lion). I have installed gcc 4.7 from macports: sudo port install gcc47 It seems to be working properly: $ /opt/local/bin/gcc-mp-4.7 -v (...) gcc version 4.7.0 (GCC) ...
0
votes
2answers
93 views

Have to do “sudo make” or else C can't create executables

I used to be able to run make like normal, but now I have to run make as super user or else it will fail saying that the c compiler can't create executables. Why did this happen?
1
vote
1answer
178 views

How do I set the -target parameter for package installs in OS X?

I am trying to install the osx-gcc-installer for 10.7. I want to install it with the installer command. The installer command requires a -target parameter and it is the part I am not sure about. ...
1
vote
1answer
311 views

how to install the latest gcc compiler from source on linux without messing everything else up?

Hi is there an appropriate guide or tip or tricks to install gcc on a linux system such as red hat without using the package manager , from source , and with out having it mess everything else up? So ...
0
votes
2answers
583 views

man gcc not working

I was trying to read about how to make gcc compile C code to plain assembly for a bootloader, but when I tried to read the man pages there were none! $ man gcc No manual entry for gcc See 'man 7 ...
14
votes
3answers
19k views

GCC on OS X Lion with Xcode 4.3.1

After installing Xcode 4.3.1 on OS X Lion, I have lost my GCC compiler. I need this for my study. Does anyone know how I will install this? All I have been able to find was people suggesting to ...
0
votes
0answers
105 views

How do I install decNumber?

This application is part of gcc but I'm trying to upgrade just decNumber. Is this even possible? I svn checked out the source for decNumber from gcc's website. When I run ./configure within the ...
1
vote
2answers
510 views

installing vlc-tar.bz2 and gcc.tar

I need to install vlc player in fedora which is a tar.bz2 file. How can i install it ? Someone told me that gcc is needed to install this software. How do install gcc-4.6.2.tar ? Please list the ...
3
votes
1answer
4k views

python.h not found

I got an installation script that calls gcc and gcc tries to compile a .c file that includes a header that does not exist on my system (ubuntu) . #include "Python.h" I have both python 2.x and ...
1
vote
1answer
3k views

Native build of gcc compiler on windows 7 x64

I'd like to make a native build for the gcc compiler on my Windows 7 X64 laptop. After reading the installation instructions and realizing they were for a Unix system, I decided that it was time to ...
0
votes
1answer
1k views

Can't seem to install 64bit GCC with YUM

I type the following... $ yum install gcc.x86_64 (by the way, is "gcc.x86_64" the right package for 64bit gcc?) [...] I get the following errors... [...] Total size: 16 M Downloading ...
0
votes
1answer
690 views

How do I change build and target architectures for my GCC?

I know my linux box is x86_64 and I want to be able to compile FOR x86_64 as well via GCC. Currently... gcc -v shows Using built-in specs. **Target: i386-redhat-linux** Configured with: ...
1
vote
3answers
3k views

Moved to a new Mac and now GCC is missing, what to do?

I have a new Macbook. I bought it, use time machine to move to it, and it copied everything and xCode runs fine, but when I go to the terminal and type gcc it says command not found. How do I get ...
0
votes
1answer
1k views

Cannot install build-essentials/GCC on Kubuntu 11.10?

I recently installed kubuntu 11.10 but to my surprise there is no gcc installed on it.Because of this I cannot install virtual box guest additions(they require the make utility) and I am not able to ...
0
votes
0answers
813 views

Building against an older glibc

Is it possible to build glibc/gcc/binutils in the version combo of say 2.4/4.6/2.22 (or some later version of GCC used by the oldest/'stablest' linux distro's still around)? I would like to create ...
5
votes
2answers
4k views

Upgrading GCC on CentOS

I need to upgrade GCC. When I type yum install GCC it tells me Package gcc-4.1.2-51.el5.x86_64 already installed and latest version. Unfortunately I'm trying to install some software which requires ...
1
vote
2answers
501 views

I've installed gcc 4.6.1 on lion, do I overwrite default gcc?

I (more or less) followed the instructions here http://solarianprogrammer.com/2011/09/20/compiling-gcc-4-6-1-on-mac-osx-lion/ to install a more recent version of gcc so that I can build ruby on a new ...
2
votes
1answer
4k views

How to install gcc-3.4 on Ubuntu 11.10

I need gcc-3.4 to compile some softwares on my Ubuntu 11.10 (32-bit). So I downloaded: cpp-3.4_3.4.6-6ubuntu5_i386.deb gcc-3.4-base_3.4.6-6ubuntu5_i386.deb gcc-3.4_3.4.6-6ubuntu5_i386.deb and ...
2
votes
1answer
284 views

Which package should I download to compile C++0x code

OS is Ubuntu 10.04. I need to compile some C++ code with -std=c++0x flag. But compiling doesn't work because I need 4.6.1 version. Now, when I go to Gnu's ftp, I see two different packages: ...
0
votes
4answers
157 views

Why I should type “./” when I want running an application that compiled by GCC in Linux?

My OS is Fedora Linux 14. I write a program with Code::Blocks IDE and it compiles my program with GCC. My output program is test. When I start my application in Code::Blocks it starts normally. But ...
1
vote
1answer
548 views

compiling ffmbc on OS X with libvorbis

I've installed libvorbis, and that all seemed to go fine, and now I'm trying to install FFmbc with --enable-libvorbis but it fails with Error:libvorbis not found. In the config.log produced I get: ...
0
votes
0answers
472 views

How to do a bare minimum install of Xcode such that I can compile common UNIX applications

I just got a new macbook air where every bit of SSD disk space is precious. I want to be able to compile & run most of the open source tools out there. I figured out I needed to install Xcode but ...
29
votes
7answers
28k views

Does Updating to OS X Lion Delete gcc?

I updated to OS X Lion today, and I don't seem to have a copy of gcc any more. Did this happen to anyone else? Does anyone know why this would happen?
1
vote
1answer
130 views

Where do I put self built libraries on OS X?

I downloaded and built a C, g++ library that I want to use in a couple of other C projects. What is the best/standard directory to put the library in on OS X Snow Leopard? /opt/local/lib/ ...
32
votes
3answers
63k views

How can I update gcc to the latest version in Ubuntu 10.04?

I have Ubuntu 10.04 32-bit with gcc 4.4.3 currently installed on it. I want to upgrade it to gcc 4.6.1. How to update using Ubuntu Package Manager: apt-get upgrade/install As a second option I ...
1
vote
0answers
348 views

So I stupidly install newlib, and probably overwrote references to glibc. How can I recover glibc?

I forgot to set a make --prefix and I think it wrote to /usr/local/ by default and now I'm having all kinds of errors. I'm on ubuntu natty, what's the easiest way to resurrect glibc. I've tried to ...
0
votes
3answers
937 views

GCC won't work. problem with /usr/local/include

I was trying to add a new library/header and seem to have broken gcc. Specifically, I used the command: $ sudo cp mylib.h /usr/local/include This seems to have replaced the /usr/ directory with a ...
1
vote
2answers
4k views

Mac OS X 10.6, Xcode 4, PowerPC C compiler?

When I try to cross-compile C code for PowerPC, I get the following error: llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin10-llvm-gcc-4.2': execvp: No such file ...