You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make: *** [Makefile:613: /home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/lib/wasm32-wasi/libwasi-emulated-mman.so] Error 1
make: *** Waiting for unfinished jobs....
wasm-ld: error: build/wasm32-wasi/libwasi-emulated-process-clocks.so.a(clock.pic.o): undefined symbol: __wasi_clock_time_get
wasm-ld: error: build/wasm32-wasi/libwasi-emulated-process-clocks.so.a(clock.pic.o): undefined symbol: __wasi_clock_time_get
wasm-ld: error: build/wasm32-wasi/libwasi-emulated-process-clocks.so.a(getrusage.pic.o): undefined symbol: errno
wasm-ld: error: build/wasm32-wasi/libwasi-emulated-process-clocks.so.a(times.pic.o): undefined symbol: __wasi_clock_time_get
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:613: /home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/lib/wasm32-wasi/libwasi-emulated-process-clocks.so] Error 1
wasm-ld: warning: creating shared libraries, with -shared, is not yet stable
/home/admin1/Pictures/wasi-sdk/build/install/bin/llvm-ar crs build/wasm32-wasi/libc.so.a build/wasm32-wasi/libc-top-half/musl/src/stdio/setlinebuf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/setvbuf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/snprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/sprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/sscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/stderr.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/stdin.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/stdout.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/swprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/swscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/ungetc.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/ungetwc.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vasprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vdprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vfprintf.long-double.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vfscanf.long-double.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vfwprintf.long-double.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vfwscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vsnprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vsprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vsscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vswprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vswscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vwprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/vwscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/wprintf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdio/wscanf.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/abs.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/atof.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/atoi.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/atol.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/atoll.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/bsearch.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/div.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/ecvt.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/fcvt.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/gcvt.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/imaxabs.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/imaxdiv.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/labs.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/ldiv.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/llabs.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/lldiv.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/qsort.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/qsort_nr.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/strtod.long-double.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/strtol.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/wcstod.long-double.pic.o build/wasm32-wasi/libc-top-half/musl/src/stdlib/wcstol.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/bcmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/bcopy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/bzero.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/explicit_bzero.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/index.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memccpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memchr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memcmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memcpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memmem.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memmove.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/mempcpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memrchr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/memset.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/rindex.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/stpcpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/stpncpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strcasecmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strcasestr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strcat.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strchr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strchrnul.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strcmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strcpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strcspn.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strdup.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strerror_r.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strlcat.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strlcpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strlen.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strncasecmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strncat.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strncmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strncpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strndup.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strnlen.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strpbrk.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strrchr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strsep.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strspn.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strstr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strtok.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strtok_r.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/strverscmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/swab.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcpcpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcpncpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcscasecmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcscasecmp_l.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcscat.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcschr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcscmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcscpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcscspn.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsdup.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcslen.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsncasecmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsncasecmp_l.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsncat.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsncmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsncpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsnlen.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcspbrk.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsrchr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsspn.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcsstr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcstok.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wcswcs.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wmemchr.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wmemcmp.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wmemcpy.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wmemmove.pic.o build/wasm32-wasi/libc-top-half/musl/src/string/wmemset.pic.o build/wasm32-wasi/libc-top-half/musl/src/thread/thrd_sleep.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/__month_to_secs.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/__secs_to_tm.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/__tm_to_secs.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/__tz.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/__year_to_secs.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/asctime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/asctime_r.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/ctime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/ctime_r.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/difftime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/ftime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/getdate.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/gmtime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/gmtime_r.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/localtime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/localtime_r.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/mktime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/strftime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/strptime.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/timegm.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/timespec_get.pic.o build/wasm32-wasi/libc-top-half/musl/src/time/wcsftime.pic.o build/wasm32-wasi/libc-top-half/musl/src/unistd/posix_close.pic.o build/wasm32-wasi/libc-top-half/sources/arc4random.pic.o
# This might eventually overflow again, but at least it'll do so in a loud way instead of
# silently dropping the tail.
/home/admin1/Pictures/wasi-sdk/build/install/bin/llvm-ar crs build/wasm32-wasi/libc.so.a
grep '^_*imported_wasi_' "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/share/wasm32-wasi/undefined-symbols.txt" \
> "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/lib/wasm32-wasi/libc.imports"
#
# Generate a test file that includes all public C header files.
#
# setjmp.h is excluded because it requires a different compiler option
#
cd "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/include/wasm32-wasi" && \
for header in $(find . -type f -not -name mman.h -not -name signal.h -not -name times.h -not -name resource.h -not -name setjmp.h -not -name wasip2.h -not -name descriptor_table.h |grep -v /bits/ |grep -v /c++/); do \
echo '#include <'$header'>' | sed 's/\.\///' ; \
done |LC_ALL=C sort >/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/share/wasm32-wasi/include-all.c ; \
cd - >/dev/null
#
# Test that it compiles.
#
/home/admin1/Pictures/wasi-sdk/build/install/bin/clang -fdebug-prefix-map=/home/admin1/Pictures/wasi-sdk=wasisdk://v24.2gb416e2beb40b+m -resource-dir /home/admin1/Pictures/wasi-sdk/build/sysroot/install/wasi-resource-dir -O2 -g -DNDEBUG --target=wasm32-wasi -fno-trapping-math -Wall -Wextra -Werror -Wno-null-pointer-arithmetic -Wno-unused-parameter -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-ignored-attributes -Wno-missing-braces -Wno-ignored-pragmas -Wno-unused-but-set-variable -Wno-unknown-warning-option -mthread-model single -isystem "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/include/wasm32-wasi" -fsyntax-only "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/share/wasm32-wasi/include-all.c" -Wno-\#warnings
#
# Collect all the predefined macros, except for compiler version macros
# which we don't need to track here.
#
/home/admin1/Pictures/wasi-sdk/build/install/bin/clang -fdebug-prefix-map=/home/admin1/Pictures/wasi-sdk=wasisdk://v24.2gb416e2beb40b+m -resource-dir /home/admin1/Pictures/wasi-sdk/build/sysroot/install/wasi-resource-dir -O2 -g -DNDEBUG --target=wasm32-wasi -fno-trapping-math -Wall -Wextra -Werror -Wno-null-pointer-arithmetic -Wno-unused-parameter -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-ignored-attributes -Wno-missing-braces -Wno-ignored-pragmas -Wno-unused-but-set-variable -Wno-unknown-warning-option -mthread-model single -isystem "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/include/wasm32-wasi" "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/share/wasm32-wasi/include-all.c" \
-isystem /home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/include/wasm32-wasi \
-std=gnu17 \
-E -dM -Wno-\#warnings \
-D_ALL_SOURCE \
-U__llvm__ \
-U__clang__ \
-U__clang_major__ \
-U__clang_minor__ \
-U__clang_patchlevel__ \
-U__clang_version__ \
-U__clang_literal_encoding__ \
-U__clang_wide_literal_encoding__ \
-U__wasm_mutable_globals__ \
-U__wasm_sign_ext__ \
-U__wasm_multivalue__ \
-U__wasm_reference_types__ \
-U__GNUC__ \
-U__GNUC_MINOR__ \
-U__GNUC_PATCHLEVEL__ \
-U__VERSION__ \
-U__NO_MATH_ERRNO__ \
-U__BITINT_MAXWIDTH__ \
-U__FLT_EVAL_METHOD__ -Wno-builtin-macro-redefined \
| sed -e 's/__[[:upper:][:digit:]]*_ATOMIC_\([[:upper:][:digit:]_]*\)_LOCK_FREE/__compiler_ATOMIC_\1_LOCK_FREE/' \
| sed -e 's/__GNUC_VA_LIST $/__GNUC_VA_LIST 1/' \
| grep -v '^#define __\(BOOL\|INT_\(LEAST\|FAST\)\(8\|16\|32\|64\)\|INT\|LONG\|LLONG\|SHRT\)_WIDTH__' \
| grep -v '^#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_\(1\|2\|4\|8\)' \
| grep -v '^#define __FPCLASS_' \
| grep -v '^#define __FLT128_' \
| grep -v '^#define __MEMORY_SCOPE_' \
| grep -v '^#define __GCC_\(CON\|DE\)STRUCTIVE_SIZE' \
| grep -v '^#define __STDC_EMBED_' \
| grep -v '^#define __\(DBL\|FLT\|LDBL\)_NORM_MAX__' \
| grep -v '^#define NDEBUG' \
| grep -v '^#define __OPTIMIZE__' \
| grep -v '^#define assert' \
| grep -v '^#define __NO_INLINE__' \
> "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/share/wasm32-wasi/predefined-macros.txt"
# Check that the computed metadata matches the expected metadata.
# This ignores whitespace because on Windows the output has CRLF line endings.
diff -wur "expected/wasm32-wasip1" "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/share/wasm32-wasi"
make: Leaving directory '/home/admin1/Pictures/wasi-sdk/build/sysroot/wasi-libc-wasm32-wasi'
FAILED: wasi-libc-wasm32-wasi-build-prefix/src/wasi-libc-wasm32-wasi-build-stamp/wasi-libc-wasm32-wasi-build-build /home/admin1/Pictures/wasi-sdk/build/sysroot/wasi-libc-wasm32-wasi-build-prefix/src/wasi-libc-wasm32-wasi-build-stamp/wasi-libc-wasm32-wasi-build-build
cd /home/admin1/Pictures/wasi-sdk/build/sysroot/wasi-libc-wasm32-wasi-build-prefix/src/wasi-libc-wasm32-wasi-build-build && /usr/bin/make -j8 -C /home/admin1/Pictures/wasi-sdk/build/sysroot/wasi-libc-wasm32-wasi CC=/home/admin1/Pictures/wasi-sdk/build/install/bin/clang AR=/home/admin1/Pictures/wasi-sdk/build/install/bin/llvm-ar NM=/home/admin1/Pictures/wasi-sdk/build/install/bin/llvm-nm SYSROOT=/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot "EXTRA_CFLAGS= -fdebug-prefix-map=/home/admin1/Pictures/wasi-sdk=wasisdk://v24.2gb416e2beb40b+m -resource-dir /home/admin1/Pictures/wasi-sdk/build/sysroot/install/wasi-resource-dir -O2 -g -DNDEBUG" TARGET_TRIPLE=wasm32-wasi default libc_so && /opt/cmake-3.26.0/bin/cmake -E touch /home/admin1/Pictures/wasi-sdk/build/sysroot/wasi-libc-wasm32-wasi-build-prefix/src/wasi-libc-wasm32-wasi-build-stamp/wasi-libc-wasm32-wasi-build-build
ninja: build stopped: subcommand failed.
what flags i am missing while building.
may i know what mistake i am doing in this process.
along with this i am fcaing below error like
# This ignores whitespace because on Windows the output has CRLF line endings.
diff -wur "expected/wasm32-wasip1" "/home/admin1/Pictures/wasi-sdk/build/sysroot/install/share/wasi-sysroot/share/wasm32-wasi"
make: Leaving directory '/home/admin1/Pictures/wasi-sdk/build/sysroot/wasi-libc-wasm32-wasi'
FAILED: wasi-libc-wasm32-wasi-build-prefix/src/wasi-libc-wasm32-wasi-build-stamp/wasi-libc-wasm32-wasi-build-build /home/admin1/Pictures/wasi-sdk/build/sysroot/wasi-libc-wasm32-wasi-build-prefix/src/wasi-libc-wasm32-wasi-build-stamp/wasi-libc-wasm32-wasi-build-build
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hi, i have followd #526 and #474 issues and then i am able to solve below issues
but after this i am fcaing below errors
what flags i am missing while building.
may i know what mistake i am doing in this process.
along with this i am fcaing below error like
Thanks in advance.
The text was updated successfully, but these errors were encountered: