This is the mail archive of the gcc-bugs@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]

target/10105: cross-compilation for sparc-sun-solaris2.8 fails while building sparcv9 multilibs


>Number:         10105
>Category:       target
>Synopsis:       cross-compilation for sparc-sun-solaris2.8 fails while building sparcv9 multilibs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 16 11:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Georgy Yunaev
>Release:        gcc-3.2.2
>Organization:
>Environment:
bash-2.05b$ uname -a
CYGWIN_NT-5.0 tim 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown Cygwin

bash-2.05b$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /netrel/src/gcc-3.2-3/configure --enable-languages=c,c++,f77,java --enable-libgcj --enable-threads=posix --with-system-zlib --enable-nls --without-included-gettext --enable-interpreter -disable-sjlj-exceptions --disable-version-specific-runtime-libs --enable-shared --build=i686-pc-linux --host=i686-pc-cygwin --target=i686-pc-cygwin --enable-haifa --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --includedir=/nonexistent/include --libexecdir=/usr/sbin
Thread model: posix
gcc version 3.2 20020927 (prerelease)
>Description:
gcc/config.gcc (line 3195) always tries to build multilibs while making cross-compiler for sparc-sun-solaris2.8:

	case $machine in
	*-*-solaris2.[789])
		tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
		if test x$gnu_ld = xyes; then
			tm_file="${tm_file} sparc/sol2-gld-bi.h"
		fi
		if test x$gas = xyes; then
			tm_file="${tm_file} sparc/sol2-gas-bi.h"
		fi
		tmake_file="$tmake_file sparc/t-sol2-64"
		;;
	esac

but while making it, it tries to link the target libs against object files $target/lib directory, not in $target/lib/64/ or $target/lib/sparcv9. Build fails with ld error.
>How-To-Repeat:
<build binutils with --target=sparc-sun-solaris2.8, install them, and install native Sparc headers/libs into $prefix/$target/include and $prefix/$target/libs>

./configure --target=sparc-sun-solaris2.8
make
it'll fail during libiberty linking
>Fix:
$prefix/$target/include
>Release-Note:
>Audit-Trail:
>Unformatted:


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