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
20 views

How to link installed pakage with g++ / atom with gpp-compiler package?

I can't figure out how to link external libs / installed packages when compiling. I have G++ and atom with the gpp-compiler package by kriscross07 and I want to link my GLWF3 Hello World programm with ...
6
votes
3answers
411 views

How do I resolve package conflicts between Ubuntu and GIMP?

In Ubuntu 18.04 (Cinnamon), the package cpp-7 depends precisely on version 7.3.0-27ubuntu1~18.04 of package gcc-7-base: $ aptitude why gcc-7-base i cpp-7 Depends gcc-7-base (= 7.3.0-27ubuntu1~18.04)...
0
votes
0answers
20 views

Install gcc for MIPS MUSL on Ubuntu 16.04

I don't have the file: ld-musl-mips-sf.so which is required by a MIPS binary which I need to execute I have already installed: gcc-mips-linux-gnu on my machine. How do I install the "musl" version of ...
0
votes
0answers
14 views

How to execute MIPS binary on Ubuntu 16.04?

I need to execute some MIPS binaries on Ubuntu 16.04 How do I do that? I tried executing the following command: sudo apt-get install linux-libc-dev-mips-cross libc6-mips-cross libc6-dev-mips-cross ...
0
votes
0answers
15 views

Problem when adding a repository

I am trying to add a repository that I know exists, since from a PC other than mine I have achieved it. The problem that jumps to me when trying to install the repository is the following: N: You can ...
0
votes
0answers
28 views

gcc compiler help

i have already installed gcc and its found in path(gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz). But when i want to use the gcc it says: Command 'gcc' not found, but can be installed with: sudo ...
0
votes
1answer
66 views

How to install gcc 6.3.0 on ubuntu 18.04

I am trying to install version 6.3.0 of gcc. I need that one in particular and I do not know how to do it. Since if I run "sudo apt-get install gcc" it updates me to the latest version (7.4) and it ...
0
votes
0answers
34 views

error while installing wifi adapter driver in ubuntu 18.04

rtl8188EUS_linux_v4.1.4_6773.20130222.tar.gz rtl8188EUS_linux_v4.1.4_6773.20130222/ rtl8188EUS_linux_v4.1.4_6773.20130222/runwpa rtl8188EUS_linux_v4.1.4_6773.20130222/core/ rtl8188EUS_linux_v4.1....
0
votes
2answers
59 views

Depencies are not installable

I am trying to install a program with the command: ~/Downloads$ sudo apt install ./argos3_simulator-3.0.0-i686-beta52.deb and I am getting the response (error) of: Reading package lists... Done ...
0
votes
0answers
12 views

ubuntu atom compilation probllem getch() main':<br/>trial.cpp:(.text+0x9b): undefined reference to stdscr'

I already have ncurses properly installed but atom still won't compile. I have this error message: "/tmp/ccEtNmpt.o: In function main':<br/>trial.cpp:(.text+0x9b): undefined reference tostdscr' ...
0
votes
0answers
33 views

Installing gcc-5-multilib breaks apt-get on Ubuntu16.04 [duplicate]

after loading gcc-5-multilib apt-get no longer works. sudo apt-get install gcc-5-multilib Reading package lists... Done Building dependency tree Reading state information... Done The following ...
0
votes
2answers
45 views

GCC compiler manual [duplicate]

I'm trying to call the manual of the GCC compiler from the terminal, but I seem to be unable to, I only get error messages when I type: gcc man Surely I'm doing it wrong, but I can't find any topics ...
0
votes
1answer
57 views

Downgrade of kernel fails

I try to use older kernel 3.x with ubuntu 16.04 LTS. But It seems to be a challenge: 1. on using the default gcc (gcc5): include/linux/compiler-gcc.h:103:30: fatal error: linux/compiler-gcc5.h: No ...
0
votes
0answers
42 views

Error when trying to compile in old compiler(gcc-3.x)

//test.c #include <stdio.h> int main() { printf("Hello"); return 0; } I am on my Ubuntu 14.04 32 bit Virtual Machine. And I have tried to install gcc-3.(I don't know if I did it ...
1
vote
0answers
30 views

dpkg: error processing package cpp (--configure)

Out of a sudden I receive this error on every apt install or apt upgrade. Using Ubuntu 18.04 dpkg: dependency problems prevent configuration of gcc: gcc depends on cpp (>= 4:7.3.0-3ubuntu2.1); ...
0
votes
1answer
65 views

Unable to install GCC, depends gcc-7 [duplicate]

When i try to compile in Geany i get the following error: /bin/sh: 1: gcc: not found When I run sudo apt install gcc This is what is printed on the screen: Reading package lists... Done Building ...
0
votes
0answers
49 views

How to step into using gcc in Ubuntu [duplicate]

I'm using Ubuntu and i'm programming in C language using the gcc compiler. In Visual Studio on Windows I can use step-into in order to see all the variables I have and which values they have. This ...
0
votes
1answer
75 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
0answers
49 views

failed to install gcc-4.7-multilib-arm-linux-gnueabihf

I'm trying to install gcc-4.7-multilib-arm-linux-gnueabihf at Ubuntu, but got the below error: Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate ...
1
vote
1answer
125 views

How to downgrade gcc version to 4.8 in Ubuntu 18.04

I upgrade my system from 16.04 to 18.04 but the gcc and g++ version change to 7 such that some of my program cannot compile, so how can I change gcc and g++ version to 4.8? Thanks
0
votes
0answers
44 views

Intel Power Gadget Ubuntu 16.04 Install gives error

I downloaded Intel® Power Gadget 2.5 for Linux and tried to install it as in the readme file. modprobe msr modprobe cpuid make When I make, it gives the error. gcc -g -fpic -c msr.c ...
0
votes
1answer
215 views

Install gcc 5 on Ubuntu 18.04

I have gcc 7.3.0 on Ubuntu 18.04. But I am working on a project where I need gcc less than version 6. When I tried to install gcc 5.4, I got this error: $ sudo apt install gcc-5.4 Reading package ...
0
votes
1answer
13 views

Error while building FleaFPGA-JTAG-Linux

I've been trying to compile FleaFPGA-JTAG-Linux for a while now but I keep getting the linker errors: cannot find -lftdti1 cannot find -lusb-1.0 When I run pkg-config --libs --cflags libftdi1 I get :...
0
votes
1answer
280 views

Command 'gcc' not found, but can be installed with.. ubuntu 18.04

Hi, because my default gcc could not, not long ago I've installed a new gcc to compile assembly files sudo apt install gcc-4.8 Now, in order to command gcc-4.8 SomeProgram.s with gcc SomeProgam.s ...
0
votes
0answers
76 views

Gcc: command not found, can't install

This will surely get marked as duplicate, but I've found no solution for my situation. So I'll start from the beginning, I'm using Lubuntu 18.04, I bought a USB WiFi adaptor which comes with drivers ...
0
votes
2answers
140 views

What is the purpose of using [-D_REENTRANT ] to compile thread program in c in Ubuntu? [closed]

Use any editor to type your program and then compile it using thegcc compiler: $ gcc t1.c –o t1 –lpthread [-D_REENTRANT] $ ./t1s Hello world!...
0
votes
0answers
147 views

asm/current.h: No such file or directory

I am trying to use the make command to compile a driver and this error appears to me, could someone help me? make -C /lib/modules/4.15.0-36-generic/build M=/home/julian/rtlwifi_new modules make[1]: ...
1
vote
2answers
206 views

I get a blinking cursor instead of output when running this C program in Ubuntu [closed]

Here's my code for finding the distance between two points. My assignment makes it mandatory to make use of functions, hence a separate one for finding the distance. I don't get any syntax errors but ...
0
votes
1answer
43 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
1answer
104 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
105 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
92 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
56 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
105 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
200 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
236 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
32 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
68 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
40 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
312 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
73 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
155 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
44 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
31 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
26 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
298 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
135 views
2
votes
1answer
469 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 ...