Questions regarding GNU Compiler Collection Suite.
2
votes
1answer
22 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 ...
3
votes
1answer
49 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
vote
0answers
41 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
...
3
votes
1answer
135 views
sudo environment: “g++: command not found”
I have a relatively fresh RHEL 6.5 install, on to which I have installed from source GCCC 4.9. After I installed GCC 4.9, I uninstalled the distro-provided older GCC version via:
sudo yum remove gcc
...
2
votes
0answers
21 views
How to Cross Compile using Eclipse C/C++ IDE? [migrated]
I setup Eclipse C/C++ IDE on Linux desktop to cross compile programs on to a Linux RT platform using a GCC cross compiler.
Now I am trying to set up Eclipse C/C++ IDE on Windows to achieve the same.
...
1
vote
0answers
26 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
1answer
29 views
6.7 Linux headers `make mrproper` fails in lfs 7.5
I'm building lfs-7.5.
When I run make mrproper in chapter 6.7, it says:
make: gcc: command not found
and on running bash /tools/bin/gcc, it says:
bash: /tools/bin/gcc: no such file or ...
1
vote
2answers
51 views
Alias from .bash_profile is not reflected across the system
I have few path settings and alias in .bash_profile, and I am exporting those.
For example:
alias gcc=/abc/def/......./myrtgcc
export gcc
And I want use myrtgcc to compile C programs either from ...
3
votes
1answer
22 views
How to configure my enviorment in such a way that a proper (different from the system one) version of library is used
I guess that this question is a borderline between ServerFault and StackOverflow and this site. But I think that U&L is most relevant.
I have some C++ code that depends on a library in version X ...
1
vote
3answers
74 views
GCC: set architecture to pass to linker
GNU C compiler passes the wrong architecture name to the linker. For example gcc helloworld.i throws the error ld: unknown/unsupported architecture name: -arch arm. After some experimenting with LD, ...
0
votes
0answers
20 views
g cc installation in fedora 20
yum install g cc
Error: cannot retrieve meta-link for repository: fedora/20/x 86_64.
Please verify its path.
this is error i am getting during installation of g cc compiler in fedora 20. can any ...
1
vote
1answer
192 views
how to specify the libstdc++.so.6 to use
I am trying to compile a program of mine, that needs C++11 features and a newer version of boost than is installed on the target machine. I therefore compiled and installed gcc 4.9 to some local ...
0
votes
1answer
60 views
gcc produces erroneous “No such file or directory” under Cygwin
For demo purposes, here is my one line program test.c :
#include <dbus/dbus.h>
This is my makefile :
INC = -I/usr/include/dbus-1.0 \
-I/usr/lib/dbus-1.0/include
...
1
vote
2answers
226 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 ...
0
votes
2answers
32 views
How do I get GCC 4.7.1 with 64bit support installed for my user account only on Solaris x86
I have been put on a task to upgrade and build 32bit and 64bit libraries for software developers to use. I need to install GCC version 4.7.1 with 64bit support on the Solaris x86 machine I'm using for ...
0
votes
1answer
50 views
Sparc Solaris - install optimised GCC 4.9, 32/64 bit?
We have a new (to us) solaris 10 box running on T4 cpus. Our software stack is Perl/Oracle based. We now have to install GCC 4.9. I wish to optimise this for the T4 CPU. I think the following ...
0
votes
0answers
26 views
Install the latest gcc on Pygoscelis Papua (Gentoo)
I would like to try out Gentoo and I started a Pygoscelis Papua instance on Amazon EC2.
How do I install the latest version of gcc to compile my programs?
I tried
emerge -u gcc
gcc-config -l
as ...
2
votes
1answer
199 views
How do I install the latest gcc on FreeBSD?
How do I install the latest gcc on FreeBSD ind 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 ...
2
votes
2answers
107 views
Segmentation faults during compilation - where to begin?
I have a particular problem I need solved right now, but I'd really like to know a good strategy for approaching this type of problem - segmentation faults when compiling other people's code, so I'm ...
1
vote
3answers
162 views
libstdc++.so.6: open failed: No such file or directory
I'm trying to run my first C++ program on Solaris. Just a simple Hello World program. When I try to run. I get the error libstdc++.so.6:open failed:No such file or directory. Of course I did some ...
0
votes
1answer
30 views
Compiling for Red Hat 5.9
I need to compile a C++ application to run on Red Hat 5.9, but I don't have access to a development server that runs Red Hat 5.9.
My current executable compiled on Ubuntu 10.04 produces the error ...
2
votes
1answer
207 views
Why can yum still not update GCC 4.9.0?
GCC 4.9.0 has been released since April 22. However, I can still not update it through the following command:
$yum update gcc
Why does the yum repository lag so much behind gcc.gnu.org?
2
votes
4answers
278 views
How do I automagically update GCC to a later release without upgrading my distro?
My understanding is that c++11 support in G++ 4.7.2 wasn't great (it gives me a warning everytime I try to compile my c++ code, presumably there are good reasons for these warnings), so thought I ...
0
votes
1answer
270 views
install latest gcc on rhel 6 x86_64
I have an RHEL 6 server with gcc version 4.4.7. I wanted to update the gcc version (I think the current one is 4.8). Yum update doesn't work. Also, SO answers for a similar question on CentOS does not ...
2
votes
1answer
76 views
Compilation of gtkdialog with gcc fails on Solaris (cc1: error: invalid option `t')
I have Solaris 10 x86 just installed on my VBox, but I have problem with make and make install command. When I try to run this command I got error related to gcc compiler option -t:
Here is config.log
...
1
vote
1answer
63 views
Install “ia32-libs” package on Windows to use in Linux
I have recently installed a GCC ARM Embedded toolchain for Linux (to run on a 64-bit machine). However, the pre-built version of Linaro GCC runs on 32 bit machines. The solution is simple: apt-get ...
1
vote
1answer
76 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
1answer
91 views
Solaris 11 pkg repository update fails
I want to install gcc in my solaris 11 working in virtualbox, I tried
pkg install gcc-45
but I am getting :
pkg: 0/1 catalogs successfully updated:
Unable to contact valid package ...
1
vote
1answer
81 views
arm-linux-gnu-gcc Vs arm-linux-gcc
What is the difference between arm-linux-gnu-gcc and arm-linux-gcc
Which should be used for cross compiling a C program for ARM ?
2
votes
4answers
107 views
How Can I Change the Default arguments to gcc When I run Make “filename”
Forgive me if I posted this in the wrong Stack. Every time I run make for a file without any Makefiles in the directory, make still works and compiles the source code but only with the arguments: gcc ...
1
vote
0answers
36 views
how to install gcc4.8 in netbsd 6.1.3?
I did a "make install" for lang/gcc48 in pkgsrc. It did built ok. However, when I do gcc --versions, the default gcc 4.5.3 is displayed. What steps do I need to do after the build?
2
votes
0answers
163 views
sudo apt-get install g++-4.8-multilib not working on Mint?
I've got the latest version of Linux Mint 16 (64 bit) and in Netbeans I am compiling a project in 32 bit mode. I get the error that I am missing bits/config.h. I think this is because I am in 32-bit ...
0
votes
1answer
70 views
libext2fs gcc linking error
I am writing a C program which uses libext2fs:
#include <ext2fs/ext2fs.h>
int main(int argc, char *argv[])
{
char *fsname = argv[1];
errcode_t err;
ext2_filsys fs;
err= ...
0
votes
1answer
69 views
Compile OS with gcc and ld on Linux
I'm practicing operating system development and am having trouble getting gcc and ld to produce pure binary without any metadata or section labels. For example:
int function(){ return 100;}
would ...
2
votes
1answer
107 views
How to add new gcc compiler to my Linux mint OS
I want to add new gcc cross compiler to my Linux mint. I need this compiler to compile codes that should run on a Khepera III Robot. I have searched a round but I didn't find any clear answer to my ...
0
votes
2answers
77 views
How do I install gnuconio on linux [closed]
I downloaded the gnuconio on this site (http://sourceforge.net/projects/gnulinuxconioh/)
I unzipped the zip he jerou me the following files:
bash-4.2$ ls
Doxyfile READ-ME.txt conio.c conio.ppr ...
0
votes
2answers
411 views
CentOS yum install gcc error: glibc-common conflicts with glibc
I met a problem with installing gcc on my CentOS.
Outputs of my command sudo yum install gcc:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.ustc.edu.cn
...
0
votes
1answer
104 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
714 views
Linking failure [ld cannot find library]
I am trying to configure Linux kernel [Angstrom distribution] via make menuconfig, but I get these errors.
make: Warning: File `/usr/src/linux-2.6.32.61/arch/arm/Makefile' has modification time 11511 ...
0
votes
1answer
52 views
cc1 not in the PATH
I 'm trying to configure kernel via make menuconfig [Angstrom distribution] on BeagleBoard-xM, but I get these errors:
make: Warning: File `/usr/src/linux-2.6.32.61/arch/arm/Makefile' has ...
1
vote
0answers
193 views
Problem with configure - cannot find -lgcc_s
I want install Argos 0.5 to Debian 3.12.6-2 (2013-12-29) x86_64 GNU/Linux. I had to install gcc 3.4 because Argos call for it. Now I have gcc 3.4 and gcc 4.8.2-2 too. Problem is that ./configure ...
0
votes
2answers
126 views
gcc too old in red hat?
I use Red Hat Enterprise in my school and I want to compile some c++11 code but the gcc --version is 4.4.7 which is not compatible.
Is that one the latest version in the red hat repositories?
is there ...
2
votes
1answer
92 views
Compile proftpd with MySQL authentication support on AIX
Edit 1:
The problem seems to be related to MySQL component. because if I remove every SQL directives from config file, it does work on ftp/ftpes, sftp and ftps
Edit 2:
If I put an existing host ...
1
vote
1answer
89 views
Long gcc compile time
So far my compilations have either succeeded or failed but his time it just got stuck. I'm compiling gcc on a Linux Synology NAS. However, the compilation process has run for 3 days and I start to ...
1
vote
0answers
47 views
Stanford's StanfordCPPLib on Linux
I'm using SUSE Linux 13.1 and self studying Stanford's CS 106B course. Here I have found the following zip file, cs106b-hw2-ngrams-starter-files.zip, and downloaded.
Now questions
This libs are for ...
3
votes
3answers
278 views
Shortening build command
Is there any way I can shorten this openCV build command?
g++ file.cpp -o newFileName `pkg-config --cflags --libs opencv`
I tried adding:
-o newFileName `pkg-config --cflags --libs opencv`
to an ...
0
votes
1answer
343 views
LFS 7.4 chapter 6.7: make: gcc: Command not found
I am (again) trying LFS. The version is 7.4
I am stuck at chapter 6.7, where I must run: make mrproper and I get this error: make: gcc: Command not found. But the gcc is there. I also cannot run ...
0
votes
0answers
22 views
How do I install GCC and make on a mac without administrator access or using Xcode?
I'd like to install gcc and make on my Macbook Air, but I don't have root access on it. I found this link through searching on google, but I have no idea how to set up the prefix's so that the actual ...
0
votes
1answer
83 views
Utilizing a newer standalone glibc [duplicate]
We're running RHEL6, which only officially supports glibc 2.12. A user is requesting that we install a newer version.
I grabbed 2.18 from http://ftp.gnu.org/gnu/glibc/ and had no trouble running ...
0
votes
3answers
95 views
In makefile when do we use .o files?
In the following make file, what is the significance of adding .o files instead of .c files?
CC=gcc
CFLAGS=-I.
hellomake: hellomake.o hellofunc.o
$(CC) -o hellomake hellomake.o hellofunc.o ...