Comments (2)
When adding &
to x
-> __atomic_store(p, &x, __ATOMIC_SEQ_CST);
:
cheerp/bin/clang -target cheerp-wasm -I cheerp/lib/clang/15.0.0/include -std=c99 -nostdinc -frounding-math -Wa,--noexecstack -D_XOPEN_SOURCE=700 -I../arch/cheerp -I../arch/generic -Iobj/src/internal -I../src/include -I../src/internal -Iobj/include -I../include -Os -pipe -fomit-frame-pointer -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -w -Wno-pointer-to-int-cast -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -Werror=int-conversion -Werror=incompatible-pointer-types -Qunused-arguments -Waddress -Warray-bounds -Wchar-subscripts -Wduplicate-decl-specifier -Winit-self -Wreturn-type -Wsequence-point -Wstrict-aliasing -Wunused-function -Wunused-label -Wunused-variable -fno-stack-protector -c -o obj/src/env/__init_tls.o ../src/env/__init_tls.c
../src/env/__init_tls.c:22:43: error: incompatible pointer to integer conversion passing 'volatile int *' to parameter of type 'long' [-Wint-conversion]
td->tid = __syscall(SYS_set_tid_address, &__thread_list_lock);
^~~~~~~~~~~~~~~~~~~
../src/internal/syscall.h:55:49: note: expanded from macro '__syscall'
#define __syscall(...) __SYSCALL_DISP(__syscall,__VA_ARGS__)
^~~~~~~~~~~
../src/internal/syscall.h:53:80: note: expanded from macro '__SYSCALL_DISP'
#define __SYSCALL_DISP(b,...) __SYSCALL_CONCAT(b,__SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__)
^~~~~~~~~~~
../src/internal/syscall.h:32:27: note: expanded from macro '__syscall1'
#define __syscall1(n,a) n(a)
^
../arch/cheerp/syscall_arch.h:262:37: note: passing argument to parameter 'a1' here
long __syscall_set_tid_address(long a1,...);
^
1 error generated.
Makefile:151: recipe for target 'obj/src/env/__init_tls.o' failed
make: *** [obj/src/env/__init_tls.o] Error 1
Notice this cheerp/lib/clang/15.0.0/include
but https://github.com/leaningtech/cheerp-meta/releases/download/cheerp-3.0/cheerp-llvm-clang-3.0.tar.gz have clang16
.
from cheerp-musl.
Hi @mingodad,
The build instructions of musl on our docs page seem outdated.
Try with the instructions found in README.md in this repo. Those should work.
I will update the docs, thanks for reporting this!
from cheerp-musl.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheerp-musl.