This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

glibc-2.3.3 & scripts/check-c++-types.sh


Hi,
   Using crosstool-0.28-rc37 I built a gcc-3.3.4-glibc-2.3.3 toolchain for
ppc750.  While running the regression tests for the toolchain
scripts/check-c++-types.sh failed.  On investigating more I discovered that
the test is invoked from glibc-2.3.3/Makefile in the following manner :

$(objpfx)c++-types-check.out:
scripts/data/c++-types-$(config-machine)-$(config-os).data
 scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS))
$(CPPFLAGS) > $@

build-glibc/config.make lists CC, CXX & HOST_CC as follows 

# Build tools 
CC = powerpc-750-linux-gnu-gcc
CXX = g++
BUILD_CC = gcc

and hence in the above rule CXX gets translated to g++ and not
powerpc-750-linux-gnu-g++.  When run as g++ the test fails and passes when
run with powerpc-750-linux-gnu-g++.

  After applying the following patch and I was able to build the tool-chain
successfully.  I haven't been able to check if the test passes or not (I
expect it to pass since config.make now lists CXX =
powerpc-750-linux-gnu-g++).

--- crosstool-0.28-rc37/crosstool.sh.orig       2004-12-01
08:47:16.000000000 -0800
+++ crosstool-0.28-rc37/crosstool.sh    2004-12-01 08:48:22.000000000 -0800
@@ -357,7 +357,7 @@
     # Set BUILD_CC, or you won't be able to build datafiles
     # Set --build, else glibc-2.3.2 will think you're not cross-compiling,
and try to run the test programs

-    BUILD_CC=gcc CFLAGS="$TARGET_CFLAGS $EXTRA_TARGET_CFLAGS"
CC="${TARGET}-gcc $GLIBC_EXTRA_CC_ARGS" \
+    BUILD_CC=gcc CFLAGS="$TARGET_CFLAGS $EXTRA_TARGET_CFLAGS"
CC="${TARGET}-gcc $GLIBC_EXTRA_CC_ARGS" CXX="${TARGET}-g++" \
     AR=${TARGET}-ar RANLIB=${TARGET}-ranlib \
         ${GLIBC_DIR}/configure --prefix=/usr \
        --build=$BUILD --host=$TARGET \



ankur

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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