Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gcc]

The GNU Compiler Collection is the standard compiler system used on many Unix-like operating systems, including Linux. Originally meant for compiling C programs, it can now also handle C++, Java and several other languages.

0
votes
1answer
19 views

gcc -Hello.s Problem

My system is Ubuntu 18.04 64bit . with build-essentials and devtools installed. Hi, I have an assembly file called Hello.s Here is it's content: #This is a simple "Hello World!" program ....
0
votes
0answers
7 views

Current AVR-GCC in Ubuntu 18.04

I am wondering why the latest available avr-gcc version in the official repositories is 5.4 although the latest is a GCC 8 that still updates the AVR-compatibility. And I haven't found a ppa offering ...
0
votes
1answer
16 views

Install gcc 4.4.7 on Ubuntu 18.04

I tried installing gcc 4.4.7 with no success, using: sudo apt-get install gcc 4.4.7 I tried to run it via the source code and install a fresh one... Nothing seems to work. I keep getting this error: ...
0
votes
0answers
13 views

Installing RTAI 5.0 with linux kernel 3.18.20 in Linux 18.04 LTS

I tried to use the command make or make -j `getconf _NPROCESSORS_ONLN` deb-pkg LOCALVERSION=-rtai I got the following error - CHK include/config/kernel.release CHK include/generated/...
1
vote
0answers
22 views

Can't manange to build Rtmpdump with KSV Patch

I'm trying to build rtmpdump with KSV patch git clone https://github.com/chopraaa/rtmpdump-ksv.git cd rtmpdump-ksv patch -p0 -i Patch.diff make Patch is OK but then i have errors root@ubuntu:~/...
1
vote
0answers
18 views

How to compile Mesa with debug symbols?

I want to modify Mesa's source code and build it with debugging symbols enabled. I downloaded and built the sources with these commands: sudo apt build-dep libgl1-mesa-dev apt source libgl1-mesa-dev ...
0
votes
1answer
59 views

How to compile Linux kernel module: printk missing?

So I'm trying to compile a simple kernel module on Ubuntu 18.04, kernel 4-15.32 generic: #define MODULE #include <linux/module.h> #include <linux/kernel.h> int init_module(void){ ...
0
votes
0answers
38 views

Cannot install gcc on ubuntu 18.04 bionic beaver?

I am trying to install gcc, but I get the following printed out to the terminal: john@john-Lenovo-Y40-70:~$ sudo apt-get install gcc Reading package lists... Done Building dependency tree ...
1
vote
1answer
50 views

ubuntu, syntax error near unexpected token `('

I want to run a c program on ubuntu 18.04, on a virtual machine, and I get this error: ./test.c: line 3: syntax error near unexpected token `(' ./test.c: line 3: `void main(int argc, char** argv)' I ...
0
votes
0answers
17 views

Install TP Link driver without gcc or internet

I have two systems: Windows with internet Latest Ubuntu without internet I need to install TP Link Driver on Ubuntu. For this I have to use the "make" command, which I can not use bc I dont have the ...
0
votes
0answers
27 views

Compiling the kernel with compiled GCC

My question is after I compile GCC && after I type in make install (for GCC) how can I compile the linux kernel (stable) with the new GCC? Can you be specific it may sound like I know what i'...
0
votes
0answers
32 views

Unable to build python 3.7.0 “_dbm” optional module

I've been able to successfully finish building python 3.7.0 but one last optional module keeps slipping through the net! _dbm What ubuntu or debian package is required for this? The necessary bits ...
0
votes
0answers
35 views

Rebuilding vmware fails after…installing some R packages?

On Ubuntu 14.04 I (unsuccessfully) tried to install some R packages - which might have resulted in an inconsistent gcc or fortran setup. Now I try to execute vmware and get the following errors in /...
0
votes
1answer
90 views

Disable -enable-default-pie for gcc

I need to disable the -enable-default-pie option in the configuration of gcc, but I don't know how to do it. Is there a text file where I simply have to delete that option or how should this be done?
0
votes
0answers
25 views

Cannot make install libcurl on Ubuntu 16.04.4 LTS

I am attempting to install libcurl from source on an Ubuntu server, OS version 16.04.4 LTS. I am using gcc 8.1. Here is the configuration script I used: curl version: 7.61.1 1234 Install ...
-2
votes
2answers
54 views

GCC compiler not working

Original error: root@vishal-HP-Notebook:/home/vishal# sudo apt-get install gcc Reading package lists... Done Building dependency tree Reading state information... Done gcc is already the newest ...
0
votes
0answers
93 views

Cannot install gcc [duplicate]

sudo apt install gcc Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an ...
0
votes
0answers
24 views

Why do GCC's linker-options (as per dumpspec) contain as-needed?

Within the specs of gcc (retrieved via -dumpspecs) in Ubuntu 18.04 (7.3.0-16ubuntu3) the link-section shows the explicit mention of the option as-needed (passed to ld). This influences linked ...
1
vote
1answer
22 views

Dependency for gcc-7-locales is not resolving despite installing cpp-7

I'm trying to set up my Ubuntu for wifi drivers by manually downloading the packages and installing them as suggested in Installing Broadcom Wireless Drivers. However the dependency for gcc-7-locales ...
1
vote
1answer
17 views

Free heap memory

So I'm using Ubuntu for programming I use atom text editor with gcc compiler for C. I want to ask what will happen if I don't clear memory allocated by malloc or calloc? Will the OS take care of it or ...
0
votes
1answer
75 views

Unsupported GNU version! gcc versions later than 6 are not supported! - causes importing cpp_extension

Then I import it says before error this: /home/dex/anaconda3/lib/python3.6/site-packages/torch/utils/cpp_extension.py:118: UserWarning: !! WARNING !! !!!!!!!!!!!!!!!!...
0
votes
0answers
27 views

apt install gcc error [duplicate]

This error keeps coming when I try install gcc: yash@yash:~$ sudo apt install gcc [sudo] password for yash E: Malformed entry 1 in list file /etc/apt/sources.list.d/sublime-text.list (Suite) E: The ...
0
votes
1answer
69 views
0
votes
0answers
26 views

FingerJetFXOSE compilation

I am trying to compile FingerJetFXOSE on Ubuntu 18.04 LTS using gcc 7.3.0 make 4.1. Then this error occurred: make[3]: Entering directory '/home/super_pypsik/work/projects/imx/bmptofingerprint/...
2
votes
1answer
236 views

How to correctly upgrade gcc7.3 to gcc8 in Ubuntu 18.04.01 LTS?

In my Ubuntu 18.04 LTS: marco@PC:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic I have gcc ...
0
votes
0answers
228 views

Installing Linaro on Ubuntu 18.04

I am following this guide to install Linaro on my Ubuntu 18.04 machine (64-bit Duo core). Unlike the guide, I want to have the latest Linaro version. Thus, these are the commands I use: sudo apt-...
0
votes
0answers
20 views

how to download gcc and other codes for ubuntu

how to download them in windows 10 ubuntu app I am not getting them and when I try to install them it gives as 'ask administrator''error'etc;
0
votes
0answers
68 views

Install gcc 7.2 in Ubuntu 18.04

NVIDIA CUDA Toolkit 9.2 currently supports only Gcc 7.2.0 for Ubuntu 17.10. However, Ubuntu 18.04 comes with default gcc 7.3.0. How can I downgrade gcc 7.3 to 7.2, or make CUDA 9.2 work with gcc 7....
0
votes
2answers
71 views

Can a c++ compiler and includes be in one drive (system drive) and the code files themselves (.cpp) be at another? [closed]

Can I use my home drive as a place where the compiler and its files (and includes) are placed/installed, but use a different drive for my c/cpp source files? For example, gcc and includes are in /...
0
votes
0answers
69 views

Installation of c compiler on Ubuntu Linux [duplicate]

How do I install GCC 8 on Ubuntu LTS 16.04.3?
0
votes
1answer
346 views

Installing gcc in Ubuntu 18.04.1 on VirtualBox

I installed Ubuntu 18.04.1 LTS in my VirtualBox. I want to use gcc in it but it doesn't have a pre-installed version, and when I try to install it shows the following message: sudo apt-get install ...
1
vote
1answer
23 views

gcc help page in Ubuntu

In Ubuntu, gcc is the compiler that comes with the Linux operating system. In TurboC we have a help menu to search for documentation on syntax of functions and header files. How do I find this help ...
11
votes
2answers
1k views

Disabling C++11 in GCC 7.3

It seems like in Ubuntu 18.04, the default shipped g++ (version 7.3.0) runs in C++11 compatible mode by default. I am getting some errors in my old codes which are not C++11 compatible. I installed g++...
3
votes
0answers
604 views

Upgrade gcc (4:7.3.0-3ubuntu2) to gcc-8 (8.2.0) in ubuntu 18.04

Has recently upgraded my ubuntu from 16.04 to 18.04.1 LTS. When trying to run vmware I am getting this message: gcc version 8.2.0 not found so I checked gcc v. and I found: (Ubuntu 7.3.0-16ubuntu3). I ...
1
vote
2answers
228 views

Compilation errors in Ubuntu 18.04 LTS for a QT-based project

When running make, the following errors appear in terminal: //usr/local/lib/liblua.a(loadlib.o) : In function « lookforfunc » : loadlib.c:(.text+0x576): warning : Using 'dlopen' in statically linked ...
0
votes
0answers
149 views

Failed to update system or install any program on Ubuntu 18.04 - too many levels of symbolic links usr/bin/g++

I have some problem which I don't know how to solve. I am using Ubuntu 18.04 and when I try it to update it by typing: sudo apt-get update sudo apt-get upgrade In a second line I got: Reading ...
1
vote
1answer
65 views

Error while compiling bcmwl-kernel-source

Recently, the WiFi on option on my Ubuntu 16.04 disappeared. I figured that bcmwl-kernel-source needed to be updated so what I basically did was: sudo apt-get upgrade When the upgrade reached ...
1
vote
1answer
150 views

Issue with gcc/g++ while cmake building (./bootstrap)

I decided to reinstall cmake but after removing it I am having an Issues with installing. After entering a ./bootstrap It prints I am using type of g++ which I dont know how I got it CMake 3.12.0, ...
0
votes
1answer
179 views

Problem with reaver on Ubuntu 18.04 [duplicate]

So I was following up with this link https://www.learn2crack.com/2013/07/learn-to-hack-wifi-password-with-ubuntu.html I'm stuck with the 7th step, I'm pasting the reply of the 6th step just in case if ...
0
votes
0answers
23 views

Tried to install “dkms” as to satisfy “broadcom-sta-dkms_6.30.223.271-8_all.deb” but itself is not satisfied [duplicate]

On Ubuntu Mate v18.04 because of no internet connection at all except from Wifi, I tried to acquire its driver and to install "dkms_2.3-3ubuntu9_all.deb" because it is required to satisfy "broadcom-...
0
votes
1answer
290 views

git clone fails with “Connection reset by peer”

While trying to git clone the RISC-V GNU toolchain Github project, it is showing following errors. I don't have any idea how to get rid of them. fatal: read error: Connection reset by peer fatal: ...
0
votes
0answers
73 views

Error trying to import librosa in python3: symbol _ZTINSt8ios_base7failureB5cxx11E, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6

I've spent all day searching for solutions to this problem. At first it was an GLIBCXX_1.9 problem, I've tried to use solutions in here (install a gcc newest version and others solutions), and it ...
0
votes
0answers
32 views

How could I switch OpenMPI library based on the gcc/g++ version?

Using the methods describe here I could easily switch gcc version with update-alternatives. Now, I have two versions of openmpi-3.1.1 that is compiled for each of them, namely: /home/user/me/.local/...
2
votes
2answers
279 views

Unable to install libc6-dev

A gcc compiler was misbehaving, and in the process of fixing it part of the libc6 package was uninstalled. Now I am trying to reinstall it using apt-get on Ubuntu 14.04 (3.13.0-24-generic). However, ...
1
vote
0answers
131 views

How to build older version of glibc?

I want to build gcc-8.1.0 cross-compiler for ARM from sources, but with glibc 2.23 because of the backward compatibility with some other project I have. I am building it on Ubuntu Xenial 16.04. My ...
4
votes
1answer
324 views

gcc error in Ubuntu 18.04

I try to compile hello.c using gcc with -mnop-mcount option. But error occurs like below: $ gcc -pg -mfentry -mnop-mcount -o hello hello.c cc1: error: -mnop-mcount is not implemented for -fPIC My ...
1
vote
1answer
521 views

Fix problem when install Cuda 7.5 in Ubuntu 18.04 LTS

I have Ubuntu 18.04 LTS, and I want to install Cuda 7.5 (because this version is compatible with my Nvidia GF 820m graphics card). I configured gcc-4.8 as default gcc for (because it's the Cuda 7.5 C ...
0
votes
1answer
3k views

/usr/bin/x86_64-linux-gnu-ld: cannot find -lGL

This post has been translated from German. For the original, please see the revision history. I have written the following program in Qt Creator. The error message refers to Ubuntu. I'm using Ubuntu ...
0
votes
1answer
576 views

Dependency error when installing gcc-multilib

I currently try to install gcc-multilib on my Ubuntu 16.04.4 LTS machine (freshly done apt-get update + upgrade). There are several dependencies and that's why I tried it with aptitude to resolve ...
0
votes
0answers
20 views

ihave installed gnat version 7 and gcc version is also 7 but i am getting error as missing tools. can someone help me?

I wanted to build the tool chain for arm processor and to set up genode by qemu emulator.but when i build the genode tool chain for arm..it is asking for missing tools. athul@athul-HP-Pavilion-...