Questions tagged [compiler]
The compiler tag has no usage guidance.
90
questions
0
votes
0
answers
24
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
48
views
Is there a machine interface (CLI) to GCC that emits errors in a way easy for a library to parse?
I searched google for "libgcc", but that seems to be a non-standalone gcc private library. Does anybody know what I'm looking for? At least, is there a reliable parser for gcc error output ...
1
vote
1
answer
218
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
156
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
60
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, ...
35
votes
3
answers
11k
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
5k
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
159
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
251
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
63
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
156
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
354
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 ...
22
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
756
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....
0
votes
1
answer
536
views
snap install of kotlin-native
I'm a former Java developer attempting to learn Kotlin. So far so good, but on attempting to install kotlin-native to compile to a platform other than the JVM:
sudo snap install kotlin-native
I get ...