To compile is to convert the source code of a program into lower-level machine code that can be executed on a computing device.

learn more… | top users | synonyms

17
votes
3answers
55k views

Where do I find nmake for Windows 7

I'm trying to compile a Perl source and I can't seem to find a version of nmake that works with Windows 7 64 bit. I've searched all over Microsoft's website and my Googlefu seems to be failing me. Can ...
13
votes
5answers
14k views

Detect compiler used for EXE file

Is there any way to detect (or to hide) the compiler that was used to build an executable file?
12
votes
7answers
3k views

Which PC components make the biggest impact on your compile times for Visual Studio?

Which PC specifications have the biggest impact on your compile times? Disk? Clock speed? Number of CPU cores?
11
votes
1answer
2k views

How was the first compiler compiled?

This has always racked my brain. Compilers compile code. I imagine that the compiler is coded. So to actually run the code for a compiler, you'd have to compile it. How was the first compiler ...
10
votes
2answers
12k views

Visual Studio not auto-building when I press the debug button

I'm writing code in Visual Studio but whenever I want to test the application and press the green arrow for "Start debugging", Visual Studio does not automatically recompile the active solution for me ...
9
votes
5answers
2k views

Does recompiling a program produce a bit-for-bit identical binary?

If I were to compile a program into a single binary, make a checksum, and then recompile it on the same machine with the same compiler and compiler settings and checksum the recompiled program, would ...
8
votes
3answers
827 views

Compiling the Linux kernel

Just for the learning experience, I have recompiled the Linux kernel with different options, installed and booted from it. It was both instructive and straightforward. However, I was overwhelmed by ...
8
votes
1answer
1k views

Compiling FFMPEG for ARM

I have a Linux ARM computer (BeagleBone Black). I am trying to do some camera streaming and need FFMPEG to do it. I have tried everything that I can think of (including following guides for compiling ...
7
votes
4answers
3k views

What language are compilers written with?

Are compilers written in different languages than the language they compile?
7
votes
6answers
4k views

Compile gvim from sources?

Recently, I've installed vim like so: hg clone https://vim.googlecode.com/hg/ vim cd vim sudo ./configure --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-gui=gtk2 --prefix=/opt/vim make ...
7
votes
3answers
2k views

Has anyone successfully configured mutt for GMail on FreeBSD? If so, how?

I've tried following the instructions here and here. Currently, I can read email from my GMail account, but not send—this is on a personal computer, so even if I configured Sendmail, I doubt any of ...
7
votes
1answer
104 views

How do general binaries take advantage from new instructionsets on new CPUs

With every release of a new processor, there are changes to the instructionset the processor supports. For example, Haswell has Advanced Vector Extensions. However, when I run a program on a PC with a ...
7
votes
3answers
5k views

How to list imported symbols in ELF executable?

For PE executable, I can list the imported symbols using dumpbin /imports FILE.EXE or using the depends utility which is GUI application. `nm ELF-binary' just returns "no symbols".
7
votes
2answers
5k views

Compiling the Linux kernel, how much size is needed?

I have downloaded the newest most stable Linux kernel, 2.6.33.2. I thought I would test this using VirtualBox. So I create a dynamically sized harddisk of 4 GB. And installed CentOS 5.3 with just the ...
6
votes
2answers
726 views

How to fix _decimal module compilation error when installing Python 3.3.2 in CentOS 5.9 (x86_64)?

I'm getting the following error when trying to compile Python 3.3.2 in CentOS 5.9 x86_64: Failed to build these modules: _decimal I get this error when executing the "make" command (after the ...
6
votes
1answer
55 views

Is it usually best to compile on the same machine you want to execute on?

(Note: I'm just using ffmpeg as an example, I have often wondered the same thing with other programs) I have a build script for ffmpeg which compiles in support for a few non-standard features. Now ...
6
votes
1answer
2k views

How to build Firefox from 4.0 source and optimize it?

I have found tons of links, resources regarding this topic. However, most of them just compile it and that's it. I want to disable debug, enable -O3 optimization (this one fails hard at the ...
5
votes
1answer
2k views

How to remove a package I compiled and installed manually?

I recently compiled and installed Git on a new install of Mac OS 10.6 but it didn't install the documentation. I now realize I should've used the precompiled package offered here: ...
5
votes
1answer
168 views

segfaults while compiling VLC on low memory system

I'm trying to compile VLC from this GitHub repo on my Allwinner device (ARM Cortex-A8 NEON with armhf kernel and about 380 MB of RAM) using instructions provided here. I keep getting segfaults, so I ...
5
votes
1answer
997 views

replace/remove background image on gimp 2.6.11

how do I remove these images by compiling gimp from source? I can't find any file containing these images.
4
votes
2answers
2k views

Force specific CPU core usage in programs on Windows 7

Is there any way to force a program to run on cpu1 rather than cpu0 given that I know that there are at least two cores? I'm compiling C++ with code::blocks on Windows 7 x64
4
votes
4answers
7k views

Is it possible to run an x86 binary on an ARM processor?

Is it possible to convert/recompile an already compiled x86 binary into an ARM binary? I'm using a BeagleBoard with a command-line Ubuntu (Maverick) and want to run a Ventrilo server but the x86 ...
4
votes
3answers
637 views

Difference between programs compiled for different OS

On a compiled code standpoint what is the difference between a program compiled for one os vs another (Linux vs windows for instance). Doesn't the program run directly on the cpu? Or is it because the ...
4
votes
4answers
201 views

What steps do I need to take to compile and install a Linux kernel?

What are the correct steps to compile a Linux kernel? Are these steps the same or different for different kernel versions i.e for 2.2, 2.4 and 2.6.
4
votes
2answers
4k views

Compiling PHP on OS X: iconv works only if forced to 64-bit

I'm trying to compile PHP and I kept getting this error during make: Undefined symbols for architecture x86_64: "_iconv_open", referenced from: __php_iconv_mime_decode in iconv.o ...
4
votes
1answer
3k views

How can I fix this configure error?

I'm trying to build mosh from source on a SUSE10 machine and am getting the following error: checking for protobuf... no configure: error: Package requirements (protobuf) were not met: No package ...
4
votes
1answer
6k views

GCC 4.8.1 failed complilation

I am using Ubuntu 13.04 64 bit. This is the error message: checking for x86_64-unknown-linux-gnu-gcc... /home/hoangtu/Downloads/gcc-4.8.1/host-x86_64-unknown-linux-gnu/gcc/xgcc ...
4
votes
1answer
255 views

Errors compiling Firefox on Debian

I want compile Firefox on Debian so I create .mozconfig like: mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-dbg ac_add_options --enable-application=browser ...and now use this command to compile ( ...
4
votes
1answer
882 views

Where did SELinux go?

I am compiling a new kernel, and want to enable SELinux but don't see it in menuconfig anywhere. The only framework under security options is Tomoyo.....so I ask, what happened to SELinux? Both ...
4
votes
0answers
627 views

Case-sensitive error in compiler's building using crosstool-ng under Cygwin

When I try to build gcc cross-compiler using crosstool-ng under Cygwin (running in Windows 7) I have the following message: $ /opt/ng-crosstool/bin/ct-ng build [INFO ] Performing some trivial sanity ...
3
votes
7answers
433 views

Vista C Compiler

What is a good C compiler for Windows Vista?
3
votes
2answers
252 views

c code compiles but is not executed in kubuntu

I'm running kubuntu 9.10 in VirtualBox, i wrote the simplest "hello world" program in C, the code compiles, i ran it through a debugger and it seems to run fine. the only problem is nothing gets ...
3
votes
2answers
1k views

Compile linux kernel for different machine

I am new to kernel development, and I have to compile a kernel with some specific features and then install it on some machines. The problem is that these machines are slow, and hence I want to ...
3
votes
3answers
409 views

Performance difference between yum and self-compilation

How does compiling source code oneself result in better performance than using yum?
3
votes
2answers
1k views

Installing tmux on Ubuntu from source

I've download tmux and am trying to install it on Ubuntu 10.04. $ ./configure Configured for Linux $ make cc -DBUILD="\"1.3\"" -std=c99 -D_GNU_SOURCE -D_POSIX_SOURCE -iquote. -c -o attributes.o ...
3
votes
3answers
211 views

Linux, recompiling from source

I'm relatively new to Linux but I've been messing around with a Ubuntu VM to get more acclimated with it. I set up SSH, Apache, PHP, MySQL, Ruby, Rails, Passenger, and Git to mess around with my web ...
3
votes
2answers
219 views

Is it usually necessary to do make and then make install?

This is something that has always bugged me. It seems like I always see build instructions for building and then installing something saying to do this: make sudo make install Is there really any ...
3
votes
2answers
6k views

Xcode installed, but gcc/ g++ compilers are not found

I thought Xcode would come with these compilers. Can i download them manually? Where do i find them?
3
votes
1answer
199 views

In Linux, how to get the man page for compiled programs?

I know that installing a package through APT (apt-get or aptitude for my computer) will automatically install the appropriate man pages and update the man database. When I want to build the same ...
3
votes
3answers
13k views

Installing Qt headers and libraries

I am trying to compile and install some software. When I do the ./configure. I get the following error: checking for Qt... configure: error: Qt (>= Qt 3.0.2) (headers and libraries) not ...
3
votes
1answer
576 views

What crashed Automake?

When downloading open-source software from the internet (in this case: PHP 5.5.5), they often come with an Automake "script" (if I can call it a script) for building from source. Now I'm trying to ...
3
votes
1answer
626 views

Use matlab in makefiles etc. How to speed things up?

I use a lot of matlab to process data etc. Yet I find my workflow a bit of sluggish, so I was wondering if I could speed things up a little using makefiles. What I would like to do is write an .m ...
3
votes
1answer
1k views

Distributed Compiling on Windows

I read about distcc for distributed compiling on Linux systems. Since I have to compile a big project quite often, I was wondering if there are methods on Windows on how to distribute that onto ...
3
votes
2answers
562 views

Python ./configure does not find g++ compiler

I'm trying to compile Python 3.4.1 on an emulated ARM machine (with Debian 7). ./configure gives me checking for g++... no but g++ is installed. So what could be the problem? I know it's not ...
3
votes
0answers
248 views

Should I replace my system drive or work files drive with an SSD? [closed]

First of all, I've read lots of questions on this site (and over the web) about this question, but I'm still not sure about my specific situation. I currently have a laptop with two 320 GB hard ...
2
votes
2answers
2k views

Re-compile VIM with options

I have VIM installed but I need to compile it with specific options: In addition to the most commonly used features, the plugin requires: +python or +python3, +clientserver and +conceal. ...
2
votes
2answers
2k views

How do I compile gVim.exe as a 64 bit executable? (Windows 8)

Very straight-forward question. I have downloaded mingw32 and the Vim source code and I have edited Make_mind.mak to use the correct Python version and location. I'm located in the src directory and I ...
2
votes
2answers
579 views

Linux kernel compiling: standalone OS

Hi guys I'm new to linux kernel compiling so I have some question: By compiling linux kernel are we building a totally standalone OS which doesn't depend on any linux destributions? If yes... Well ...
2
votes
3answers
507 views

Why do compilers have to be “smarter” for RISC instruction set architecture

Reduced Instruction Set Architecture (RISC) aims to reduce the number of instructions thereby improving performance . The only downside to this approach is that the compilers have to be "smarter" . ...
2
votes
1answer
473 views

How to compile a gvim from source using the latest version? [duplicate]

I'm using Ubuntu. I performed the following commands in the vim source folder: sudo apt-get build-dep vim ./configure --with-features=huge --enable-gui=gtk2 --enable-rubyinterp=yes ...