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]

GNU Compiler Collection, a family of compilers for various languages from the GNU Project. Questions about gcc should be limited to installation and basic usage/configuration.

0
votes
0answers
9 views

building gcc on hp-ux get illegel instruction

I am trying to native build GCC 4.8.5 on the HP-UX cause HP-UX does not support GCC 4.8.5 package installation. What I did is download gcc-4.8.5 src and then configure, make. pwd -> /data5/...
0
votes
0answers
14 views

HP-UX Build GCC 4.8.5 fail during make

I am trying to native build GCC 4.8.5 on the HP-UX cause HP-UX does not support GCC 4.8.5 package installation. What I did is download gcc-4.8.5 src and then configure, make. pwd -> /data5/...
0
votes
0answers
21 views

Rcpp package installation error

I was trying to install Rcpp in R through install.packages("Rcpp"), but the following error occurred: * installing *source* package ‘Rcpp’ ... ** package ‘Rcpp’ successfully unpacked and MD5 sums ...
0
votes
1answer
67 views

Need to use gcc for computer science I class on C++, having trouble getting started [closed]

This is the recommendation from my instructor on software for Linux (since the required software, Visual Studio 2017, is not available for Linux (I have Mint): 2) If you are a LINUX user, I will ...
0
votes
1answer
16 views

Building full gcc-3.3 on Trusty from deb-src

In Ubuntu Trusty there is a source package for gcc-3.3 which only builds libstdc++5. Is there a way to build the corresponding gcc and g++ deb files to share or install the dpkg -i way?
0
votes
0answers
25 views

Building toolchains: Guessing the proper platform triplet - for game consoles

I personally am new to cross-compiling, and so far I have had to use pre-created build scripts that would automatically setup binutils and GCC for me. But those scripts are rather outdated and very ...
0
votes
0answers
32 views

How do I get GCC and Make to exclusively use RAM only?

I'm compiling a C++ project using GCC and Make. I use a ramdisk for this because it builds faster that way and to reduce the amount of writes to my SSD. I've noticed that, despite moving the project ...
0
votes
1answer
68 views

Can I re-compile python with an older version of gcc on ubuntu 18.04?

Yesterday, I upgraded my OS from ubuntu 16.04 to 18.04. Since then, one of my python modules (on python 2.7) does not work anymore. Trying to import it yielded an error. This module uses fortran ...
0
votes
0answers
24 views

New gcc vs. older valgrind

I'm working on a RHEL6 system with a software project, that requires C++11. This requirement forces me forgo the base compiler included with the OS (gcc-4.4.7) and use a manually-built one (gcc-8.2.0)....
0
votes
0answers
42 views

apache 2.2.2.16 compile error with openssl-1.1.0h

Please help me out in resolving this issue with compiling apache2.2 on debian squeeze, Basically i am trying to compile mod_ssl because current mod_ssl does not support tls1.2 support. So i extracted ...
0
votes
0answers
46 views

Building R-3.5.0 on CentOS 6.5: /usr/bin/ld: crtbegin.o: No such file

Because I don't have privileges to use the package management tool on our cluster, I'm trying to locally build R-3.5.0 on CentOS 6.5 from source. We have an old version of R installed for all users, ...
0
votes
1answer
215 views

How to specify MinGW64 for codeblocks 17.02 on Windows 10?

I have downloaded CodeBlocks 17.02 without mingw and installed it, then I downloaded MinGW64 from here(https://mingw-w64.org/doku.php/download) and only changed the architecture option from i686 to ...
0
votes
2answers
58 views

How to compile a code with SSE on PowerPC?

I am trying to compile minmap2 for PowerPC. I have this compilation line and I want to build it for PowerPC c -c -g -Wall -O2 -Wc++-compat -msse2 -DHAVE_KALLOC ksw2_ll_sse.c -o ksw2_ll_sse.o Is ...
1
vote
1answer
137 views

What exactly is g++?

There's one thing that I don't understand - and that is the question what is g++? I've searched for the wide web (in every way I've thought of, at least). No result yielded (the closest that I've ...
3
votes
2answers
1k views

How do I compile FFMPEG & Libaom without PIE

I am trying to compile FFMPEG and Libaom from source apparently because the gcc and g++ compilers in Ubuntu 18.04 by default has enabled the following option by default: --enable-default-pie $ gcc -v ...
2
votes
2answers
74 views

Detect if command has printed to stderr

I have this program in C #include <stdio.h> int main() { char foo[10]; int i; for(i = 0; i < 20 ; i++) { foo[i] = 0; } return 0; } If I run this script #!/bin/...
2
votes
1answer
746 views

How to uninstall a previously installed version of GCC on Windows 10?

I use Windows 10 and I think I already installed gcc 4.9.2 with Code::Blocks IDE automatically. This is the result of gcc --version command on CMD: gcc (tdm-1) 4.9.2 Copyright (C) 2014 Free ...
0
votes
2answers
2k views

CentOS 7 GCC won't compile

I'm running CentOS 7 on a Dell Precision T3400. I have installed the Cacti network monitoring tool and am trying to install Spine, the last critical binary. I've downloaded Spine and am attempting to ...
0
votes
1answer
338 views

Change python 2.7 default gcc 5.4 to gcc 7

I just upraded gcc from 5.4 to 7 but, when i run python 2.7 it says: Python 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] on linux2 I set gcc 7 as default for my system Ubuntu 16....
0
votes
1answer
177 views

Debian Jessie 8.9 Compiling Error for Cryptocoin Wallets “error: ‘::SSLv3_server_method’ has not been declared”

OS: Debian 8.9 Wallet: mooncoin-0.10.5-tokenblock All dependencies installed: libssl, libdb4.8, libboost, miniupnpc, qt4, protobuf, libqrencode Installation instructions: /mooncoin-0.10.5-...
0
votes
1answer
6k views

checking whether the C compiler works… no

what I am doing wrong? the first error I see in a log is: gcc: error: unrecognized command line option '-V' I have tried to follow some advices from google - but nothing helps.... I have already ...
0
votes
1answer
552 views

How do you change versions of gcc on windows?

I've been using g++ 4.8.1, mingw. Now, I've just updated to 6.3.0, however when I use g++ in command prompt it still seems to use the older version. How do you change between versions on windows?
1
vote
1answer
1k views

Install specific version of gcc on Centos 6.8

How can I install gcc-4.8.4 version on Centos 6.8? I've already checked several sources like How to Install gcc 4.7.x/4.8.x on CentOS, but the suggested solutions work by installing some specific ...
0
votes
1answer
2k views

How to install gcc 6 on Fedora 26

I'm trying to build CORE Network Emulator from source and I seem to have hit a gcc7 bug, so I want to install gcc 6.4.1 but when I try to run dnf install gcc-6.4.1 I get the error No package gcc-6.4.1 ...
0
votes
0answers
774 views

gcc error no input files

Ive got server with Debian Lenny (32b) and I installed gcc on it. when I tried command gcc --version Ive got error "i686-linux-gnu-gcc-6:fatal error: no input files" Can somebody help me where can be ...
1
vote
2answers
277 views

cannot compile latest gcc

I have Linux CentOS 6.3 and gcc installed version 4.4.7 which is ancient. I wanted to install the latest gcc. I downloaded and unzipped it and when I tried >./configure it said I needed GMP 4....
1
vote
1answer
900 views

Install latest GCC on Fedora

So as we all know, theres GCC version 7.1 and I wanted to have it on Fedora. dnf update only updates to 6.3.0, but I have this updating mania, so I really need to have the latest version. I know that ...
0
votes
1answer
1k views

Core temperature above threshold cpu clock throttled while upgrading gcc compiler

I have a Dell laptop and i am using CentOS 6.9 in it for personal use which was working very fine till yesterday, when i tried to upgrade default gcc compiler (4.4.7) to 4.9.x version.. I've ...
0
votes
3answers
348 views

I get the response /root/gcc-4.8.2/bin: No such file or directory when I set the path in bash.rc

I already had gcc 4.4.7 in my system. My system is RHEL 6.6. [root@gksrv Desktop]# gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) Copyright (C) 2010 Free Software Foundation, Inc. ...
0
votes
1answer
519 views

What is a front-end for the GCC Compiler?

From what I know a front-end is a GUI for a program or for a website that has a web application in the "back-end". I am confused to ses that for the GCC (GNU C Compiler) there are many front-ends but ...
0
votes
1answer
4k views

What is the correct location of gcc is on my Ubuntu 16.04 computer?

I am trying to build the software package Trilinos, and I think it failed because it couldn't locate the C compiler directory correctly. Can anyone tell what the correct location of gcc is on my ...
2
votes
1answer
614 views

Errors with arm-none-eabi-gcc on Windows 10 Bash

I'm trying to use Windows 10 Bash to run an ARM cross compiler but it seems like I cannot get the gcc compiler to execute (ie: arm-none-eabi-gcc). This error appears: arm-none-eabi-gcc: cannot ...
3
votes
1answer
816 views

Segmentation Fault when building GCC

I'm trying to compile gcc. I downloaded the latest version from the GCC website (version 6.3.0), but I'm having some trouble building gcc. I am passing the following options to the configure script: ...
0
votes
1answer
134 views

How to build gcc-6.x.0 on x64 without “unknown spec” complain?

I followed steps described in LFS, but stuck at g++ -fno-PIE -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -...
5
votes
2answers
1k views

How do I grant access /dev/console to an executable?

I've written a small C app to utilize the internal PC's speaker. To achieve this, I'm talking to the /dev/console which in turn makes a beep sound from the speaker. However, my compiled executable ...
0
votes
0answers
755 views

newest Linux cross-compiler for Cygwin

I want to install the linux cross-compiler, but only find there is no linux-x86_64-gcc packages in setup-x86_64.exe packages, but it has packages about ming64-x86_64-gcc. I also find old linux-x86_64-...
1
vote
0answers
180 views

How to install gcc configure on kindle

I jailbreaked my Kindle Paperwhite 3, installed KUAL and then kterm. I thought I could maybe install some packages, just for fun. To make future installs easier, I decided to start with dpkg. When I ...
2
votes
1answer
7k views

Upgrade gcc to gcc-4.9 in RHEL 7

redhat 7 has gcc 4.8.5. I want it to upgrade it to 4.9. For that I've used the below command sudo yum install devtoolset-3-gcc.x86_64 And I got the below response Loaded plugins: amazon-id, rhui-...
2
votes
0answers
51 views

Force linker to find stdc++ in non standard directory

I've read a lot of guidance that says the LD_LIBRARY_PATH is searched before anything else, but one of my .so libraries is linking with libtdc++.so.6 in /usr/lib64. ldd mylib.so: ... libstdc++.so.6 =&...
0
votes
0answers
518 views

Openssl cross compiling for ARM and host: windows machine + gcc

I am trying to build openssl library for one of my project. but all the online data I am getting is regarding linux environment. so my environment is... host: windows 7/ x86 target: ARM M4/kinetis k61 ...
0
votes
1answer
752 views

Cygwin installation stops in make step

I'm installing Cygwin and GNU C compiler with the help of the tutorial How to Install the Latest GCC on Windows I have completed the following steps Install Cygwin Install Required Cygwin Packages ...
1
vote
2answers
362 views

Newer version of libc6-dev package causes havoc

I have a mips64 machine running Debian Wheezy. GCC compiler installs without any issues, however, linker is having some trouble: apt-get install gcc make gcc helloworld.c -o helloworld /usr/bin/ld: ...
0
votes
1answer
49 views

g++ 4.9.2 in Cent OS 6.7 will compile but not link

I am using Centos 6.7 and have installed the devtools-3 distribution and "enabled" it to make gcc 4.9.2 the default. A simple C++ program that uses regex will compile , but does not link. // ...
0
votes
1answer
295 views

How to pass custom options(--prefix) to configure when rebuilding a 'gcc' package?

I want to rebuild the gccXXX packages with a custom --prefix. I know how to rebuild (with the following commands) it, but how do I provide a custom --prefix?: apt-get build-dep -y gcc-4.9-multilib ...
3
votes
1answer
3k views

Can't install gcc with cygwin on Windows 10

After installing cygwin on Windows 10, I tried to install gcc by cd C:\cygwin C:\cygwin\setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel ...
0
votes
2answers
843 views

Is it possible to remote compile with gcc?

I have some embedded servers running RHEL with limited amount of memory. Because of this I do not want to install gcc because it is so large. Is there a way to remote compile with gcc? The only way ...
6
votes
1answer
5k views

Recommended way to provide another version of GCC?

I'm on Fedora 23 which installs GCC 5.3.1 by default. For a cross compilation project with libraries which have been compiled with GCC 4.9 I'd like to install GCC 4.9 in parallel. This (very old) ...
0
votes
2answers
182 views

Can I sandbox a binary created in C (with GCC) for Linux and make it easy for users?

I have compiled a binary that I want to distribute to other people. It's closed-source, but I want to provide users of the binary with confidence that it cannot possibly access the internet, ...
-1
votes
1answer
69 views

does the gcc compiler have any relation with the OS scheduler? [closed]

All is in the title I want to know if is there any relation between the compiler and the scheduler ?
0
votes
1answer
407 views

GCC ld: can't find -lcurses

Make install Produces this output: /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libcurses.so when searching for -lcurses /usr/lib64/...