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

centos7 gcc7.3.1 build failed #364

Open
smfc99 opened this issue Nov 19, 2024 · 1 comment
Open

centos7 gcc7.3.1 build failed #364

smfc99 opened this issue Nov 19, 2024 · 1 comment

Comments

@smfc99
Copy link

smfc99 commented Nov 19, 2024

when I run ./getdeps.sh, build error:

[1/4] Building CXX object CMakeFiles/fmt.dir/src/os.cc.o
FAILED: CMakeFiles/fmt.dir/src/os.cc.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -I/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/fmt.dir/src/os.cc.o -MF CMakeFiles/fmt.dir/src/os.cc.o.d -o CMakeFiles/fmt.dir/src/os.cc.o -c /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/src/os.cc
In file included from /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/format.h:41:0,
from /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/os.h:11,
from /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/src/os.cc:13:
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/base.h: In substitution of ‘template<class Context, class ... T, long unsigned int NUM_NAMED_ARGS, long long unsigned int DESC, typename std::enable_if<(NUM_NAMED_ARGS != 0), int>::type > constexpr fmt::v11::detail::format_arg_store<Context, sizeof... (T), NUM_NAMED_ARGS, DESC> fmt::v11::make_format_args(T& ...) [with Context = fmt::v11::context; T = {const char*}; long unsigned int NUM_NAMED_ARGS = ; long long unsigned int DESC = ; typename std::enable_if<(NUM_NAMED_ARGS != 0), int>::type = ]’:
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/format.h:3893:62: required from ‘std::system_error fmt::v11::system_error(int, fmt::v11::format_string<T ...>, T&& ...) [with T = {const char*}; fmt::v11::format_string<T ...> = fmt::v11::basic_format_string<char, const char*>]’
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/src/os.cc:176:5: required from here
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/base.h:2024:66: internal compiler error: unexpected expression ‘count_named_args<const char*>’ of kind template_id_expr
size_t NUM_NAMED_ARGS = detail::count_named_args<T...>(),
^
0x7f63146af02d __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://bugzilla.redhat.com/bugzilla for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
[2/4] Building CXX object CMakeFiles/fmt.dir/src/format.cc.o
FAILED: CMakeFiles/fmt.dir/src/format.cc.o
/opt/rh/devtoolset-7/root/usr/bin/c++ -I/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include -O2 -g -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT CMakeFiles/fmt.dir/src/format.cc.o -MF CMakeFiles/fmt.dir/src/format.cc.o.d -o CMakeFiles/fmt.dir/src/format.cc.o -c /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/src/format.cc
In file included from /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/format.h:41:0,
from /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/format-inl.h:27,
from /tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/src/format.cc:8:
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/base.h: In substitution of ‘template<class Context, class ... T, long unsigned int NUM_NAMED_ARGS, long long unsigned int DESC, typename std::enable_if<(NUM_NAMED_ARGS != 0), int>::type > constexpr fmt::v11::detail::format_arg_store<Context, sizeof... (T), NUM_NAMED_ARGS, DESC> fmt::v11::make_format_args(T& ...) [with Context = fmt::v11::context; T = {fmt::v11::basic_string_view, const char [3]}; long unsigned int NUM_NAMED_ARGS = ; long long unsigned int DESC = ; typename std::enable_if<(NUM_NAMED_ARGS != 0), int>::type = ]’:
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/base.h:2940:61: required from ‘fmt::v11::remove_cvref_t fmt::v11::format_to(OutputIt&&, fmt::v11::format_string<T ...>, T&& ...) [with OutputIt = fmt::v11::basic_appender&; T = {fmt::v11::basic_string_view&, const char (&)[3]}; typename std::enable_if<fmt::v11::detail::is_output_iterator<typename std::remove_cv<typename std::remove_reference<_From>::type>::type, char>::value, int>::type = 0; fmt::v11::remove_cvref_t = fmt::v11::basic_appender; fmt::v11::format_string<T ...> = fmt::v11::basic_format_string<char, fmt::v11::basic_string_view&, const char (&)[3]>]’
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/format-inl.h:59:56: required from here
/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/extracted/fmt-11.0.2.tar.gz/fmt-11.0.2/include/fmt/base.h:2024:66: internal compiler error: unexpected expression ‘count_named_args<fmt::v11::basic_string_view, const char [3]>’ of kind template_id_expr
size_t NUM_NAMED_ARGS = detail::count_named_args<T...>(),
^
0x7f5a3e59902d __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://bugzilla.redhat.com/bugzilla for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
ninja: build stopped: subcommand failed.
Command '['/root/workspace/aa/mvfst-2024.11.11.00/_build/cmake-RHXNoAFLY6WZgy68JO3JYuH-TaFlXJQOGz7XJNTrJ6o/bin/cmake', '--build', '/tmp/fbcode_builder_getdeps-ZrootZworkspaceZaaZmvfst-2024.11.11.00ZbuildZfbcode_builder-root/build/fmt-1UqZ1P32kqVgKe1dKTN95jn1SOrxdUGOKKGLXz69Nwg', '--target', 'install', '--config', 'RelWithDebInfo', '-j', '5']' returned non-zero exit status 1.
!! Failed

does anyone know how to fix this?

@yeshenyong
Copy link

yeshenyong commented Nov 19, 2024

and i also find that

#if defined(__linux__)

#include <linux/if_xdp.h>
#include <stdint.h>

// Returns descriptor on succeess, negative value on failure
int create_xsk();

if_xdp.h only support by linux 4.18,and centos7 offen in the 3.10... 😔

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