Skip to content
This repository was archived by the owner on Jun 8, 2025. It is now read-only.

Fail to link on osx/amd64 #242

@arnaudbriche

Description

@arnaudbriche

Hi,

I'm trying to use the library to implement the keccak256 function for the ClickHouse database.
Their CI breaks when trying to build for osx/amd64 with the following link error:

Undefined symbols for architecture x86_64:
Feb 25 22:57:07   "___cpu_indicator_init", referenced from:
Feb 25 22:57:07       _select_keccakf1600_implementation in lib_ethash.a(keccak.c.o)
Feb 25 22:57:07   "___cpu_model", referenced from:
Feb 25 22:57:07       _select_keccakf1600_implementation in lib_ethash.a(keccak.c.o)
Feb 25 22:57:07 ld: symbol(s) not found for architecture x86_64
Feb 25 22:57:07 clang++-19: error: linker command failed with exit code 1 (use -v to see invocation)
Feb 25 22:57:10 [11873/11899] Linking CXX executable programs/clickhouse
Feb 25 22:57:10 FAILED: programs/clickhouse 

PR is here: ClickHouse/ClickHouse#76669
And here is the link to the full build log: https://s3.amazonaws.com/clickhouse-test-reports/PRs/76669/0c9c197a68a77377fda062fd3a308e73a43d02bb//build_amd_darwin/build_log.log

Do you have any pointer why this is happening ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions