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

[BUG] compile failure on openbsd 7.5 sparc64 #944

Open
webmonkey44 opened this issue Oct 2, 2024 · 1 comment
Open

[BUG] compile failure on openbsd 7.5 sparc64 #944

webmonkey44 opened this issue Oct 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@webmonkey44
Copy link

I am having a compile failure with this platform that should work as ive tested it on i368.
ive listed everything i possibly can to fixing it or getting a workaround.

this is the best knowledge i can construct at this point. i apology for being newbie as i justed wanted my server to do things, and am not a dev expert..

OS: OpenBSD 7.5 sparc64
Host: Sun SUNW,SPARC-Enterprise-T5120
Uptime: 2 hours, 31 mins
Packages: 48 (pkg_info)
Shell: bash 5.2.26
Terminal: /dev/ttyp1
CPU: SUNW,UltraSPARC-T2 (rev (32/32, SMT off) @ 1.165GHz
Memory: 68MiB / 16256MiB

01:23:52-linuxfan66@sparc64:~/gitreps/btop$ ld -v
GNU ld version 2.17

dev variables active
export AUTOMAKE_VERSION=1.16
export AUTOCONF_VERSION=2.71
export AR=/usr/local/bin/llvm-ar-17
export AS=/usr/local/bin/llvm-as-17
export CC=/usr/local/bin/clang-17
export CXX=/usr/local/bin/clang++-17
export CPP=/usr/local/bin/clang-cpp-17
export LD=/usr/local/bin/ld.lld-17

01:08:20-linuxfan66@sparc64:~/gitreps/btop$ gmake

██████╗ ████████╗ ██████╗ ██████╗
██╔══██╗╚══██╔══╝██╔═══██╗██╔══██╗ ██╗ ██╗
██████╔╝ ██║ ██║ ██║██████╔╝ ██████╗██████╗
██╔══██╗ ██║ ██║ ██║██╔═══╝ ╚═██╔═╝╚═██╔═╝
██████╔╝ ██║ ╚██████╔╝██║ ╚═╝ ╚═╝
╚═════╝ ╚═╝ ╚═════╝ ╚═╝ Makefile v1.6
PLATFORM ?| OpenBSD
ARCH ?| sparc64
GPU_SUPPORT :| false

Command 'lowdown' not found: skipping generating man page btop.1
Configuring obj/config.h
CXX ?| /usr/local/bin/clang++-17 (17.0.6)
THREADS :| 32
REQFLAGS !| -std=c++20
WARNFLAGS :| -Wall -Wextra -pedantic
OPTFLAGS :| -O2 -ftree-vectorize -flto=thin
LDCXXFLAGS :| -pthread -DFMT_HEADER_ONLY -D_GLIBCXX_ASSERTIONS -D_FILE_OFFSET_BITS=64 -fexceptions -fstack-clash-protection -fstack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -lkvm -static-libstdc++
CXXFLAGS +| $(REQFLAGS) $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
LDFLAGS +| $(LDCXXFLAGS) $(OPTFLAGS) $(WARNFLAGS)
Compiling src/btop.cpp
Compiling src/btop_config.cpp
Compiling src/btop_draw.cpp
Compiling src/btop_input.cpp
Compiling src/btop_menu.cpp
Compiling src/btop_shared.cpp
Compiling src/btop_theme.cpp
Compiling src/openbsd/btop_collect.cpp
Compiling src/btop_tools.cpp
Compiling src/openbsd/sysctlbyname.cpp
clang++: warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
clang++: warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
clang++: warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
clang++: warning: clang++argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]:
warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++: clang++: warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]warning:
-lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++clang++: : warning: warning: -lkvm: 'linker' input unused [-Wunused-command-line-argument]
-lkvm: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]

Building btop++ (v1.4.0) OpenBSD sparc64
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
clang++: warning: clang++argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]:
warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]clang++
: clang++warning: : argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]warning:
argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
clang++clang++: : warning: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]

clang++clang++: : warning: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]

clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
src/btop_tools.cpp:215:30: warning: 'codecvt_utf8<wchar_t>' is deprecated [-Wdeprecated-declarations]
215 | std::wstring_convert<std::codecvt_utf8<wchar_t>> conv;
| ^
/usr/include/c++/v1/codecvt:187:28: note: 'codecvt_utf8<wchar_t>' has been explicitly marked deprecated here
187 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 codecvt_utf8
| ^
/usr/include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
808 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
| ^
/usr/include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
781 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
src/btop_tools.cpp:215:9: warning: 'wstring_convert<std::codecvt_utf8<wchar_t>>' is deprecated [-Wdeprecated-declarations]
215 | std::wstring_convert<std::codecvt_utf8<wchar_t>> conv;
| ^
/usr/include/c++/v1/locale:3603:28: note: 'wstring_convert<std::codecvt_utf8<wchar_t>>' has been explicitly marked deprecated here
3603 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wstring_convert
| ^
/usr/include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
808 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
| ^
/usr/include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
781 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
src/btop_tools.cpp:245:31: warning: 'codecvt_utf8<wchar_t>' is deprecated [-Wdeprecated-declarations]
245 | std::wstring_convert<std::codecvt_utf8<wchar_t>> conv;
| ^
/usr/include/c++/v1/codecvt:187:28: note: 'codecvt_utf8<wchar_t>' has been explicitly marked deprecated here
187 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 codecvt_utf8
| ^
/usr/include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
808 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
| ^
/usr/include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
781 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
src/btop_tools.cpp:245:10: warning: 'wstring_convert<std::codecvt_utf8<wchar_t>>' is deprecated [-Wdeprecated-declarations]
245 | std::wstring_convert<std::codecvt_utf8<wchar_t>> conv;
| ^
/usr/include/c++/v1/locale:3603:28: note: 'wstring_convert<std::codecvt_utf8<wchar_t>>' has been explicitly marked deprecated here
3603 | class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wstring_convert
| ^
/usr/include/c++/v1/__config:808:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
808 | # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
| ^
/usr/include/c++/v1/__config:781:49: note: expanded from macro '_LIBCPP_DEPRECATED'
781 | # define _LIBCPP_DEPRECATED attribute((deprecated))
| ^
9% -> obj/openbsd/sysctlbyname.o (152KiB) ()
18% -> obj/btop_input.o (304KiB) ()
27% -> obj/btop_theme.o (352KiB) ()
4 warnings generated.
36% -> obj/btop_tools.o (544KiB) ()
45% -> obj/btop_config.o (544KiB) ()
54% -> obj/btop_shared.o (432KiB) ()
63% -> obj/openbsd/btop_collect.o (528KiB) ()
72% -> obj/btop.o (640KiB) ()
81% -> obj/btop_menu.o (704KiB) ()
90% -> obj/btop_draw.o (1.1MiB) ()

Linking and optimizing binary...
clang++: warning: argument unused during compilation: '-static-libstdc++' [-Wunused-command-line-argument]
ld.lld: error: obj/btop.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/btop_config.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/btop_draw.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/btop_input.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/btop_menu.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/btop_shared.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/btop_theme.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/btop_tools.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/openbsd/btop_collect.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
ld.lld: error: obj/openbsd/sysctlbyname.o: could not infer e_machine from bitcode target triple sparc64-unknown-openbsd7.5
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
gmake: *** [Makefile:412: btop] Error 1

@webmonkey44 webmonkey44 added the bug Something isn't working label Oct 2, 2024
@webmonkey44 webmonkey44 changed the title [BUG] [BUG] compile failure on openbsd 7.5 sparc64 Oct 2, 2024
@imwints
Copy link
Contributor

imwints commented Oct 16, 2024

This seems to be something for upstream OpenBSD or LLVM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants