[Bug target/11096] New: i686-linux to sh-linux cross compiler fails to compile C++ files
dank@kegel.com
gcc-bugzilla@gcc.gnu.org
Thu Jun 5 04:41:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11096
Summary: i686-linux to sh-linux cross compiler fails to compile
C++ files
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dank@kegel.com
CC: gcc-bugs@gcc.gnu.org
GCC build triplet: i686-linux
GCC host triplet: sh-linux
GCC target triplet: sh-linux
This is the same as bug 3774, but for SH instead of arm.
Compiling a 'hello, world' c++ program spews errors of the sort
.../g++-v3/bits/std_cstdio.h:145: `vfscanf' not declared
unless -D_ISOC9X_SOURCE is passed to the compiler.
The fix for arm appears to have been
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/arm/linux-elf.h.diff?r1=1.31&r2=1.32
which predefines _GNU_SOURCE, with the comment
/* The GNU C++ standard library currently requires _GNU_SOURCE *
Looks like other architectures might need this, too. I'm attaching a patch
for sh4. No idea if it's actually right yet, but it seems logical.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Gcc-bugs
mailing list