Compiling is the process of transforming source code into byte codes for a particular computer architecture.
Questions tagged [compiling]
1502 questions
252
votes
4 answers
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 the net so far, Clang/LLVM is a fairly ambitious…
NlightNFotis
- 7,525
- 7
- 32
- 38
186
votes
4 answers
Where do executables look for shared objects at runtime?
I understand how to define include shared objects at linking/compile time. However, I still wonder how do executables look for the shared object (*.so libraries) at execution time.
For instance, my app a.out calls functions defined in the lib.so…
rahmu
- 19,673
- 28
- 87
- 128
173
votes
3 answers
What is the Fedora equivalent of the Debian build-essential package?
What is the Fedora equivalent of the Debian build-essential package?
Steve Burdine
- 6,131
- 6
- 26
- 21
149
votes
16 answers
Where should I put software I compile myself?
I need to compile some software on my Fedora machine. Where's the best place to put it so not to interfere with the packaged software?
theotherreceive
- 2,076
- 2
- 16
- 9
114
votes
13 answers
What is the benefit of compiling your own linux kernel?
What benefit could I see by compiling a Linux kernel myself? Is there some efficiency you could create by customizing it to your hardware?
jjclarkson
- 2,147
- 2
- 17
- 16
74
votes
6 answers
Some M4 macros don't seem to be defined
I am trying reinstall pacman on my Arch Linux distribution. When I run the configure script "configure.ac", I get a bunch of undefined macros:
error: possibly undefined macro: AM_INIT_AUTOMAKE.
If this token and others are legitimate, please use…
SirTasty
- 883
- 1
- 7
- 8
70
votes
9 answers
Why can't gcc find libevent when building tmux from source?
I want to install tmux on a machine where I don't have root access. I already compiled libevent and installed it in $HOME/.bin-libevent and now I want to compile tmux, but configure always ends with configure: error: "libevent not found", even…
volker
- 703
- 1
- 6
- 4
69
votes
6 answers
Will a Linux executable compiled on one "flavor" of Linux run on a different one?
Will the executable of a small, extremely simple program, such as the one shown below, that is compiled on one flavor of Linux run on a different flavor? Or would it need to be recompiled?
Does machine architecture matter in a case such as this?
int…
JCDeen
- 765
- 1
- 5
- 9
67
votes
5 answers
What is the difference between building from source and using an install package?
I was wondering: when installing something, there's an easy way of double clicking an install executable file, and on the other hand, there is a way of building it from source.
The latter one, downloading a source bundle, is really cumbersome.
But…
kwagjj
- 2,309
- 6
- 22
- 29
64
votes
4 answers
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 into a C compiler, then any code compiled with that…
David J
- 743
- 6
- 6
64
votes
5 answers
What is the correct syntax to add CFLAGS and LDFLAGS to "configure"?
I wish to install OpenVPN on OpenBSD 5.5 using OpenVPN source tarball.
According to the instructions here, I have to install lzo and
add CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
directives to "configure", since gcc will not find…
user66229
- 1,073
- 2
- 12
- 16
60
votes
1 answer
./configure: What is an insane build environment?
./configure always checks whether the build environment is sane...
I can't help but wonder what exactly a insane build environment is. What errors can this check raise?
sikerbela
- 616
- 7
- 16
55
votes
5 answers
How to compile and install programs from source
This is an issue that really limits my enjoyment of Linux. If the application isn't on a repository or if it doesn't have an installer script, then I really struggle where and how to install an application from source.
Comparatively to Windows, it's…
Nitrodist
- 735
- 1
- 7
- 10
50
votes
2 answers
Can not run configure command: "No such file or directory"
I'm trying to install a Debian package from source (via git). I downloaded the
package, changed to the package’s directory and ran ./configure command but
it returned bash: ./configure: No such file or directory. What can be the
problem? A…
Lexx Luxx
- 1,343
- 11
- 26
- 37
47
votes
4 answers
Where are the current kernel build options stored?
Is there a way to know if the kernel was compiled with a certain option activated (i.e. CONFIG_PROC_EVENTS=y) without having to pull out the kernel sources package and looking in the config file?
Alicia
- 1,652
- 2
- 17
- 19