Skip to main content

Questions tagged [compiler]

Filter by
Sorted by
Tagged with
1 vote
2 answers
119 views

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 ...
Roberto_1986's user avatar
4 votes
1 answer
139 views

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 ...
Greg Nisbet's user avatar
  • 3,166
0 votes
1 answer
109 views

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&...
PhillNo's user avatar
0 votes
0 answers
119 views

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?
Tráng Đặng Đình's user avatar
1 vote
1 answer
394 views

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
0 votes
1 answer
285 views

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, ...
haruhisuzumiya's user avatar
0 votes
0 answers
159 views

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, ...
ptiza_v_nebe's user avatar
39 votes
3 answers
17k views

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,023
3 votes
1 answer
8k views

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 ...
Raven's user avatar
  • 843
0 votes
0 answers
208 views

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 ...
Vinod's user avatar
  • 167
1 vote
0 answers
321 views

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 ...
LeqxLeqx's user avatar
0 votes
1 answer
113 views

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 ...
Vinod's user avatar
  • 167
1 vote
2 answers
186 views

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.
user877329's user avatar
0 votes
1 answer
405 views

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 ...
youpilat13's user avatar
23 votes
3 answers
6k views

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
  • 671
-4 votes
1 answer
1k views

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
0 votes
1 answer
612 views

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 ...
Michael Macha's user avatar
1 vote
1 answer
4k views

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
0 votes
1 answer
358 views

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. ...
Kamil's user avatar
  • 1
0 votes
1 answer
3k views

What is a smart way to tell two compilers to look for their #include headers? Running on a standard Linux 86x64 system, my standard compiler is gcc (currently v9.3). Now I'd like to compile some ...
Jona Engel's user avatar
1 vote
0 answers
2k views

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
0 votes
0 answers
114 views

I do have some doubts about __attribute__((section("name")) .What is the real use of defining a user defined .section? Is there any examples to shows how it is useful?
Franc's user avatar
  • 309
2 votes
1 answer
5k views

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-...
user avatar
2 votes
0 answers
327 views

Onlyoffice Document Server is supported and compiled for Intel platforms. Compile instructions and system requirements. This posting indicates that it is possible to compile for ARM platforms: I ...
gatorback's user avatar
  • 1,532
23 votes
2 answers
5k views

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 ...
NielsStenden's user avatar
3 votes
1 answer
2k views

I have an existing executable for which a small amount of source code has been lost. In particular, the executable uses a few functions from a static library, and the source code for that library is ...
maldata's user avatar
  • 165
0 votes
1 answer
1k views

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 ...
Evan Carroll's user avatar
  • 35.2k
2 votes
0 answers
3k views

I have found similar discussions from google but didn't work for me. I want to use a bioinformatics package called pompd. At the first use, the program will automatically compile another application ...
Johnny Tam's user avatar
9 votes
2 answers
8k views

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
11k views

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,169
-1 votes
2 answers
256 views

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 ...
isakbob's user avatar
  • 145
3 votes
2 answers
996 views

PCC's current website (the development was taken over from the '70ies code from Stephen C. Johnson by Anders Magnusson, and mostly rewritten). It shows no activity in it's CVS repository ("cvs -d :...
vonbrand's user avatar
  • 18.6k
1 vote
0 answers
65 views

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/...
jeferson lemos's user avatar
3 votes
1 answer
1k views

As far as I understand, stack canaries work as fllows: Upon program startup a random value is generated and stored in the thread local storage (%fs:0x28). This random value is then pushed onto the ...
CryptoThomas's user avatar
6 votes
1 answer
482 views

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 ...
Andriy Makukha's user avatar
2 votes
1 answer
1k views

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
0 answers
34 views

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 ...
Engineer999's user avatar
  • 1,233
0 votes
1 answer
2k views

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://...
ceremcem's user avatar
  • 2,461
0 votes
1 answer
295 views

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 ...
nschmeller's user avatar
0 votes
2 answers
447 views

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
1k views

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 ...
Yay Yaye's user avatar
0 votes
1 answer
524 views

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,148
1 vote
0 answers
621 views

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 ...
einpoklum's user avatar
  • 11.1k
1 vote
1 answer
5k views

I searched everywhere on the web for a few days, and I am still stuck... I am running Red Hat Enterprise Linux Desktop 6.9 in a virtual machine. I am using an older version because I am experimenting ...
Erik343's user avatar
  • 121
0 votes
1 answer
1k views

How to install the compiler xlc++ on a AIX 4.3.3. server? Where can I get the sources and instructions to installation?
vs06's user avatar
  • 111
3 votes
1 answer
2k views

If I write a C program to say the value of LDBL_MAX the largest value for a long double, #include <float.h> #include <stdio.h> int main(void) { const long double max = LDBL_MAX; ...
cat's user avatar
  • 3,538
17 votes
2 answers
65k views

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 ...
TrueBad0ur's user avatar
2 votes
0 answers
2k views

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 ...
user9105932's user avatar
0 votes
1 answer
3k views

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 -...
jassi10781's user avatar
6 votes
1 answer
2k views

I know that the most recent versions of POSIX specify that a C99-compliant compiler should (optionally) be present and called c99. Similarly, older versions of POSIX used to specify an optional c89 ...
Stefano Sanfilippo's user avatar