Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

0
votes
1answer
413 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
3k views

How to install [ gcc ] without internet connection?

I simply ran yum install gcc this is what came up: ================================================================================ Package Arch Version ...
0
votes
1answer
124 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 ...
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 ...
0
votes
1answer
3k 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 ...
0
votes
1answer
55 views

Cabal error: Cannot run c compiled programs

I have an old version of cabal-install so I downloaded cabal-install 1.20 and When installing it errors out. Additional note: ghc 7.8.3 OS: CentOS 6.6 Error: Building network-2.4.2.3... ....... ...
1
vote
1answer
430 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
2k 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 .... ...
2
votes
1answer
3k 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
38 views

Compiler for Linux kernel

Can Linux kernel be compiled with gcc configured for Linux executables (not bare metal)? I have noticed that Buildroot builds cross-compiler arm-linux-gnueabi to compile everything and became curious. ...
1
vote
0answers
153 views

-fstack-protector-strong not supported by compiler gcc 4.8.3

On Fedora 20, I need to install a linux driver for a particular PCI express serial port card which is given by the manufaturer. In order to do this, I have to compile the source code of the driver. ...
1
vote
2answers
161 views

Why apache binaries built with gcc 64-bits are mixed 32 and 64 bits?

On Solaris 10 I built gcc 4.9.0 for 64 bit. At least I thought I did. I'm building an Apache based stack, and other prerequisite tools. If I build apache file shows a 64bit httpd: file ...
0
votes
0answers
3 views

How “-fstack-protector” and “FORTIFY” option are different? [migrated]

These days I'm searching for the secure coding guide, and there is an option to prevent the buffer overflow. one, $gcc -fstack-protector -S test.c $cat test.s two, $gcc -O -D_FORTIFY_SOURCE=1 ...
5
votes
2answers
98 views

Would it be possible to compile and bootstrap GNU?

A new Guix release came out some time ago. And I got the idea that if I can bootstrap glibc, gcc, and guix to HURD and Mach, I can have a non-Linux GNU system. But I also need some software like bash, ...
5
votes
2answers
136 views

Packages to rebuild after upgrading gcc on gentoo systems

Which packages should be rebuilt after upgrading gcc on a gentoo system? Is it sufficient to run # emerge -a --oneshot `equery depends gcc |awk '{print " ="$1}'` as suggested similar for perl in ...
5
votes
1answer
62 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 ...
1
vote
2answers
1k views

Linking issues with libjpeg

I have a game I'm writing which recently required libjpeg. I wrote some code using libjpeg on some-other-machine and it worked as expected. I pulled the code to this machine and tried compiling and ...
1
vote
1answer
23 views

Common library for all linux distributions

I want to develop a C++ library that can be used on multiple Linux distributions like RHEL, Suse, Ubuntu etc... If I compile my source code into a .so (shared library) on one Linux environment(say ...
1
vote
1answer
259 views

Trouble with opkg package manager in Angstrom embedded linux on Colibri module ARM v7 processor

I am working on a Colibri module having Angstrom linux installed in it! The processor is ARM v7. I am having trouble updating the softwares installed in the system. Whenever I tried the command opkg ...
0
votes
2answers
527 views

Is there a newer version of gcc 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 ...
1
vote
0answers
65 views

How can I install gcc-4.2 g++-4.2 on Linux Mint 17 with gcc-4.8 already installed?

I need an older version of gcc (specifically 4.2) alongside current gcc (4.8) on Linux Mint 17. Default Mint repositories can't find needed package: sudo aptitude install gcc-4.2 No candidate version ...
0
votes
1answer
132 views

C compiler cannot create executables whilst creating backport in Debian

I am trying to create a gcc-defaults-1.133 backport for my Debian Wheezy installation from Sid/Jessie. As this requires dpkg-dev greater than version 1.17.11 I assume I need a backport of this too. ...
0
votes
0answers
16 views

default llvm toolchain issue on Mac

Recently I have been using Mac 10.10; but I find that the compilation toolchain is a bit odd to me. It's known to us that on recent Mac OS versions the default gcc is a faked one that is based on ...
-1
votes
1answer
5k 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 ...
0
votes
1answer
63 views

Debian Jessie: Why gcc-4.7 conflicts with gcc-4.8?

My recent upgrade to Jessie removed gcc-4.7 from my system and install gcc-4.8 on the box. The problem is that I need the former one. Can anyone explain me why these two versions conflict in Debian? ...
1
vote
0answers
169 views

Getting “cannot open shared object file: No such file or directory” error while run time

I have successfully compiled the file but now I am getting following errors export LD_LIBRARY_PATH=/opt/mcr/v717/sys/java/jre/glnxa64/jre/lib/amd64/server/:D_LIBRARY_PATH ./invoke ./invoke: error ...
0
votes
0answers
28 views

Cannot connect to OpenSSH when compiled with the gcc option: -finstrument-functions

I want to make custom traces of sshd. So, I have added the source file ptrace.c from here. This file enables to trace function calls (but this is not the subject of my question). So, I have modified ...
3
votes
1answer
29 views

Why does `libc6 ` depend on `libgcc1`?

I was going through the dependencies of some packages with apt-cache depends and found, that the libc6 package depends on libgcc1, which in turn depends on gcc-4.9-base. Shouldn't such a fundamental ...
2
votes
2answers
763 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
32 views

Implications of including GPL software in a distribution?

It's well known that the FreeBSD project is actively trying to route out all traces of GPL'ed software in favor of more permissive-licensed software replacements.[1] Their reasons are ambitious, ...
162
votes
4answers
56k views

Why is FreeBSD deprecating GCC in favor of Clang/LLVM?

So I was surfing the net and stumbled upon this article. It basically states that FreeBSD, starting from Version 10 and above will deprecate GCC in favor of Clang/LLVM. From what I have seen around ...
0
votes
2answers
55 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 ...
3
votes
2answers
724 views

How to build Shallot

I am trying to build Shallot. I run x64 Debian Sqeeze. It runs into compile problems I don't understand... john@hayek:~/build/katmagic-Shallot-831de01$ make cc -O3 -I/usr/include ...
2
votes
1answer
703 views

What is the fastest way to install GCC on Wind River 3.02?

I am fairly new to installing things on a bare-bones Linux system and really do not want to just blindly install rpm after rpm of dependencies I think I might need... I know that this version of ...
0
votes
0answers
91 views

How to change CFLAGS option -march from native to corei7?

Is it possible to change the CFLAGS -march=native to -march=corei7? Would I have to recompile the whole system once this change is made? I would like to setup distcc and I read that march cannot be ...
10
votes
6answers
6k views

Compiling GNU/Linux with -O3 optimization

It's said that compiling GNU tools and Linux kernel with -O3 gcc optimization option will produce weird and funky bugs. Is it true? Has anyone tried it or is it just a hoax?
2
votes
0answers
140 views

Enabling support for AddressSanitizer in FreeBSD

The question essentially is how to compile a program that uses AddressSanitizer in FreeBSD. I use FreeBSD 10.0 (64-bit). I am trying to compile the following code with -fsanitize=address flag: int ...
1
vote
1answer
70 views

Compiling from source: What are the options for config script “build”?

When I am running a line like: ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu {*shortened*} \ --with-imap-ssl=/usr/include/openssl/ --enable-ftp --enable-mbstring ...
0
votes
0answers
167 views

How to install older version of GCC for Mex compatibility with Matlab on OpenSUSE?

Matlab MEX is compatible just with GCC version 4.7.X, however OpenSUSE 13.1 comes with GCC 4.8.1, when I compile a Matlab MEX file a warning comes out: Warning: You are using gcc version '4.8.1'. The ...
0
votes
0answers
86 views

Why will the C++ Library not disable, GCC

I've been up all night trying to get this to work. 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 ...
0
votes
3answers
83 views

Do we need to enable G++ on RHEL 6.1

I have RHEL6.1 but I can't compile using g++, when I execute g++, I get the below : -bash: g++: command not found so I assume I don't have g++ but I do have gcc installed. When I run gcc -v. I ...
2
votes
1answer
230 views

How to provide crt1.o and crti.o for LFS?

I have tried to create a Linux distribution with the Linux From Scratch (LFS) website. Everything went good until step 5.7. Glibc-2.19, but when I tried: $LFS_TGT-gcc dummy.c I get: ...
2
votes
2answers
215 views

Linux cannot compile without GCC optimizations; implications? [closed]

One can find several threads on the Internet such as this: http://www.gossamer-threads.com/lists/linux/kernel/972619 where people complain they cannot build Linux with -O0, and are told that this is ...
2
votes
2answers
6k 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
0answers
48 views

Not compiled gcc, failed configure-target-libquadmath

Trying to compiling gcc-4.8.2 after downloading: ../gcc-4.5.2/configure \ --target=$LFS_TGT --prefix=/tools \ --disable-nls --disable-shared --disable-multilib \ --disable-decimal-float ...
1
vote
1answer
2k views

Unable to find headers in GCC

I am trying to compile a program using GCC in SCO, and I am unable to find the ctype.h file. I have managed to find the other files that were missing when compiling, like string.h etc. I was getting ...
3
votes
4answers
2k views

Automatically update GCC to a later release without upgrading distribution

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 ...
3
votes
1answer
11k views

Installing GCC 4.5 on Fedora 16

The default GCC package available in the Fedora 16 repositories is gcc-4.6. I need to install gcc-4.5 on my system. I downloaded the packages from the kijo repository, but when I try to install them ...
1
vote
1answer
945 views

Configurations needed to be done post GCC compilation and installation

I have compiled the latest GCC 4.7.0, on my Linux Mint 12, using gcc 4.6.1 (default). Compiler compiled successfully, steps followed ./configure make make install Binaries of gcc-4.7.0 are in ...
5
votes
1answer
31k 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 ...