[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: solaris 2.7 binutils problem

From: Nils Lohner
Subject: Re: solaris 2.7 binutils problem
Date: Mon, 24 Sep 2001 14:31:18 +0200

On Fri, 21 Sep 2001 11:33:23 -0400, Phil Edwards wrote:
>On Fri, Sep 21, 2001 at 12:46:36AM -0400, Jeff Sturm wrote:
>> On Thu, 20 Sep 2001, Phil Edwards wrote:
>> > kind (e.g., GNU's) is actually found.  If you plan on using GNU
>> > binutils, then you must configure GCC using the appropriate --with
>> > options.
>> Regardless, configuring without arguments should build a usable
>> compiler.
>I don't disagree.

I definitely agree.  Could the utilities in the path be checked first (I
have the path with the GNU utils before the solaris ones), esp. since
that's what I specify with --prefix=/sup for installation.

Can't you simply determine the binnutils at config time and use then
with full paths later on?

In general, I expect any program that configures without warnings to
build cleanly as well.  It's only when I see warnings that I read
INSTALL files etc. since most GNU utils and other autoconf'ed programs
are very well behaved and build and install easily.  I'm sure others
build and install tools the same way.  Having a clean install if
configure passes is pretty much standard practice these days I think.

>> The workaround is to always specify --with-ld and/or --with-gnu-ld
>> when configuring on solaris.
>Like I said... :-)
>Actually, both of those need to be used on Solaris, when using GNU's
>binutils, unless building from a unified source tree (when the
>configury can generally figure these things out on its own).

My current compile line:
/sup/build/gcc-3.0.1/build > ../configure --prefix=/sup --with-gnu-ld 
--with-gnu-nm --with-gnu-as
/sup/build/gcc-3.0.1/build > time make bootstrap 
...it got further to:

creating libgcjgc.la
(cd .libs && rm -f libgcjgc.la && ln -s ../libgcjgc.la libgcjgc.la)
make "AR_FLAGS=rc"  "CC_FOR_BUILD=gcc"  "CFLAGS=-g -O2"  "CXXFLAGS=-g -O2"  
/sup/build/gcc-3.0.1/install-sh -c"  "INSTALL_DATA=/bin/sh 
/sup/build/gcc-3.0.1/install-sh -c -m 644"  "INSTALL_PROGRAM=/bin/sh 
/sup/build/gcc-3.0.1/install-sh -c"  "INSTALL_SCRIPT=/bin/sh 
/sup/build/gcc-3.0.1/install-sh -c"  "LDFLAGS="  "LIBCFLAGS=-g -O2"  
"LIBCFLAGS_FOR_TARGET=-g -O2"  "MAKE=make"  "MAKEINFO=makeinfo "  "PICFLAG="  
"PICFLAG_FOR_TARGET="  "SHELL=/bin/sh"  "EXPECT=expect"  "RUNTEST=runtest"  
"RUNTESTFLAGS="  "exec_prefix=/sup"  "infodir=/sup/info"  "libdir=/sup/lib"  
"prefix=/sup"  "tooldir=/sup/sparc-sun-solaris2.7"  "AR=ar"  
"AS=/sup/sparc-sun-solaris2.7/bin/as"  "CC=/sup/build/gcc-3.0.1/build/gcc/xgcc 
-B/sup/build/gcc-3.0.1/build/gcc/ -B/sup/sparc-sun-solaris2.7/bin/ 
-B/sup/sparc-sun-solaris2.7/lib/ -isystem /sup/sparc-sun-solaris2.7/include"  
"CXX=/sup/build/gcc-3.0.1/build/gcc/g++ -B/sup/build/gcc-3.0.1/build/gcc/ -!
nostdinc++ -nostdinc++ 
-B/sup/sparc-sun-solaris2.7/bin/ -B/sup/sparc-sun-solaris2.7/lib/ -isystem 
/sup/sparc-sun-solaris2.7/include"  "LD=/sup/sparc-sun-solaris2.7/bin/ld"  
"LIBCFLAGS=-g -O2"  "NM=/sup/sparc-sun-solaris2.7/bin/nm"  "PICFLAG="  
"RANLIB=true"  "DESTDIR=" DO=all multi-do
if [ -z "" ]; then \
  true; \
else \
  rootpre=`pwd`/; export rootpre; \
  srcrootpre=`cd ../../../boehm-gc; pwd`/; export srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
-B/sup/build/gcc-3.0.1/build/gcc/ -B/sup/sparc-sun-solaris2.7/bin/ 
-B/sup/sparc-sun-solaris2.7/lib/ -isystem /sup/sparc-sun-solaris2.7/include"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; make  \
                        CFLAGS="-g -O2 ${flags}" \
                        prefix="/sup" \
                        exec_prefix="/sup" \
                        GCJFLAGS="@GCJFLAGS@ ${flags}" \
                        CXXFLAGS="-g -O2 ${flags}" \
                        LIBCFLAGS="-g -O2 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -fno-implicit-templates ${flags}" \
                        LDFLAGS=" ${flags}" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
mksh: Fatal error in reader: = missing from replacement macro reference
Current working directory 
*** Error code 1
make: Fatal error: Command failed for target `all-target-libjava'
Current working directory /sup/build/gcc-3.0.1/build
*** Error code 1
make: Fatal error: Command failed for target `bootstrap'
241.48u 138.38s 12:06.67 52.2%
/sup/build/gcc-3.0.1/build > 

...suggestions welcome.


Attachment: pgpm0aLbcZXcg.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]