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

Unable to compile under cpu arch PPC64LE #41

Open
stallmanshiteater opened this issue Feb 8, 2023 · 3 comments
Open

Unable to compile under cpu arch PPC64LE #41

stallmanshiteater opened this issue Feb 8, 2023 · 3 comments

Comments

@stallmanshiteater
Copy link

c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
[ 8%] Building CXX object external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/arc4.cpp.o
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [mathlib/CMakeFiles/mathlib_client.dir/build.make:90: mathlib/CMakeFiles/mathlib_client.dir/color_conversion.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mstackrealign’; did you mean ‘-mstrict-align’?
make[2]: *** [thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf.dir/build.make:90: thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf.dir//src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o] Error 1
make[2]: *** [tier1/CMakeFiles/tier1_client.dir/build.make:90: tier1/CMakeFiles/tier1_client.dir/bitbuf.cpp.o] Error 1
make[2]: *** [vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/build.make:90: vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/AnimatingImagePanel.cpp.o] Error 1
make[2]: *** [external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/build.make:90: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/cpu.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
[ 8%] Building CXX object bitmap/CMakeFiles/bitmap_client.dir/colorconversion.cpp.o
make[2]: *** [thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf.dir/build.make:104: thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf.dir/
/src/google/protobuf/stubs/common.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2126: thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf.dir/all] Error 2
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf-lite.dir/build.make:90: thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf-lite.dir//src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
[ 8%] Building CXX object bitmap/CMakeFiles/bitmap_client.dir/floatcubemap.cpp.o
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/build.make:104: vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/AnimationController.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/build.make:118: vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/BitmapImagePanel.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [tier2/CMakeFiles/tier2_client.dir/build.make:90: tier2/CMakeFiles/tier2_client.dir/defaultfilesystem.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1589: tier2/CMakeFiles/tier2_client.dir/all] Error 2
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf-lite.dir/build.make:104: thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf-lite.dir/
/src/google/protobuf/stubs/common.cc.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [tier1/CMakeFiles/tier1_client.dir/build.make:104: tier1/CMakeFiles/tier1_client.dir/newbitbuf.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[1]: *** [CMakeFiles/Makefile2:2178: thirdparty/protobuf-2.5.0/cmake/CMakeFiles/libprotobuf-lite.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1563: tier1/CMakeFiles/tier1_client.dir/all] Error 2
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [vgui2/matsys_controls/CMakeFiles/matsys_controls_client.dir/build.make:90: vgui2/matsys_controls/CMakeFiles/matsys_controls_client.dir/baseassetpicker.cpp.o] Error 1
make[2]: *** [mathlib/CMakeFiles/mathlib_extended_client.dir/build.make:90: mathlib/CMakeFiles/mathlib_extended_client.dir/dynamictree.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1669: mathlib/CMakeFiles/mathlib_extended_client.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1747: vgui2/matsys_controls/CMakeFiles/matsys_controls_client.dir/all] Error 2
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [mathlib/CMakeFiles/mathlib_client.dir/build.make:104: mathlib/CMakeFiles/mathlib_client.dir/cholesky.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mstackrealign’; did you mean ‘-mstrict-align’?
make[2]: *** [external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/build.make:104: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/integer.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/build.make:132: vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/BuildFactoryHelper.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[1]: *** [CMakeFiles/Makefile2:1805: vgui2/vgui_controls/CMakeFiles/vgui_controls_client.dir/all] Error 2
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-mstackrealign’; did you mean ‘-mstrict-align’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/build.make:118: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/3way.cpp.o] Error 1
make[2]: *** [mathlib/CMakeFiles/mathlib_client.dir/build.make:118: mathlib/CMakeFiles/mathlib_client.dir/halton.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1695: mathlib/CMakeFiles/mathlib_client.dir/all] Error 2
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [bitmap/CMakeFiles/bitmap_client.dir/build.make:132: bitmap/CMakeFiles/bitmap_client.dir/floatbitmap3.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [bitmap/CMakeFiles/bitmap_client.dir/build.make:146: bitmap/CMakeFiles/bitmap_client.dir/floatbitmap_bilateralfilter.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mstackrealign’; did you mean ‘-mstrict-align’?
make[2]: *** [external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/build.make:132: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/adler32.cpp.o] Error 1
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
make[2]: *** [bitmap/CMakeFiles/bitmap_client.dir/build.make:90: bitmap/CMakeFiles/bitmap_client.dir/colorconversion.cpp.o] Error 1
make[2]: *** [bitmap/CMakeFiles/bitmap_client.dir/build.make:160: bitmap/CMakeFiles/bitmap_client.dir/floatcubemap.cpp.o] Error 1
c++: error: unrecognized command line option ‘-mstackrealign’; did you mean ‘-mstrict-align’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-march=native’; did you mean ‘-mcpu=native’?
c++: error: unrecognized command line option ‘-mstackrealign’; did you mean ‘-mstrict-align’?
make[2]: *** [external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/build.make:160: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/algparam.cpp.o] Error 1
make[2]: *** [external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/build.make:146: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/algebra.cpp.o] Error 1
make[2]: *** [bitmap/CMakeFiles/bitmap_client.dir/build.make:118: bitmap/CMakeFiles/bitmap_client.dir/floatbitmap2.cpp.o] Error 1
make[2]: *** [bitmap/CMakeFiles/bitmap_client.dir/build.make:104: bitmap/CMakeFiles/bitmap_client.dir/floatbitmap.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2366: bitmap/CMakeFiles/bitmap_client.dir/all] Error 2
c++: error: unrecognized command line option ‘-mstackrealign’; did you mean ‘-mstrict-align’?
make[2]: *** [external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/build.make:174: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/arc4.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1433: external/crypto++-5.61/CMakeFiles/cryptopp-object.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

@nn-firc
Copy link

nn-firc commented Feb 17, 2023

DIY

@stallmanshiteater
Copy link
Author

DIY

really helpful, thanks man. Why even bother lol?

@nn-firc
Copy link

nn-firc commented Feb 18, 2023

DIY

really helpful, thanks man. Why even bother lol?

just try to remove unrecognized command?
And some fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants