You are not logged in.

#1 2011-03-05 10:13:02

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

[SOLVED]error: command 'gcc' failed with exit status 1

I've got error while trying to install pybox, I guess it is because of color wrapper.
Here is the output for ls -all    (/home/bilegt/.cw/def)
arp        clock        date   env     free    groups   ifconfig  lsmod         messages@  nslookup   praliases   quotastats    showmount     tar         uptime   who
arping     configure    df     etc     fstab@  hdparm   inittab@  lsof          mount      objdump    profile@    resolv.conf@  smbstatus     tcpdump     users    xferlog@
auth.log@  cpuinfo@     diff   figlet  fuser   hexdump  iptables  ltrace-color  mpg123     passwd@    protocols@  route         stat          tracepath   vmstat
blockdev   crontab@     dig    file    g++     host     last      make          netstat    ping       ps          routel        strace-color  traceroute  w
cal        cw-pipe      dmesg  find    gcc     hosts@   lastlog   md5sum        nfsstat    pmap       pstree      sdiff         sysctl        umount      wc
cksum      cw-test.cgi  du     finger  group@  id       lsattr    meminfo@      nmap       pmap_dump  quota       services@     syslog        uname       whereis

Last edited by bilgee0629 (2011-03-06 06:41:54)

Offline

#2 2011-03-05 10:20:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,535
Website

Re: [SOLVED]error: command 'gcc' failed with exit status 1

Where is the error?

Offline

#3 2011-03-05 10:47:01

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

Re: [SOLVED]error: command 'gcc' failed with exit status 1

Setuptools not found; falling back on distutils. 
            !!! This might fail. Please install setuptools by running ez_setup.py for Python
            2.x or ez_setup3.0.py for Python 3.x
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
running build
running build_py
copying library/Box2D/__init__.py -> build/lib.linux-i686-2.7/Box2D
copying library/Box2D/Box2D.py -> build/lib.linux-i686-2.7/Box2D
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
swig -python -c++ -IBox2D -O -small -includeall -ignoremissing -w201 -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
Box2D/Collision/b2DynamicTree.h:46: Warning 312: Nested union not currently supported (ignored).
Box2D/Common/b2Math.h:96: Warning 509: Overloaded method b2Vec2::operator ()(int32) effectively ignored,
Box2D/Common/b2Math.h:90: Warning 509: as it is shadowed by b2Vec2::operator ()(int32) const.
gcc -pthread -DNDEBUG -march=i686 -mtune=generic -O2 -pipe -march=i686 -mtune=generic -O2 -pipe -fPIC -I/usr/include/python2.7 -c Box2D/Box2D_wrap.cpp -o build/temp.linux-i686-2.7/Box2D/Box2D_wrap.o -I. -Wno-unused
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1

Last edited by bilgee0629 (2011-03-05 15:34:56)

Offline

#4 2011-03-05 15:34:02

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

Re: [SOLVED]error: command 'gcc' failed with exit status 1

HERE IS THE ANOTHER ERROR WITH GCC (config.log)

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/usr --with-pic --without-dumb

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = i686
uname -r = 2.6.37-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Sat Jan 29 19:40:04 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/bilegt/.cw/def
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1532: checking build system type
configure:1550: result: i686-pc-linux-gnu
configure:1558: checking host system type
configure:1572: result: i686-pc-linux-gnu
configure:1580: checking target system type
configure:1594: result: i686-pc-linux-gnu
configure:1629: checking for a BSD-compatible install
configure:1684: result: /bin/install -c
configure:1695: checking whether build environment is sane
configure:1738: result: yes
configure:1803: checking for gawk
configure:1819: found /usr/bin/gawk
configure:1829: result: gawk
configure:1839: checking whether make sets $(MAKE)
configure:1859: result: yes
configure:2094: checking for gcc
configure:2110: found /home/bilegt/.cw/def/gcc
configure:2120: result: gcc
configure:2364: checking for C compiler version
configure:2367: gcc --version </dev/null >&5
gcc (GCC) 4.5.2 20110127 (prerelease)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2370: $? = 0
configure:2372: gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=gcc
Target: i686-pc-linux-gnu
Configured with: /build/src/gcc-4.5-20110127/configure --prefix=/usr --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-gnu-unique-object --enable-lto --enable-plugin --enable-gold --with-plugin-ld=ld.gold --disable-multilib --disable-libstdcxx-pch --with-system-zlib --with-ppl --with-cloog --with-cloog-include=/usr/include/cloog-ppl --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
Thread model: posix
gcc version 4.5.2 20110127 (prerelease) (GCC) 
configure:2375: $? = 0
configure:2377: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2380: $? = 1
configure:2403: checking for C compiler default output file name
configure:2406: gcc -march=i686 -mtune=generic -O2 -pipe  -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  >&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:2409: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "audiere"
| #define VERSION "1.9.4"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2448: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=i686 -mtune=generic -O2 -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=i686 -mtune=generic -O2 -pipe'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,--hash-style=gnu -Wl,--as-needed'
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/bilegt/Downloads/audiere/src/audiere-1.9.4/config/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/bilegt/Downloads/audiere/src/audiere-1.9.4/config/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/bilegt/Downloads/audiere/src/audiere-1.9.4/config/missing --run autoconf'
AUTOHEADER='${SHELL} /home/bilegt/Downloads/audiere/src/audiere-1.9.4/config/missing --run autoheader'
AUTOMAKE='${SHELL} /home/bilegt/Downloads/audiere/src/audiere-1.9.4/config/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=i686 -mtune=generic -O2 -pipe'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-march=i686 -mtune=generic -O2 -pipe'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LIBS=''
F77=''
FFLAGS=''
HAVE_AL_FALSE=''
HAVE_AL_TRUE=''
HAVE_DSOUND_FALSE=''
HAVE_DSOUND_TRUE=''
HAVE_DUMB_FALSE=''
HAVE_DUMB_TRUE=''
HAVE_FLAC_FALSE=''
HAVE_FLAC_TRUE=''
HAVE_LIBCDAUDIO_FALSE=''
HAVE_LIBCDAUDIO_TRUE=''
HAVE_OGG_FALSE=''
HAVE_OGG_TRUE=''
HAVE_OSS_FALSE=''
HAVE_OSS_TRUE=''
HAVE_SPEEX_FALSE=''
HAVE_SPEEX_TRUE=''
HAVE_WINMM_FALSE=''
HAVE_WINMM_TRUE=''
HAVE_WXWINDOWS_FALSE=''
HAVE_WXWINDOWS_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-Wl,--hash-style=gnu -Wl,--as-needed'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/bilegt/Downloads/audiere/src/audiere-1.9.4/config/missing --run makeinfo'
OBJEXT=''
PACKAGE='audiere'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.9.4'
WORDS_BIGENDIAN=''
WX_CONFIG=''
WX_CPPFLAGS=''
WX_LIBS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/bilegt/Downloads/audiere/src/audiere-1.9.4/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_cpu='i686'
target_os='linux-gnu'
target_vendor='pc'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "audiere"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "1.9.4"

configure: exit 77

Last edited by bilgee0629 (2011-03-05 15:34:23)

Offline

#5 2011-03-05 20:19:38

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED]error: command 'gcc' failed with exit status 1

Please do not write in capitals.

First thing I see is of course this:

Setuptools not found; falling back on distutils.
            !!! This might fail. Please install setuptools by running ez_setup.py for Python
            2.x or ez_setup3.0.py for Python 3.x

(I can't help you here.)

Second thing, gcc can't find cc1plus... Do you have cc1plus? (You should, since it comes in the gcc package.) Can you build a simple "Hello world" c++ program? If yes, then I'd assume that you have to install these "setuptools" as suggested...

Offline

#6 2011-03-05 20:29:30

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]error: command 'gcc' failed with exit status 1

Using cw will break gcc. Do not use it.

Offline

#7 2011-03-06 02:47:23

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

Re: [SOLVED]error: command 'gcc' failed with exit status 1

falconindy wrote:

Using cw will break gcc. Do not use it.

how to uninstall it? is it gonna be ok, then i uninstall it?

Offline

#8 2011-03-06 02:53:08

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

Re: [SOLVED]error: command 'gcc' failed with exit status 1

stqn wrote:

Please do not write in capitals.

First thing I see is of course this:

Setuptools not found; falling back on distutils.
            !!! This might fail. Please install setuptools by running ez_setup.py for Python
            2.x or ez_setup3.0.py for Python 3.x

(I can't help you here.)

Second thing, gcc can't find cc1plus... Do you have cc1plus? (You should, since it comes in the gcc package.) Can you build a simple "Hello world" c++ program? If yes, then I'd assume that you have to install these "setuptools" as suggested...

for "gcc a.cpp -o test"  it appears:
gcc: error trying to exec 'cc1plus': execvp: No such file or directory

for "g++ a.cpp -o test" it compiles.

Offline

#9 2011-03-06 05:52:30

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED]error: command 'gcc' failed with exit status 1

bilgee0629 wrote:
falconindy wrote:

Using cw will break gcc. Do not use it.

how to uninstall it? is it gonna be ok, then i uninstall it?

If you installed it from the AUR then just:

sudo pacman -R cw

Offline

#10 2011-03-06 06:39:32

bilgee0629
Member
Registered: 2011-01-29
Posts: 57

Re: [SOLVED]error: command 'gcc' failed with exit status 1

It can't be uninstalled by

pacman -R cw

i've just removed, then my gcc worked smile

Offline

#11 2015-07-02 13:19:00

deviker
Member
Registered: 2015-07-02
Posts: 1

Re: [SOLVED]error: command 'gcc' failed with exit status 1

SOLUTION WITHOUT REMOVING CW:
-----------------------------------------------------------

The problem seems to be related to gcc and g++ colouring together. You can still use cw and have their output colored but you have to rename g++ inside the cw directory.

sudo mv /usr/local/lib/cw/g++ /usr/local/lib/cw/g++bad

x230 iker ~/$ which g++
/usr/bin/g++

Doing that gcc will still be coloured and g++ too but with gcc colours.

Iker De Echaniz

Offline

#12 2015-07-02 13:56:18

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,810
Website

Re: [SOLVED]error: command 'gcc' failed with exit status 1

Thanks for sharing, deviker.

As this is an ancient topic, I'm going to close it now.

https://wiki.archlinux.org/index.php/Fo … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB