target/6228: [3.1 regression] _GNU_SOURCE not defined for arm-linux target
jeroen.dobbelaere@acunia.com
jeroen.dobbelaere@acunia.com
Mon Apr 8 07:26:00 GMT 2002
>Number: 6228
>Category: target
>Synopsis: [3.1 regression] _GNU_SOURCE not defined for arm-linux target
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Apr 08 07:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: jeroen.dobbelaere@acunia.com
>Release: 3.1 20020408 (prerelease)
>Organization:
>Environment:
System: Linux xingu-07 2.4.16-rmk1-xng1 #45 Mon Apr 8 11:19:11 CEST 2002 armv5l unknown
Architecture: armv5l
host: armv5l-unknown-linux-gnu
build: armv5l-unknown-linux-gnu
target: armv5l-unknown-linux-gnu
configured with: ../gcc-3.1.0-pre20020408/configure --prefix=/tmp/gcc310pre --with-cpu=xscale --enable-languages=c,c++
>Description:
C++ tests fail on arm because '_GNU_SOURCE' is not defined.
This is a regression with respect to gcc-3.0.4
build compiler for c,c++; execute the build tests.
libstdc++ tests will look like :
Running /usr/src/build/tmp/gcc-3.1.0-pre20020408/libstdc++-v3/testsuite/libstdc++-v3.dg/dg.exp ...
FAIL: 17_intro/header_cstdio.cc (test for excess errors)
WARNING: 17_intro/header_cstdio.cc compilation failed to produce executable
FAIL: 17_intro/header_cstdlib.cc (test for excess errors)
WARNING: 17_intro/header_cstdlib.cc compilation failed to produce executable
FAIL: 17_intro/header_cwchar.cc (test for excess errors)
WARNING: 17_intro/header_cwchar.cc compilation failed to produce executable
FAIL: 17_intro/header_fstream.cc (test for excess errors)
WARNING: 17_intro/header_fstream.cc compilation failed to produce executable
FAIL: 17_intro/header_iomanip.cc (test for excess errors)
WARNING: 17_intro/header_iomanip.cc compilation failed to produce executable
FAIL: 17_intro/header_ios.cc (test for excess errors)
WARNING: 17_intro/header_ios.cc compilation failed to produce executable
FAIL: 17_intro/header_iosfwd.cc (test for excess errors)
WARNING: 17_intro/header_iosfwd.cc compilation failed to produce executable
FAIL: 17_intro/header_iostream.cc (test for excess errors)
WARNING: 17_intro/header_iostream.cc compilation failed to produce executable
FAIL: 17_intro/header_istream.cc (test for excess errors)
WARNING: 17_intro/header_istream.cc compilation failed to produce executable
>How-To-Repeat:
Get an arm system, build your compiler for c,c++.
make the test suite.
>Fix:
Add
/* The GNU C++ standard library requires that these macros be defined. */
#undef CPLUSPLUS_CPP_SPEC
#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
to 'gcc/arm/linux-elf.h'
(see <http://gcc.gnu.org/ml/gcc-patches/2002-03/msg00575.html>)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list