This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
g++.dg/compat/compat.exp sets LD_LIBRARY_PATH properly for native build/test, but that setting causes compilation to fail when building/testing a crosscompiler. The simplest fix is to not touch LD_LIBRARY_PATH et al when crosscompiling, and let the remote target worry about the runtime environment. Please apply http://www.kegel.com/crosstool/current/gcc-3.4-20030813-patches/compat.exp.patch Thanks!
Same problem occurs in g++.exp. Fix is in last hunk of http://www.kegel.com/crosstool/current/gcc-3.4-20030813-patches/gcc-3.4-20030813-g++.exp.patch
Can you please post your patches to gcc-patches@gcc.gnu.org?
OK. Cleaned-up patch posted as http://gcc.gnu.org/ml/gcc-patches/2003-08/msg01257.html
Subject: Bug 12009 CVSROOT: /cvs/gcc Module name: gcc Changes by: steven@gcc.gnu.org 2003-12-18 19:39:58 Modified files: gcc/testsuite : ChangeLog gcc/testsuite/g++.dg/compat: compat.exp gcc/testsuite/lib: g++.exp Log message: PR other/12009 * g++.dg/compat/compat.exp: Do not set LD_LIBRARY_PATH when testing a cross compiler, it causes spurious compile failures. * lib/g++.exp: Likewise. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3281&r2=1.3282 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/compat/compat.exp.diff?cvsroot=gcc&r1=1.3&r2=1.4 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/lib/g++.exp.diff?cvsroot=gcc&r1=1.34&r2=1.35
Patch applied, so should be fixed now :-)