2
votes
2answers
67 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 ...
3
votes
2answers
249 views

configure: error: C compiler cannot create executables

I am trying to upgrade apache 2.2.15 to 2.2.27. While running config.nice taken from apache2.2.15/build I am getting following error: checking whether the C compiler works... no configure: error: in ...
1
vote
0answers
82 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
1answer
178 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 ...
1
vote
3answers
131 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, ...
1
vote
2answers
2k 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 ...
2
votes
2answers
226 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 ...
-2
votes
1answer
2k 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 ...
2
votes
1answer
191 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 ...
0
votes
1answer
162 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 ...
2
votes
1answer
118 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 ...
1
vote
1answer
113 views

Long gcc compile time

So far my compilations have either succeeded or failed but his time it just got stuck. I'm compiling gcc on a Linux Synology NAS. However, the compilation process has run for 3 days and I start to ...
0
votes
1answer
127 views

Utilizing a newer standalone glibc [duplicate]

We're running RHEL6, which only officially supports glibc 2.12. A user is requesting that we install a newer version. I grabbed 2.18 from http://ftp.gnu.org/gnu/glibc/ and had no trouble running ...
0
votes
3answers
107 views

In makefile when do we use .o files?

In the following make file, what is the significance of adding .o files instead of .c files? CC=gcc CFLAGS=-I. hellomake: hellomake.o hellofunc.o $(CC) -o hellomake hellomake.o hellofunc.o ...
2
votes
1answer
213 views

How to build nginx on Ubuntu with cache_purge module?

I have been trying to rebuild nginx with cache_purge module from here. I did the following and somehow the new build doesn't seem to include the module: Installed nginx Stopped it Installed build ...
1
vote
0answers
371 views

How to compile gcc toolchain with special sysroot correctly?

I try to compile a new gcc, including binutils and glibc. Since I can not be root, I want to install it all in ~/local. I set these variables: PREFIX=~/local && export PREFIX ...
0
votes
1answer
57 views

Squeeze/Lenny compilation : Library Link error

I've got a problem here : I have a C++ Library ("DataTsBroad") and a C++ Test app ("DataTsBroadTest"), to test it. Actually, the Lib and the Test app are both compiled an a Debian Lenny. Now, i ...
1
vote
1answer
317 views

Gcc Error: cc1 not found

I've a system with gcc 4.2.4 on board, but when I try to compile even a simple hello world I obtain this error: $ gcc helloworld.c gcc: error trying to exec 'cc1': execvp: No such file or directory ...
45
votes
5answers
2k views

How to compile the C compiler from scratch, then compile Unix/Linux from scratch

Let's say I work for a large services organisation outside the US/UK. We use UNIX and Linux servers extensively. Reading through this article it mentions that it would be easy to insert a backdoor ...
2
votes
1answer
446 views

Compile the Ubuntu “Raring” Kernel with the Intel Compiler

Of course, the first question is: why I'm doing this. Just for fun! I'm learning more about Linux kernels and I have a virtual machine that I can replace in 15 minutes. Getting to business, I don't ...
1
vote
0answers
104 views

ices-cc (libvorbis) linking fails on Ubuntu 13.04 - lgcc_s not found

I'm trying to compile compile ices-cc into a set of static files on Ubuntu Server 13.04. I use the automatic Centova's build-ices.sh script and use the following command: ./buildices.sh ...
2
votes
1answer
900 views

Pip install - CPU you selected does not support x86-64 instruction set

I'm trying to use pip install mysql-python inside a virtualenv container and am getting the error building '_mysql' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall ...
2
votes
2answers
181 views

Is there any pattern to specify target triples in GCC?

The gcc compiler use target-triplets for cross-compilation. I see some of these target triples like "x86_64-pc-linux-gnu" (the most common). I understand what means but I don't know how specify ...
2
votes
2answers
187 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 ...
2
votes
2answers
2k 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
636 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
388 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
797 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
124 views

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

Take a look at the following command 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.
142
votes
4answers
52k 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
570 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
347 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
714 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 ...
3
votes
1answer
629 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
1k 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
572 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
1k 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
253 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
158 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. ?
10
votes
2answers
2k 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
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 ...
5
votes
4answers
938 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
604 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 ...
4
votes
4answers
2k 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. ...
10
votes
5answers
5k 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?