This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

'make cross' needs gcc-g++ ?!


Hello,

Don't know if it is a bug or feature, but 'make cross' doesn't work if
only gcc-core is installed. It needs gcc-g++ to be installed as
well. Well, I re-read crossgcc FAQ and didn't find references to
'cross' target for make. Is it just obsolete or it never was an intended
way to make cross compiler? 'make all' works fine, so I hope there is no
actual trouble here.

Example: 

$ mkdir tmp; cd tmp
$ tar -xzf ../archive/gcc-core-2.95.1.tar.gz
$ mkdir build; cd build
$ ../gcc-2.95.1/configure --target=ppc-eabi
...
Links are now set up to build a cross-compiler for powerpc-unknown-eabi
  from i686-pc-linux-gnu.
...
$ make cross
...
make[1]: *** No rule to make target `c++', needed by `native'.  Stop.
make[1]: Leaving directory `/home/osv/tmp/build/gcc'
make: *** [cross] Error 2
$ make cross LANGUAGES=c
...
Building the C and C++ compiler
make[1]: Entering directory `/home/osv/tmp/build/gcc'
(cd intl && make all)
make[2]: Entering directory `/home/osv/tmp/build/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/osv/tmp/build/gcc/intl'
make[1]: *** No rule to make target `c++', needed by `native'.  Stop.
make[1]: Leaving directory `/home/osv/tmp/build/gcc'
make: *** [cross] Error 2
$

Thanks,
Sergei Organov.


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