Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

2
votes
2answers
24 views

Downgrade gcc to 4.6.3 on fedora?

How can I downgrade gcc to 4.6.3 on fedora. I am working on a project that I do not have permission to update to be comparable with 4.8 and need to be able to install gcc 4.6.3. How can I do this?
0
votes
4answers
92 views

Compiling C/C++ code by way of including preprocessor build instructions in an actual C/C++ source file

So here's the thing, and it's really just conceptual so don't let it bug you: I've got reasons for not wanting to rely on a specific build system. I don't mean to dis anybody's favorite, but I really ...
2
votes
0answers
26 views

GCC cofigure error

When I'm trying to install GCC for SLED 11 SP3, the terminal show me this error: configure: error: cannot compute suffix of object files: cannot compile. Before to intall GCC, I installed the GMP ...
-1
votes
0answers
24 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
43 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
30 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
43 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
75 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
66 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
44 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
55 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
65 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
54 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
159 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
72 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
2answers
45 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
58 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
23 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
90 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
31 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
463 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
103 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
489 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
60 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 ...
1
vote
1answer
47 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
363 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
140 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
242 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
35 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
297 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
391 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
507 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
111 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
80 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
97 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
116 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
116 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
118 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
185 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
74 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
75 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
155 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
90 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
609 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
112 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
916 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
54 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 ...