Questions tagged [compiler]
The compiler tag has no summary.
92 questions
1
vote
2
answers
115
views
How can I set up Environment Modules on my personal Linux machine to manage multiple compiler versions?
I’m an RSE working on a personal Linux machine and need to manage multiple compiler and MPI versions (e.g., GCC, Clang, Intel). I’m looking to use Lmod or Environment Modules to load and switch ...
0
votes
1
answer
105
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&...
1
vote
1
answer
391
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
0
answers
158
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, ...
3
votes
1
answer
8k
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 ...
1
vote
0
answers
318
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 ...
1
vote
2
answers
185
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.
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 ...
0
votes
1
answer
608
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 ...
0
votes
1
answer
355
views
I can't compile/install TP-Link T4u v3 drivers on Ubuntu 20.04 Focal Fossa
I am a real begginer in Linux and don't know why, I can't install my USB WiFi card drivers, I always get errors. I searched all of the Internet and tried over 10 solutions but nothing worked for me. ...
1
vote
0
answers
2k
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 ...
2
votes
1
answer
5k
views
Difficulty installing gcc 7.3.1
I'm currently having some issues, trying to install the 7.3.1 gcc version. (I need this version for a specific gpu setup)
I have added jonathonf's repository:
add-apt repository ppa:jonathonf/gcc-...
23
votes
2
answers
5k
views
How do I compile something for Linux if I don't have enough space for installing GCC?
I purchased a Human Machine Interface (Exor Esmart04). Running on Linux 3.10.12, however this Linux is stripped down and does not have a C compiler. Another problem is the disk space:
I've tried to ...
0
votes
1
answer
1k
views
Compiling the output from the Perl Compiler (B::C), I get “EXTERN.h: No such file or directory”
If I try to compile something generated by B::C,
$ perl -MO=C,-omyTest.c -e'print "Hello World!";'
-e syntax OK
And then run `gcc myTest
$ gcc ./myTest.c
./myTest.c:3:10: fatal error: EXTERN.h: No ...
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 ...
-1
votes
2
answers
251
views
Where is the documentation for my compiler located?
Background
On page 5 of C++ Primer 5th edition, Exercise 1.1 asks this question:
Review the documentation for you compiler and determine what file naming convention is uses. Compile and run the ...
1
vote
0
answers
65
views
passing arguments to c++.bin
I am having the following issue when making HSAIL:
[ 3%] Built target libhsail-includes
[ 6%] Building CXX object libHSAIL/CMakeFiles/hsail.dir/HSAILScannerRules.cpp.o
In file included from /home/...
6
votes
1
answer
478
views
How to understand this TMG's assembly code from the Version 6 Unix?
Early versions of Unix included Doug McIlroy's tool tmg ("transmogrifier"), an early compiler-compiler. TMG was implemented in Dennis Ritchie's assembly language as well as in TMGL itself (the ...
0
votes
0
answers
34
views
How does my application in Linux know how to find libraries in the common places [duplicate]
When I compile a simple C program for Linux, how does it automatically know where to find the standard C libraries when I run it?
Take the simple Hello World program for example which uses printf to ...
0
votes
1
answer
292
views
What are the criteria for including a language in gcc? [closed]
According to man gcc, gcc supports the following languages, which you can choose from with the -x flag:
c c-header cpp-output
c++ c++-header c++-cpp-output
objective-c objective-c-header ...
0
votes
1
answer
1k
views
Pyenv cannot be installed in Manjaro Linux
Hello I have been trying to install pyenv on Manjaro Linux and got an error that openssl is not installed on the system. I have now installed it.
I understand that
I am supposed to tell the compiler ...
1
vote
0
answers
612
views
How do I install newer or older versions of GCC on Devuan/Debian?
Some distributions come with package sets for different versions of GCC, which you can easily install in parallel; others do not. Specifically, in Devuan ASCII / Debian Stretch, there only seem to be ...
0
votes
1
answer
1k
views
How to install xlc++ on AIX?
How to install the compiler xlc++ on a AIX 4.3.3. server?
Where can I get the sources and instructions to installation?
17
votes
2
answers
65k
views
How can I get a binary from a .py file
I need a program to compile python source code; as I found out at first I need to make a binary file from my python script.
I've already checked a lot of links, but still I haven't found something ...
0
votes
1
answer
3k
views
Argument list too long: /bin/sh on Linux redhat
I am having a script named as test.sh, which I use to run as below, which works fine:-
/root/test.sh
Then i tried to compile this script using the shc compiler as below with Warning:-
shc -v -r -T -...