[UPD] Zeromq installing error: C compiler cannot create executables

asked 2013-06-06 03:14:17 -0600

AndreWin gravatar image

updated 2013-06-07 01:11:47 -0600


PS: Please see update imformation at the end of this question.

I have errors when try to install zeromq:

 C compiler: gcc
 C compiler version:
 Using built-in specs.
 COLLECT_LTO_WRAPPER=/home/andrei/Programs/Sage/sage-5.9/local/bin/../libexec     /gcc/i686-pc-linux-gnu/4.7.2/lto-wrapper
 Target: i686-pc-linux-gnu
 Configured with: ../src/configure --prefix=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-local-prefix=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-gmp=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-mpfr=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-mpc=/var/lib/buildbot     /build     /sage/arando-1/arando_binary/build/sage-5.9/local --with-system-zlib --disable-multilib --disable-nls  
 Thread model: posix
 gcc version 4.7.2 (GCC) 
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /bin/mkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking how to create a ustar tar archive... gnutar
 checking whether make supports nested variables... yes
 checking for gcc... gcc
 checking whether the C compiler works... no
 configure: error: in `/home/andrei/Programs/Sage/sage-5.9/spkg/build/zeromq-3.2.0.p0/src':
 configure: error: C compiler cannot create executables
 See `config.log' for more details
 Failed to configure zeromq!

 real   0m1.498s
 user   0m0.056s
 sys    0m0.044s
 Error installing package zeromq-3.2.0.p0

It's very strange for me that C compiler doesn't work. I decided to try install gcc using sage -i gcc, but I got the same error. What do I wrong? Help me please! Thanks.

P.S. I decided that it is the different bug of zeromq install so I created new question.


 sage --sh
 gcc -v
 Using built-in specs.
 Target: i686-pc-linux-gnu
 Configured with: ../src/configure --prefix=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-local-prefix=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-gmp=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-mpfr=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-mpc=/var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9/local --with-system-zlib --disable-multilib --disable-nls  
 Thread model: posix
 gcc version 4.7.2 (GCC)

In what could be the problem that c compiler don't work?

edit retag flag offensive close merge delete


Is it possible you do not *have* a compiler? What do you get when you do `gcc --version` at the command line? This spkg was *just* updated, so hopefully it will work - it would be unfortunate if not.

kcrisman gravatar imagekcrisman ( 2013-06-06 03:27:48 -0600 )edit

Right, this is because the gcc is from the binary build - note the `build/sage/arando-1` business. So this is a leftover in your binary. It may even work on that machine, but it would have to be reconfigured. What happens when you don't do `sage -sh` and do `gcc -v`? Do you have gcc? Typically we don't assume that binaries can build code if you don't personally have a compiler on the machine. If you do, there are several ways you could deal with this - either rebuild the Sage gcc package (`sage -f gcc`) though that might end up rebuilding all of Sage, or perhaps (?) use some env var [here](http://www.sagemath.org/doc/installation/source.html#section-envvar) to override using Sage's gcc. I hope I'm not misleading you.

kcrisman gravatar imagekcrisman ( 2013-06-07 03:11:50 -0600 )edit

kcrisman, thanks a lot. Unfortunatelly I don't know how to compile programms on Linux (my knowlendge isn't enogh to do it professionally). So I have to use sage notebook.... Maybe such mistackes is due to I use Linux Mint 15 Cinnamon?

AndreWin gravatar imageAndreWin ( 2013-06-07 09:04:47 -0600 )edit

Ah, then you probably don't actually have a compiler. Having Linux Mint 15 shouldn't be the problem, though see for instance [here](http://ask.sagemath.org/question/1536/error-installing-on-linux-mint-13). However, to install most other packages, you'll need this. See the [installation guide](http://www.sagemath.org/doc/installation/source.html).

kcrisman gravatar imagekcrisman ( 2013-06-08 16:47:12 -0600 )edit