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

‘__builtin_thread_pointer’ is not supported on this target #505

Open
ellenkampguus opened this issue Jul 14, 2024 · 1 comment · Fixed by #519
Open

‘__builtin_thread_pointer’ is not supported on this target #505

ellenkampguus opened this issue Jul 14, 2024 · 1 comment · Fixed by #519

Comments

@ellenkampguus
Copy link

ellenkampguus commented Jul 14, 2024

Command cargo run --release --bin kaspad -- --utxoindex fails.

cargo:warning=In file included from c_src/mimalloc/src/alloc.c:14,
cargo:warning= from c_src/mimalloc/src/static.c:23:
cargo:warning=c_src/mimalloc/include/mimalloc/prim.h: In function ‘_mi_thread_id’:
cargo:warning=c_src/mimalloc/include/mimalloc/prim.h:240:21: error: ‘__builtin_thread_pointer’ is not supported on this target
cargo:warning= 240 | return (uintptr_t)__builtin_thread_pointer();
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=c_src/mimalloc/include/mimalloc/prim.h: In function ‘mi_free’:
cargo:warning=c_src/mimalloc/include/mimalloc/prim.h:240:21: error: ‘__builtin_thread_pointer’ is not supported on this target
cargo:warning= 240 | return (uintptr_t)__builtin_thread_pointer();
cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~

--- stderr

error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "c_src/mimalloc/include" "-I" "c_src/mimalloc/src" "-Wall" "-Wextra" "-ftls-model=initial-exec" "-DMI_MALLOC_OVERRIDE" "-DMI_DEBUG=0" "-o" "/home/guus/git/rusty-kaspa/target/release/build/libmimalloc-sys-bb86269ea10520b1/out/98cfcaec7182b1d8-static.o" "-c" "c_src/mimalloc/src/static.c" with args cc did not execute successfully (status code exit status: 1).

Linux debian 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux

michaelsutton pushed a commit that referenced this issue Aug 19, 2024
Upgrade mimalloc to 0.1.43 implementing the fix by microsoft team.
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

Successfully merging a pull request may close this issue.

2 participants
@ellenkampguus and others