Questions tagged [gcc]

GNU Compiler Collection

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, libgcj,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom.

81 questions
45
votes
6 answers

Is it safe for a production server to have make installed?

During the setup of my virtual server instances I require some applications to be built using make. Are there any security risks associated with having make installed? Or should I clean it up before the instance is deployed? I also have the gcc…
S-K'
  • 1,281
  • 2
  • 11
  • 15
41
votes
1 answer

Unable to execute gcc: No such file or directory

I am running Ubuntu LTS and I'm getting errors when trying to do some of my pip install stuff, like scrapy for example. This is the error I get: Unable to execute gcc: No such file or directory Error: command 'gcc' failed with exit status 1 I'm…
J.Zil
  • 1,103
  • 3
  • 20
  • 29
11
votes
4 answers

Siege: descriptor table full sock.c:119: Too many open files

I am trying to make a stress test in my own server using siege with the following command: $ siege -c 500 myweb.com/somefile.php But I get this error: [error] descriptor table full sock.c:119: Too many open files And I get too this…
shakaran
  • 356
  • 1
  • 7
  • 19
10
votes
1 answer

How can I get information about a binary file that won't execute?

When I run one of my user's applications named "myfile". $ ./myfile I receive the following output bash: ./myfile: cannot execute binary file My user expects the binary file to run. I assume this is a compilation error but am unable to confirm…
Eric
  • 544
  • 1
  • 5
  • 15
8
votes
2 answers

Build gcc without a c compiler

Is it possible to build gcc without a c compiler already on the machine? If so, how?
David Nehme
  • 1,756
  • 4
  • 14
  • 13
6
votes
2 answers

Remote server security: handling compiler tools

I was wondering wether to remove compiler tools (gcc, make, ...) from a remote production server, mainly for security purposes. Background: The server runs a web application on Linux. Consider Apache jailed. Otherwise, only OpenSSHd faces the public…
Gonzolas
5
votes
3 answers

Trouble compiling modern GCC with antique glibc

I am trying to get a modern GCC to compile on Centos 6.4. The problem is that Centos does not have a modern glibc and GCC 4.8.x and 4.7.x keep giving me the following compile error: ... -DL_gcov -c ../../.././libgcc/libgcov.c In file included from…
vy32
  • 2,018
  • 1
  • 15
  • 20
4
votes
1 answer

How to install the latest g++ version on CentOS

I tried yum install gcc-c++, however, the repos have an old version (4.1) which causes lots of problems and stops me from building a library. I would like to update it to latest. How can I do that?
Rad'Val
  • 267
  • 2
  • 9
4
votes
1 answer

Where does gcc keep its built-in include directory paths

GCC has built in include directories for certain standard headers. I just need to know where this list is. My newly compiled gcc will not compile my little test C++ program because it cannot find standard headers. I think it fails because of some…
Charles
  • 165
  • 1
  • 6
3
votes
2 answers

Can I install a recent gcc from binaries on Amazon Linux?

I'm using Amazon Linux on an EC2 instance started from the most recent 2017.03 AMI (ami-6df1e514). This distribution comes with g++ 4.8.3 from 2013. I need something more recent that can compile C++14. Is there any way to install a more recent gcc…
bcattle
  • 161
  • 2
  • 8
3
votes
2 answers

Centos 6.6: [yum install *anything*] fails with [protected multilib error]

I have some problems with installing or upgrading anything on Centos 6.6. Problem is pretty much summed up in the topic name. When i try: yum install gcc-c++ I get: ... Error: Multilib version problems found. This often means that the root …
3
votes
3 answers

`cannot find "-lgcc_s"` from gcc-3.4 on Ubuntu 11.04

I'm trying to use gcc-3.4 on the latest Ubuntu. The package is from debian snapshots. It probably assumes different default directory structure, so for example I was forced to give it -I /usr/include/i386-linux-gnu/, which gcc-4 assumed…
Elazar Leibovich
  • 436
  • 1
  • 4
  • 7
3
votes
1 answer

Need to install libstdc++-5 on ubuntu 9.10

I'm running ubuntu 9.10 which has gcc4 (libstdc++6) installed, and I need to install a program that requires libstdc++5 that comes with gcc3. I don't see gcc-3 listed when I run "apt-cache search" so: Is it necessary to install gcc-3 to achieve…
xain
  • 657
  • 3
  • 12
  • 24
2
votes
1 answer

apt remove gcc-5 dependency errors

I'm face on some troubles here. I'm trying to remove gcc-5, however there are a lot of dependencies that will be affect by it. I'm looking for a magician that could help me uninstall it without make a huge difference in my system. My system…
2
votes
1 answer

/usr/bin/ld: cannot find -lmysqlclient Error but I have installed libmysqlclient-dev

I'm trying to compile this source code I have from a developers website that made his personal small MMO public, when trying to compile I get: gcc -O -g -m32 -rdynamic -L/usr/lib/mysql -o server .obj/server.o .obj/io.o .obj/libload.o .obj/tool.o…
Datsik
  • 125
  • 1
  • 6
1
2 3 4 5 6