Questions tagged [compiler]
Questions related to compilers or tools offering compilation.
136
questions
0
votes
0
answers
61
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/...
0
votes
0
answers
68
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
0
votes
0
answers
30
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
...
0
votes
0
answers
471
views
Undefined reference to libraries while building
I am trying to install tgs2apng in Ubuntu on WSL. As instructed I installed the 3 libraries- rlottie, libpng and apngasm. However When I run make I get undefined references to rlottie and apngasm
Here'...
0
votes
1
answer
47
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 ...
0
votes
0
answers
13
views
Ubuntu codeblocks in release mode bug the output values
Well, I've been having problems with compilation on Ubuntu's Codeblocks in release mode. In Debug, as in other IDEs, the output value goes out correctly, but in the release mode it goes like this:
The ...
1
vote
1
answer
502
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?
0
votes
0
answers
58
views
Ubuntu upgrading from 5.8.0-63-generic to 5.11.0-25-generic failed to auto upgrade Realtek Wi-Fi drivers due to compile errors
After the Ubuntu upgrade from 5.8.0-63 to 5.11.0-25, I noticed that my Wi-Fi dongle did not come up and also "lsmod" did not show the module (rtl88XXau). Then, I found that the dkms folder (/...
0
votes
0
answers
67
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 ...
1
vote
0
answers
155
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 + ...
0
votes
1
answer
102
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 ...
0
votes
0
answers
27
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 ...
0
votes
0
answers
593
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 ...
1
vote
0
answers
76
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 ...
3
votes
2
answers
3k
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/...
3
votes
2
answers
4k
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 ...
1
vote
1
answer
299
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?
0
votes
2
answers
320
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' ...
0
votes
1
answer
197
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 ...
0
votes
2
answers
1k
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?
0
votes
1
answer
467
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....
0
votes
1
answer
2k
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 ...
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 .
:(
0
votes
0
answers
683
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 ...
1
vote
0
answers
501
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, ...
12
votes
2
answers
28k
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 :)
2
votes
0
answers
128
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 ...
0
votes
1
answer
707
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-...
0
votes
0
answers
659
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 ...
1
vote
0
answers
215
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 ...
1
vote
1
answer
1k
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-...
1
vote
0
answers
132
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:
0
votes
1
answer
548
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 ...
1
vote
2
answers
15k
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 ...
0
votes
1
answer
39
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:
...
-2
votes
1
answer
2k
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 "...
0
votes
0
answers
834
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 ...
0
votes
0
answers
407
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-...
1
vote
2
answers
86
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 ...
15
votes
1
answer
19k
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 ...
0
votes
1
answer
74
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 ...
0
votes
1
answer
206
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 ...
2
votes
1
answer
3k
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'...
0
votes
1
answer
841
views
directories of Freetype are not creating saying C compiler is not available
FreeType build system -- automatic system detection
The following settings are used:
platform unix
compiler cc
configuration directory ./builds/unix
...
0
votes
1
answer
2k
views
Install older version of gfortran in ubuntu 16.04
I want to install 4.8.4 gfortran compiler in my Ubuntu 16.04.
I tried this
sudo apt-get install gfortran-4.8.4
but it returns
unable to locate package
1
vote
0
answers
79
views
How to compile Gnucap?
I installed GCompris today on my Lubuntu 16.04.3 LTS PC for my little brother. He wants to test out the electric circuit game, but it requires gnucap to be installed.
So, I found the source code of ...
0
votes
1
answer
582
views
How to execute cabal?
I installed stack via binary package on stack's site.
Now I want to use cabal to install packages.
cabal install something
but it outputs:
cabal: The program 'ghc' version >=6.4 is required but ...
1
vote
0
answers
645
views
error: C compiler cannot create executables when compiling CFOUR with Portland compiler
The command I am trying to run is
FC=pgf90 CC=pgcc MPIFC=mpif90 ./configure
--prefix=/data/share/cfour_mpi --enable-mpi=openmpi --with-mpirun="mpirun
-np \$CFOUR_NUM_CORES" --with-exenodes="mpirun -...
1
vote
1
answer
10k
views
How can I install Dev C++ in Ubuntu 16.04
I want to use Dev C++ in Ubuntu. Is it available in Ubuntu? If yes, please tell me how I can install it with terminal (by command-line)?
2
votes
1
answer
6k
views
g++ cant find cstdlib (fatal error: cstdlib: No such file or directory) [closed]
Im trying to compile the very simple c++ Program
//Programm, um Celcius in Fahrenheit umzurechnen
// F=C*(212-32)/100+32
#include <cstdio>
#include <csdtlib>
#include <iostream>
...