Questions regarding GNU Compiler Collection Suite.
2
votes
1answer
17 views
Self complied version of GCC overwriting package installed version
I'm using debian to do most of my coding work, and I was doing a homework project that required a certain version of gcc to compile the program I was working on.
I downloaded the gcc source and ...
0
votes
1answer
23 views
Problems installing MELT plug in
I'm trying to install MELT plug-in on my linux machine, and I encounter some errors. Following the readme file, I run:
apt-get install gcc-4.7 g++-4.7 make texinfo texi2html autogen gawk
apt-get ...
1
vote
0answers
31 views
How to install gcc 4-8 on #! Waldorf 64-bit?
I would like to install and use g++ 4-8 compiler. It supports various C++11 features, and I am willing to look into them and use them. Also, as I came here from Windows, my previous files also used ...
0
votes
1answer
37 views
Why won't OpenCL link with gcc after installing the fglrx driver and amd app sdk?
I have installed the fglrx driver on my machine following this tutorial: http://wiki.cchtml.com/index.php/Fedora_18_Installation_Guide, installed the opencl-headers package, and finally installed the ...
2
votes
1answer
113 views
Compiling C++11 code on old machines
I'm trying to compile a C++11 project on a bunch of old machines with old kernels. They're running CentOS 6.2, 6.3 Alt Linux 4.1, others are unknown but similarly old. The machines won't let me ...
0
votes
0answers
9 views
What is an innermost “if” statement and an enclosing “if”? [migrated]
First, please allow me to post a screenshot of the man page of GCC.
The sentence just above the second bundle of demo code confuses me, which is written as "so there is no way the 'else' could ...
0
votes
1answer
69 views
Debian 7: Add repository for gcc-4.8 and g++-4.8
I want to be able to sudo apt-add-repository with a ppa for gcc-4.8 and g++-4.8.
I was able to do this on Ubuntu using (after adding the ppa) sudo apt-get install g++-4.8.
So far I have been able to ...
2
votes
1answer
84 views
gcc make install error [closed]
I'm trying to compile gcc with make install to a drive wich is an linux from scrach bulid to a directory called tools and it gives me this:
make[1]: Entering directory `/media/BOSS/sources/gcc-build'
...
0
votes
0answers
38 views
gdb-multiarch command not found
I have installed QEMU in RHEL for running the assembly programs in ARM. I have successfully installed QEMU and ARM. However, for debugging we are thinking to use GDB. I want to install the ...
2
votes
1answer
49 views
QEMU for ARM programs with GDB [closed]
I want to emulate an ARM processor for running the assembly programs using QEMU in RHEL. I have installed QEMU but I still have problems in running the assembly program. I got the assembly program, ...
0
votes
1answer
48 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 ...
1
vote
1answer
26 views
Error with Class locale with gcc 2.96
I am using Red Hat Linux release 9 Kernel 2.4.20-8 on an i686 with gcc version 2.96. In my code I am declaring like,
std::locale utf8_locale;
I am getting this error:
syntax error before `;'
...
0
votes
1answer
121 views
Installing php phalcon extension
I am unable to install phalcon php extension by folowing these steps.
I use 64-bit Linux Mint 14 Nadia.
http://docs.phalconphp.com/en/latest/reference/install.html#linux-solaris-mac
For the ...
0
votes
1answer
32 views
Debug program in eclipse with a newly built compiler
I recently tried to build the new version of GCC (4.8.1) on Ubuntu 12.04. I managed to build everything correctly, it passed the tests and I installed the new compiler.
I can build programs with the ...
0
votes
2answers
91 views
GCC compilation - where the __stack_chk_fail@GLIBC_2.4 symbol comes from?
I'm using GCC 4.7.2 from devtoolset package on CentOS 5 (CentOS 5 because we need compatibility with old Linuxes, and GCC 4.7 because it optimizes better than 4.4).
There is one symbols that prevents ...
1
vote
1answer
56 views
Gcc Error: cc1 not found
I've a system with gcc 4.2.4 on board, but when I try to compile even a simple hello world I obtain this error:
$ gcc helloworld.c
gcc: error trying to exec 'cc1': execvp: No such file or directory
...
34
votes
5answers
1k views
How to compile the C compiler from scratch, then compile Unix/Linux from scratch
Let's say I work for a large services organisation outside the US/UK. We use UNIX and Linux servers extensively.
Reading through this article it mentions that it would be easy to insert a backdoor ...
1
vote
1answer
55 views
Module dependencies [closed]
In a system, I need to use module load gcc/4.4.7 to get access to gcc to compile foobar.c into foobar.
When I run foobar, does gcc/4.4.7 need to be loaded, say to ensure certain libraries are ...
0
votes
1answer
314 views
How to install [ gcc ] without internet connection?
I simply ran
yum install gcc
this is what came up:
================================================================================
Package Arch Version ...
0
votes
0answers
374 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 ...
2
votes
1answer
104 views
Compile the Ubuntu “Raring” Kernel with the Intel Compiler
Of course, the first question is: why I'm doing this. Just for fun! I'm learning more about Linux kernels and I have a virtual machine that I can replace in 15 minutes.
Getting to business, I don't ...
0
votes
0answers
21 views
How can I get a regular gcc etc. under HomeBrew under Mac OSX Mountain Lion?
I have a Mac with command-line developer tools installed, including Apple's LLVM C compiler, present as /bin/gcc.
How can I get a real gcc installed so that e.g. make will see the standard gcc ...
0
votes
1answer
50 views
Tell autoconf to use different version of gcc
OpenBSD installs newer version of gcc as egcc. I am trying to compile some software that requires gcc 4.4+ and can't seem to convince autoconf to use the newer versions of gcc...
I have tried:
# ...
1
vote
2answers
30 views
How to deduce the right target for a GCC cross-build?
I have a 32 bit x86 machine where Debian is up and running with this properties
uname -r is 3.2.0-4-486 and
uname -m is i586
in this situation i have to pick the right HOST and TARGET prefix so ...
2
votes
1answer
38 views
console displaying quote character from gcc wongly
After an upgrade to debian wheezy my text consoles displays questions marks where there should be quotes
Under X I see things correctly
window.cpp:1056:21: error: base operand of ‘->’ is not a ...
1
vote
0answers
50 views
ices-cc (libvorbis) linking fails on Ubuntu 13.04 - lgcc_s not found
I'm trying to compile compile ices-cc into a set of static files on Ubuntu Server 13.04. I use the automatic Centova's build-ices.sh script and use the following command:
./buildices.sh ...
1
vote
1answer
373 views
OpenIndiana Development Host (151a8 aka “hipster”) minihowto - is this all right?
I saw a similar post about Solaris and thought of a similar howto. I've heard of recent news (as in this summer) with the distribution and I learned I could easily update my initial OpenIndiana 151a7 ...
3
votes
4answers
88 views
Why is that when I download a binary from the web it doesn't have executable permissions set, but when I use gcc to build a binary it does?
For example, if I have the file hello.c which just contains:
int main() {
printf("Hello world");
return 0;
}
and I built it in gcc with gcc hello.c -o hello I can then run ./hello and it ...
2
votes
1answer
142 views
Pip install - CPU you selected does not support x86-64 instruction set
I'm trying to use
pip install mysql-python
inside a virtualenv container and am getting the error
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall ...
0
votes
0answers
289 views
Centos CMake Does Not Install Using gcc 4.7.2
A similar problem has been reported here with no solution:https://www.centos.org/modules/newbb/print.php?form=1&topic_id=42696&forum=56&order=ASC&start=0
I've added and upgraded gcc ...
2
votes
1answer
95 views
new distros cause segmentation fault of old binary
I have an elderly (~1999) and unfortunately commercial graphic program that runs perfectly OK on systems with gcc up to 3.4.6 (CentOS 4.8). However, in all distributions based on gcc 4.* that I've ...
2
votes
2answers
78 views
Is there any pattern to specify target triples in GCC?
The gcc compiler use target-triplets for cross-compilation. I see some of these target triples like "x86_64-pc-linux-gnu" (the most common). I understand what means but I don't know how specify ...
0
votes
0answers
104 views
GNU GCC 4.8 build error
I was trying to install the latest GCC 4.8 but somehow the build fails. Here are the steps I followed:
In the directory /mnt/ajay/ I checked out the code from svn using the command:
svn checkout ...
2
votes
1answer
297 views
CentOS 5.8 with gcc 4.4.7 links against libstdc++ 6.0.8. How is it possible?
According to the gcc ABI policy, gcc 4.4.7 should depend on libstdc++ 6.0.13. As far as I understood, the compiler version and the libstdc++ version are deeply interrelated and can't be swapped, so it ...
2
votes
2answers
565 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 ...
1
vote
0answers
27 views
GNU toolchains against GCC SVN?
Is there anything like CodeSourcery which provides prebuilt binaries for arm toolchains built against gcc-svn.
http://elinux.org/Toolchains#Prebuilt_toolchains
Otherwise, a working instruction for ...
0
votes
1answer
35 views
Is there a clang-snapshot?
I've just discovered the wonderful gcc-snapshot package for Ubuntu. I don't see a clang-snapshot or llvm-snapshot package though. Is there an equivalent for clang?
3
votes
1answer
221 views
ArchLinux pacman updates on Arm
I have ArchLinux embedded in userspace on my Samsung Series 3 Chromebook. The version of GCC I have installed via pacman is 4.7.2. I'd like a newer version, and the package database here shows that ...
4
votes
1answer
81 views
Effect of static and dynamic linking on start address
I have a simple C program. I run:
$ gcc Q1.c -Wall -save-temps -o Q1
Then I inspect the executable generated:
$ objdump -f Q1
Q1: file format elf32-i386
architecture: i386, flags 0x00000112:
...
-3
votes
2answers
101 views
Using file system call
I'm trying to learn system calls for open,write and close a file.
I use this sample and the result is:
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
Here's my program:
...
1
vote
1answer
2k views
How to update the version of gcc-c++ on Fedora?
I have version 4.4.4 of gcc installed and would like to update to either a specific version or to the latest version. Here is what I have tried:
sudo yum install gcc-c++
this tells me that Package ...
1
vote
1answer
160 views
Only output errors / warnings when compile kernel?
When you compile kernel you normally see lines like
CC XX.o or LD XX
So, can I skip these messages? Only output errors or warnings generated by gcc
0
votes
0answers
139 views
How to install cpp in RHEL 6.3?
I want to install gcc in RHEL 6.3, but it has cpp dependencies.
So I go to cpp rpm download page, but it has no rpm for 6.3 version:
Is there any other way to install cpp in RHEL 6.3?
0
votes
3answers
700 views
How can I downgrade gcc 4.6.3 to 4.4.3?
I have gcc-4.6.3 installed in my PC.but for my project I need gcc-4.4.3 version.
I do not mind removing gcc-4.6.3 but I badly need gcc-4.4.3.
How can I downgrade?
or how can I keep two gcc and make ...
7
votes
1answer
181 views
How does gcc know where boost is installed
I installed boost using sudo apt-get install on Ubuntu. Later I did not have to give gcc the I flag alongwith the path to the boost libraries to use boost ! Nor did I do any pkg-config --cflags --libs ...
2
votes
3answers
180 views
How does gcc handle file permissions?
The executable files that gcc creates have execution permissions
-rwxrwxr-x
which are different than the permissions that the source file has.
-rw-rw-r--
How does gcc set these permissions ?
0
votes
2answers
814 views
Installing GCC in Solaris_x86
I have tried Googling for my answer, but everyone is saying GCC is already installed on the Solaris Operating System. They said to add /usr/sfw/bin to your $PATH, which I did, and rebooted the ...
0
votes
1answer
112 views
Can I read what CCFLAGS were used for building a binary?
Is there any way to read from compiled code what CCFLAGS (particularly the optimizations) were set at compile time?
4
votes
1answer
80 views
How to send the content of an emacs buffer to gcc without writing to disk?
It's common for me to run a throwaway piece of code I'm not particularly interested in saving on my disk, so I'm often working inside emacs in a buffer not attached to any file in my system.
When ...
2
votes
3answers
171 views
Linux GCC compiler options
I have recently started using Linux as a tool for programing. In my book, I have seen that the GCC is used with 2 options: -g and -o. Now, I know that -o is to set a filename, but what is the purpose ...