The GCC (GNU Compiler Collection) is a set of compilers for various high-level languages. Use this tag for questions related to how to install and use the GCC.

learn more… | top users | synonyms

0
votes
0answers
80 views

Is there a version of the ARM GCC toolchain (arm-none-eabi-gcc) built for the raspberry pi available?

I am trying to develop for nRF51822 mbed boards on a raspberry pi running raspbian. However, I can't use the mbed online IDE, as it does not support Nordic's S130 SoftDevice (which is required to get ...
0
votes
0answers
16 views

Setting breakpoints in Thumb code

It seems that when debugging using gdb, one might run into trouble when setting a breakpoint in Thumb code as an instruction might be replaced by something longer than it(the debug instruction). How ...
0
votes
0answers
134 views

Compiling C code to Thumb

I have a hello world program that I'm trying to compile into thumb mode. However, I seem to be having trouble with the -mthumb flag. test.c:2:1: sorry, unimplemented: Thumb-1 hard-float VFP ABI I ...
2
votes
0answers
386 views

Unable to compile Chromium

I am trying to compile Chromium for Raspberry PI. I am using an Ubuntu 10.10 installation, and have tried using Ubuntu 14.04 but all with the same result. I followed all the steps in the link below. ...
5
votes
2answers
3k views

How can I install GCC 4.8 on the Raspberry Pi?

How can I install GCC 4.8 on Raspberry Pi? Do I need to compile it from source? Should I update from Raspbian wheezy to a newer version?
0
votes
2answers
462 views

How do I tell which version arm cpu on my Pi?

When compiling a package for Pi. I come across with something like this CFLAGS += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-mcpu=cortex-a8 and CFLAGS += -mtune=arm1176jzf-s ...
0
votes
0answers
110 views

Compiling errors!

So I am trying to compile some C code and Assembly code from a video on my raspberry pi with GCC and Nasm. When I do compile the code on Raspian on my RPi (by doing the Build.sh in the zip file) it ...
0
votes
1answer
502 views

Cross compiling, missing packages

I've set up a cross compile toolchain for raspberry pi and I can compile basic helloworld and run it on raspberry. I'm stuck at compiling some open-source programs as ./configure is complaining about ...
0
votes
2answers
13k views

How to compile C files in terminal

Question Can someone please tell me how to compile from the command line in a clear, concise way. Preferably, my programs will be written in a real text editor (such as leaf pad). Background I am a ...
0
votes
2answers
350 views

trying to build file with gcc getting several errors [closed]

I have the code below I am trying to build #include stdio.h #include stdlib.h #include signal.h #include wiringPi.h #include softPwm.h void control_event(int sig); int HARD_PWM_PIN=1; Hardware PWM ...
3
votes
1answer
349 views

What can cause libs to not be found on raspberry pi

On my Raspberry Pi, with Debian Squeeze, I want to link to the shared objects in /opt/vc/lib. I have added this directory to a file in /etc/ld.so.conf.d/ which is included in /etc/ld.so.conf. The ...
2
votes
2answers
761 views

Compiling for CPAN not possible on raspbian?

I'm trying to install the Perl module Linux::Inotify2. The installation requires some C compiling. Which compiler CPAN uses is the same one Perl was compiled with. Which one that is can be seen with: ...
12
votes
1answer
2k views

How can I detect that I'm compiling for Raspberry Pi?

As Raspberry Pi needs a bit of special code (I'm talking about C/C++) for accessing some hardware features (e.g. a call to bcm_host_init()). I'm looking for a reliable and elegant way to detect this ...
51
votes
7answers
31k views

How do I build a GCC 4.7 toolchain for cross-compiling?

I already asked this question on Stack Overflow, but I would like to know if anyone managed to build a GCC 4.7 toolchain for ARM cross-compilation (for a x86/x86-64 Linux host). There are many ...