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

snmalloc fails to build on amd64 #37347

Open
murraybd opened this issue Dec 17, 2024 · 1 comment
Open

snmalloc fails to build on amd64 #37347

murraybd opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working service:ftbfs Failed to Build From Source

Comments

@murraybd
Copy link
Member

The package snmalloc fails to build from source with the following error:

time="2024-12-17T12:44:43.155163146Z" level=info msg="loading plugin" id=io.containerd.ttrpc.v1.otelttrpc type=io.containerd.ttrpc.v1
time="2024-12-17T12:44:43.155170766Z" level=info msg="loading plugin" id=io.containerd.grpc.v1.healthcheck type=io.containerd.grpc.v1
time="2024-12-17T12:44:43.155186686Z" level=info msg="loading plugin" id=io.containerd.nri.v1.nri type=io.containerd.nri.v1
time="2024-12-17T12:44:43.155379846Z" level=info msg="runtime interface created"
time="2024-12-17T12:44:43.155392386Z" level=info msg="created NRI interface"
time="2024-12-17T12:44:43.155663926Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
time="2024-12-17T12:44:43.155752556Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
time="2024-12-17T12:44:43.155821506Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
time="2024-12-17T12:44:43.155853146Z" level=info msg="containerd successfully booted in 0.063932s"
time="2024-12-17T12:44:44.136204836Z" level=info msg="Loading containers: start."
time="2024-12-17T12:44:44.548718093Z" level=info msg="Loading containers: done."
time="2024-12-17T12:44:44.565112916Z" level=info msg="Docker daemon" commit=92a83937d0280dcbea92099b01e01aa4251c1777-unsupported containerd-snapshotter=false storage-driver=overlay2 version=dev
time="2024-12-17T12:44:44.565253396Z" level=info msg="Daemon has completed initialization"
time="2024-12-17T12:44:44.603766652Z" level=info msg="API listen on /var/run/docker.sock"
evaluating pipelines for package requirements
building test workspace in: '/tmp/melange-guest-205777343-main' with apko
Error: rpc error: code = NotFound desc = federate identity: rpc error: code = NotFound desc = no identity found for (https://accounts.google.com, 109346087047205543085)
Error running `chainctl auth token`: exit status 1
2024/12/17 12:44:44 [DEBUG] GET https://apk.cgr.dev/wolfi-presubmit/4bd5ceed6bfef7ea8d0094452f394ae1b0b8f580/apk-configuration
2024/12/17 12:44:45 [DEBUG] GET https://packages.wolfi.dev/os/apk-configuration
setting apk repositories: [https://apk.cgr.dev/wolfi-presubmit/4bd5ceed6bfef7ea8d0094452f394ae1b0b8f580 https://packages.wolfi.dev/os]
image configuration:
  contents:
    build repositories: []
    runtime repositories: []
    keyring:      []
    packages:     [stress-ng snmalloc]
installing libgcc (14.2.0-r6)
installing ca-certificates-bundle (20241010-r2)
installing wolfi-baselayout (20230201-r15)
installing ld-linux (2.40-r3)
installing glibc-locale-posix (2.40-r3)
installing glibc (2.40-r3)
installing snmalloc (0.7.0-r0)
installing stress-ng (0.18.07-r0)
installing wolfi-keys (1-r8)
installing zlib (1.3.1-r4)
installing libcrypto3 (3.4.0-r4)
installing libssl3 (3.4.0-r4)
installing apk-tools (2.14.4-r1)
installing libxcrypt (4.4.36-r8)
installing libcrypt1 (2.40-r3)
installing busybox (1.37.0-r0)
installing wolfi-base (1-r6)
using /tmp/apko-temp-176345970/apko-x86_64.tar.gz for image layer
OCI layer digest: sha256:12e6d90a9cce2faae3dcc31d2e0aa5e77b5fa3ceb8f5bd1fb1b25ff2248b0c9a
OCI layer diffID: sha256:5fd458225de371639059e70eaa5c6cebc6e46e06c36015ee1632beb8ab5568a9
saving OCI image locally: apko.local/cache:92c4477377d069b1db34069e2eb1a1b32bf4e9926bb24bf6979ef0c1597b1caf
skipping local domain tagging apko.local/cache:92c4477377d069b1db34069e2eb1a1b32bf4e9926bb24bf6979ef0c1597b1caf as index.docker.io/library/melange:latest
populating workspace /tmp/melange-workspace-501555499 from snmalloc
ImgRef = apko.local/cache:92c4477377d069b1db34069e2eb1a1b32bf4e9926bb24bf6979ef0c1597b1caf
time="2024-12-17T12:44:47.647822688Z" level=info msg="connecting to shim 78af81a8be5a3ca3b46b10a136eaed4523934b939536f395cb0b147b0766595c" address="unix:///run/containerd/s/a44c07e10c3fb4a87878db148324e2238255bee13b9a5019bd0da90874b85354" namespace=moby protocol=ttrpc version=3
running the main test pipeline
stress-ng: info:  [16] setting to a 5 secs run per stressor
stress-ng: info:  [16] dispatching hogs: 1 vdso
stress-ng: info:  [17] vdso: exercising vDSO functions: getcpu time gettimeofday clock_gettime clock_getres
stress-ng: metrc: [16] stressor       bogo ops real time  usr time  sys time   bogo ops/s     bogo ops/s CPU used per       RSS Max
stress-ng: metrc: [16]                           (secs)    (secs)    (secs)   (real time) (usr+sys time) instance (%)          (KB)
stress-ng: metrc: [16] vdso          403268520      5.11      5.11      0.00  78992167.50    78984415.76       100.01           608
stress-ng: metrc: [16] miscellaneous metrics:
stress-ng: metrc: [16] vdso                  10.78 nanosecs per call (excluding test overhead) (harmonic mean of 1 instance)
stress-ng: metrc: [16] vdso                   1.62 nanosecs for test overhead (geometric mean of 1 instance)
stress-ng: info:  [16] skipped: 0
stress-ng: info:  [16] passed: 1: vdso (1)
stress-ng: info:  [16] failed: 0
stress-ng: info:  [16] metrics untrustworthy: 0
stress-ng: info:  [16] successful run completed in 5.11 secs
stress-ng: info:  [19] setting to a 5 secs run per stressor
stress-ng: info:  [19] dispatching hogs: 1 vdso
stress-ng: info:  [20] vdso: exercising vDSO functions: getcpu time gettimeofday clock_gettime clock_getres
stress-ng: metrc: [19] stressor       bogo ops real time  usr time  sys time   bogo ops/s     bogo ops/s CPU used per       RSS Max
stress-ng: metrc: [19]                           (secs)    (secs)    (secs)   (real time) (usr+sys time) instance (%)          (KB)
stress-ng: metrc: [19] vdso          404693095      5.11      5.11      0.00  79269391.62    79261865.93       100.01           612
stress-ng: metrc: [19] miscellaneous metrics:
stress-ng: metrc: [19] vdso                  10.73 nanosecs per call (excluding test overhead) (harmonic mean of 1 instance)
stress-ng: metrc: [19] vdso                   1.62 nanosecs for test overhead (geometric mean of 1 instance)
stress-ng: info:  [19] skipped: 0
stress-ng: info:  [19] passed: 1: vdso (1)
stress-ng: info:  [19] failed: 0
stress-ng: info:  [19] metrics untrustworthy: 0
stress-ng: info:  [19] successful run completed in 5.11 secs
stress-ng: info:  [22] setting to a 5 secs run per stressor
stress-ng: info:  [22] dispatching hogs: 1 vdso
stress-ng: info:  [23] vdso: exercising vDSO functions: getcpu time gettimeofday clock_gettime clock_getres
stress-ng: metrc: [22] stressor       bogo ops real time  usr time  sys time   bogo ops/s     bogo ops/s CPU used per       RSS Max
stress-ng: metrc: [22]                           (secs)    (secs)    (secs)   (real time) (usr+sys time) instance (%)          (KB)
stress-ng: metrc: [22] vdso          403777770      5.11      5.10      0.00  79089315.33    79081121.96       100.01           612
stress-ng: metrc: [22] miscellaneous metrics:
stress-ng: metrc: [22] vdso                  10.76 nanosecs per call (excluding test overhead) (harmonic mean of 1 instance)
stress-ng: metrc: [22] vdso                   1.62 nanosecs for test overhead (geometric mean of 1 instance)
stress-ng: info:  [22] skipped: 0
stress-ng: info:  [22] passed: 1: vdso (1)
stress-ng: info:  [22] failed: 0
stress-ng: info:  [22] metrics untrustworthy: 0
stress-ng: info:  [22] successful run completed in 5.11 secs
time="2024-12-17T12:45:03.721185178Z" level=info msg="shim disconnected" id=78af81a8be5a3ca3b46b10a136eaed4523934b939536f395cb0b147b0766595c namespace=moby
time="2024-12-17T12:45:03.721215658Z" level=warning msg="cleaning up after shim disconnected" id=78af81a8be5a3ca3b46b10a136eaed4523934b939536f395cb0b147b0766595c namespace=moby
time="2024-12-17T12:45:03.721222818Z" level=info msg="cleaning up dead shim" namespace=moby
time="2024-12-17T12:45:03.721309538Z" level=info msg="ignoring event" container=78af81a8be5a3ca3b46b10a136eaed4523934b939536f395cb0b147b0766595c module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
pod 78af81a8be5a3ca3b46b10a136eaed4523934b939536f395cb0b147b0766595c terminated
@murraybd murraybd added bug Something isn't working service:ftbfs Failed to Build From Source labels Dec 17, 2024
@murraybd
Copy link
Member Author

Manually building it I received a different error:

2024/12/17 22:46:51 INFO /home/build/src/snmalloc/override/memcpy.cc:9:26: error: redefinition of a 'extern inline' function 'memcpy' is not supported in C++
2024/12/17 22:46:51 INFO     9 |     SNMALLOC_NAME_MANGLE(memcpy)(void* dst, const void* src, size_t len)
2024/12/17 22:46:51 INFO       |                          ^
2024/12/17 22:46:51 INFO /usr/include/bits/string_fortified.h:26:8: note: previous definition is here
2024/12/17 22:46:51 INFO    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
2024/12/17 22:46:51 INFO       |        ^
2024/12/17 22:46:51 INFO 2 errors generated.
2024/12/17 22:46:51 WARN ninja: job failed: /usr/bin/clang++ -DMALLOC_USABLE_SIZE_QUALIFIER=const -DSNMALLOC_CHECK_CLIENT -DSNMALLOC_CHECK_LOADS=false -DSNMALLOC_EXPORT="__attribute__((visibility(\"default\")))" -DSNMALLOC_HAS_LINUX_RANDOM_H -DSNMALLOC_NO_REALLOCARR -DSNMALLOC_NO_REALLOCARRAY -DSNMALLOC_PAGEID=false -DSNMALLOC_PLATFORM_HAS_GETENTROPY -DSNMALLOC_USE_PTHREAD_DESTRUCTORS -Dsnmallocshim_checks_EXPORTS -I/home/build/src -O3 -DNDEBUG -std=gnu++20 -fPIC -fvisibility=hidden -fno-exceptions -fno-rtti -Wall -Wextra -Werror -Wundef -Wsign-conversion -Wconversion -fomit-frame-pointer -ffunction-sections -ftls-model=initial-exec -mcx16 -MD -MT CMakeFiles/snmallocshim-checks.dir/src/snmalloc/override/memcpy.cc.o -MF CMakeFiles/snmallocshim-checks.dir/src/snmalloc/override/memcpy.cc.o.d -o CMakeFiles/snmallocshim-checks.dir/src/snmalloc/override/memcpy.cc.o -c /home/build/src/snmalloc/override/memcpy.cc
2024/12/17 22:46:51 INFO /home/build/src/snmalloc/override/memcpy.cc:8:3: error: attribute declaration must precede definition [-Werror,-Wignored-attributes]
2024/12/17 22:46:51 INFO     8 |   SNMALLOC_EXPORT void*
2024/12/17 22:46:51 INFO       |   ^
2024/12/17 22:46:51 INFO <command line>:8:40: note: expanded from macro 'SNMALLOC_EXPORT'
2024/12/17 22:46:51 INFO     8 | #define SNMALLOC_EXPORT __attribute__((visibility("default")))
2024/12/17 22:46:51 INFO       |                                        ^
2024/12/17 22:46:51 INFO /usr/include/bits/string_fortified.h:26:8: note: previous definition is here
2024/12/17 22:46:51 INFO    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
2024/12/17 22:46:51 INFO       |        ^
2024/12/17 22:46:51 INFO /home/build/src/snmalloc/override/memcpy.cc:9:26: error: redefinition of a 'extern inline' function 'memcpy' is not supported in C++
2024/12/17 22:46:51 INFO     9 |     SNMALLOC_NAME_MANGLE(memcpy)(void* dst, const void* src, size_t len)
2024/12/17 22:46:51 INFO       |                          ^
2024/12/17 22:46:51 INFO /usr/include/bits/string_fortified.h:26:8: note: previous definition is here
2024/12/17 22:46:51 INFO    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
2024/12/17 22:46:51 INFO       |        ^
2024/12/17 22:46:51 INFO 2 errors generated.
2024/12/17 22:46:53 WARN ninja: subcommands failed

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

No branches or pull requests

1 participant