Skip to main content

Questions tagged [compiler]

Questions related to compilers or tools offering compilation.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
98 views

OpenSSH - Change privilege separation directory

I'm trying to install OpenSSH from compiler and in a different location than usual. I need to change the "privilege separation directory" but I can't find where to configure this. I've done ...
MORPHSDALT's user avatar
0 votes
1 answer
116 views

Nvidia installer wont work with compiler

I have ran the nvidia installer on Ubuntu 22.04 LTS in multiple ways and I am stuck on the compiler. First I can run 'gcc -v' to check which version of the compiler is installed. I get this as a ...
Samir Fink's user avatar
0 votes
0 answers
33 views

Is it possible to complie non-ansi C code on Ubuntu 22.04.4?

I have an old piece of non-ANSI C code I wrote years ago that complied well on System 5 Unix running on a AT&T 3B2 micro computer. After I left engineering to go into medicine my C coding ...
Dr Bruce Stafford's user avatar
0 votes
1 answer
107 views

GCC 7.4.0 compilation gets stuck at contribs/download_prerequisites

When running contribs/download_prerequisites the script gets stuck without any output. How can I resolve this?
qwr's user avatar
  • 2,852
1 vote
1 answer
619 views

GNU compiler below the required version

I'm obtaining this error message: GNU 7.5.0 compiler is below the minimum required version 8.0.0 even though when I type "sudo apt install gcc-8 g++-8", I obtain an output saying that gcc 8 ...
Mariam Hachem's user avatar
0 votes
1 answer
2k views

Ubuntu 23.04 C Compiler cannot create executables - C compiler works no

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by liberasurecode configure -, which was generated by GNU ...
imran mehdi's user avatar
0 votes
0 answers
716 views

Problem in installing GCC (G++) 5 in ubuntu 22.04

I needed gcc 5 on my ubuntu 22.04. I tried using "sudo apt-get install gcc-5 g++-5" but this output is coming: sudo apt-get install gcc-5 g++5 Reading package lists... Done Building ...
Anirudh's user avatar
2 votes
1 answer
4k views

How to set newer version of clang compiler?

I installed cland++-15 compiler using: sudo apt-get install clang++-15 after running clang --version it shows clang version 10.0.0-4ubuntu1 Target: x86_64-pc-linux-gnu Thread model: posix ...
user6394019's user avatar
6 votes
3 answers
20k views

How to install clang-14 on Ubuntu 18.04?

Can you help me install clang-14 on Ubuntu 18.04? I think I need a valid repo as apt-get install clang-14 does not work. $ cat /etc/issue Ubuntu 18.04 LTS \n \l $ sudo apt-get update Hit:1 http://...
SpeedChaser's user avatar
0 votes
0 answers
2k views

How to downgrade to GCC v.7 (Ubuntu 22.04 LTS)?

I was using g++ v11 and got a compiler error (" *internal compiler error: in expand... ") which as far as I read was introduced in version 8 of g++. So I tried to downgrade to g++ v7 just to ...
Dario Franzese's user avatar
0 votes
0 answers
493 views

Error in building own kernel for ubuntu 20.04 with kernel 5.13

We are building own kernel image on the system ubuntu 20.04.4 and kernel version 5.13.0-40-generic and compiling kernel version is kwe-5.13.0 but get below error as follow. CC /home/embed/...
Ajay's user avatar
  • 1
1 vote
1 answer
542 views

I have installed C++ compiler mingw-w64 file using Ubuntu terminal, but now I am not able to locate its path to VS Code(code editor), so what to do?

Installed mingw files : g++-mingw-w64 gcc-mingw-w64 I tried on community, but no one had posted this Question
Atharva Ambike's user avatar
0 votes
0 answers
104 views

Unable to run ecj in Ubuntu 20.04 Focal Fossa after installation

I had pitched in installing ecj while I was in the phase of installing Java with apt. I had found openjdk8 and few other variations along with this,- ecj as the option. So I had tried installing ecj ...
Dev Anand Sadasivam's user avatar
0 votes
1 answer
214 views

Error with Cloudy's make command on WSL2

I'm using a WSL2 (windows subsystem Linux) with Ubuntu 20.04 LTS. I want to use the Cloudy package, a Linux based simulation tool https://gitlab.nublado.org/cloudy/cloudy I have installed the package ...
Ray Wilson's user avatar
2 votes
1 answer
16k views

How to install qmake compiler on Ubuntu

I've been trying to compile VNote but couldn't figure out or find any proper way to install qmake. How can I install it with latest version?
sanalcopluk's user avatar
0 votes
0 answers
150 views

Unable to install Intel compiler

Cannot install Intel(R) Cluster Toolkit Compiler Edition for Linux* OS version 3.2.2p-013 to "/home/intel/ictce/3.2.2.013": This prefix directory path '/home/intel/ictce/3.2.2.013' is owned ...
moghees's user avatar
1 vote
0 answers
247 views

What are the simplest set of steps I can use to build the Linux kernel with LTO and/or PGO?

I've been looking for a simple guide how to do this, and it's been around for so long that it seems to me like something should exist that explains how to build the Linux kernel in Ubuntu with LTO + ...
warsong's user avatar
  • 417
0 votes
1 answer
246 views

cpp error: missing file

I have tried to compile a simple hello-world program hello.cpp and got the following message: cpp: error trying to exec 'cc1plus': execvp: No such file or directory seems like missing file from ...
user2901196's user avatar
0 votes
0 answers
30 views

Is there a BASIC compiler for Ubuntu which will run a program written in 1984 for the TRS-80 computer? [duplicate]

I'm copying a BASIC program from a book written in 1984 and want a compiler to run it on in Ubuntu. I'm not a coder so I don't have the skills to modify the code to a different version of BASIC than ...
Allan's user avatar
  • 603
0 votes
0 answers
794 views

Error installing libgfortran3 on Ubuntu 20.04

I'm working on a project where I have to compile the code from another author. He uses very old packages so I'm traying to recreate the enviroment on conda, but I cannot find any good repo for Ubuntu ...
Iván Navarrete Jara's user avatar
1 vote
0 answers
105 views

GCC C code compiling

I have a problem regarding gcc. Although I have a background programming in C, I have never actually used gcc. Until now that is. I have a Go program I am creating, that uses a library (Fyne) that in ...
witenitenz's user avatar
4 votes
3 answers
7k views

How do I install gcc 4.8 in Ubuntu 18.04?

I am currently using Ubuntu 18.04, and I need gcc 4.8 for MATLAB. So I tried to install gcc-4.8 using $ sudo apt-get install gcc-4.8 E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/...
SriHarsha's user avatar
5 votes
2 answers
13k views

How to install gcov that is compatible with gcc version 10.1?

I'm trying to use CLions interface to gcov but I'm not using the default g++ compiler (for Ubuntu 18.04). Therefore my version of gcov (7.5) is incompatible with my compiler (10.1). How can I install ...
CiaranWelsh's user avatar
1 vote
1 answer
620 views

Which compiler should I use for installing CUDA 8?

Which compiler should I use for installing CUDA 8? Is there an official page that associates the CUDA versions to the compiler to use?
gab's user avatar
  • 141
0 votes
2 answers
497 views

Trying to compile java file without success on Ubuntu (CVE-2020-2555.java) [closed]

I am trying to compile the following file https://github.com/wsfengfan/CVE-2020-2555/blob/master/supeream/CVE_2020_2555.java in my Ubuntu server but without success. I tried 'javac CVE_2020_2555.java' ...
Gerald's user avatar
  • 47
0 votes
1 answer
258 views

Problem in installing library from github

Generally, while installing libraries like lapack, blas, I just run the makefile and then they get automatically installed. To link them with my gfortran compiler, gfortran -llapack or gfortran -lblas ...
user157588's user avatar
0 votes
2 answers
2k views

How do I install the Scout-app?

I've downloaded Scout-app. But I can't get it to work. The file Scout-app has the correct permission, and is executable. How do I get it to work?
Jos's user avatar
  • 606
0 votes
1 answer
781 views

Adding OpenMP support to compiler command line

When I am giving this command make -j4 I am getting this mlpack was compiled with OpenMP support, but you are compiling without OpenMP support. This will almost certainly cause irreparable disaster....
 heisenbug's user avatar
0 votes
1 answer
3k views

Intel Fortran compiler

I want to install a second compiler for fortran in my Ubuntu 18.04 LTS distribution, but I do not have any idea. Currently I have gfortran compiler. What is the best way to install an Intel Fortran ...
Jogabell's user avatar
1 vote
0 answers
28 views

how to get start with C, C++ coding in unix, and what is the basic packeges needed to install at first? [duplicate]

I am a beginner to use linux os. What is the basic packges needed to install to compile a C,C++ code in terminal box ? and, please give the command to install it . :(
suvasish das's user avatar
0 votes
0 answers
1k views

How to verify C11 compiler support

64-bit Ubuntu 19.10.1 is installed on a rPi3. A C11 compiler is required per compiling instructions. What command line test can be performed to verify the compiler supports C11 standards? I am not ...
gatorback's user avatar
  • 5,945
1 vote
0 answers
809 views

(environment-modules) Setting up modulefile for Intel compilers

I am trying to install openmpi (not from apt) into my system. I want to use intel compilers (fortran, c and c++) for the compilation. When ./configure my openmpi folder, without module load intel, ...
fizsics's user avatar
  • 13
18 votes
2 answers
46k views

How to set Clang 9 as the default C++ compiler on Ubuntu 19.10?

how do I set Clang 9 as the default C++ compiler on Ubuntu 19.10? I searched the internet, but nothing helped. Thank you for answer :)
user avatar
2 votes
0 answers
239 views

Install gcc9 without sudo permissions

Is it possible to install gcc9 somehow without sudo permissions? Building it from source did not work because of missing libraries and I can not find precompiled binaries for gcc9. I have gcc7 ...
TomBombadil's user avatar
0 votes
1 answer
2k views

Unable to use java compiler even after installing

I wanted to use the JDK version 8.0 for NetBeans, so I uninstalled my latest version of JDK 11.0 by using these commands: sudo update-alternatives --remove-all java sudo update-alternatives --remove-...
Aditya Nayak's user avatar
0 votes
0 answers
1k views

installing c compiler on an offline machine

i am new to ubuntu. i have been programming physics and rendering logic for pc games in c, c++ and opengl on windows os for years. i cannot use windows any longer and i am trying linux out. i want to ...
west_coast_platypus's user avatar
3 votes
0 answers
505 views

Freezes in large compiles and archive extractions (18.04)

My Thinkpad T440p freezes and Ubuntu 18.04 LTS stops when I compile large projects in IDEA. Unzipping the archive of a new version also results in the system getting stuck after some time. This ...
Victor Garbuz's user avatar
1 vote
1 answer
2k views

How can I install mpich for a newer gcc compiler?

I have a small server with Ubuntu Server 18.04. I have the GCC and MPICH compilers installed on this machine: gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-...
thiagoveloso's user avatar
1 vote
0 answers
175 views

Problem In Installing Ubuntu GCC [duplicate]

I have installed Ubuntu as a guest OS on Windows. Well I am getting this error when I try to install GCC:
Wasim's user avatar
  • 111
0 votes
1 answer
593 views

how to do I install cuda on 18.10,

I have a lenovo T540p thinkpad, with an NVIDIA GK208M [GeForce GT 730M], I tried to install cuda tool-kit version 10, but the install script says I have the wrong compiler. It doesnt specify the ...
j0h's user avatar
  • 14.9k
1 vote
2 answers
16k views

How to install GCC6.3.x & G++6.3.x on Ubuntu 16.04

I want to install GCC and G++ 6.3 version. As MATLAB only support this compiler. On launchpad it is not available. I could not find any link which could describe way to install. I could install 6.5 ...
TonyParker's user avatar
0 votes
1 answer
46 views

Find latest modified *.c file and compile it within terminal with pipelining?

Lately I have coded a little bit more with the terminal in Linux to get a deeper understanding of programming. Right now I am trying to automatize the compiling process with the following command: ...
user avatar
-2 votes
1 answer
3k views

PROBLEM WITH COMPILER C/ PLEASE HELP ME [closed]

My first language is Spanish, and my use of English is not the best, but I need some assistance in debugging the following program code since it produces an error when compiled. CODE: #include "...
NINJA's user avatar
  • 1
0 votes
0 answers
1k views

Error: Dependency "python3" not found

I am somewhat new to Linux and have installed Ubuntu 18.04 LTS two weeks ago. I was following a process today which had me download Meson and Ninja to compile something. I'd run the compiler, it ...
adamlaughlin's user avatar
0 votes
0 answers
581 views

Netcdf undefined reference error

I am currently trying to compile wrf-hydro on ubuntu and in the process multiple error messages related to netcdf are generated. Here is an example of them. I am also attaching the nc-config and nf-...
jpv2018's user avatar
1 vote
2 answers
117 views

Software compiled from source does not work after first run

Hi I am trying to use a piece of Japanese NLP software called MeCab, written in Python and distributed with only source. ( http://taku910.github.io/mecab/ ) It has been giving me trouble since the ...
lamwaiman1988's user avatar
17 votes
1 answer
25k views

What are the GCC and clang versions available in Ubuntu 18.04? [duplicate]

In the new Ubuntu 18.04: What's the default GCC version (with which the binaries were built)? What GCC versions are available as separate packages (and what minor version is installed if I install ...
einpoklum's user avatar
  • 871
0 votes
1 answer
107 views

cpp version "end of search list"

When i checked the cpp version it showed me this message: cpp -v Using built-in specs. COLLECT_GCC=cpp OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured ...
Haroldo Payares Salgado's user avatar
0 votes
1 answer
284 views

How to install `sprof` in Ubuntu 14.04

I have a clean Docker ubuntu:14.04 container. sprof is not installed in the base image. How do you install it? I assumed it would be part of binutils along with gprof, but it's not there. Does anyone ...
Zachary Fields's user avatar
2 votes
1 answer
4k views

Installing GCC from source without apt

I have a fresh install of Ubuntu Server 16.04 which is having issues with the Ethernet NIC. I think I've got it almost figured out, but I need to recompile the kernel, which is a problem because I don'...
amateurece's user avatar