Questions regarding GNU Compiler Collection Suite.

learn more… | top users | synonyms

-1
votes
0answers
24 views

How to creat a.out with default file name? [migrated]

For example if I do "gfortran filename.f90" it will output a a.out. But what I need is the output should be by default filename.out and not as a.out.
0
votes
1answer
19 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?
2
votes
1answer
54 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
53 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: ...
1
vote
0answers
18 views

Debugging information in GCC preprocessor output [migrated]

I was inspecting the preprocessed output generated by GCC, and I see a lot of these in the .i file that I generated using the -save-temps flag: # 8 "/usr/include/i386-linux-gnu/gnu/stubs.h" 2 3 4 ...
-2
votes
0answers
53 views

GCC errors out on code that used to work fine [migrated]

I have a program that has successfully compiled in the past, but now I get a bunch of errors.The source code is just: #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> ...
-3
votes
2answers
65 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: ...
0
votes
0answers
34 views

GCC Constructor & Link order, Are they have relation? [migrated]

I have to write this question, I have try a lots to find the reason. There is a.c: UTEST_BEGIN() UID(a_test) { printf("a test"); return true; } UTEST_END(a) b.c is simlar: UTEST_BEGIN() ...
0
votes
1answer
144 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
50 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
78 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
182 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 ...
6
votes
1answer
106 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
90 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
156 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
54 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?
3
votes
1answer
55 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
123 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 ...
3
votes
2answers
34 views

Running -march optimized software on another architechture?

I'm running an Athlon64 server with LFS and would like to have a local copy of the server in a virtual machine for testing purposes and building software. My PC uses an i7 and the existing server ...
1
vote
3answers
99 views

UNIX be-spoke Shell-Script / Commands

Sorry in advanced if this question would be better suited on SO. Basically, I'm getting used to using the command line interface (linux etc..) and I come across commands like: git [command] .. ...
2
votes
2answers
42 views

How does a package like ATLAS know which fortran compiler to use?

How does a package like ATLAS know which compilers I have installed on my system? For example, say that I install a local version of gfortran, how do I "register it" in the system so that a package ...
0
votes
2answers
234 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 ...
3
votes
2answers
206 views

Installing gcc without root?

I'm running OSX, and I don't have root, or an existing compiler. Is there any way I can install gcc? Are there official or trusted unofficial mach-o binaries that can be downloaded for a certain ...
2
votes
1answer
3k views

Installing GCC 4.6.3 on Fedora 18

I am trying to install GCC 4.6.3 on Fedora 18. I was following the instructions provided by Lars Rohrbach. When I run make, I get the error /usr/include/gnu/stubs.h:7:27: fatal error: ...
0
votes
1answer
116 views

GCC fails to build at linking libquadmath

I'm trying to build GCC (GCC 4.8, at revision 195144), but I get the following error: libtool: link: ranlib .libs/libquadmath.a libtool: link: ( cd ".libs" && rm -f "libquadmath.la" ...
0
votes
2answers
137 views

Plugin support for gcc in RHEL/CentOS?

Is there anyway to enable or install plugin support for gcc in RHEL/CentOS?
1
vote
2answers
555 views

How can I solve this make error when building gcc-4.7.2 for LFS?

Everything was going so well... I'm trying to build gcc-4.7.2, following the instructions in the LFS book. When I run make, I get the following: checking for MPFR... no configure: error: libmpfr ...
1
vote
1answer
209 views

Adding Objective C compiler to GCC 4.7.2

I finished building the GCC 4.7.2 with C, C++ and Go compilers on my Ubuntu 12.04. I now want to add the Objective C compiler, is it possible to add it to the previous build? If so, how should i ...
0
votes
1answer
374 views

Fatal error: No compiled in support for x86_64

Can't use gcc on x64 debian: $ gcc a.cpp Assembler messages: Fatal error: No compiled in support for x86_64 what should I do? Some people propose installing binutils, but they are already there. ...
1
vote
2answers
156 views

compiling with gcc broken for users but fine for root

So somewhere along the way compiling as a regular user has stopped working on my server. I'm on Debian Stable. Can't think what has changed on my system that would result in this, or how to fix it, ...
0
votes
1answer
158 views

How to stop g++ linking/including old system headers/libs from /usr/*?

The server I want to run some code on has older versions of gcc (gmp,mpc,mpfr too) installed in the standard locations like /usr* the admin is unwilling to update but has allowed me to install a newer ...
2
votes
1answer
345 views

gcc 4.6.3 local installation with gmp 5.0.5 mpfr 3.1.1 errors

I am trying to install a new gcc version (g++ version) in my home directory on a server I have access too. This server already has gcc elsewhere (and gmp etc) but older versions, and I want to locally ...
0
votes
1answer
107 views

Install GCC at a custom location without machine prefix

When installing GCC, libraries, header files and some executables are placed in directories similar to /usr/lib/gcc/i686-pc-linux-gnu/4.5.4/ and /usr/libexec/gcc/i686-pc-linux-gnu/4.5.4/. I'm ...
1
vote
2answers
301 views

Will g++ build 64bit on 64bit system?

If I am using automake to build a library if there are no specific flags specifying target system will the result be according to the system that the build is happening on? Meaning compiler on 64bit ...
1
vote
2answers
550 views

Multiple gcc and linking between them

I'm running centOS 6.3 which comes with gcc 4.4.6 and I installed gcc 4.6.3 using these instructions. But when I type gcc -v it still says gcc 4.4 is the version I'm using. The newer version is under ...
1
vote
3answers
75 views

Is there a way to know which options were used at compile time?

Take a look at the following commmand line: gcc -o hello -Wall -D_BSD_SOURCE hello-world.c Now, is there a way to know about these options by doing some processing on the 'hello' executable. ...
2
votes
1answer
77 views

How to link different (incompatible) libraries at runtime depending on program?

I have a number of legacy codes that need to be compiled with specific (and often conflicting) libraries. To be specific I have a program which can only be compiled with g77 and another program which ...
2
votes
3answers
237 views

compile software with older version of gcc and linux kernel

Distributor ID: SUSE LINUX Description: openSUSE 11.4 (x86_64) Release: 11.4 Codename: Celadon gcc (SUSE Linux) 4.5.1 Linux linux-14ay 2.6.37.6-0.20-desktop #1 SMP PREEMPT 2011-12-19 ...
58
votes
4answers
14k 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 ...
4
votes
0answers
395 views

CLFS: Building GCC cross compiler

Currently I try to build a embedded Linux from scratch with the instructions from Cross Linux from Scratch. Everything worked fine until I tried to compile the GCC Cross-Compiler. I want to build the ...
2
votes
1answer
3k views

Install gcc 4.7.2 on Debian squeeze 64x

I want to use gcc 4.7.2 on my Debian squeeze 64x I followed instructions in this thread: Get newest gcc for debian?, but I'm getting an error, I tried several apt-get install commands I will settle ...
2
votes
1answer
176 views

Being not admin user how to install local GCC instead of provided?

So I came into my classrom Debian is installed, and gcc 4.1. I want to install (compile from sources is an option - I have time..) for my self GCC 4.7 and adress it in bash as gcc anywhere. Is such ...
0
votes
2answers
443 views

Unable to install Mono 2.6 on CentOS

I have an application that breaks on mono 2.10, so I'm trying to install an older mono instead. I found an RPM and tried to install it, but it won't install (I believe) because the glibc and gcc ...
1
vote
2answers
150 views

Accidentally removed dev-libs/mpc from Gentoo

It seems I accidentally removed dev-libs/mpc instead of media-sound/mpc. Now I can't compile anything (including a replacement dev-libs/mpc) because in doing so I apparently murdered GCC. How does ...
1
vote
2answers
2k views

error while compiling ffmpeg: gcc is unable to create an executable file

When I run the ./configure command in ffmpeg source directory I get this error: gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do ...
5
votes
1answer
883 views

Is there a way to deactivate Buffer overflow protection on my machine?

I want to do some experiments with buffer overflows on my various virtual machines, including (but not limited to) Debian 6, Ubuntu 12.04, Fedora 16, but every time I try to execute the buffer ...
2
votes
0answers
351 views

Compile parameters for MIPS based codesourcery toolchain?

I installed codesourcery cross compile toolchain for mips32 architecture on my WIN 7 machince. I want to first compile a simple 'factorial' binary for my router which is based on MIPS32. From little ...
2
votes
0answers
228 views

Error cross compiling linux kernel using buildroot

I am trying to build a kernel bt in cross compiling the kernel when I ran following command make CROSS_COMPILE=i686-linux- ARCH=x86 I got the following error: UCLIB_EXTRA_CFLAGS="" \ ...
2
votes
1answer
340 views

/usr/include/stdio.h:140: parse error before `__gnuc_va_list'

I keep getting this error, when trying to compile my C program in SCO (using gcc). I have had a look on Google, and found this other forum: Linux Questions, and that guy had the exact same issue as I ...
1
vote
1answer
130 views

Compiling against a newer version of glib?

I'm working on a piece of software that needs to compile against a very modern version of glib, but also needs to run on Ubuntu 11.10 (which doesn't come with that version). My first thought was to ...

1 2