AloUltraExt / sm64ex-alo

An extended custom version of Super Mario 64 with extra stuff made by yours truly. Based of sm64ex and updated to Refresh 16
107 stars 50 forks source link

Arch Linux w/ devkitPPC r44.2-2: Unrecognized command-line option when building tools (Wii U target) #51

Open halian opened 11 months ago

halian commented 11 months ago

Describe the bug Building the tools with make tools fails due to an unrecognized command-line option.

To Reproduce Steps to reproduce the behavior:

  1. Clone repository
  2. Add baserom with the proper filename
  3. make tools
  4. Watch the output

Expected behavior The tools compile without incident, that I may compile the game proper for my Wii U.

Screenshots Terminal output

halian  …/sm64ex-alo   master !  ♥ 06:38  make tools
Building tools...
audiofile.cpp:3565:47: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3565 |         struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType>
|                                               ^~~~~~~~~~~~~~
In file included from /opt/devkitpro/devkitPPC/powerpc-eabi/include/c++/13.2.0/string:49,
from audiofile.cpp:1736:
/opt/devkitpro/devkitPPC/powerpc-eabi/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 |     struct unary_function
|            ^~~~~~~~~~~~~~
audiofile.cpp:3570:47: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3570 |         struct unsignedToSigned : public std::unary_function<SignedType, UnsignedType>
|                                               ^~~~~~~~~~~~~~
/opt/devkitpro/devkitPPC/powerpc-eabi/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 |     struct unary_function
|            ^~~~~~~~~~~~~~
audiofile.cpp:3763:33: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3763 | struct intToFloat : public std::unary_function<Arg, Result>
|                                 ^~~~~~~~~~~~~~
/opt/devkitpro/devkitPPC/powerpc-eabi/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 |     struct unary_function
|            ^~~~~~~~~~~~~~
audiofile.cpp:3829:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3829 | struct lshift : public std::unary_function<Arg, Result>
|                             ^~~~~~~~~~~~~~
/opt/devkitpro/devkitPPC/powerpc-eabi/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 |     struct unary_function
|            ^~~~~~~~~~~~~~
audiofile.cpp:3835:29: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3835 | struct rshift : public std::unary_function<Arg, Result>
|                             ^~~~~~~~~~~~~~
/opt/devkitpro/devkitPPC/powerpc-eabi/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 |     struct unary_function
|            ^~~~~~~~~~~~~~
audiofile.cpp:3931:35: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
3931 | struct floatToFloat : public std::unary_function<Arg, Result>
|                                   ^~~~~~~~~~~~~~
/opt/devkitpro/devkitPPC/powerpc-eabi/include/c++/13.2.0/bits/stl_function.h:117:12: note: declared here
117 |     struct unary_function
|            ^~~~~~~~~~~~~~
powerpc-eabi-g++: error: unrecognized command-line option '-pthread'; did you mean '-fpthread'?
make[1]: *** [Makefile:66: armips] Error 1
Makefile:460: *** Failed to build tools.  Stop.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

AloXado320 commented 11 months ago

Can you change -pthread to -lpthread in tools/Makefile (line 49)?

halian commented 11 months ago

I changed -pthread to -lpthread on line 47 of tools/Makefile and it now fails with:

/opt/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-eabi/13.2.0/../../../../powerpc-eabi/bin/ld: cannot find -lpthread: No such file or directory