This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
gcc-3.1 + libstdc++-v3.0.97 cross compile ok?
- From: Brad Spencer <spencer at infointeractive dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 28 May 2002 18:45:34 -0300
- Subject: gcc-3.1 + libstdc++-v3.0.97 cross compile ok?
Should I be able to cross-compile (i386-sun-solaris2.6 to
sparc64-sun-solaris2.8) with gcc-3.1 and libstdc++-v3.0.97? I've been
working with the compiler folks on some 64-bit bugs, and once all that
was ironed out, I tried to set up the compiler on my (fast) build
machine. I ran into some snags where it _looks_ like
libstdc++-v3.0.97 was picking up host features and putting them in
c++config.h as if they were valid for the target.
Before I look any further, is this a known issue? BTW, I did get it
to work simply by editing c++config.h by hand.
Example errors, for the record:
/bin/sh ../libtool --tag CXX --mode=compile
/starbug/spencer/devel/gcc-cross/build-gcc/gcc/xgcc -shared-libgcc
-B/starbug/spencer/devel/gcc-cross/build-gcc/gcc/ -nostdinc++
-L/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/src
-L/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/src/.libs
-B/opt/gcc-3.1-cross-sparc64-sun-solaris2.8/sparc64-sun-solaris2.8/bin/
-B/opt/gcc-3.1-cross-sparc64-sun-solaris2.8/sparc64-sun-solaris2.8/lib/
-isystem
/opt/gcc-3.1-cross-sparc64-sun-solaris2.8/sparc64-sun-solaris2.8/include
-nostdinc++
-I/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/sparc64-sun-solaris2.8
-I/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include
-I../../../../gcc-3.1/libstdc++-v3/libsupc++
-I../../../../gcc-3.1/libstdc++-v3/libmath -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -g -c basic_file.cc
In file included from
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/bits/locale_facets.tcc:41,
from
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/locale:46,
from
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/bits/istream.tcc:37,
from
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/istream:287,
from
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/fstream:45,
from
../../../../gcc-3.1/libstdc++-v3/src/globals.cc:30:
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::acos(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:104:
`::
acosf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::asin(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:122:
`::
asinf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::atan(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:140:
`::
atanf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::atan2(float, float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:158:
`::
atan2f' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::ceil(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:178:
`::
ceilf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::cosh(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:206:
`::
coshf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::exp(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:224:
`::
expf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::floor(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:252:
`::
floorf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::fmod(float, float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:270:
`::
fmodf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::frexp(float, int*)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:290:
`::
frexpf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::ldexp(float, int)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:309:
`::
ldexpf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::log(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:329:
`::
logf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::log10(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:347:
`::
log10f' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::pow(float, float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:404:
`::
powf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::sinh(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:446:
`::
sinhf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::tan(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:474:
`::
tanf' undeclared (first use here)
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:
In
function `float std::tanh(float)':
/starbug/spencer/devel/gcc-cross/build-gcc/sparc64-sun-solaris2.8/libstdc++-v3/include/cmath:492:
`::
tanhf' undeclared (first use here)
make[3]: *** [globals.lo] Error 1
--
-----------------------------------------------------------------
Brad Spencer - spencer@infointeractive.com - "It's quite nice..."
Systems Architect | InfoInterActive Corp. | An AOL Company