We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi trying to build dockerimage via dockerfile provided in your repo but bazel seems to fail
❯ docker -v Docker version 20.10.21, build baeda1f82a ❯ docker build -t rtorrent . Sending build context to Docker daemon 1.878MB Step 1/29 : ARG ALPINE_IMAGE=alpine:edge Step 2/29 : FROM ${ALPINE_IMAGE} as build ---> 121d0da75751 Step 3/29 : WORKDIR /root/rtorrent ---> Using cache ---> 0becec4cb8bd Step 4/29 : RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories ---> Using cache ---> a1b717bf5970 Step 5/29 : RUN apk --no-cache add bash bazel build-base coreutils gcompat git linux-headers pythonispython3 python3 rpm ---> Using cache ---> 926245188a7c Step 6/29 : RUN rpm --initdb ---> Using cache ---> 6f538059b0fd Step 7/29 : COPY . ./ ---> Using cache ---> 2ead94abb045 Step 8/29 : RUN if [[ `uname -m` == "aarch64" ]]; then sed -i 's/architecture = \"all\"/architecture = \"arm64\"/' BUILD.bazel; elif [[ `uname -m` == "x86_64" ]]; then sed -i 's/architecture = \"all\"/architecture = \"amd64\"/' BUILD.bazel; fi ---> Using cache ---> b2f8b0905ced Step 9/29 : RUN bazel build rtorrent-deb rtorrent-rpm --features=fully_static_link --verbose_failures ---> Running in fecef0e5ad10 Extracting Bazel installation... Starting local Bazel server and connecting to it... Loading: Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Analyzing: 2 targets (1 packages loaded, 0 targets configured) Analyzing: 2 targets (52 packages loaded, 347 targets configured) Analyzing: 2 targets (60 packages loaded, 587 targets configured) Analyzing: 2 targets (63 packages loaded, 587 targets configured) Analyzing: 2 targets (63 packages loaded, 587 targets configured) Analyzing: 2 targets (63 packages loaded, 587 targets configured) Analyzing: 2 targets (63 packages loaded, 587 targets configured) Analyzing: 2 targets (65 packages loaded, 8037 targets configured) Analyzing: 2 targets (65 packages loaded, 8037 targets configured) Analyzing: 2 targets (65 packages loaded, 8037 targets configured) Analyzing: 2 targets (69 packages loaded, 9137 targets configured) Analyzing: 2 targets (69 packages loaded, 9137 targets configured) Analyzing: 2 targets (69 packages loaded, 9137 targets configured) INFO: Analyzed 2 targets (70 packages loaded, 10526 targets configured). INFO: Found 2 targets... [0 / 21] [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (7 actions, 0 running) [163 / 460] BootstrapGNUMake external/rules_foreign_cc/toolchains/make; 3s processwrapper-sandbox ... (8 actions, 7 running) [191 / 638] BootstrapGNUMake external/rules_foreign_cc/toolchains/make; 7s processwrapper-sandbox ... (8 actions, 7 running) INFO: From Compiling ncurses/tinfo/lib_tparm.c: external/ncurses/ncurses/tinfo/lib_tparm.c:344:45: warning: argument 2 of type 'char *[9]' with mismatched bound [-Warray-parameter=] 344 | _nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount) | ~~~~~~^~~~~~~~~~~~~~~~ In file included from external/ncurses/ncurses/tinfo/lib_tparm.c:44: bazel-out/k8-opt/bin/external/ncurses/_virtual_includes/ncursesw/tic.h:340:60: note: previously declared as 'char **' 340 | extern NCURSES_EXPORT(int) _nc_tparm_analyze(const char *, char **, int *); | ^~~~~~~ INFO: From Compiling ncurses/base/lib_screen.c: external/ncurses/ncurses/base/lib_screen.c: In function 'putwin': external/ncurses/ncurses/base/lib_screen.c:816:21: warning: 'fputs' argument missing terminating nul [-Wstringop-overread] 816 | #define PUTS(s) if (fputs(s, filep) == EOF || ferror(filep)) returnCode(code) | ^~~~~~~~~~~~~~~ external/ncurses/ncurses/base/lib_screen.c:817:9: note: in expansion of macro 'PUTS' 817 | PUTS(my_magic); | ^~~~ external/ncurses/ncurses/base/lib_screen.c:69:19: note: referenced argument declared here 69 | static const char my_magic[] = | ^~~~~~~~ [378 / 1,006] BootstrapGNUMake external/rules_foreign_cc/toolchains/make; 11s processwrapper-sandbox ... (8 actions, 7 running) [539 / 1,006] BootstrapGNUMake external/rules_foreign_cc/toolchains/make; 16s processwrapper-sandbox ... (8 actions, 7 running) [634 / 1,006] BootstrapGNUMake external/rules_foreign_cc/toolchains/make; 23s processwrapper-sandbox ... (2 actions running) [637 / 1,006] [Prepa] Foreign Cc - Configure: Building xmlrpc [641 / 1,006] Foreign Cc - Configure: Building xmlrpc; 9s processwrapper-sandbox ... (5 actions, 1 running) ERROR: /root/.cache/bazel/_bazel_root/709c8ab7bdae4c8e8497f1dffe93d5a8/external/libtorrent/BUILD.bazel:70:11: Compiling src/torrent/peer/peer_list.cc failed: (Exit 1): gcc failed: error executing command (cd /root/.cache/bazel/_bazel_root/709c8ab7bdae4c8e8497f1dffe93d5a8/sandbox/processwrapper-sandbox/670/execroot/rtorrent && \ exec env - \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ PWD=/proc/self/cwd \ /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/external/libtorrent/_objs/torrent/peer_list.d '-frandom-seed=bazel-out/k8-opt/bin/external/libtorrent/_objs/torrent/peer_list.o' -iquote external/libtorrent -iquote bazel-out/k8-opt/bin/external/libtorrent -iquote external/boringssl -iquote bazel-out/k8-opt/bin/external/boringssl -isystem external/libtorrent/include -isystem bazel-out/k8-opt/bin/external/libtorrent/include -isystem bazel-out/k8-opt/bin/external/libtorrent/buildinfo/include -isystem external/boringssl/src/include -isystem bazel-out/k8-opt/bin/external/boringssl/src/include -isystem bazel-out/k8-opt/bin/external/zlib/zlib/include '-std=c++17' -Wall -Wextra -Wpedantic -Wdeprecated -Werror -Ofast -flto '-DEXPORT_LIBTORRENT_SYMBOLS=1' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/libtorrent/src/torrent/peer/peer_list.cc -o bazel-out/k8-opt/bin/external/libtorrent/_objs/torrent/peer_list.o) # Configuration: 4cfee8849517f12e8abc71dc447300a3242555c65ba031e14afdfd1626da47d9 # Execution platform: @local_config_platform//:host Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging external/libtorrent/src/torrent/peer/peer_list.cc:55:17: error: 'template<class _Arg1, class _Arg2, class _Result> struct std::binary_function' is deprecated [-Werror=deprecated-declarations] 55 | : public std::binary_function<PeerList::reference, uint16_t, bool> { | ^~~~~~~~~~~~~~~ In file included from /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../include/c++/12.2.1/functional:49, from external/libtorrent/src/torrent/peer/peer_list.cc:5: /usr/lib/gcc/x86_64-alpine-linux-musl/12.2.1/../../../../include/c++/12.2.1/bits/stl_function.h:131:12: note: declared here 131 | struct binary_function | ^~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors INFO: Elapsed time: 73.635s, Critical Path: 49.79s INFO: 768 processes: 96 internal, 1 local, 671 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully The command '/bin/sh -c bazel build rtorrent-deb rtorrent-rpm --features=fully_static_link --verbose_failures' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered:
I created #46 to address this issue, but haven't received any feedback.
Sorry, something went wrong.
No branches or pull requests
hi trying to build dockerimage via dockerfile provided in your repo but bazel seems to fail
The text was updated successfully, but these errors were encountered: