xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.02k stars 781 forks source link

Failure to build in a docker linux/i386 image under linux/x86_64 host #1789

Closed trenta3 closed 2 years ago

trenta3 commented 2 years ago

Describe the bug

xmake fails to build under docker i386 image on x86_64 architecture. This is possibly due to the fact that uname -m returns x86_64 but files are 32-bit, look at the included example.

Expected behavior

Xmake should detect it is running under i386 and build accordingly. In particular we can see from the execution trace that it thinks to be under x86_64:

installing to /root/.local ...
plat: linux
arch: x86_64

Additional Information

user$ image=$(buildah from --arch 386 debian:testing)
user$ buildah run $image bash
docker# apt update -y && apt install -y file wget build-essential g++-multilib
docker# uname -m                                        
x86_64
docker# file /bin/dash 
/bin/dash: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, BuildID[sha1]=d55459217c8246654fd8f0999d48452176e6dde5, for GNU/Linux 3.2.0, stripped
docker# bash <(wget https://xmake.io/shget.text -O -)

Redirecting output to 'wget-log.3'.
--2021-11-02 00:03:24--  https://cdn.jsdelivr.net/gh/xmake-io/xmake@master/scripts/get.sh
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 104.16.88.20, 104.16.89.20, 104.16.85.20, ...
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|104.16.88.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-sh]
Saving to: 'STDOUT'

-                            [ <=>                              ]   9.28K  --.-KB/s    in 0.003s  

2021-11-02 00:03:25 (2.95 MB/s) - written to stdout [9507]

xmake, A cross-platform build utility based on Lua.   
Copyright (C) 2015-present Ruki Wang, tboox.org, xmake.io
                         _                            
    __  ___ __  __  __ _| | ______                    
    \ \/ / |  \/  |/ _  | |/ / __ \                   
     >  <  | \__/ | /_| |   <  ___/                   
    /_/\_\_|_|  |_|\__ \|_|\_\____|                   
                         by ruki, xmake.io            

   👉  Manual: https://xmake.io/#/getting_started     
   🙏  Donate: https://xmake.io/#/sponsor             

downloading https://cdn.jsdelivr.net/gh/xmake-mirror/xmake-releases@v2.5.9/xmake-v2.5.9.xz.run ..
--2021-11-02 00:03:26--  https://cdn.jsdelivr.net/gh/xmake-mirror/xmake-releases@v2.5.9/xmake-v2.5.9.xz.run
Resolving cdn.jsdelivr.net (cdn.jsdelivr.net)... 104.16.88.20, 104.16.89.20, 104.16.85.20, ...
Connecting to cdn.jsdelivr.net (cdn.jsdelivr.net)|104.16.88.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2287421 (2.2M) [application/x-makeself]
Saving to: 'STDOUT'

-                        100%[=================================>]   2.18M  2.59MB/s    in 0.8s    

2021-11-02 00:03:27 (2.59 MB/s) - written to stdout [2287421/2287421]

Creating directory /tmp/.xmake_getter1484
Verifying archive integrity...  100%    100%   All good.
Uncompressing xmake-v2.5.9-runfile  100%  
compiling xmake-core ...

=============================================================================
compile:
    plat:       linux
    arch:       x86_64
    host:       linux
    demo:       y
    prof:       n
    debug:      n
    small:      n
    ccache:     
    distcc:     
    branch:     
    commit:     
    luajit:     jit

packages:
    tbox:       y
    luajit:     y
    lua:        y
    base:       y

directories:
    install:        
    package:        
    backend:        luajit

toolchains:
    bin:        
    pre:        
    sdk:        

flags:
    cflag:      
    ccflag:     
    cxflag:     
    mflag:      
    mmflag:     
    mxflag:     
    ldflag:     
    asflag:     
    arflag:     
    shflag:     

clean xmake
clean luajit
clean lcurses
clean sv
clean lua-cjson
clean tbox
clean xmake
clean demo
make xmake
make luajit
compile.r luajit/src/lib_aux.c
compile.r luajit/src/lib_base.c
compile.r luajit/src/lib_bit.c
compile.r luajit/src/lib_debug.c
compile.r luajit/src/lib_ffi.c
compile.r luajit/src/lib_init.c
compile.r luajit/src/lib_io.c
compile.r luajit/src/lib_jit.c
compile.r luajit/src/lib_math.c
compile.r luajit/src/lib_os.c
compile.r luajit/src/lib_package.c
compile.r luajit/src/lib_string.c
compile.r luajit/src/lib_table.c
compile.r luajit/src/lj_alloc.c
compile.r luajit/src/lj_api.c
compile.r luajit/src/lj_asm.c
compile.r luajit/src/lj_bc.c
compile.r luajit/src/lj_bcread.c
compile.r luajit/src/lj_bcwrite.c
compile.r luajit/src/lj_buf.c
compile.r luajit/src/lj_carith.c
compile.r luajit/src/lj_ccall.c
compile.r luajit/src/lj_ccallback.c
compile.r luajit/src/lj_cconv.c
compile.r luajit/src/lj_cdata.c
compile.r luajit/src/lj_char.c
compile.r luajit/src/lj_clib.c
compile.r luajit/src/lj_cparse.c
compile.r luajit/src/lj_crecord.c
compile.r luajit/src/lj_ctype.c
compile.r luajit/src/lj_debug.c
compile.r luajit/src/lj_dispatch.c
compile.r luajit/src/lj_err.c
compile.r luajit/src/lj_ffrecord.c
compile.r luajit/src/lj_func.c
compile.r luajit/src/lj_gc.c
compile.r luajit/src/lj_gdbjit.c
compile.r luajit/src/lj_ir.c
compile.r luajit/src/lj_lex.c
compile.r luajit/src/lj_lib.c
compile.r luajit/src/lj_load.c
compile.r luajit/src/lj_mcode.c
compile.r luajit/src/lj_meta.c
compile.r luajit/src/lj_obj.c
compile.r luajit/src/lj_opt_dce.c
compile.r luajit/src/lj_opt_fold.c
compile.r luajit/src/lj_opt_loop.c
compile.r luajit/src/lj_opt_mem.c
compile.r luajit/src/lj_opt_narrow.c
compile.r luajit/src/lj_opt_sink.c
compile.r luajit/src/lj_opt_split.c
compile.r luajit/src/lj_parse.c
compile.r luajit/src/lj_prng.c
compile.r luajit/src/lj_profile.c
compile.r luajit/src/lj_record.c
compile.r luajit/src/lj_snap.c
compile.r luajit/src/lj_state.c
compile.r luajit/src/lj_str.c
compile.r luajit/src/lj_strfmt.c
compile.r luajit/src/lj_strfmt_num.c
compile.r luajit/src/lj_strscan.c
compile.r luajit/src/lj_tab.c
compile.r luajit/src/lj_trace.c
compile.r luajit/src/lj_udata.c
compile.r luajit/src/lj_vmevent.c
compile.r luajit/src/lj_vmmath.c
compile.r autogen/linux/jit/x86_64/lj_vm.S
link libluajitr.a
make lcurses
compile.r lcurses.c
link liblcursesr.a
make sv
compile.r sv/src/comp.c
compile.r sv/src/id.c
compile.r sv/src/num.c
compile.r sv/src/range.c
compile.r sv/src/semvers.c
compile.r sv/src/utils.c
compile.r sv/src/version.c
link libsvr.a
make lua-cjson
compile.r lua-cjson/dtoa.c
compile.r lua-cjson/g_fmt.c
compile.r lua-cjson/lua_cjson.c
compile.r lua-cjson/strbuf.c
link liblua-cjsonr.a
make tbox
compile.r tbox/src/tbox/algorithm/binary_find.c
compile.r tbox/src/tbox/algorithm/binary_find_if.c
compile.r tbox/src/tbox/algorithm/bubble_sort.c
compile.r tbox/src/tbox/algorithm/count.c
compile.r tbox/src/tbox/algorithm/count_if.c
compile.r tbox/src/tbox/algorithm/distance.c
compile.r tbox/src/tbox/algorithm/find.c
compile.r tbox/src/tbox/algorithm/find_if.c
compile.r tbox/src/tbox/algorithm/heap_sort.c
compile.r tbox/src/tbox/algorithm/insert_sort.c
compile.r tbox/src/tbox/algorithm/predicate.c
compile.r tbox/src/tbox/algorithm/quick_sort.c
compile.r tbox/src/tbox/algorithm/remove.c
compile.r tbox/src/tbox/algorithm/remove_first.c
compile.r tbox/src/tbox/algorithm/remove_first_if.c
compile.r tbox/src/tbox/algorithm/remove_if.c
compile.r tbox/src/tbox/algorithm/rfind.c
compile.r tbox/src/tbox/algorithm/rfind_if.c
compile.r tbox/src/tbox/algorithm/rwalk.c
compile.r tbox/src/tbox/algorithm/sort.c
compile.r tbox/src/tbox/algorithm/walk.c
compile.r tbox/src/tbox/charset/ascii.c
compile.r tbox/src/tbox/charset/charset.c
compile.r tbox/src/tbox/charset/gb2312.c
compile.r tbox/src/tbox/charset/iso8859.c
compile.r tbox/src/tbox/charset/ucs2.c
compile.r tbox/src/tbox/charset/ucs4.c
compile.r tbox/src/tbox/charset/utf16.c
compile.r tbox/src/tbox/charset/utf32.c
compile.r tbox/src/tbox/charset/utf8.c
compile.r tbox/src/tbox/container/array_iterator.c
compile.r tbox/src/tbox/container/bloom_filter.c
compile.r tbox/src/tbox/container/circle_queue.c
compile.r tbox/src/tbox/container/element/hash.c
compile.r tbox/src/tbox/container/element/long.c
compile.r tbox/src/tbox/container/element/mem.c
compile.r tbox/src/tbox/container/element/null.c
compile.r tbox/src/tbox/container/element/ptr.c
compile.r tbox/src/tbox/container/element/size.c
compile.r tbox/src/tbox/container/element/str.c
compile.r tbox/src/tbox/container/element/true.c
compile.r tbox/src/tbox/container/element/uint16.c
compile.r tbox/src/tbox/container/element/uint32.c
compile.r tbox/src/tbox/container/element/uint8.c
compile.r tbox/src/tbox/container/hash_map.c
compile.r tbox/src/tbox/container/hash_set.c
compile.r tbox/src/tbox/container/heap.c
compile.r tbox/src/tbox/container/iterator.c
compile.r tbox/src/tbox/container/list.c
compile.r tbox/src/tbox/container/list_entry.c
compile.r tbox/src/tbox/container/priority_queue.c
compile.r tbox/src/tbox/container/queue.c
compile.r tbox/src/tbox/container/single_list.c
compile.r tbox/src/tbox/container/single_list_entry.c
compile.r tbox/src/tbox/container/stack.c
compile.r tbox/src/tbox/container/vector.c
compile.r tbox/src/tbox/hash/adler32.c
compile.r tbox/src/tbox/hash/bkdr.c
compile.r tbox/src/tbox/hash/fnv32.c
compile.r tbox/src/tbox/hash/md5.c
compile.r tbox/src/tbox/hash/sha.c
compile.r tbox/src/tbox/hash/uuid.c
compile.r tbox/src/tbox/libc/impl/libc.c
compile.r tbox/src/tbox/libc/misc/time/gmmktime.c
compile.r tbox/src/tbox/libc/misc/time/gmtime.c
compile.r tbox/src/tbox/libc/misc/time/localtime.c
compile.r tbox/src/tbox/libc/misc/time/mktime.c
compile.r tbox/src/tbox/libc/misc/time/time.c
compile.r tbox/src/tbox/libc/stdio/printf.c
compile.r tbox/src/tbox/libc/stdio/printf_object.c
compile.r tbox/src/tbox/libc/stdio/puts.c
compile.r tbox/src/tbox/libc/stdio/snprintf.c
compile.r tbox/src/tbox/libc/stdio/sprintf.c
compile.r tbox/src/tbox/libc/stdio/swprintf.c
compile.r tbox/src/tbox/libc/stdio/vsnprintf.c
compile.r tbox/src/tbox/libc/stdio/vswprintf.c
compile.r tbox/src/tbox/libc/stdio/wprintf.c
compile.r tbox/src/tbox/libc/stdio/wputs.c
compile.r tbox/src/tbox/libc/stdlib/mbstowcs.c
compile.r tbox/src/tbox/libc/stdlib/random.c
compile.r tbox/src/tbox/libc/stdlib/stdlib.c
compile.r tbox/src/tbox/libc/stdlib/wcstombs.c
compile.r tbox/src/tbox/libc/string/memcmp.c
compile.r tbox/src/tbox/libc/string/memcpy.c
compile.r tbox/src/tbox/libc/string/memdup.c
compile.r tbox/src/tbox/libc/string/memmem.c
compile.r tbox/src/tbox/libc/string/memmov.c
compile.r tbox/src/tbox/libc/string/memset.c
compile.r tbox/src/tbox/libc/string/strcat.c
compile.r tbox/src/tbox/libc/string/strchr.c
compile.r tbox/src/tbox/libc/string/strcmp.c
compile.r tbox/src/tbox/libc/string/strcpy.c
compile.r tbox/src/tbox/libc/string/strdup.c
compile.r tbox/src/tbox/libc/string/strichr.c
compile.r tbox/src/tbox/libc/string/stricmp.c
compile.r tbox/src/tbox/libc/string/strirchr.c
compile.r tbox/src/tbox/libc/string/strirstr.c
compile.r tbox/src/tbox/libc/string/stristr.c
compile.r tbox/src/tbox/libc/string/strlcpy.c
compile.r tbox/src/tbox/libc/string/strlen.c
compile.r tbox/src/tbox/libc/string/strncat.c
compile.r tbox/src/tbox/libc/string/strnchr.c
compile.r tbox/src/tbox/libc/string/strncmp.c
compile.r tbox/src/tbox/libc/string/strncpy.c
compile.r tbox/src/tbox/libc/string/strndup.c
compile.r tbox/src/tbox/libc/string/strnicmp.c
compile.r tbox/src/tbox/libc/string/strnirchr.c
compile.r tbox/src/tbox/libc/string/strnirstr.c
compile.r tbox/src/tbox/libc/string/strnistr.c
compile.r tbox/src/tbox/libc/string/strnlen.c
compile.r tbox/src/tbox/libc/string/strnrchr.c
compile.r tbox/src/tbox/libc/string/strnrstr.c
compile.r tbox/src/tbox/libc/string/strnstr.c
compile.r tbox/src/tbox/libc/string/strrchr.c
compile.r tbox/src/tbox/libc/string/strrstr.c
compile.r tbox/src/tbox/libc/string/strstr.c
compile.r tbox/src/tbox/libc/string/wcscat.c
compile.r tbox/src/tbox/libc/string/wcschr.c
compile.r tbox/src/tbox/libc/string/wcscmp.c
compile.r tbox/src/tbox/libc/string/wcscpy.c
compile.r tbox/src/tbox/libc/string/wcsdup.c
compile.r tbox/src/tbox/libc/string/wcsichr.c
compile.r tbox/src/tbox/libc/string/wcsicmp.c
compile.r tbox/src/tbox/libc/string/wcsirchr.c
compile.r tbox/src/tbox/libc/string/wcsirstr.c
compile.r tbox/src/tbox/libc/string/wcsistr.c
compile.r tbox/src/tbox/libc/string/wcslcpy.c
compile.r tbox/src/tbox/libc/string/wcslen.c
compile.r tbox/src/tbox/libc/string/wcsncat.c
compile.r tbox/src/tbox/libc/string/wcsncmp.c
compile.r tbox/src/tbox/libc/string/wcsncpy.c
compile.r tbox/src/tbox/libc/string/wcsndup.c
compile.r tbox/src/tbox/libc/string/wcsnicmp.c
compile.r tbox/src/tbox/libc/string/wcsnirchr.c
compile.r tbox/src/tbox/libc/string/wcsnirstr.c
compile.r tbox/src/tbox/libc/string/wcsnlen.c
compile.r tbox/src/tbox/libc/string/wcsnrchr.c
compile.r tbox/src/tbox/libc/string/wcsnrstr.c
compile.r tbox/src/tbox/libc/string/wcsrchr.c
compile.r tbox/src/tbox/libc/string/wcsrstr.c
compile.r tbox/src/tbox/libc/string/wcsstr.c
compile.r tbox/src/tbox/libm/cos.c
compile.r tbox/src/tbox/libm/cosf.c
compile.r tbox/src/tbox/libm/exp.c
compile.r tbox/src/tbox/libm/idivi8.c
compile.r tbox/src/tbox/libm/ilog2i.c
compile.r tbox/src/tbox/libm/impl/libm.c
compile.r tbox/src/tbox/libm/isfin.c
compile.r tbox/src/tbox/libm/isfinf.c
compile.r tbox/src/tbox/libm/isinf.c
compile.r tbox/src/tbox/libm/isinff.c
compile.r tbox/src/tbox/libm/isnan.c
compile.r tbox/src/tbox/libm/isnanf.c
compile.r tbox/src/tbox/libm/isqrti.c
compile.r tbox/src/tbox/libm/pow.c
compile.r tbox/src/tbox/libm/sqrtf.c
compile.r tbox/src/tbox/math/impl/math.c
compile.r tbox/src/tbox/math/random/linear.c
compile.r tbox/src/tbox/math/random/random.c
compile.r tbox/src/tbox/memory/allocator.c
compile.r tbox/src/tbox/memory/buffer.c
compile.r tbox/src/tbox/memory/default_allocator.c
compile.r tbox/src/tbox/memory/fixed_pool.c
compile.r tbox/src/tbox/memory/impl/memory.c
compile.r tbox/src/tbox/memory/impl/native_large_allocator.c
compile.r tbox/src/tbox/memory/impl/prefix.c
compile.r tbox/src/tbox/memory/impl/static_fixed_pool.c
compile.r tbox/src/tbox/memory/impl/static_large_allocator.c
compile.r tbox/src/tbox/memory/large_allocator.c
compile.r tbox/src/tbox/memory/native_allocator.c
compile.r tbox/src/tbox/memory/queue_buffer.c
compile.r tbox/src/tbox/memory/small_allocator.c
compile.r tbox/src/tbox/memory/static_allocator.c
compile.r tbox/src/tbox/memory/static_buffer.c
compile.r tbox/src/tbox/memory/string_pool.c
compile.r tbox/src/tbox/network/cookies.c
compile.r tbox/src/tbox/network/dns/cache.c
compile.r tbox/src/tbox/network/dns/looker.c
compile.r tbox/src/tbox/network/dns/server.c
compile.r tbox/src/tbox/network/http.c
compile.r tbox/src/tbox/network/hwaddr.c
compile.r tbox/src/tbox/network/impl/http/date.c
compile.r tbox/src/tbox/network/impl/http/method.c
compile.r tbox/src/tbox/network/impl/http/option.c
compile.r tbox/src/tbox/network/impl/http/status.c
compile.r tbox/src/tbox/network/impl/network.c
compile.r tbox/src/tbox/network/ipaddr.c
compile.r tbox/src/tbox/network/ipv4.c
compile.r tbox/src/tbox/network/ipv6.c
compile.r tbox/src/tbox/network/unixaddr.c
compile.r tbox/src/tbox/network/url.c
compile.r tbox/src/tbox/platform/addrinfo.c
compile.r tbox/src/tbox/platform/atomic64.c
compile.r tbox/src/tbox/platform/backtrace.c
compile.r tbox/src/tbox/platform/cache_time.c
compile.r tbox/src/tbox/platform/cpu.c
compile.r tbox/src/tbox/platform/directory.c
compile.r tbox/src/tbox/platform/dynamic.c
compile.r tbox/src/tbox/platform/environment.c
compile.r tbox/src/tbox/platform/event.c
compile.r tbox/src/tbox/platform/file.c
compile.r tbox/src/tbox/platform/filelock.c
compile.r tbox/src/tbox/platform/hostname.c
compile.r tbox/src/tbox/platform/ifaddrs.c
compile.r tbox/src/tbox/platform/impl/charset.c
compile.r tbox/src/tbox/platform/impl/dns.c
compile.r tbox/src/tbox/platform/impl/platform.c
compile.r tbox/src/tbox/platform/impl/pollerdata.c
compile.r tbox/src/tbox/platform/ltimer.c
compile.r tbox/src/tbox/platform/mutex.c
compile.r tbox/src/tbox/platform/native_memory.c
compile.r tbox/src/tbox/platform/page.c
compile.r tbox/src/tbox/platform/path.c
compile.r tbox/src/tbox/platform/pipe.c
compile.r tbox/src/tbox/platform/poller.c
compile.r tbox/src/tbox/platform/print.c
compile.r tbox/src/tbox/platform/process.c
compile.r tbox/src/tbox/platform/sched.c
compile.r tbox/src/tbox/platform/semaphore.c
compile.r tbox/src/tbox/platform/socket.c
compile.r tbox/src/tbox/platform/stdfile.c
compile.r tbox/src/tbox/platform/syserror.c
compile.r tbox/src/tbox/platform/thread.c
compile.r tbox/src/tbox/platform/thread_local.c
compile.r tbox/src/tbox/platform/time.c
compile.r tbox/src/tbox/platform/timer.c
compile.r tbox/src/tbox/platform/virtual_memory.c
compile.r tbox/src/tbox/prefix/state.c
compile.r tbox/src/tbox/stream/filter.c
compile.r tbox/src/tbox/stream/impl/filter/cache.c
compile.r tbox/src/tbox/stream/impl/filter/charset.c
compile.r tbox/src/tbox/stream/impl/filter/chunked.c
compile.r tbox/src/tbox/stream/impl/stream/data.c
compile.r tbox/src/tbox/stream/impl/stream/file.c
compile.r tbox/src/tbox/stream/impl/stream/filter.c
compile.r tbox/src/tbox/stream/impl/stream/http.c
compile.r tbox/src/tbox/stream/impl/stream/sock.c
compile.r tbox/src/tbox/stream/static_stream.c
compile.r tbox/src/tbox/stream/stream.c
compile.r tbox/src/tbox/stream/transfer.c
compile.r tbox/src/tbox/string/static_string.c
compile.r tbox/src/tbox/string/string.c
compile.r tbox/src/tbox/tbox.c
compile.r tbox/src/tbox/utils/base32.c
compile.r tbox/src/tbox/utils/base64.c
compile.r tbox/src/tbox/utils/bits.c
compile.r tbox/src/tbox/utils/dump.c
compile.r tbox/src/tbox/utils/lock_profiler.c
compile.r tbox/src/tbox/utils/singleton.c
compile.r tbox/src/tbox/utils/trace.c
compile.r tbox/src/tbox/utils/url.c
compile.r tbox/src/tbox/utils/used.c
link libtboxr.a
make xmake
compile.r engine.c
compile.r hash/sha256.c
compile.r hash/uuid4.c
compile.r io/file_close.c
compile.r io/file_flush.c
compile.r io/file_isatty.c
compile.r io/file_open.c
compile.r io/file_rawfd.c
compile.r io/file_read.c
compile.r io/file_seek.c
compile.r io/file_size.c
compile.r io/file_write.c
compile.r io/filelock_close.c
compile.r io/filelock_lock.c
compile.r io/filelock_open.c
compile.r io/filelock_trylock.c
compile.r io/filelock_unlock.c
compile.r io/pipe_close.c
compile.r io/pipe_connect.c
compile.r io/pipe_open.c
compile.r io/pipe_openpair.c
compile.r io/pipe_read.c
compile.r io/pipe_wait.c
compile.r io/pipe_write.c
compile.r io/poller.c
compile.r io/poller_insert.c
compile.r io/poller_modify.c
compile.r io/poller_remove.c
compile.r io/poller_spank.c
compile.r io/poller_support.c
compile.r io/poller_wait.c
compile.r io/socket_accept.c
compile.r io/socket_bind.c
compile.r io/socket_close.c
compile.r io/socket_connect.c
compile.r io/socket_listen.c
compile.r io/socket_open.c
compile.r io/socket_rawfd.c
compile.r io/socket_recv.c
compile.r io/socket_recvfrom.c
compile.r io/socket_send.c
compile.r io/socket_sendfile.c
compile.r io/socket_sendto.c
compile.r io/socket_wait.c
compile.r io/stdfile.c
compile.r libc/byteof.c
compile.r libc/dataptr.c
compile.r libc/free.c
compile.r libc/malloc.c
compile.r libc/memcpy.c
compile.r libc/memset.c
compile.r libc/setbyte.c
compile.r libc/strndup.c
compile.r os/args.c
compile.r os/argv.c
compile.r os/chdir.c
compile.r os/cpdir.c
compile.r os/cpfile.c
compile.r os/cpuinfo.c
compile.r os/curdir.c
compile.r os/emptydir.c
compile.r os/exists.c
compile.r os/filesize.c
compile.r os/find.c
compile.r os/getenv.c
compile.r os/getenvs.c
compile.r os/getown.c
compile.r os/getwinsize.c
compile.r os/gid.c
compile.r os/isdir.c
compile.r os/isfile.c
compile.r os/islink.c
compile.r os/link.c
compile.r os/mclock.c
compile.r os/mkdir.c
compile.r os/mtime.c
compile.r os/readlink.c
compile.r os/rename.c
compile.r os/rmdir.c
compile.r os/rmfile.c
compile.r os/setenv.c
compile.r os/sleep.c
compile.r os/strerror.c
compile.r os/syserror.c
compile.r os/tmpdir.c
compile.r os/uid.c
compile.r path/absolute.c
compile.r path/is_absolute.c
compile.r path/relative.c
compile.r path/translate.c
compile.r process/close.c
compile.r process/kill.c
compile.r process/open.c
compile.r process/openv.c
compile.r process/wait.c
compile.r readline/add_history.c
compile.r readline/clear_history.c
compile.r readline/history_list.c
compile.r readline/readline.c
compile.r sandbox/interactive.c
compile.r semver/compare.c
compile.r semver/parse.c
compile.r semver/satisfies.c
compile.r semver/select.c
compile.r semver/semver.c
compile.r string/convert.c
compile.r string/endswith.c
compile.r string/lastof.c
compile.r string/split.c
compile.r string/startswith.c
compile.r string/trim.c
compile.r xmake.c
link libxmaker.a
make demo
compile.r xmake.c
link demo.b
make[3]: *** [/tmp/.xmake_getter1484/core/suffix.mak:309: demo.b] Error 1
make[2]: *** [/tmp/.xmake_getter1484/core/suffix.mak:309: SUB_PROS_demo_all] Error 2
/usr/bin/ld: cannot find libncurses.so.6
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libtinfo.a when searching for -ltinfo
/usr/bin/ld: cannot find -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libtinfo.a when searching for -ltinfo
/usr/bin/ld: cannot find -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libtinfo.so when searching for -ltinfo
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libreadline.so when searching for -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libreadline.a when searching for -lreadline
/usr/bin/ld: cannot find -lreadline
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libreadline.so when searching for -lreadline
collect2: error: ld returned 1 exit status
installing to /root/.local ...
plat: linux
arch: x86_64
cp: cannot stat './core/src/demo/demo.b': No such file or directory
gmake: *** [makefile:122: install] Error 1
Install Fail

Related Environment

Please provide compiling and running environment information:

waruqi commented 2 years ago

try make BUILD_ARCH=i386 ?

trenta3 commented 2 years ago

Thanks this works!