This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cross Compiler and Linker for Linux
Peter Barada wrote:
>
> >This fails with the same error as before: unable to find the header
> >files for tanhf and other assorted floating-point functions. (I'm
> >presuming it won't be able to link with them, either.)
> >
> >Ideas, hints, tips, solutions, and bonks on my head are most welcome.
>
> Try using absolute pathnames in the configure:
>
> 6) ../gcc-3.3/configure --prefix=/usr/local/cc/sparc-solaris \
> --target=sparc-solaris --with-libs=/absolute/path/to/./sparc-solaris/sparc-solaris \
> --with-headers=/absolute/path/to/./sparc-solaris/sys-include --with-gnu-as \
> --with-gnu-ld
>From the RPM specification I use.
../gcc-%{gcc_version}/configure --target=sparc-solaris \
--with-gnu-as --with-gnu-ld --without-newlib --verbose \
--disable-shared --disable-nls --enable-languages=c,ada \
--prefix=%{prefix}
Notice the --enable-languages is only c and ada.
I vaguely recall not being able to build C++ because of the same thing
you are seeing now. Some math functions are NOT there in the
headers and libraries. Does C++ build natively on Solaris? Is so, how
does
it get past this point?
> --
> Peter Barada Peter.Barada@motorola.com
> Wizard 781-852-2768 (direct)
> WaveMark Solutions(A Motorola Company) 781-270-0193 (fax)
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985