Questions tagged [compiler]
The compiler tag has no summary.
91 questions
4
votes
1
answer
87
views
Bootstrapping a C++ compiler from a C compiler on Linux
I am curious how to bootstrap a C++ compiler from a C compiler on Linux (x86-64 if the architecture is relevant). It is okay if not every C compiler is supported. For example a solution that works for ...
0
votes
1
answer
69
views
Are gcc and g++ now distinct executables?
According to comments and accepted answers linked below, gcc and g++ are the same executable. Because they are the same, the value of argv[0] will determine behavior, whether the argument is "gcc&...
0
votes
0
answers
92
views
ARM-LINUX-GCC with LIBMODBUS
Hi everyone, I'm trying to compile a program using "arm-linux-gcc" with "libmodbus";
however it seems the compiler is not set up for libmodbus.
What should I do to fix it?
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 ...
0
votes
1
answer
239
views
Unable to use GTK on Debian, due to having libraries always be missing
Due to my laziness, I have downloaded precompiled binaries for GTK programmes (rather than compiling them which would have been a drag considering how time-wasting it is). EDIT:using sudo apt get, ...
0
votes
0
answers
95
views
What is the bootstrapping technique in terms of building cross-gcc and cross-glibc?
Some tutorials for building linux from ground do in first step building the cross compiler toolchain. They do this by invoking so called bootstrapping technique.
First they build cross-gcc statically, ...
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 ...
0
votes
1
answer
7k
views
Specify which libstdc++ to use
I want to make use of a more recent GCC version. Therefore, I compiled GCC 10 and installed it into a non-standard directory /software/gcc10/. So far so good.
However, I am faced with problems when I ...
0
votes
0
answers
193
views
Seeking thoughts on a weird error in printk.h
I am compiling a vendor provided proprietary test code for their device driver on rhel8.4, kernel version 4.18.0-305.10.2.el8_4.x86_64. Both the driver and the corresponding test code had been ...
1
vote
0
answers
287
views
Debian Buster Freezing when Compiling Large Project
I've recently begun encountering an issue when attempting to compile a moderately large software project where my entire computer freezes. I can't get to another tty, I can't move the mouse. After ...
0
votes
1
answer
77
views
Seeking advice on source of compilation errors in kernel header files
As part of my current project, I am trying to compile some proprietary device drivers (originally compiled successfully for Redhat6 kernel version 2.6.32-504.el6.x86_64 using the vendor supplied ...
1
vote
2
answers
169
views
Portable name of C++ compiler (and linker)
cc is the POSIX name of the C compiler. Is there a general name of the C++ compiler (and linker). Notice that g++ also adds some libraries, that will not be included when using plain gcc or ld.
0
votes
1
answer
379
views
Debian : MPI code - Intel compiler - [Hardware Error]: Unified Memory Controller Error: DRAM ECC error
When running an executable compiled with intel mpiicc, I get, after 30 minutes of running, the
following errors :
kernel:[29585.573874] [Hardware Error]: Corrected error, no action required.
Message ...
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 ...
-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....