Skip to main content

All Questions

Tagged with
1 vote
1 answer
328 views

Compiling GCC failed on Openbsd 7.4 (configure: error: .... libgomp)

I'm yak shaving: to compile gcc (especially with libgccjit for ultimately compiling emacs with native-comp) on openbsd 7.4. The reason behind is libgccjit isn't available via pkg_add. Thus I'm trying ...
Garid Z.'s user avatar
  • 552
39 votes
3 answers
15k views

Do C compilers discard unused functions when statically linking to .a file?

Say I have a C program main.c that statically links to libmine.a. Statically linking to a library causes library functions to be embedded into the main executable at compile time. If libmine.a were to ...
Izzo's user avatar
  • 1,013
23 votes
3 answers
6k views

Are compiled shell scripts better for performance?

After some googling, I found a way to compile BASH scripts to binary executables (using shc). I know that shell is an interpreted language, but what does this compiler do? Will it improve the ...
adazem009's user avatar
  • 651
-4 votes
1 answer
979 views

How can I name the output of a compiled source file in a certain way?

In terminal, I have compiled a source file named "file.C". I did this by typing g++ file.C -o file. Now, I'd like to know how can I use Unix commands to name the output as "helloworld....
userh16xx0's user avatar
1 vote
1 answer
4k views

How can I reliably modify build configs and add compiler flags in C/C++ RPM files?

I need to change the build configuration of a large number of rpm files for testing purposes. I'm only speaking of C/C++ code here. I'm not necessarily looking to do automation, but I could use a hand ...
the_endian's user avatar
1 vote
0 answers
1k views

Cross-Compilation using kernel headers

I coded a kernel module for my RaspberryPi. However, I need to cross-compile the module on my Ubuntu Development machine. I already downloaded the correct kernel-headers on my RaspberryPi and pushed ...
Mark3's user avatar
  • 11
9 votes
2 answers
8k views

Want to turn off "note" level messages in GCC

When I compile a C (no pluses) program using GCC, there are several levels of messages possible, like warning, error, and note. The note messages are useless and distracting. How do I make them go ...
Jennifer's user avatar
  • 289
3 votes
2 answers
10k views

How do I compile the Linux kernel with Clang? [closed]

Just out of curiosity, I am interested in compiling the Linux kernel with both the clang and zapcc compilers; one at a time. I can't find a guide to follow. Only GCC is getting used to compile the ...
15 Volts's user avatar
  • 2,139
2 votes
1 answer
1k views

Linux From Scratch: Error while compiling binutils 2.32

I am working on Linux from Scratch and currently, I am on this page. While compiling binutils-2.32, I am getting this error: lfs@pop-os:/mnt/lfs/sources/binutils-2.32/build$ ../configure --prefix=/...
narayanpatra's user avatar
0 votes
2 answers
425 views

Actual compilation differences between CPUs

For a project I intend to compile various *NIX OSs and their relative packages with different CPUs in order to maximize optimization and performance for specific systems. In order to save time and ...
user749317's user avatar
0 votes
1 answer
486 views

Where to find the resulting .so file of a compilation?

I just compiled xdebug as instructed on the official site. But where can I find the resulting .so file? I found one in the folder ./libs/xdebug.so and one in modules/xdebug.so. Questions Which one ...
Black's user avatar
  • 2,138
2 votes
2 answers
1k views

How to compile Solaris executable under Debian?

I have a SSH account at my university's computer in which I can only compile with gcc 4.4.7, which doesn't compatible with my C++ 11 code (I don't have the rights to install/update software). In my ...
DBalazs's user avatar
  • 21
1 vote
1 answer
1k views

Problems compiling VASP

I'm trying to compile VASP 5.4 on Ubuntu 14.04 and running into issues. I believe I'm most the way there but when I run the make command it seems to bottle out with out a specific error. I am unable ...
jamboNum5's user avatar
  • 133
3 votes
0 answers
7k views

Custom GCC installation - how should I set my environment variables?

After some pains I was finally able to build me a gcc 4.9.3 (I don't have root on the machine I'm working on, and Fedora 22 doesn't package gcc 4.9 anyway). And it even works, i.e. using it to compile ...
einpoklum's user avatar
  • 10.4k
0 votes
1 answer
262 views

-fPIC Flag System-wide?

Position Independent Code means that the generated machine code is not dependent on being located at a specific address in order to work. and the jumps are relative. So is it OK to declare -fPIC ...
r004's user avatar
  • 3,539

15 30 50 per page