This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/8505: cross cpp0 use PREFIX_INCLUDE_DIR=$prefix/include
- From: stephane dot carbillet at jaluna dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: benoit dot poulot-cazajou at jaluna dot com
- Date: 8 Nov 2002 14:37:22 -0000
- Subject: preprocessor/8505: cross cpp0 use PREFIX_INCLUDE_DIR=$prefix/include
- Reply-to: stephane dot carbillet at jaluna dot com
>Number: 8505
>Category: preprocessor
>Synopsis: cross cpp0 use PREFIX_INCLUDE_DIR=$prefix/include
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Nov 08 06:46:03 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: stephane.carbillet@jaluna.com
>Release: gcc3.2
>Organization:
>Environment:
redhat 7.3
>Description:
I first build a native gcc with prefix :
/home/scarbill/buildLDS/build-LDS/Dist
Then I build a cross gcc with command :
/home/scarbill/buildLDS/build-LDS/Src/GCC/configure --host=i686-pc-linux-gnu
--prefix=/home/scarbill/buildLDS/build-LDS/Dist --target=powerpc-linux --with-he
aders=/home/scarbill/buildLDS/build-LDS/Cross/glibc/powerpc-linux/include --with
-libs=/home/scarbill/buildLDS/build-LDS/Cross/glibc/powerpc-linux/lib --enable-l
anguages=c,c++
The build fails with message :
/home/scarbill/buildLDS/build-LDS/Build/GCC-phaseB-powerpc-linux/gcc/xgcc
-B/home/scarbill/buildLDS/build-LDS/Build/GCC-phaseB-powerpc-linux/gcc/
-B/home/scarbill/buildLDS/build-LDS/Dist/powerpc-linux/bin/
-B/home/scarbill/buildLDS/build-LDS/Dist/powerpc-linux/lib/ -isystem
/home/scarbill/buildLDS/build-LDS/Dist/powerpc-linux/include -c
-DHAVE_CONFIG_H -g -O2 -I.
-I/home/scarbill/buildLDS/build-LDS/Src/GCC/libiberty/../include -W
-Wall -Wtraditional -pedantic
/home/scarbill/buildLDS/build-LDS/Src/GCC/libiberty/floatformat.c
/home/scarbill/buildLDS/build-LDS/Src/GCC/libiberty/floatformat.c: In
function `floatformat_to_double':
/home/scarbill/buildLDS/build-LDS/Dist/include/bits/mathinline.h:524:
inconsistent operand constraints in an `asm'
..........
The file "/home/scarbill/buildLDS/build-LDS/Dist/include/bits/mathinline.h" is intel specific.
>How-To-Repeat:
Make a native gcc and after a cross gcc with the same prefix.
>Fix:
diff -ru gcc-3.2-old/gcc/configure GCC/gcc/configure
--- gcc-3.2-old/gcc/configure Sat Jun 29 02:20:11 2002
+++ GCC/gcc/configure Thu Nov 7 19:29:09 2002
@@ -7892,7 +7892,7 @@
fi
-if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then
+if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" && test "$cross_compiling" = yes ; then
cat >> confdefs.h <<EOF
#define PREFIX_INCLUDE_DIR "$prefix/include"
EOF
>Release-Note:
>Audit-Trail:
>Unformatted: