bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/11740] New: GOLD build fails, vasprintf undefined on solaris


From: Daniel dot Davies at xerox dot com
Subject: [Bug gold/11740] New: GOLD build fails, vasprintf undefined on solaris
Date: 22 Jun 2010 22:03:45 -0000

I encountered this bug while building gcc-4.5.0.  The GCC folks said to reort it
to you since you maintain GOLD.  Here's what I did.

Download and unpack libelf-0.8.13, binutils-2.20, gcc-core-4.5.0,
gcc-g++-4.5.0, gmp-4.3.2, mpfr-2.4.2, mpc-0.8.2, ppl-0.10.2 into peer
directories.

Symbolic links inside gcc-4.5.0
> ln -s ../binutils-2.20/bfd
> ln -s ../binutils-2.20/binutils
> ln -s ../binutils-2.20/elfcpp
> ln -s ../binutils-2.20/gas
> ln -s ../binutils-2.20/gold
> ln -s ../binutils-2.20/gprof
> ln -s ../binutils-2.20/ld
> ln -s ../binutils-2.20/opcodes
> ln -s ../mpc-0.8.2 mpc
> ln -s ../mpfr-2.4.2 mpfr
> ln -s ../gmp-4.3.2 gmp

CONFIG_SHELL = /usr/bin/ksh
version of gcc/g++ used to build stage1 = 4.4.4
version of make = 3.81
version of flex = 2.5.4

Work around gcc bug 44621 so that gold is built.

Create a directory named "build" as a peer to gcc-4.5.0, enter it and configure
a build of gcc-4.5.0 as follows:

$TOOL/gcc/4.5.0/gcc-4.5.0/configure
--prefix=$TOOL/gcc/4.5.0/i386-pc-solaris2.10 --with-gnu-as --with-gnu-ld
--enable-shared  --enable-lto --with-libelf=/usr/local --disable-multilib
--enable-gold --enable-stage1-languages=c,c++ i686-pc-solaris2.10

The "make bootstrap" fails while building gold:

make[5]: Entering directory `/tool/gcc/4.5.0/build/gold'
g++ -DHAVE_CONFIG_H -I. -I/tool/gcc/4.5.0/gcc-4.5.0/gold 
-I/tool/gcc/4.5.0/gcc-4.5.0/gold -I/tool/gcc/4.5.0/gcc-4.5.0/gold/../include
-I/tool/gcc/4.5.0/gcc-4.5.0/gold/../elfcpp
-DLOCALEDIR="\"/tool/gcc/4.5.0/i386-pc-solaris2.10/share/locale\""
-DBINDIR="\"/tool/gcc/4.5.0/i386-pc-solaris2.10/bin\""
-DTOOLBINDIR="\"/tool/gcc/4.5.0/i386-pc-solaris2.10/i686-pc-solaris2.10/bin\""
-I./../intl  -W -Wall   -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-frandom-seed=incremental.o -g -fkeep-inline-functions -MT incremental.o -MD
-MP -MF .deps/incremental.Tpo -c -o incremental.o
/tool/gcc/4.5.0/gcc-4.5.0/gold/incremental.cc
/tool/gcc/4.5.0/gcc-4.5.0/gold/incremental.cc: In function 'void
gold::vexplain_no_incremental(const char*, char*)':
/tool/gcc/4.5.0/gcc-4.5.0/gold/incremental.cc:240: error: 'vasprintf' was not
declared in this scope
make[5]: *** [incremental.o] Error 1
make[5]: Leaving directory `/tool/gcc/4.5.0/build/gold'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tool/gcc/4.5.0/build/gold'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tool/gcc/4.5.0/build/gold'
make[2]: *** [all-stage1-gold] Error 2
make[2]: Leaving directory `/tool/gcc/4.5.0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tool/gcc/4.5.0/build'
make: *** [bootstrap] Error 2

So far as I can tell by pawing through /usr/include, /usr/local/*,
/opt/SUNWspro, /ops/sfw and the directories that gcc-4.4.4 and gcc-4.5.0 are
built into and later installed into, there is no prototype for vasprintf on the
system.  There are prototypes for vsprintf, sprintf, fprintf, etc.

-- 
           Summary: GOLD build fails, vasprintf undefined on solaris
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: ian at airs dot com
        ReportedBy: Daniel dot Davies at xerox dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-solaris2.10
  GCC host triplet: i686-pc-solaris2.10
GCC target triplet: i686-pc-solaris2.10


http://sourceware.org/bugzilla/show_bug.cgi?id=11740

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

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