Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

-1
votes
0answers
22 views

How to have a self-contained development environment under /home

I have access to a server with very good hardware but very old Linux. I constantly find that the API's I called are not found in the libraries installed by the package manager. So I decide to have my ...
0
votes
1answer
37 views

Create single executable file from directory

I'm looking to create a single executable file from a directory, to make a 'standalone' app. So say my directory structure is: -app --assets --bin --views runme go.sh and within go.sh I ...
1
vote
0answers
16 views

Building HDF5 with GCC 4.7 and OpenMPI

I am trying to install hdf5 with GCC 4.7 from binary, because I do not have root permissions, using following script on a machine using CentOS release 5.6(AMD64bit): module purge module unload ...
1
vote
0answers
39 views

Install gcc into x86_64-linux-gnu

I'm trying to compile and install gcc-4.9.0 on my Debian system, and in particular I want the new version to overwrite an old version of libstdc++.so.6 in /usr/lib/x86_64-linux-gnu that came as ...
4
votes
1answer
58 views

GCC (toolchain) for Ralink SoC - ELF not found and syntax error

I bought a Chinese P2P camera and there was no MJPEG stream, so I wanted to compile mjpg-streamer for it. Here's my CPU's info: # cat /proc/cpuinfo system type : Ralink SoC processor ...
2
votes
1answer
59 views

How to build gcc inside a Debian chroot?

I used debootstrap to set up a minimal Debian system (x86): debootstrap wheezy /var/chroot http://ftp.debian.org/debian/ Then I entered the chroot and installed some packages: apt-get install ...
1
vote
1answer
32 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 ...
2
votes
1answer
40 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
58 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
45 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
148 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
51 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
30 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
54 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
78 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
27 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
295 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
74 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
334 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
35 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
52 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
29 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
276 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
121 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
199 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
31 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
255 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
324 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
377 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
89 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
70 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
84 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
102 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
96 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
111 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
39 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
175 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
73 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
133 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
80 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
502 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
109 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
789 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
208 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
137 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
96 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 ...