wasix-org / wasix-libc

wasix libc implementation for WebAssembly
https://wasi.dev
Other
111 stars 19 forks source link

Failed build: failed checks on defined-symbols.txt, undefined-symbols.txt #17

Closed SanderVocke closed 1 year ago

SanderVocke commented 1 year ago

Building on: Arch Linux x64 using system llvm and clang.

Build steps:

Result: the sysroot builds, but then some post checks on (un-)defined symbols fail. I am not sure if it is a real issue, since there are more defined symbols than expected, and less undefined symbols.

| diff -wur expected/wasm32-wasi/defined-symbols.txt /home/vagrant/qoverage/wasix-libc/sysroot/share/wasm32-wasi/defined-symbols.txt
| --- expected/wasm32-wasi/defined-symbols.txt  2023-09-05 06:28:55.717416808 +0000
| +++ /home/vagrant/qoverage/wasix-libc/sysroot/share/wasm32-wasi/defined-symbols.txt   2023-09-05 06:37:06.144689959 +0000
| @@ -13,25 +13,47 @@
|  __SIG_ERR
|  __SIG_IGN
|  __abort_lock
| +__absvdi2
| +__absvsi2
| +__absvti2
|  __acquire_ptc
| +__adddf3
| +__addsf3
| +__addtf3
| +__addvdi3
| +__addvsi3
| +__addvti3
|  __aio_atfork
|  __aio_close
|  __asctime_r
| +__ashldi3
| +__ashlti3
| +__ashrdi3
| +__ashrti3
|  __assert_fail
|  __at_quick_exit_lockptr
|  __atexit_lockptr
|  __block_all_sigs
|  __block_app_sigs
| +__bswapdi2
| +__bswapsi2
|  __bump_lockptr
|  __c_dot_utf8
|  __c_dot_utf8_locale
|  __c_locale
|  __cancel
| +__clear_cache
|  __clock
|  __clock_gettime
|  __clock_nanosleep
|  __clock_settime
|  __clone
| +__clzdi2
| +__clzsi2
| +__clzti2
| +__cmpdi2
| +__cmpti2
| +__compilerrt_abort_impl
|  __copy_tls
|  __cos
|  __cosdf
| @@ -46,12 +68,27 @@
|  __ctype_get_mb_cur_max
|  __ctype_tolower_loc
|  __ctype_toupper_loc
| +__ctzdi2
| +__ctzsi2
| +__ctzti2
|  __cxa_atexit
|  __cxa_finalize
|  __daylight
|  __default_guardsize
|  __default_stacksize
|  __des_setkey
| +__divdc3
| +__divdf3
| +__divdi3
| +__divmoddi4
| +__divmodsi4
| +__divmodti4
| +__divsc3
| +__divsf3
| +__divsi3
| +__divtc3
| +__divtf3
| +__divti3
|  __dlerror_lockptr
|  __do_cleanup_pop
|  __do_cleanup_push
| @@ -62,6 +99,9 @@
|  __eintr_handler_lock
|  __eintr_valid_flag
|  __env_rm_add
| +__eqdf2
| +__eqsf2
| +__eqtf2
|  __errno_location
|  __execvp
|  __execvpe
| @@ -69,13 +109,58 @@
|  __exp_data
|  __expo2
|  __expo2f
| +__extenddftf2
| +__extendhfsf2
| +__extendsfdf2
| +__extendsftf2
|  __fbufsize
|  __fclose_ca
|  __fdopen
| +__fe_getround
| +__fe_raise_inexact
|  __fesetround
| +__ffsdi2
| +__ffssi2
| +__ffsti2
|  __fgetwc_unlocked
| +__fixdfdi
| +__fixdfsi
| +__fixdfti
| +__fixsfdi
| +__fixsfsi
| +__fixsfti
| +__fixtfdi
| +__fixtfsi
| +__fixtfti
| +__fixunsdfdi
| +__fixunsdfsi
| +__fixunsdfti
| +__fixunssfdi
| +__fixunssfsi
| +__fixunssfti
| +__fixunstfdi
| +__fixunstfsi
| +__fixunstfti
|  __flbf
| +__floatdidf
| +__floatdisf
| +__floatditf
|  __floatscan
| +__floatsidf
| +__floatsisf
| +__floatsitf
| +__floattidf
| +__floattisf
| +__floattitf
| +__floatundidf
| +__floatundisf
| +__floatunditf
| +__floatunsidf
| +__floatunsisf
| +__floatunsitf
| +__floatuntidf
| +__floatuntisf
| +__floatuntitf
|  __fmodeflags
|  __fopen_rb_ca
|  __fork_handler
| @@ -101,11 +186,14 @@
|  __fwritable
|  __fwritex
|  __fwriting
| +__gedf2
| +__gesf2
|  __get_handler_set
|  __get_locale
|  __get_resolv_conf
|  __getdelim
|  __getentropy
| +__getf2
|  __getgr_a
|  __getgrent_a
|  __getopt_msg
| @@ -114,6 +202,11 @@
|  __gettext_lockptr
|  __gettextdomain
|  __gmtime_r
| +__gnu_f2h_ieee
| +__gnu_h2f_ieee
| +__gtdf2
| +__gtsf2
| +__gttf2
|  __h_errno_location
|  __hwcap
|  __inet_aton
| @@ -166,6 +259,9 @@
|  __ldexp_cexp
|  __ldexp_cexpf
|  __ldso_atfork
| +__ledf2
| +__lesf2
| +__letf2
|  __lgamma_r
|  __lgammaf_r
|  __lgammal_r
| @@ -191,6 +287,11 @@
|  __lookup_serv
|  __lookup_serv_wasi
|  __lseek
| +__lshrdi3
| +__lshrti3
| +__ltdf2
| +__ltsf2
| +__lttf2
|  __main_void
|  __malloc_atfork
|  __math_divzero
| @@ -207,7 +308,34 @@
|  __memrchr
|  __mkostemps
|  __mo_lookup
| +__moddi3
| +__modsi3
| +__modti3
|  __month_to_secs
| +__muldc3
| +__muldf3
| +__muldi3
| +__mulodi4
| +__mulosi4
| +__muloti4
| +__mulsc3
| +__mulsf3
| +__multc3
| +__multf3
| +__multi3
| +__mulvdi3
| +__mulvsi3
| +__mulvti3
| +__nedf2
| +__negdf2
| +__negdi2
| +__negsf2
| +__negti2
| +__negvdi2
| +__negvsi2
| +__negvti2
| +__nesf2
| +__netf2
|  __newlocale
|  __nl_langinfo
|  __nl_langinfo_l
| @@ -219,14 +347,23 @@
|  __optreset
|  __overflow
|  __p1evll
| +__paritydi2
| +__paritysi2
| +__parityti2
|  __parsespent
|  __pio2_hi
|  __pio2_lo
|  __pleval
|  __polevll
| +__popcountdi2
| +__popcountsi2
| +__popcountti2
|  __posix_getopt
|  __pow_log_data
|  __powf_log2_data
| +__powidf2
| +__powisf2
| +__powitf2
|  __private_cond_signal
|  __progname
|  __progname_full
| @@ -320,6 +457,12 @@
|  __strtoull_internal
|  __strtoumax_internal
|  __strxfrm_l
| +__subdf3
| +__subsf3
| +__subtf3
| +__subvdi3
| +__subvsi3
| +__subvti3
|  __syscall_ret
|  __sysinfo
|  __syslog_lockptr
| @@ -351,12 +494,31 @@
|  __tre_mem_alloc_impl
|  __tre_mem_destroy
|  __tre_mem_new_impl
| +__truncdfhf2
| +__truncdfsf2
| +__truncsfhf2
| +__trunctfdf2
| +__trunctfsf2
|  __tsearch_balance
|  __tzname
| +__ucmpdi2
| +__ucmpti2
| +__udivdi3
| +__udivmoddi4
| +__udivmodsi4
| +__udivmodti4
| +__udivsi3
| +__udivti3
|  __uflow
| +__umoddi3
| +__umodsi3
| +__umodti3
|  __unlist_locked_file
|  __unlock
|  __unlockfile
| +__unorddf2
| +__unordsf2
| +__unordtf2
|  __uselocale
|  __utc
|  __vm_lock
| diff -wur expected/wasm32-wasi/undefined-symbols.txt /home/vagrant/qoverage/wasix-libc/sysroot/share/wasm32-wasi/undefined-symbols.txt
| --- expected/wasm32-wasi/undefined-symbols.txt    2023-09-05 06:28:55.717416808 +0000
| +++ /home/vagrant/qoverage/wasix-libc/sysroot/share/wasm32-wasi/undefined-symbols.txt 2023-09-05 06:37:07.731331946 +0000
| @@ -1,17 +1,5 @@
| -__addtf3
|  __data_end
| -__divtf3
| -__eqtf2
| -__extenddftf2
| -__extendsftf2
| -__fixtfdi
| -__fixtfsi
| -__fixunstfsi
| -__floatsitf
| -__floatunsitf
| -__getf2
|  __global_base
| -__gttf2
|  __heap_base
|  __imported_wasi_snapshot_preview1_args_get
|  __imported_wasi_snapshot_preview1_args_sizes_get
| @@ -130,17 +118,10 @@
|  __imported_wasix_32v1_tty_get
|  __imported_wasix_32v1_tty_set
|  __imported_wasix_32v1_ws_connect
| -__letf2
| -__lttf2
|  __main_argc_argv
| -__netf2
|  __stack_pointer
| -__subtf3
|  __tls_align
|  __tls_base
|  __tls_size
| -__trunctfdf2
| -__trunctfsf2
| -__unordtf2
|  __wasm_call_ctors
|  __wasm_init_tls
| make: *** [Makefile:715: check-symbols] Error 1
theduke commented 1 year ago

What happens if you run build32.sh ?

SanderVocke commented 1 year ago

That did the trick, thanks!