All Questions
25 questions
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&...
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
0
answers
96
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, ...
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 ...
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 ...
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-...
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 ...
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
2k
views
How to cross compile older version of GCC under Debian?
I'm trying to build an older version of GCC toolchain for ARM under x86 because there is a bug with GCC > v5 for Cortex-M0. I'm following the combination of the following instructions:
https://...
0
votes
1
answer
267
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 ...
1
vote
0
answers
544
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 ...
2
votes
0
answers
2k
views
Changing system wide GCC compilation options such as -DFORTIFY_SOURCE, PIE and stack_protector
This is my first StackExchange question ever, and if it is in the wrong place (UNIX and Linux vs. somewhere like Software Engineering?) please point me right!
A very long time ago, I built a system ...
6
votes
2
answers
44k
views
gcc - error: no acceptable C compiler found in $PATH
I am trying to install GCC from source. I am following the instructions on the wiki at https://gcc.gnu.org/wiki/InstallingGCC and also on this question on SO.
I am running into issues on the ...
-1
votes
1
answer
2k
views
C compiler while installing GCC!
I have a virtual machine running RHEL7. I am trying to install GCC from source following
https://gcc.gnu.org/wiki/InstallingGCC
I am unable to do
yum groupinstall "Development Tools"
or
yum ...