Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
halian opened this issue Nov 19, 2023 · 3 comments
Labels
compile issue Code doesn't compile properly wiiu Issue concerns Wii U target

Comments

@halian
Copy link

halian commented Nov 19, 2023

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):

  • OS: Arch Linux
  • Browser: Waterfox
  • Version G6.0.5 (64-bit)

Additional context
Add any other context about the problem here.

@AloXado320
Copy link
Member

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

@halian
Copy link
Author

halian commented Nov 22, 2023

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

@AloXado320 AloXado320 added wiiu Issue concerns Wii U target compile issue Code doesn't compile properly labels Nov 15, 2024
@AloXado320
Copy link
Member

@halian Looking closely at the output, it seems like you are trying to build tools using a PowerPC target, are you using linux-wiiu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compile issue Code doesn't compile properly wiiu Issue concerns Wii U target
Projects
None yet
Development

No branches or pull requests

2 participants