Hello,
the build of gcc 4.2.2 fails on AIX 6.1 during stage3 / libstdc++.

environment:
IBM AIX 6.1 TL0 SP2
XC C/C++ 9.0 
gcc 4.2.2 compiled on AIX 5.3

=====> stage_current: stage3

gmake[4]: Entering directory
`/opt/freeware/src/packages/BUILD/gcc-build/powerpc-ibm-aix6.1.0.0/libstdc++-v3/libmath'
/opt/freeware/bin/bash ../libtool --tag CC --mode=compile
/opt/freeware/src/packages/BUILD/gcc-build/./gcc/xgcc
-B/opt/freeware/src/packages/BUILD/gcc-build/./gcc/
-B/opt/freeware/powerpc-ibm-aix6.1.0.0/bin/
-B/opt/freeware/powerpc-ibm-aix6.1.0.0/lib/ -isystem
/opt/freeware/powerpc-ibm-aix6.1.0.0/include -isystem
/opt/freeware/powerpc-ibm-aix6.1.0.0/sys-include -DHAVE_CONFIG_H -I.
-I../../../../gcc-4.2.2/libstdc++-v3/libmath -I..     -O2 -O2
-I/opt/freeware/include  -c -o stubs.lo
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c
/opt/freeware/src/packages/BUILD/gcc-build/./gcc/xgcc
-B/opt/freeware/src/packages/BUILD/gcc-build/./gcc/
-B/opt/freeware/powerpc-ibm-aix6.1.0.0/bin/
-B/opt/freeware/powerpc-ibm-aix6.1.0.0/lib/ -isystem
/opt/freeware/powerpc-ibm-aix6.1.0.0/include -isystem
/opt/freeware/powerpc-ibm-aix6.1.0.0/sys-include -DHAVE_CONFIG_H -I.
-I../../../../gcc-4.2.2/libstdc++-v3/libmath -I.. -O2 -O2
-I/opt/freeware/include -c ../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c
-o stubs.o
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:47: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:48: error: conflicting types
for 'fabs'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'fabs':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:49: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:49: error: (Each undeclared
identifier is reported only once
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:49: error: for each function
it appears in.)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:64: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:65: error: conflicting types
for 'acos'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'acos':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:66: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:81: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:82: error: conflicting types
for 'asin'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'asin':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:83: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:98: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:99: error: conflicting types
for 'atan'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'atan':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:100: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:115: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:115: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:116: error: conflicting
types for 'atan2'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'atan2':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:117: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:117: error: 'y' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:132: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:133: error: conflicting
types for 'ceil'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'ceil':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:134: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:149: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:150: error: conflicting
types for 'cos'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'cos':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:151: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:166: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:167: error: conflicting
types for 'cosh'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'cosh':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:168: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:183: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:184: error: conflicting
types for 'exp'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'exp':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:185: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:200: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:201: error: conflicting
types for 'floor'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'floor':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:202: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:217: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:217: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:218: error: conflicting
types for 'fmod'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'fmod':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:219: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:219: error: 'y' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:235: error: redefinition of
'frexpl'
/opt/freeware/src/packages/BUILD/gcc-build/./gcc/include/math.h:576: error:
previous definition of 'frexpl' was here
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:251: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:252: error: conflicting
types for 'sqrt'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'sqrt':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:253: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:285: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:285: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:286: error: conflicting
types for 'hypot'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'hypot':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:287: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:287: error: 'y' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:308: error: redefinition of
'ldexpl'
/opt/freeware/src/packages/BUILD/gcc-build/./gcc/include/math.h:581: error:
previous definition of 'ldexpl' was here
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:324: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:325: error: conflicting
types for 'log'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'log':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:326: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:341: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:342: error: conflicting
types for 'log10'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'log10':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:343: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:363: error: redefinition of
'modfl'
/opt/freeware/src/packages/BUILD/gcc-build/./gcc/include/math.h:587: error:
previous definition of 'modfl' was here
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:383: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:383: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:384: error: conflicting
types for 'pow'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'pow':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:385: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:385: error: 'y' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:400: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:401: error: conflicting
types for 'sin'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'sin':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:402: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:417: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:418: error: conflicting
types for 'sinh'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'sinh':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:419: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:434: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:435: error: conflicting
types for 'tan'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'tan':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:436: error: 'x' undeclared
(first use in this function)
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: At top level:
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:451: error: expected
declaration specifiers or '...' before '(' token
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:452: error: conflicting
types for 'tanh'
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c: In function 'tanh':
../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:453: error: 'x' undeclared
(first use in this function)
gmake[4]: *** [stubs.lo] Error 1
gmake[4]: Leaving directory
`/opt/freeware/src/packages/BUILD/gcc-build/powerpc-ibm-aix6.1.0.0/libstdc++-v3/libmath'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/opt/freeware/src/packages/BUILD/gcc-build/powerpc-ibm-aix6.1.0.0/libstdc++-v3'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/opt/freeware/src/packages/BUILD/gcc-build/powerpc-ibm-aix6.1.0.0/libstdc++-v3'
gmake[1]: *** [all-target-libstdc++-v3] Error 2
gmake[1]: Leaving directory `/opt/freeware/src/packages/BUILD/gcc-build'
gmake: *** [bootstrap-lean] Error 2
Bad exit status from /tmp/rpm-tmp.22206 (%build)

This is the tmp rpm build script:

#!/bin/sh

RPM_SOURCE_DIR="/opt/freeware/src/packages/SOURCES"
RPM_BUILD_DIR="/opt/freeware/src/packages/BUILD"
RPM_OPT_FLAGS="-O2 -fsigned-char"
RPM_ARCH="ppc"
RPM_OS="aix"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/opt/freeware/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="gcc"
RPM_PACKAGE_VERSION="4.2.2"
RPM_PACKAGE_RELEASE="2"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/tmp/gcc-4.2.2-root"
export RPM_BUILD_ROOT

set -x
umask 022
cd /opt/freeware/src/packages/BUILD
cd gcc-4.2.2
# speed up the configure processes...
export CONFIG_SHELL=/opt/freeware/bin/bash
export CONFIGURE_ENV_ARGS=/opt/freeware/bin/bash

cd ..
rm -rf gcc-build
mkdir gcc-build
cd gcc-build
CC=cc \
BOOT_CFLAGS="-O2 -I/opt/freeware/include" \
CFLAGS="-O2 -I/opt/freeware/include" \
CXXFLAGS="-O2 -I/opt/freeware/include" \
LIBCFLAGS="-O2 -I/opt/freeware/include" \
LIBCXXFLAGS="-O2 -I/opt/freeware/include -fno-implicit-templates" \
LDFLAGS="-L/opt/freeware/lib" \
../gcc-4.2.2/configure \
--with-as=/usr/bin/as \
--with-ld=/usr/bin/ld \
--enable-languages="c,c++,fortran" \
--prefix=/opt/freeware \
--enable-threads \
--enable-version-specific-runtime-libs \
--disable-nls \
--enable-decimal-float=dpd \
--host=powerpc-ibm-aix6.1.0.0

ulimit -d unlimited
ulimit -s unlimited
gmake -j 1 \
        CFLAGS='-O2 -I/opt/freeware/include' \
        CXXFLAGS='-O2 -I/opt/freeware/include' \
        LIBCFLAGS='-O2 -I/opt/freeware/include' \
        LIBCXXFLAGS='-O2 -I/opt/freeware/include -fno-implicit-templates' \
        BOOT_CFLAGS='-O2 -I/opt/freeware/include' \
        bootstrap-lean

# remove the "-print-multi-os-directory" flag...
sed -e "s/MULTIOSDIR = \`\$(CC) \$(LIBCFLAGS)
-print-multi-os-directory\`/MULTIOSDIR = ./" libiberty/Makefile > Makefile.tmp
mv -f Makefile.tmp libiberty/Makefile


exit 0

Is this a known problem ?


Bye
  Rainer


-- 
           Summary: build of gcc 4.2.2 fails on AIX 6.1 /  libstdc++-
                    v3/libmath/stubs.c:47
           Product: gcc
           Version: 4.2.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tammer at tammer dot net
 GCC build triplet: AIX 6.1
  GCC host triplet: AIX 6.1
GCC target triplet: AIX 6.1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34794

Reply via email to