libretro / LRPS2

GNU General Public License v2.0
165 stars 48 forks source link

Build Issue on linux #135

Closed liberodark closed 3 years ago

liberodark commented 3 years ago

Hi,

I dont know why but have error on my build :

<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
src/common/strvararg.cpp: In member function ‘wxScopedCharTypeBuffer<T> wxFormatConverterBase<T>::Convert(const CharType*) [with T = wchar_t]’:
src/common/strvararg.cpp:208:25: warning: this statement may fall through [-Wimplicit-fallthrough=]
  208 |                         if ( format[1] != 'l' )
      |                         ^~
src/common/strvararg.cpp:216:21: note: here
  216 |                     default:
      |                     ^~~~~~~
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
src/unix/evtloopunix.cpp: In member function ‘virtual bool wxConsoleEventLoop::Dispatch()’:
src/unix/evtloopunix.cpp:155:28: warning: overflow in conversion from ‘long unsigned int’ to ‘int’ changes value from ‘18446744073709551615’ to ‘-1’ [-Woverflow]
  155 |     m_dispatcher->Dispatch(static_cast<unsigned long>(
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  156 |         wxFDIODispatcher::TIMEOUT_INFINITE)) > 0;
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
src/unix/utilsunx.cpp:29:9: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
   29 |     #if USE_PUTENV
      |         ^~~~~~~~~~
src/unix/utilsunx.cpp:29:9: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
[ 35%] Linking CXX shared library libwxwidgets.so
[ 35%] Built target wxwidgets
make[2]: *** [Makefile:133: all] Error 2

My Args

LIBRETRO_PCSX2_CONF_OPTS += -DLIBRETRO=ON
LIBRETRO_PCSX2_CONF_OPTS += -DENABLE_QT=OFF
LIBRETRO_PCSX2_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release

Also have try :

LIBRETRO_PCSX2_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release
LIBRETRO_PCSX2_CONF_OPTS += -DBUILD_SHARED_LIBS=ON
LIBRETRO_PCSX2_CONF_OPTS += -DENABLE_TESTS=OFF
LIBRETRO_PCSX2_CONF_OPTS += -DENABLE_QT=OFF
LIBRETRO_PCSX2_CONF_OPTS += -DLIBRETRO=ON

If you have any idea how to fix that ? @twinaphex

Best Regards

liberodark commented 3 years ago

Fixed by a .patch