Tagged Questions
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
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
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" ...
1
vote
2answers
550 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
208 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 ...
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, ...
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 ...
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.
...
58
votes
4answers
13k 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 ...
2
votes
0answers
350 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 ...
2
votes
1answer
227 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 ...
1
vote
1answer
553 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 ...
0
votes
1answer
282 views
Error compiling glib
I am trying to compile glib 2.24.2 under Debian 64bit GNU/Linux 6.0.4 (squeeze) using:
gcc 4.0.3
glibc 2.3.6
Configure command:
CPP="/home/swarkentin/externalBins/bin/cpp" \
...
0
votes
0answers
230 views
How to set library searching path using environment variable in compile-time
-I option set header file searching path for gcc/g++, and CPLUS_INCLUDE_PATH/CPATH append the searching path list.
Then what about libs? It seems that LD_LIBRARY_PATH is just a path list for ...
-4
votes
2answers
194 views
How to compile & execute C programs under Linux?
I'm migrating to from Windows to Linux and I heard a lot about Linux and how you can do some real good programming under Linux. But I'm have no idea about how to compile a code written in C on Linux.
4
votes
1answer
120 views
How/why can Firefox packages work on all Linuxes?
How/why can a Firefox 64bit (or 32bit) package work on different Linux distributions since each Linux distribution has a different version for gcc, glibc, linux kernel, etc. ?
6
votes
2answers
939 views
Why does FreeBSD use the GPL-licensed GCC?
Why does FreeBSD use GCC as its default compiler?
I am under the impression that a core pillar of the FreeBSD philosophy is not to use any GNU software and in particular, GPL code.
Yet GCC which is ...
1
vote
1answer
679 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 ...
5
votes
4answers
612 views
Does optimizing for size reduce runtime memory usage as well as binary size?
Does optimizing for size with gcc -Os only reduce the binary size of a program, or does it reduce its runtime memory usage as well? I know what exactly the results are depend on the specific code, but ...
5
votes
1answer
372 views
How to recompile a Debian package with -Os?
There are a few larger programs I am interested in compiling with -Os. The normal method I use to patch/recompile programs is apt-get source followed by dpkg-buildpackage.
I learned from the ...
3
votes
4answers
1k views
How do I install GCC on a system with no compiler?
I've been messing around with my NAS which runs on Linux. I have root access, but there is no compiler. I seem to remember something about being able to compile on another system, but I'm not certain.
...
9
votes
5answers
3k 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?


