Author Topic: Compilation error  (Read 1771 times)

slenkar (OP)

  • *
  • Posts: 45
Compilation error
« on: April 22, 2014, 02:28:17 am »
Im trying to compile a master system emulator for GCW Zero,. It uses QT

# make
/opt/gcw0-toolchain/usr/bin/mipsel-gcw0-linux-uclibc-g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/root/qt-static/mkspecs/linux-g++ -I. -I/root/qt-static/include/QtCore -I/root/qt-static/include/QtGui -I/root/qt-static/include/QtOpenGL -I/root/qt-static/include/ -I/root/qt-static/include/QT -I. -Icpu -Iosmose -Iunzip -I. -I. -o EmulationThread.o EmulationThread.cpp
In file included from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/include/features.h:416:0,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/include/c++/4.8.1/mipsel-gcw0-linux-uclibc/bits/os_defines.h:39,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/include/c++/4.8.1/mipsel-gcw0-linux-uclibc/bits/c++config.h:420,
                 from /opt/gcw0-toolchain/usr/mipsel-gcw0-linux-uclibc/include/c++/4.8.1/iostream:38,
                 from EmulationThread.h:34,
                 from EmulationThread.cpp:40:
/usr/include/i386-linux-gnu/bits/mathcalls.h:115:56: error: declaration does not declare anything [-fpermissive]
 __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2));
                                                        ^
/usr/include/i386-linux-gnu/bits/mathcalls.h:115:56: error: declaration does not declare anything [-fpermissive]
 __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2));
                                                        ^
/usr/include/i386-linux-gnu/bits/mathcalls.h:115:56: error: declaration does not declare anything [-fpermissive]
 __MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)) __nonnull ((2));
                                                        ^
make: *** [EmulationThread.o] Error 1
#
« Last Edit: April 22, 2014, 02:30:26 am by slenkar »

Wild Penguin

  • *
  • Posts: 69
Re: Compilation error
« Reply #1 on: April 24, 2014, 06:29:00 pm »
Hi sienkar,

I believe I had similar problems with GNU autotools (i.e. configure && make etc.) when compiling freedroidclassic for the GCW Zero. I believe you're having a toolchain leak, since nothing should be included outside the toolchain (in /opt/gcw0-toolchain) unless otherwise specified (I believe you have included /root/qt-static yourself?). But in any case, /usr/include/i386-linux-gnu/bits/mathcalls.h gets included, which is of course wrong, since you are cross-compiling.

I worked around it by patching the Makefile by hand, which is probably not the correct way and quite hacky (see the thread / my GIT, how I do it).

Cheers!
My Hocoslamfy highscore: 107. Also try Freedroid for GCW0!

Wild Penguin

  • *
  • Posts: 69
Re: Compilation error
« Reply #2 on: April 24, 2014, 06:30:05 pm »
Also, if you are familiar with cmake, you might want to try that instead, because it might give better control when cross-compiling; though I'm not sure, haven't tried it myself.
My Hocoslamfy highscore: 107. Also try Freedroid for GCW0!

slenkar (OP)

  • *
  • Posts: 45
Re: Compilation error
« Reply #3 on: April 24, 2014, 09:44:47 pm »
BROTIP:rename the files on your pc so the compiler is forced to look in the toolchain

-but the master system emulator had opengl commands so it didnt compile

 

Post a new topic