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

1
vote
0answers
237 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
492 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 ...
2
votes
1answer
164 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
6k 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
304 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
119 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 ...
11
votes
2answers
3k 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
92 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
141 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
304 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
469 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
95 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
456 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 ...
2
votes
1answer
3k 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
540 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
684 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
3k 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
486 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
261 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
144 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
476 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
344 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
27k 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
118 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/ ...
29
votes
3answers
54k 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
320 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
764 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
3k 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 ...
0
votes
0answers
888 views

Problem with makefile in Cygwin

I have installed Cygwin. My problem is when I try to run a makefile which contains a line gcc -g -c file.c I get an error: Fatal: Unable to execute command: gcc At the same time when running ...
4
votes
5answers
9k views

How to test if gcc is installed?

How can I find out if I have gcc installed on my machine? I am trying to run CodeRunner, but it isn't responding. I know you have to have gcc installed in order for it to work properly. I do have ...
2
votes
3answers
812 views

Install gcc on OS X Snow Leopard

I'm trying to install the Python Imaging Library on a MacBook running 10.6 Snow Leopard. I haven't yet found a precompiled binary for OS X, so I need to compile it from source, which means I need ...
0
votes
1answer
854 views

How do I find the installation path of binutils, gcc-3.4.4.tar.gz in Ubuntu?

I have ubuntu 8.10. In this I could find the binutils, gcc are installed. But when ever I try to know that glibc, glibc-linuxthreads are installed are not. It showing that no package is found. For ...
0
votes
1answer
363 views

configure architecture?

When trying to install a more recent version of subversion, I get an installation error for 'apr'. When I look at the log file, it says: :debug:main Using compiler 'Mac OS X gcc 4.0' :debug:configure ...
1
vote
2answers
2k views

Howto compile a kernel module on CentOS [required packages]

What yum commands do I need to get available packages installed on CentOS to build a iptables MATCH kernel module.
11
votes
3answers
5k views

Python 2.6.1, pycrypto 2.3 pypi package: “Broken Pipe” during build

I am attempting to install Fabric, which requires pycrypto. During the build for pycrypto I always receive a "Broken Pipe" error. I don't know where to start to fix the problem. I'm running Mac OS X ...
1
vote
1answer
1k views

Add GCC into Netbeans

I want to make programs in Netbeans (C++ language), but Netbeans doesn't detect C++ libraries and compiler. How can I add GCC into Netbeans?
0
votes
1answer
813 views

g++ in Knoppix 6 LiveCD

To avoid the inevitable, let me put this in context. I am instructing an Intro to Unix course this semester and the students are using Knoppix 6.4.3 off the LiveCD. They are not required to install ...
1
vote
1answer
712 views

What is the best way to speedup GCC?

Every time I compile my code in GCC it takes about a minute. What is the best way to speed this up? Should I just buy a newer faster computer?
0
votes
1answer
63 views

How can I locate the header + object file of cksum in Mac OS X

I'm trying to locate the header + object file of cksum in Mac OS X, but with no lack. Any suggestions?
0
votes
1answer
637 views

undefined reference to `glib_major_version'

Can you please tell me how can I resolve this 'undefined reference' error when linking on Ubuntu 10.10 conftest.c:(.text+0x4): undefined reference to `glib_major_version' ...
2
votes
3answers
5k views

How to build g++ 4.5.2 on Ubuntu 10.04

My gcc compiler is a bit outdated - gcc 4.3, so I want to build a new gcc from source since I ran apt-get update, but there were no pre-built version available yet. Has anyone experienced this process ...
6
votes
1answer
1k views

How to benchmark kernel (-Os vs -O2)

It seems logical to me that on a 64-bit kernel compiling it to optimize for size might help overall. (My distro of choice uses -O2) It has the benefits of more registers and memory and perhaps less ...
1
vote
1answer
399 views

Easy way to get gcc and make in OSX

I want to install a few CPAN modules in OSX. It filed since the module I want requires make and gcc to be installed. A quick google on the subject tells me that I need to install "Apple developer ...
2
votes
2answers
3k views

Checking version of GCC compiler in Code::Blocks [closed]

How do I check, in Code::Blocks, what version of the GCC compiler am I using?