Elden Crom wrote:
On an 'Linux eldenlinux2 2.6.31-17-generic i686 GNU/Linux' with 'gcc
version 4.4.1' I tried several variants of:
./gcc-4.4.3/configure --target=m68k-uclinux --enable-multilib
--enable-threads \
--disable-libmudflap --disable-libssp --disable-libgomp \
--enable-languages=c,c++ \
--disable-nls \
--disable-lto
(Not that I understand all of the options.) I get:
Configuring in m68k-uclinux/libstdc++-v3
..
checking for shl_load... configure: error: Link tests are not allowed
after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libstdc++-v3] Error 1
..
The prerequisites for producing GCC from sources should be quite
well-known :
1. the target binutils (a native system has these usually, for a
cross-host they must be built and
installed)
2. the target C library (a native system has this usually, for a
cross-host it must be installed)
When configuring libstdc++ the target C library will be investigated via
link tests. If one
cannot even compile and link a "Hello World" with the just made new
GCC, ie. there is
no headers and libraries for the target or something is wrong in them,
then libstdc++ cannot
be configured and built....
Probably somewhere there is a pre-made 'uClibc' for 'uCLinux/m68k'. If
so, then download
and install it where it belongs! If not, you must build it from its
sources and install it before
you can continue.
Installing (only) GCC happens via the (should be) well-known :
make install-gcc
With gcc-4.4.3 you probably must install 'libgcc' separately :
make install-target-libgcc
After doing this you can try a "Hello World" for 'm68k-uclinux' and see
what is wrong...