This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, I am trying to set up an powerpc-wrs-vxworks compiler hosted on a linux pc. My target is a MBX860 board. The cross compiler seems to have been compiled and installed without errors, I have used binutils 2.11.2, and gcc-2.95.3. Gcc was configured and installed like this: ../gcc-2.95.3/configure --target=powerpc-wrs-vxworks --enable- long-long --with-headers=/usr/tornado/target/h --enable-languages=c,c++ make all install (have also tried "make LANGUAGES="c c++" all install") To make it compile I had to do some small changes to libio: < ostream& vform(const char *format, _IO_va_list args); --- > ostream& vform(const char *format, void * args); in streambuf.h and iostream.h, I substituted _IO_va_list with void * four places. When compiling one of my applications after doing "make all install", this happens and I do not understand clearly why: ---- from my shell ------------- # make depend make[1]: Entering directory `/home/leifs/apps/KeyUtil/MrKeyUtil/obj.mbx' powerpc-wrs-vxworks-g++ -c -mcpu=860 -fvolatile -Wall -D_MBX -D__USE_MALLOC -fno-builtin -msoft-float -fno-exceptions -fno-rtti -I../../tornado/target/config -I../.. -O6 -DGZ -DGS_STATUS -I.. ../App.cxx In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/types/vxANSI.h:44, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/stdio.h:59, from ../../MD-DES/des.h:75, from ../App.h:3, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/types/vxCpu.h:200: #error CPU is not defined correctly In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/types/vxANSI.h:45, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/stdio.h:59, from ../../MD-DES/des.h:75, from ../App.h:3, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/types/vxArch.h:88: arch/mips/archMips.h: No such file or directory In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/setjmp.h:48, from ../../munin/MDbasicIncludes.h:45, from ../../munin/MDmunin.h:30, from ../App.h:4, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/regs.h:57: arch/mips/regsMips.h: No such file or directory In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/stl_config.h:151, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/stl_algobase.h:36, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/algorithm:30, from ../../munin/MDbasicIncludes.h:56, from ../../munin/MDmunin.h:30, from ../App.h:4, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../powerpc-wrs-vxworks/sys-include/_G_config.h:35: arch/mips/_G_configArch.h: No such file or directory In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/libio.h:30, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/streambuf.h:36, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/iostream.h:31, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/stl_algobase.h:53, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/algorithm:30, from ../../munin/MDbasicIncludes.h:56, from ../../munin/MDmunin.h:30, from ../App.h:4, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../powerpc-wrs-vxworks/sys-include/_G_config.h:35: arch/mips/_G_configArch.h: No such file or directory In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/streambuf.h:38, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/iostream.h:31, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/stl_algobase.h:53, from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/algorithm:30, from ../../munin/MDbasicIncludes.h:56, from ../../munin/MDmunin.h:30, from ../App.h:4, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../powerpc-wrs-vxworks/sys-include/_G_config.h:35: arch/mips/_G_configArch.h: No such file or directory In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/taskLib.h:117, from ../../munin/MDvxworks.h:24, from ../../munin/MDos.h:46, from ../../munin/MDbasicIncludes.h:85, from ../../munin/MDmunin.h:30, from ../App.h:4, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/excLib.h:62: arch/mips/excMipsLib.h: No such file or directory In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/usrLib.h:56, from ../../munin/MDvxworks.h:46, from ../../munin/MDos.h:46, from ../../munin/MDbasicIncludes.h:85, from ../../munin/MDmunin.h:30, from ../App.h:4, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/include/fppLib.h:62: arch/mips/fppMipsLib.h: No such file or directory In file included from /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../include/g++-3/cmath:6, from ../../libg++/builtin.h:33, from ../../libg++/MDModuleIncludes.h:5, from ../../munin/MDmunin.h:33, from ../App.h:4, from ../App.cxx:5: /usr/local/lib/gcc-lib/powerpc-wrs-vxworks/2.95.3/../../../../powerpc-wrs-vxworks/sys-include/_G_config.h:35: arch/mips/_G_configArch.h: No such file or directory make[1]: *** [App.o] Error 1 make[1]: Leaving directory `/home/leifs/apps/KeyUtil/MrKeyUtil/obj.mbx' make: *** [MrKeyUtil.module] Error 2 --------------cut----------------------- So, it says that the cpu is not defined correctly and it complaints about some missing files. I do not understand why the cpu is not defined since the configure command should be OK, and why is it asking for files in arch/mips/ which is not there? Has gcc somehow mixed ppc and mips due to error in the configuration? I would appreciate very much comments and tips on what the problem may be. Regards, Leif -- Leif Rune Solås R&D Engineer Q-Free Tolling AS Phone: +47 73826607 URL: www.q-free.com ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |