Skip to content

codspeed-divan-compat macos linking failure on v4 #130

@onursatici

Description

@onursatici

Hello 👋

After upgrading to v4, we are seeing these linking errors when running cargo bench on apple silicon. Happy to provide any more info if needed, on our CI boxes, which are linux, benchmarks run successfully. Should I use cargo codspeed to run these on my local machine as well?

error: could not compile `vortex-btrblocks` (bench "stats_calc") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `cc` failed: exit status: 1
  |
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld:
          Undefined symbols for architecture arm64:
            "___errno_location", referenced from:
                _instrument_hooks_deinit in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _instrument_hooks_deinit in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _fs_accessAbsolute__1139 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _fs_openFileAbsolute__1136 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _fs_openFileAbsolute__1136 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _fs_openFileAbsolute__1136 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _fifo_UnixPipe_Reader_waitForAck__1084 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _fifo_UnixPipe_Reader_waitForAck__1084 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                ...
            "_malloc_usable_size", referenced from:
                _heap_CAllocator_resize__3571 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
                _heap_CAllocator_remap__3572 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
            "_openat64", referenced from:
                _fs_openFileAbsolute__1136 in libcodspeed-0d506ec441a4f912.rlib[19](b68c03e3d0475a32-core.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions