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]

Re: stage 3 error : bash: missing-objcopy: command not found



On 10/21/13, Andrew Haley  wrote:
> On 10/21/2013 04:33 PM, Dennis Clarke wrote:
> > 
> > 
> > On 10/21/13, Andrew Haley wrote:
> >> On 10/21/2013 02:32 PM, Dennis Clarke wrote:
> >>> what is this "missing-objcopy" ? anybody have a notion on that one ? 
> >>
> >> objcopy wasn't found. If you re-run configure you'll see it.
> > 
> > This is a Solaris server and objcopy is part of Linux binutils, not
> > part of Solaris ( SVR4 UNIX based ). 
> > 
> > I see here : 
> > 
> > http://gcc.gnu.org/install/prerequisites.html
> > 
> > GNU binutils Necessary in some circumstances, optional in others. See 
> > the
> > host/target specific instructions for your platform for 
> > the exact
> > requirements. 
> > 
> > I check here : http://gcc.gnu.org/install/specific.html
> > 
> > Where I see no mention of a need for binutils to compile "go". 
> > 
> > We probably need to update that page. 
> 
> Looks like it.
> 
> > However, having said that I do have : 
> > 
> > $ /usr/local/bin/gobjcopy --version 
> > GNU objcopy (GNU Binutils) 2.23.1
> > Copyright 2012 Free Software Foundation, Inc.
> > This program is free software; you may redistribute it under the terms of
> > the GNU General Public License version 3 or (at your option) any later version.
> > This program has absolutely no warranty.
> > 
> > So it looks like I need a silly environment variable such as OBJCOPY which 
> > points to the GNU binutils in /usr/local/bin. Which I otherwise do not use.
> 
> Or just add /usr/local/bin to your path, and all will be well.
> 

nope. :-(

I have always had /usr/local/bin in my PATH. In fact : 

$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/local/gcc4/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/sbin:/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/opt/schily/bin:/usr/local/texlive/2012/bin/sparc-solaris

Also I have now : 

OBJCOPY=/usr/local/bin/gobjcopy
OBJDUMP=/usr/local/bin/gobjdump
READELF=/usr/local/bin/greadelf


Consider the confusion below where objcopy and objdump etc seem to be found and then not found and then found again : 


$ pwd
/usr/local/build/gcc-4.8.2_SunOS5.10_sparcv9.004
$ ../gcc-4.8.2/configure --prefix=/usr/local/gcc4 \
> --build=sparc64-sun-solaris2.10 \
> --without-gnu-as --without-gnu-ld --with-ld=/usr/ccs/bin/ld \
> --disable-nls --enable-threads=posix --enable-shared \
> --libdir=/usr/local/gcc4/lib --libexecdir=/usr/local/gcc4/lib \
> --disable-ppl-version-check --disable-cloog-version-check \
> --enable-languages=c,c++,fortran,go,objc --enable-bootstrap
checking build system type... sparc64-sun-solaris2.10
checking host system type... sparc64-sun-solaris2.10
checking target system type... sparc64-sun-solaris2.10
checking for a BSD-compatible install... ../gcc-4.8.2/install-sh -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/bin/gsed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... no
checking for gcc... /usr/local/gcc4/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/local/gcc4/bin/gcc accepts -g... yes
checking for /usr/local/gcc4/bin/gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether /usr/local/gcc4/bin/g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... gnatbind
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16
checking for objdir... .libs
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... no
checking for version 0.12 of ISL... no
 'c++' language required by 'go' in stage 1; enabling
The following languages will be built: c,c++,fortran,go,lto,objc
*** This configuration is not supported in the following subdirectories:
 target-libmudflap target-libsanitizer gnattools target-libada target-zlib target-libjava target-boehm-gc
 (Any other directories should still work fine.)
checking for default BUILD_CONFIG... 
checking for bison... bison -y
checking for bison... bison
checking for gm4... /usr/local/bin/gm4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... expect
checking for runtest... runtest
checking for ar... (cached) /usr/ccs/bin/ar
checking for as... (cached) /usr/ccs/bin/as
checking for dlltool... no
checking for ld... (cached) /usr/ccs/bin/ld
checking for lipo... no
checking for nm... (cached) /usr/ccs/bin/nm -p
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... (cached) /usr/local/bin/gobjcopy <---- excellent 
checking for objdump... (cached) /usr/local/bin/gobjdump <--- good 
checking for readelf... (cached) /usr/local/bin/greadelf <--- perfect 
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... gfortran
checking for gccgo... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objdump... no <------- bogus
checking for objdump... no <------- bogus
checking for ranlib... no
checking for ranlib... ranlib
checking for readelf... no <--- bogus 
checking for readelf... no <---- bogus 
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... host tool
checking where to find the target gfortran... just compiled
checking where to find the target gccgo... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool <--- I'm confused here
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile

So I have no idea how to make heads or tails out of that mess above.

Dennis


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