Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

-4
votes
0answers
26 views

How to add argument options to executables in C [on hold]

I want to build an executable with a --help option as follows ./executable --help How do I pass command line arguments to any program in C (using gcc as compiler).
0
votes
1answer
563 views

How to specify a custom include directory in Debian?

I am trying to compile my program on a Debian system via ssh and without root privileges. PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" NAME="Debian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" I ...
0
votes
1answer
22 views

Recover system gcc on linux

I was trying to install manually gcc and forgot to specify --prefix=. So, after make install binaries were installed on standard paths (like /usr/bin/ or smth.) And now as I type gcc --version it ...
0
votes
1answer
18 views

i686-cm-linux-gcc: Command not found

While cross compiling OpenWRT, I have I have replaced OpenWRT's toolchain with toolchain i686 architecture. But, I am getting below mentioned error: make[5]: Leaving directory ...
3
votes
0answers
769 views

Cross-compiling OpenSSH for Android

I'm working on compiling OpenSSH for Android based on this answer at Stack Overflow. Here's what I've done so far: Building on Ubuntu 14.04 amd64. apt-get install build-essential ...
0
votes
0answers
20 views

ffmpeg configuration error

I downloaded ffmpeg and followed the README. First thing, ffmpeg needs to be configured. But executing configure (./configure) says ~/Downloads/ffmpeg-2.7.2 $ ./configure gcc is unable to create an ...
0
votes
1answer
40 views

LFS 7.6 GCC make error

I do not have much experience with Linux systems, but I decided to work on an LFS system for a bit. I understand that this was a large undertaking for my limited knowledge, but I thought I was ...
4
votes
3answers
7k views

error while compiling ffmpeg: gcc is unable to create an executable file

When I run the ./configure command in ffmpeg source directory I get this error: gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do ...
1
vote
1answer
25 views

How to compile shared library on AIX

I have a simple shared library that is currently compiled on Linux using: gcc -c -fPIC foo.c -o foo.o gcc -shared -o foo.so foo.o I need to relay instructions to a colleague for compiling the same ...
5
votes
2answers
2k views

How can I get a static C compiler?

I'm playing around with chroot environments, and I'd like to have a portable C compiler so that I can easily set up some basic build-tools in each environment without having to move too many libraries ...
4
votes
2answers
304 views

C compiler cannot create executables

I'm trying to install wine on Linux Mint 17.1. I ./configure'd as root to install it. Input: cd Downloads/wine-1.6.2 ./configure Output: checking build system type... x86_64-unknown-linux-gnu ...
1
vote
1answer
33 views

Undefined reference to math functions when linking with gcc

I'm getting an error when using make to install a program. The full step that it fails on with error looks like this: gcc -g -O2 -fopenmp -L/usr/lib -lcfitsio -lm -o lenstool_tab e_nfwg.o ...
1
vote
2answers
70 views

“GLIBC” can not be used when I have installed the gcc 5.1.0

When I have installed the gcc 5.1.0, I found lots of my softwares can not be used, such as firefox, gnome, they will give me a tip of "GLIBC_2.1X not found". Now the version of GLIBC is higher than ...
0
votes
1answer
720 views

Installation of QEMU, GCC for ARM in RHEL

We are setting up a lab which has the QEMU system to emulate an ARM processor and run assembly programs. The lab is currently setup with the host operating system as Ubuntu. We are migrating the lab ...
0
votes
1answer
651 views

gcc installation on CentOS 6.6: configure issue

I'm trying to build/install gcc on CentOS6.6, following this instructions: http://qt-project.org/wiki/How-to-Install-Qt-5-and-Qwt-on-CentOS-6 After the auto-config err'ed out: [felix@localhost ...
2
votes
1answer
657 views

Gcc configuration error

I am trying to build GNU toolchain for OpenRISC by following the guide given at http://openrisc.net/toolchain-build.html#_stage_1_gcc on Fedora Virtual Box Image. I am getting error saying ...
1
vote
1answer
881 views

Understanding SPL & U-Boot Memory Map using bdinfo?

We are using beaglebone black based custom board, I want to write some test results into RAM location from SPL, and read that log and send it via tftpput to the host PC. So far I'm able to do tftpput ...
0
votes
2answers
1k views

gcc: fail sanity check error, I suppose due to cxx USE flag missed

Recently I've done emerege -e world and then found that gcc was compiled without cxx flag. Now I can't compile any C++ package due to configure: error: C++ preprocessor "/lib/cpp" fails sanity check ...
1
vote
1answer
147 views

How to use afl-fuzz (American Fuzzy Lop) with openssl

I am trying to use afl-fuzz with openssl in Ubuntu. A normal usage of afl-fuzz would be: afl-gcc test.c //-- this will produce a.out mkdir testcases echo "Test case here." > testcases/case1 ...
8
votes
2answers
2k views

Find and install man file manually

I seem to be missing some man pages, notably gcc and g++. It doesn't help that I specify the section. whereis doesn't list man pages for those two, so I think they are simply not there. With Google I ...
0
votes
3answers
122 views

how can I build older version of gcc?

I am on Ubuntu 14.04.2 32 bit platform and I have gcc 4.8.4 installed. I want to build old version of gcc (2.95.3) to compile older version of linux kernel. I tried to follow this gcc-2.95.3 and this ...
3
votes
1answer
3k views

Linker error: /usr/bin/ld: cannot find -lgcc_s

I am trying to compile symlinks (tar.gz-file), which is a very small tool with one line for compilation: gcc -Wall -Wstrict-prototypes -O2 -N -s -o symlinks symlinks.c which gives the error .... ...
0
votes
0answers
40 views

custom gcc install include files

I have a custom installation of g++ 4.8.1 in my home directory. However the include files in that installation have no extensions! (except for tgmath.h, fenv.h, complex.h, and cxxabi.h) Thus even if ...
3
votes
2answers
12k views

Error in compiling file using gcc: “/bin/sh: g++: command not found”

I want to compile a c++ program in Fedora Linux, but the program isn't compiled correctly. I got the following error: /bin/sh: g++: command not found make[1]: [*.o] Error 127 make[1]: Leaving ...
4
votes
2answers
7k views

/usr/bin/ld: cannot find -lfl

After running the following command: g++ lex.yy.c -lfl I get the following error: /usr/bin/ld: cannot find -lfl How can I solve it?
2
votes
1answer
176 views

Why gcc show `unknown` in Target: x86_64-unknown-linux-gnu in Arch Linux?

I would like to know why when I run gcc -v under Arch Linux, it shows the unknown word in these outputs: Using built-in specs. COLLECT_GCC=gcc ...
1
vote
1answer
183 views

Why is the C++ Library not disabled when building GCC

I got the second to latest gcc and latest binutils and am attempting to create a cross compiler on a Debian system. For some reason, GCC won't compile: make[2]: Leaving directory ...
6
votes
3answers
6k views

Relationship between cc1 and gcc?

I'm trying to install Ruby in my home directory on a Linux server (without root access), which of course requires using gcc. The closest thing I can find is a directory by that name which (if you go ...
0
votes
1answer
368 views

Cannot install gcc on CentOs 6.6

I cannot install gcc on centOs because it cannot find some files, this is the last part of the console when I execute the "yum install gcc*": --> Processing Dependency: binutils-hppa64-linux-gnu ...
0
votes
0answers
14 views

Automatic build errors resolving

Again I am compiling from scratch a big OSS project for custom embedded environment and receive a lot of errors like: warning: libXXX, needed by YYY, not found fatal error: XXX: No such file or ...
3
votes
1answer
305 views

GCC not runnable on FreeBSD

I'm trying to run GCC on FreeBSD and I get this error: % gcc ar: unrecognized option `--plugin' usage: ar -d [-Tjsvz] archive file ... ar -m [-Tjsvz] archive file ... ar -m ...
-1
votes
2answers
56 views

How to use pass filename without extension to gedit external tool for make?

I am wanting to build and run a program called dbgen using the external tools. I know that this variable holds the filename, ‍‍‍‍‍‍‍‍‍dbgen.c‍‍ : $GEDIT_CURRENT_DOCUMENT_NAME How do I remove the .c ...
2
votes
1answer
58 views

Why does Fedora not include GCC by default?

I just finished a Fedora 21 clean installation. I have updated and upgraded, but I notice the following: GNU GDB is installed by default, as GNU Make is. However, GCC is not. Is that supposed to ...
3
votes
2answers
1k views

No 32 development library error after install glibc-devel.i686

I am trying to install gcc 4.9.0 on centOS 6. During ./configure there is an error coming up: /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.4.7/libgcc_s.so when searching for ...
1
vote
2answers
124 views

Error compiling source code, possibly related to cpp

I am trying to compile some source code however when I enter the "make" command in the terminal it produces an error. From my limited understanding the problem seems to arise when the code attempts to ...
1
vote
1answer
4k views

make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2

I tried to install MADWIFI on my OpenMediaVault-Server. Any more information needed? I get this error, every time i enter make: root@NAS2024:/media/5703066A59887FF7/Dsys/madwifi-0.9.4# make Checking ...
3
votes
1answer
106 views

Install gcc4.9 on openSuse 13.1

I need to download and install g++4.9 in order to work with regex in c++11 for a school project. I downloaded the source but it seems it does not work .. I searched for the rpm and 1-ClickInstall and ...
8
votes
1answer
10k views

GCC error trying to exec 'cc1'

I was cross-compiling a Linux kernel for my Raspberry Pi on a laptop (running debian 7) (followed the instructions here); but when I start compiling (make ARCH=arm CROSS_COMPILE=${CCPREFIX}), I get ...
4
votes
1answer
7k views

How do I install the latest gcc on FreeBSD?

How do I install the latest gcc on FreeBSD and set up the system so that this latest version would be used to compile further programs? At the moment of this writing, the latest release of gcc is ...
8
votes
2answers
43k views

gcc can't link to pthread?

I have recently installed XUbuntu 11.10 64bit, but I am having problem compiling the most simple pthread example. Here is the code pthread_simple.c: #include <stdio.h> #include ...
0
votes
0answers
170 views

How to fix: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

I need to install doctotext hence in the base directory, I run doctotext.sh and I got the following error (./doctotext: /usr/lib64/libstdc++.so.6: version 'GLIBCXX_3.4.15' not found). When I did ...
8
votes
2answers
167 views

Why is this Python package trying to use a non-existent gcc?

I'm trying to install PyCrypto for Python 3 on Solaris. Whether I do it via "python3 setup.py install" or "pip3 install pycrypto", I run into the same problem: a call is made to a gcc which does not ...
0
votes
0answers
42 views

Installing gcc offline on a Debian based distro

I installed Kubuntu 14.10 and it doesn't come with gcc compiler. Since I currently don't have Internet access on my laptop, I got the offline version (a tar.gz file) from a friend but I don't know how ...
0
votes
0answers
70 views

GCC “__gmpn_invert_limb” compilation error

I'm currently trying to compile GCC 4.9.2 using GCC 4.2. The problem I have run into is that I have a working GMP installation (6.0.0a) but GCC fails to link to it after a while. The error I get is: ...
1
vote
1answer
246 views

Arch Linux on ARM chipset I just want to install gcc 4.7

It sounds simple enough but this has got me pulling my hair out. I am running Arch Linux on an ARM chipset (Raspberry Pi specifically) that I used to be using as a print server. It was running CUPS ...
0
votes
0answers
19 views

Where to put files?

I downloaded a pre-built cross-compiler, and it had no Makefile, Readme, instructions, or anything. However, it came from a reputable resource, so its not malware or anything (it came from ...
3
votes
1answer
5k views

How to install gcc 4.8.1 on debian wheezy

I would like to install GCC 4.8.1 on my Debian Wheezy 7.1.0 system. The current version of GCC installed on my system is the 4.7.2. I see gcc-4.8.1 is available on the Debian repository. Can someone ...
0
votes
1answer
63 views

On which Linux based distribution is gcc not installed?

I've always thought that any Linux distro would include gcc (or at least a C compiler), but according to one of my teachers, this is not the case. Do you know any distro matching this case, and also, ...
0
votes
1answer
43 views

GCC warning when compiling Orange

When I try to install Orange (http://orange.biolab.si/download/) on ubuntu, I get these messages: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \ ...
-1
votes
1answer
32 views

How is the linking mechanism so fast in the kernel system calls? [closed]

If I open any file in Linux kernel almost every file has many extern functions and many #indef or #ifndef macros so while compiling how exactly does it map all the functions and macros when more than ...