This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Improper configuration causes gcc build failure?


When attempting to compile gcc 4.0.2 on Sparc Sun Solaris 8
(and gcc 3.4.5 on the same sparc box, and gcc 3.4.5 under Debian X86)
I run into the following error after typing 'make bootstrap'.

xgcc: installation problem, cannot exec '/usr/local/bin': Permission denied

Here is a synopsis of my setup and the error message(s):

ca1$ls -ld /usr/local/bin
drwxr-xr-x   2 root     other       9216 Jan 23 22:28 /usr/local/bin

ca1$ gcc --version
gcc (GCC) 3.2
Copyright (C) 2002 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.

ca1$ as --version
GNU assembler 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-solaris2.8'.

ca1$ ld --version
GNU ld version 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

ca1$ pwd
/gnu/gcc/4.0.2

ca1$ ls -l
total 62166
drwx------  22 gregb    laserlab    1536 Sep 28 00:15 gcc-4.0.2
-rw-------   1 gregb    laserlab 31793160 Jan 26 22:14 gcc-4.0.2.tar.bz2
drwx------   8 gregb    laserlab     512 Jan 27 12:22 obj

ca1$ cd obj

ca1$ ../gcc-4.0.2/configure --with-gnu-as \
                            --with-as=/usr/local/bin \
                            --with-gnu-ld \
                            --with-ld=/usr/local/bin \
                            --enable-languages=c,c++ \
                            --enable-checking

...

# This is the second run of 'make bootstrap', so .o files already exist.

ca1$ make bootstrap
make[1]: Entering directory `/gnu/gcc/4.0.2/obj/build-sparc-sun-solaris2.8/libiberty'
make[2]: Entering directory `/gnu/gcc/4.0.2/obj/build-sparc-sun-solaris2.8/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/gnu/gcc/4.0.2/obj/build-sparc-sun-solaris2.8/libiberty/testsuite'
make[1]: Leaving directory `/gnu/gcc/4.0.2/obj/build-sparc-sun-solaris2.8/libiberty'
make[1]: Entering directory `/gnu/gcc/4.0.2/obj/build-sparc-sun-solaris2.8/fixincludes'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/gnu/gcc/4.0.2/obj/build-sparc-sun-solaris2.8/fixincludes'
make[1]: Entering directory `/gnu/gcc/4.0.2/obj/intl'
rm -f stamp-h1
/bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory `/gnu/gcc/4.0.2/obj/intl'
make[1]: Entering directory `/gnu/gcc/4.0.2/obj/libiberty'
make[2]: Entering directory `/gnu/gcc/4.0.2/obj/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/gnu/gcc/4.0.2/obj/libiberty/testsuite'
make[1]: Leaving directory `/gnu/gcc/4.0.2/obj/libiberty'
make[1]: Entering directory `/gnu/gcc/4.0.2/obj/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory `/gnu/gcc/4.0.2/obj/libcpp'
Bootstrapping the compiler
make[1]: Entering directory `/gnu/gcc/4.0.2/obj/gcc'
make CC="gcc" libdir=/usr/local/lib LANGUAGES="c " \
        CFLAGS="-g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING" \
        MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" \
        COVERAGE_FLAGS= OBJS-onestep="tree-chrec.o tree-scalar-evolution.o tree-data-ref.o 
tree-cfg.o tree-dfa.o tree-eh.o tree-ssa.o tree-optimize.o tree-gimple.o gimplify.o 
tree-pretty-print.o tree-into-ssa.o tree-outof-ssa.o tree-ssa-ccp.o tree-vn.o tree-ssa-dce.o  
tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o tree-ssa-pre.o tree-ssa-live.o 
tree-ssa-operands.o tree-ssa-alias.o tree-ssa-phiopt.o tree-ssa-forwprop.o tree-nested.o 
tree-ssa-dse.o tree-ssa-dom.o domwalk.o tree-tailcall.o gimple-low.o tree-iterator.o 
tree-phinodes.o tree-ssanames.o tree-sra.o tree-complex.o tree-ssa-loop.o tree-ssa-loop-niter.o 
tree-ssa-loop-manip.o tree-ssa-threadupdate.o tree-vectorizer.o tree-vect-analyze.o 
tree-vect-transform.o tree-ssa-loop-ivcanon.o tree-ssa-propagate.o tree-ssa-loop-ivopts.o 
tree-if-conv.o tree-ssa-loop-unswitch.o alias.o bb-reorder.o bitmap.o builtins.o caller-save.o 
calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgloopanal.o 
cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o 
convert.o coverage.o cse.o cselib.o dbxout.o ddg.o tree-ssa-loop-ch.o loop-invariant.o 
tree-ssa-loop-im.o debug.o df.o diagnostic.o dojump.o dominance.o loop-doloop.o dwarf2asm.o 
dwarf2out.o emit-rtl.o except.o explow.o loop-iv.o expmed.o expr.o final.o flow.o fold-const.o 
function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o haifa-sched.o hooks.o 
ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o insn-extract.o insn-opinit.o insn-output.o 
insn-peep.o insn-recog.o integrate.o intl.o jump.o  langhooks.o lcm.o lists.o local-alloc.o 
loop.o modulo-sched.o optabs.o options.o opts.o params.o postreload.o postreload-gcse.o 
predict.o insn-preds.o pointer-set.o postreload.o print-rtl.o print-tree.o profile.o value-prof.o 
var-tracking.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o 
reorg.o resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o 
sched-vis.o sdbout.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o targhooks.o timevar.o 
toplev.o tracer.o tree.o tree-dump.o varasm.o varray.o vec.o version.o vmsdbgout.o xcoffout.o 
alloc-pool.o et-forest.o cfghooks.o bt-load.o pretty-print.o ggc-page.o web.o passes.o rtl-profile.o 
tree-profile.o rtlhooks.o cfgexpand.o lambda-mat.o lambda-trans.o  lambda-code.o tree-loop-linear.o 
sparc.o sol2.o host-solaris.o tree-inline.o cgraph.o cgraphunit.o tree-nomudflap.o"
make[2]: Entering directory `/gnu/gcc/4.0.2/obj/gcc'
./xgcc -B./ -B/usr/local/sparc-sun-solaris2.8/bin/ -isystem /usr/local/sparc-sun-solaris2.8/include 
-isystem /usr/local/sparc-sun-solaris2.8/sys-include -L/gnu/gcc/4.0.2/obj/gcc/../ld  -c -o crt1.o 
-x assembler-with-cpp ../../gcc-4.0.2/gcc/config/sparc/sol2-c1.asm
xgcc: installation problem, cannot exec '/usr/local/bin': Permission denied
make[2]: *** [crt1.o] Error 1
make[2]: Leaving directory `/gnu/gcc/4.0.2/obj/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/gnu/gcc/4.0.2/obj/gcc'
make: *** [bootstrap] Error 2
ca1$ 


Note that I've tried the same thing on an Intel X86 machine
running Debian:

debian01$ uname -a
Linux debian01 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686 GNU/Linux

and gotten essentially the same error message. I also tried
this with gcc-3.4.5 on the Solaris box and got the same
thing.

Any help appreciated. :-)

-Greg Benjamin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]