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

👋 Cross compile QNX version error :( #200

Open
sitJac opened this issue Nov 25, 2022 · 1 comment
Open

👋 Cross compile QNX version error :( #200

sitJac opened this issue Nov 25, 2022 · 1 comment

Comments

@sitJac
Copy link

sitJac commented Nov 25, 2022

描述问题

QNX交叉编译tbox库,按照手册中的交叉编译模块配置后编译不通过。

期待的结果

能顺利完成tbox QNX平台的交叉编译。

详细描述

  1. 根据手册配置好交叉工具链
    xmake f -p cross -a qnx700-a --sdk=/home/liyq/qnx700/host/linux/x86_64/usr --bin=/home/liyq/qnx700/host/linux/x86_64/usr/bin --cross=ntoaarch64-
    运行log如下:
checking for libc_wcscasecmp ... no
checking for posix_getnameinfo ... no
checking for posix_pthread_setaffinity_np ... no
checking for bsd_flock ... no
checking for systemv_semget ... no
checking for libc_memcpy ... ok
checking for posix_utimensat ... no
checking for libc_fgetc ... ok
checking for posix_stat64 ... no
checking for libm_log2f ... ok
checking for libc_wcsstr ... ok
checking for posix_posix_spawnp ... ok
checking for posix_posix_spawn_file_actions_addchdir_np ... no
checking for libc_strlen ... ok
checking for posix_getpagesize ... no
checking for libc_strnlen ... ok
checking for posix_getaddrinfo ... no
checking for posix_mkfifo ... ok
checking for libc_signal ... ok
checking for posix_preadv ... no
checking for posix_pthread_key_create ... ok
checking for libc_gettimeofday ... ok
checking for libm_acosf ... ok
checking for posix_sysconf ... no
checking for posix_epoll_create ... no
checking for libc_strncat ... ok
checking for libc_fgets ... ok
checking for libc_wcsncpy ... ok
checking for posix_poll ... ok
checking for posix_fcntl ... no
checking for posix_copyfile ... no
checking for libm_fmodf ... ok
checking for libc_ungetc ... ok
checking for libm_pow ... ok
checking for libc_kill ... no
checking for libc_wcscpy ... ok
checking for libc_strncmp ... ok
checking for posix_gethostname ... no
checking for libc_memset ... ok
checking for libc_strchr ... ok
checking for libc_wcslen ... ok
checking for posix_pipe ... no
checking for libc_wcscmp ... ok
checking for libc_backtrace ... no
checking for libm_atan ... ok
checking for posix_execvp ... no
checking for libm_atan2 ... ok
checking for libm_sincosf ... no
checking for libc_wcscasestr ... no
checking for posix_gethostbyaddr ... ok
checking for posix_sendfile ... no
checking for libc_wcsncat ... ok
checking for posix_sched_setaffinity ... no
checking for libc_strncasecmp ... no
checking for libm_powf ... ok
checking for libc_strcat ... ok
checking for libc_mbstowcs ... ok
checking for libc_memmem ... no
checking for libc_strncpy ... ok
checking for posix_pthread_mutex_init ... ok
checking for libm_acos ... ok
checking for libc_wcsnlen ... no
checking for posix_pwritev ... no
checking for libc_wcstombs ... ok
checking for libm_exp ... ok
checking for posix_writev ... ok
checking for libc_wcslcpy ... no
checking for posix_pread64 ... no
checking for posix_regexec ... ok
checking for libc_localtime ... ok
checking for posix_pthread_create ... ok
checking for posix_fork ... no
checking for libc_wcsncmp ... ok
checking for posix_waitpid ... ok
checking for posix_futimens ... no
checking for posix_getdtablesize ... no
checking for posix_lstat64 ... no
checking for libc_mktime ... ok
checking for posix_getifaddrs ... no
checking for libm_atan2f ... ok
checking for posix_pwrite64 ... no
checking for libc_strcasestr ... no
checking for valgrind_VALGRIND_STACK_REGISTER ... no
checking for libc_gmtime ... ok
checking for posix_pthread_getspecific ... ok
checking for posix_readv ... ok
checking for feature_anonymous_union ... ok
checking for posix_select ... ok
checking for libm_sqrt ... ok
checking for libm_sin ... ok
checking for libc_setlocale ... ok
checking for libc_strlcpy ... no
checking for posix_vfork ... no
checking for libm_atanf ... ok
checking for posix_execvpe ... no
checking for libm_cosf ... ok
checking for posix_dlopen ... ok
checking for libc_strcasecmp ... no
checking for libc_random ... no
checking for posix_epoll_wait ... no
checking for libm_sincos ... no
checking for posix_fdatasync ... no
checking for libc_sigsetjmp ... ok
checking for posix_getrlimit ... ok
checking for libc_fputc ... ok
checking for posix_open ... no
checking for libc_strstr ... ok
checking for posix_sched_yield ... ok
checking for posix_regcomp ... ok
checking for posix_pthread_setspecific ... ok
checking for libc_fwrite ... ok
checking for libc_strcmp ... ok
checking for libm_tanf ... ok
checking for libm_log2 ... ok
checking for posix_opendir ... ok
checking for libc_fread ... ok
checking for posix_pthread_key_delete ... ok
checking for posix_socket ... ok
checking for libm_expf ... ok
checking for libc_wcsncasecmp ... no
checking for libc_wcscat ... ok
checking for posix_gethostbyname ... ok
checking for libm_asin ... ok
checking for libc_strcpy ... ok
checking for libc_setjmp ... no
checking for libm_sinf ... ok
checking for posix_mmap ... ok
checking for libm_fmod ... ok
checking for libc_memmove ... ok
checking for libc_fputs ... ok
checking for posix_sem_init ... ok
checking for wchar ... no
checking for libm_tan ... ok
checking for libc_srandom ... no
checking for libm_sqrtf ... ok
checking for systemv_semtimedop ... no
checking for libc_memcmp ... ok
checking for libm_cos ... ok
checking for libc_strrchr ... ok
checking for libm_asinf ... ok
checking for posix_pipe2 ... no
checking for keyword_thread_local ... no
checking for keyword_thread ... no
generating src/tbox/tbox.config.h.in ... ok

q1:这一步的checking是在检查什么,checking for xxx ... no的模块要如何处理?

  1. 执行xmake编译报错
[  0%]: ccache compiling.release src/tbox/libc/stdlib/mbstowcs.c
[  0%]: ccache compiling.release src/tbox/hash/bkdr.c
[  0%]: ccache compiling.release src/tbox/math/fixed16.c
[  0%]: ccache compiling.release src/tbox/libc/impl/libc.c
[  0%]: ccache compiling.release src/tbox/tbox.c
[  0%]: ccache compiling.release src/tbox/math/impl/math.c
[  0%]: ccache compiling.release src/tbox/math/random/linear.c
[  0%]: ccache compiling.release src/tbox/libc/stdlib/wcstombs.c
[  0%]: ccache compiling.release src/tbox/hash/adler32.c
[  0%]: ccache compiling.release src/tbox/math/random/random.c
[  0%]: ccache compiling.release src/tbox/math/int32.c
[  0%]: ccache compiling.release src/tbox/hash/fnv32.c
[  1%]: ccache compiling.release src/tbox/libc/stdlib/random.c
[  1%]: ccache compiling.release src/tbox/libc/stdlib/stdlib.c
[  3%]: ccache compiling.release src/tbox/libc/misc/time/gmmktime.c
[  3%]: ccache compiling.release src/tbox/libc/misc/time/time.c
[  3%]: ccache compiling.release src/tbox/libc/misc/time/mktime.c
[  3%]: ccache compiling.release src/tbox/libc/misc/time/gmtime.c
[  3%]: ccache compiling.release src/tbox/libc/misc/time/localtime.c
[  3%]: ccache compiling.release src/tbox/libc/string/wcschr.c
[  3%]: ccache compiling.release src/tbox/libc/string/wcscmp.c
[  3%]: ccache compiling.release src/tbox/libc/string/strncpy.c
[  3%]: ccache compiling.release src/tbox/libc/string/strcpy.c
[  6%]: ccache compiling.release src/tbox/libc/string/strdup.c
[  6%]: ccache compiling.release src/tbox/libc/string/wcsicmp.c
[  6%]: ccache compiling.release src/tbox/libc/string/strrchr.c
[  6%]: ccache compiling.release src/tbox/libc/string/strchr.c
[  6%]: ccache compiling.release src/tbox/libc/string/wcsndup.c
[  6%]: ccache compiling.release src/tbox/libc/string/wcsnicmp.c
[  6%]: ccache compiling.release src/tbox/libc/string/strcat.c
[  6%]: ccache compiling.release src/tbox/libc/string/wcsdup.c
[  6%]: ccache compiling.release src/tbox/libc/string/wcsnrstr.c
[  8%]: ccache compiling.release src/tbox/libc/string/memmov.c
[  8%]: ccache compiling.release src/tbox/libc/string/strlen.c
[  8%]: ccache compiling.release src/tbox/libc/string/wcsncat.c
[  8%]: ccache compiling.release src/tbox/libc/string/wcsncpy.c
[  8%]: ccache compiling.release src/tbox/libc/string/strnrstr.c
[  8%]: ccache compiling.release src/tbox/libc/string/wcsrstr.c
[ 10%]: ccache compiling.release src/tbox/libc/string/wcslcpy.c
[ 10%]: ccache compiling.release src/tbox/libc/string/strnrchr.c
[ 10%]: ccache compiling.release src/tbox/libc/string/wcslen.c
[ 10%]: ccache compiling.release src/tbox/libc/string/wcscpy.c
[ 10%]: ccache compiling.release src/tbox/libc/string/strnistr.c
[ 10%]: ccache compiling.release src/tbox/libc/string/wcsrchr.c
[ 12%]: ccache compiling.release src/tbox/libc/string/strnirstr.c
[ 12%]: ccache compiling.release src/tbox/libc/string/wcscat.c
[ 12%]: ccache compiling.release src/tbox/libc/string/memdup.c
[ 12%]: ccache compiling.release src/tbox/libc/string/wcsnirchr.c
[ 12%]: ccache compiling.release src/tbox/libc/string/wcsnirstr.c
[ 12%]: ccache compiling.release src/tbox/libc/string/strichr.c
[ 12%]: ccache compiling.release src/tbox/libc/string/strnirchr.c
[ 12%]: ccache compiling.release src/tbox/libc/string/strnchr.c
[ 14%]: ccache compiling.release src/tbox/libc/string/wcsirchr.c
[ 14%]: ccache compiling.release src/tbox/libc/string/memmem.c
[ 14%]: ccache compiling.release src/tbox/libc/string/wcsnrchr.c
[ 14%]: ccache compiling.release src/tbox/libc/string/memcpy.c
[ 14%]: ccache compiling.release src/tbox/libc/string/memcmp.c
[ 14%]: ccache compiling.release src/tbox/libc/string/strnstr.c
[ 16%]: ccache compiling.release src/tbox/libc/string/strnicmp.c
[ 16%]: ccache compiling.release src/tbox/libc/string/wcsnlen.c
[ 16%]: ccache compiling.release src/tbox/libc/string/strncat.c
[ 16%]: ccache compiling.release src/tbox/libc/string/strnlen.c
[ 16%]: ccache compiling.release src/tbox/libc/string/wcsstr.c
[ 16%]: ccache compiling.release src/tbox/libc/string/strirchr.c
[ 16%]: ccache compiling.release src/tbox/libc/string/strstr.c
[ 16%]: ccache compiling.release src/tbox/libc/string/strndup.c
[ 16%]: ccache compiling.release src/tbox/libc/string/memset.c
[ 19%]: ccache compiling.release src/tbox/libc/string/wcsichr.c
[ 19%]: ccache compiling.release src/tbox/libc/string/stricmp.c
[ 19%]: ccache compiling.release src/tbox/libc/string/stristr.c
[ 19%]: ccache compiling.release src/tbox/libc/string/wcsirstr.c
[ 19%]: ccache compiling.release src/tbox/libc/string/strlcpy.c
[ 19%]: ccache compiling.release src/tbox/libc/string/strrstr.c
[ 19%]: ccache compiling.release src/tbox/libc/string/strirstr.c
[ 19%]: ccache compiling.release src/tbox/libc/string/strcmp.c
[ 19%]: ccache compiling.release src/tbox/libc/string/strnichr.c
[ 21%]: ccache compiling.release src/tbox/libc/string/wcsncmp.c
[ 21%]: ccache compiling.release src/tbox/libc/string/wcsistr.c
[ 21%]: ccache compiling.release src/tbox/libc/string/strncmp.c
[ 21%]: ccache compiling.release src/tbox/libc/stdio/swprintf.c
[ 21%]: ccache compiling.release src/tbox/libc/stdio/printf_object.c
[ 21%]: ccache compiling.release src/tbox/libc/stdio/getchar.c
[ 21%]: ccache compiling.release src/tbox/libc/stdio/vswprintf.c
[ 23%]: ccache compiling.release src/tbox/libc/stdio/wputs.c
[ 23%]: ccache compiling.release src/tbox/libc/stdio/putchar.c
[ 23%]: ccache compiling.release src/tbox/libc/stdio/snprintf.c
[ 23%]: ccache compiling.release src/tbox/libc/stdio/vsnprintf.c
[ 23%]: ccache compiling.release src/tbox/libc/stdio/wprintf.c
[ 23%]: ccache compiling.release src/tbox/libc/stdio/sprintf.c
[ 25%]: ccache compiling.release src/tbox/libc/stdio/printf.c
[ 25%]: ccache compiling.release src/tbox/libc/stdio/puts.c
[ 25%]: ccache compiling.release src/tbox/utils/singleton.c
[ 25%]: ccache compiling.release src/tbox/utils/trace.c
[ 25%]: ccache compiling.release src/tbox/utils/lock_profiler.c
[ 25%]: ccache compiling.release src/tbox/utils/dump.c
[ 25%]: ccache compiling.release src/tbox/utils/url.c
[ 28%]: ccache compiling.release src/tbox/utils/base64.c
[ 28%]: ccache compiling.release src/tbox/utils/bits.c
[ 28%]: ccache compiling.release src/tbox/utils/used.c
[ 28%]: ccache compiling.release src/tbox/utils/base32.c
[ 28%]: ccache compiling.release src/tbox/prefix/state.c
[ 28%]: ccache compiling.release src/tbox/memory/large_allocator.c
[ 28%]: ccache compiling.release src/tbox/memory/native_allocator.c
[ 28%]: ccache compiling.release src/tbox/memory/static_allocator.c
[ 28%]: ccache compiling.release src/tbox/memory/impl/static_fixed_pool.c
[ 28%]: ccache compiling.release src/tbox/memory/impl/native_large_allocator.c
[ 30%]: ccache compiling.release src/tbox/memory/impl/static_large_allocator.c
[ 30%]: ccache compiling.release src/tbox/memory/impl/prefix.c
[ 30%]: ccache compiling.release src/tbox/memory/impl/memory.c
[ 30%]: ccache compiling.release src/tbox/memory/virtual_allocator.c
[ 30%]: ccache compiling.release src/tbox/memory/default_allocator.c
[ 30%]: ccache compiling.release src/tbox/memory/allocator.c
[ 30%]: ccache compiling.release src/tbox/memory/string_pool.c
[ 31%]: ccache compiling.release src/tbox/memory/static_buffer.c
[ 31%]: ccache compiling.release src/tbox/memory/queue_buffer.c
[ 31%]: ccache compiling.release src/tbox/memory/small_allocator.c
[ 31%]: ccache compiling.release src/tbox/memory/buffer.c
[ 31%]: ccache compiling.release src/tbox/memory/fixed_pool.c
[ 33%]: ccache compiling.release src/tbox/string/string.c
[ 33%]: ccache compiling.release src/tbox/string/static_string.c
[ 33%]: ccache compiling.release src/tbox/stream/impl/stream/data.c
[ 33%]: ccache compiling.release src/tbox/stream/impl/stream/http.c
[ 33%]: ccache compiling.release src/tbox/stream/impl/stream/sock.c
[ 33%]: ccache compiling.release src/tbox/stream/impl/stream/filter.c
[ 33%]: ccache compiling.release src/tbox/stream/impl/stream/file.c
[ 35%]: ccache compiling.release src/tbox/stream/impl/filter/cache.c
[ 35%]: ccache compiling.release src/tbox/stream/impl/filter/chunked.c
[ 35%]: ccache compiling.release src/tbox/stream/static_stream.c
[ 35%]: ccache compiling.release src/tbox/stream/filter.c
[ 35%]: ccache compiling.release src/tbox/stream/transfer.c
[ 37%]: ccache compiling.release src/tbox/stream/stream.c
[ 37%]: ccache compiling.release src/tbox/network/cookies.c
[ 37%]: ccache compiling.release src/tbox/network/ipaddr.c
[ 37%]: ccache compiling.release src/tbox/network/impl/http/date.c
[ 37%]: ccache compiling.release src/tbox/network/impl/http/status.c
[ 37%]: ccache compiling.release src/tbox/network/impl/http/method.c
[ 37%]: ccache compiling.release src/tbox/network/impl/http/option.c
[ 39%]: ccache compiling.release src/tbox/network/impl/network.c
[ 39%]: ccache compiling.release src/tbox/network/url.c
[ 39%]: ccache compiling.release src/tbox/network/http.c
[ 39%]: ccache compiling.release src/tbox/network/dns/cache.c
[ 39%]: ccache compiling.release src/tbox/network/dns/looker.c
[ 39%]: ccache compiling.release src/tbox/network/dns/server.c
[ 39%]: ccache compiling.release src/tbox/network/ipv4.c
[ 41%]: ccache compiling.release src/tbox/network/ipv6.c
[ 41%]: ccache compiling.release src/tbox/network/unixaddr.c
[ 41%]: ccache compiling.release src/tbox/network/hwaddr.c
[ 41%]: ccache compiling.release src/tbox/algorithm/count.c
[ 41%]: ccache compiling.release src/tbox/algorithm/heap_sort.c
[ 41%]: ccache compiling.release src/tbox/algorithm/insert_sort.c
[ 41%]: ccache compiling.release src/tbox/algorithm/rfind.c
[ 43%]: ccache compiling.release src/tbox/algorithm/rwalk.c
[ 43%]: ccache compiling.release src/tbox/algorithm/rfind_if.c
[ 43%]: ccache compiling.release src/tbox/algorithm/walk.c
[ 43%]: ccache compiling.release src/tbox/algorithm/predicate.c
[ 43%]: ccache compiling.release src/tbox/algorithm/remove.c
[ 45%]: ccache compiling.release src/tbox/algorithm/bubble_sort.c
[ 45%]: ccache compiling.release src/tbox/algorithm/quick_sort.c
[ 45%]: ccache compiling.release src/tbox/algorithm/find_if.c
[ 45%]: ccache compiling.release src/tbox/algorithm/count_if.c
[ 45%]: ccache compiling.release src/tbox/algorithm/find.c
[ 45%]: ccache compiling.release src/tbox/algorithm/remove_first_if.c
[ 45%]: ccache compiling.release src/tbox/algorithm/distance.c
[ 47%]: ccache compiling.release src/tbox/algorithm/remove_if.c
[ 47%]: ccache compiling.release src/tbox/algorithm/binary_find_if.c
[ 47%]: ccache compiling.release src/tbox/algorithm/binary_find.c
[ 47%]: ccache compiling.release src/tbox/algorithm/sort.c
[ 47%]: ccache compiling.release src/tbox/algorithm/remove_first.c
[ 47%]: ccache compiling.release src/tbox/container/circle_queue.c
[ 47%]: ccache compiling.release src/tbox/container/iterator.c
[ 47%]: ccache compiling.release src/tbox/container/hash_set.c
[ 49%]: ccache compiling.release src/tbox/container/heap.c
[ 49%]: ccache compiling.release src/tbox/container/array_iterator.c
[ 49%]: ccache compiling.release src/tbox/container/hash_map.c
[ 49%]: ccache compiling.release src/tbox/container/single_list.c
[ 49%]: ccache compiling.release src/tbox/container/queue.c
[ 49%]: ccache compiling.release src/tbox/container/list.c
[ 49%]: ccache compiling.release src/tbox/container/stack.c
[ 49%]: ccache compiling.release src/tbox/container/vector.c
[ 51%]: ccache compiling.release src/tbox/container/priority_queue.c
[ 51%]: ccache compiling.release src/tbox/container/single_list_entry.c
[ 51%]: ccache compiling.release src/tbox/container/bloom_filter.c
[ 51%]: ccache compiling.release src/tbox/container/list_entry.c
[ 51%]: ccache compiling.release src/tbox/container/element/uint16.c
[ 51%]: ccache compiling.release src/tbox/container/element/uint8.c
[ 54%]: ccache compiling.release src/tbox/container/element/uint32.c
[ 54%]: ccache compiling.release src/tbox/container/element/true.c
[ 54%]: ccache compiling.release src/tbox/container/element/ptr.c
[ 54%]: ccache compiling.release src/tbox/container/element/long.c
[ 54%]: ccache compiling.release src/tbox/container/element/hash.c
[ 54%]: ccache compiling.release src/tbox/container/element/null.c
[ 54%]: ccache compiling.release src/tbox/container/element/mem.c
[ 54%]: ccache compiling.release src/tbox/container/element/size.c
[ 54%]: ccache compiling.release src/tbox/container/element/str.c
[ 55%]: ccache compiling.release src/tbox/libm/impl/libm.c
[ 55%]: ccache compiling.release src/tbox/libm/idivi8.c
[ 55%]: ccache compiling.release src/tbox/libm/ilog2i.c
[ 57%]: ccache compiling.release src/tbox/libm/isqrti.c
[ 57%]: ccache compiling.release src/tbox/libm/isqrti64.c
[ 57%]: ccache compiling.release src/tbox/libm/cosf.c
[ 57%]: ccache compiling.release src/tbox/libm/isinf.c
[ 57%]: ccache compiling.release src/tbox/libm/exp.c
[ 57%]: ccache compiling.release src/tbox/libm/sincos.c
[ 57%]: ccache compiling.release src/tbox/libm/log2f.c
[ 57%]: ccache compiling.release src/tbox/libm/log2.c
[ 57%]: ccache compiling.release src/tbox/libm/expi.c
[ 59%]: ccache compiling.release src/tbox/libm/expif.c
[ 59%]: ccache compiling.release src/tbox/libm/sinf.c
[ 59%]: ccache compiling.release src/tbox/libm/exp1f.c
[ 59%]: ccache compiling.release src/tbox/libm/atanf.c
[ 59%]: ccache compiling.release src/tbox/libm/isnan.c
[ 59%]: ccache compiling.release src/tbox/libm/expf.c
[ 62%]: ccache compiling.release src/tbox/libm/exp1.c
[ 62%]: ccache compiling.release src/tbox/libm/isnanf.c
[ 62%]: ccache compiling.release src/tbox/libm/cos.c
[ 62%]: ccache compiling.release src/tbox/libm/atan2f.c
[ 62%]: ccache compiling.release src/tbox/libm/tan.c
[ 62%]: ccache compiling.release src/tbox/libm/fmodf.c
[ 62%]: ccache compiling.release src/tbox/libm/atan.c
[ 62%]: ccache compiling.release src/tbox/libm/sincosf.c
[ 62%]: ccache compiling.release src/tbox/libm/isfinf.c
[ 63%]: ccache compiling.release src/tbox/libm/tanf.c
[ 63%]: ccache compiling.release src/tbox/libm/powf.c
[ 63%]: ccache compiling.release src/tbox/libm/isinff.c
[ 63%]: ccache compiling.release src/tbox/libm/asinf.c
[ 65%]: ccache compiling.release src/tbox/libm/acos.c
[ 65%]: ccache compiling.release src/tbox/libm/isfin.c
[ 65%]: ccache compiling.release src/tbox/libm/pow.c
[ 65%]: ccache compiling.release src/tbox/libm/asin.c
[ 65%]: ccache compiling.release src/tbox/libm/sqrt.c
[ 65%]: ccache compiling.release src/tbox/libm/sin.c
[ 65%]: ccache compiling.release src/tbox/libm/atan2.c
[ 66%]: ccache compiling.release src/tbox/libm/sqrtf.c
[ 66%]: ccache compiling.release src/tbox/libm/acosf.c
[ 66%]: ccache compiling.release src/tbox/libm/fmod.c
[ 66%]: ccache compiling.release src/demo/demo.c
[ 69%]: ccache compiling.release src/demo/libc/wcstombs.c
[ 69%]: ccache compiling.release src/demo/libc/mbstowcs.c
[ 69%]: ccache compiling.release src/demo/libc/wchar.c
[ 69%]: ccache compiling.release src/demo/libc/time.c
[ 69%]: ccache compiling.release src/demo/libc/string.c
[ 69%]: ccache compiling.release src/demo/libc/stdlib.c
[ 69%]: ccache compiling.release src/demo/libm/integer.c
[ 69%]: ccache compiling.release src/demo/math/random.c
[ 69%]: ccache compiling.release src/demo/utils/dump.c
[ 69%]: ccache compiling.release src/demo/utils/url.c
[ 71%]: ccache compiling.release src/demo/utils/base64.c
[ 71%]: ccache compiling.release src/demo/utils/bits.c
[ 71%]: ccache compiling.release src/demo/utils/base32.c
[ 71%]: ccache compiling.release src/demo/other/test.c
[ 71%]: ccache compiling.release src/demo/string/string.c
[ 71%]: ccache compiling.release src/demo/string/static_string.c
[ 73%]: ccache compiling.release src/demo/memory/check.c
[ 73%]: ccache compiling.release src/demo/memory/large_pool.c
[ 73%]: ccache compiling.release src/demo/memory/impl/static_fixed_pool.c
[ 73%]: ccache compiling.release src/demo/memory/default_allocator.c
[ 73%]: ccache compiling.release src/demo/memory/string_pool.c
[ 73%]: ccache compiling.release src/demo/memory/static_buffer.c
[ 73%]: ccache compiling.release src/demo/memory/queue_buffer.c
[ 76%]: ccache compiling.release src/demo/memory/small_allocator.c
[ 76%]: ccache compiling.release src/demo/memory/memops.c
[ 76%]: ccache compiling.release src/demo/memory/buffer.c
[ 76%]: ccache compiling.release src/demo/memory/fixed_pool.c
[ 76%]: ccache compiling.release src/demo/platform/pipe_pair.c
[ 76%]: ccache compiling.release src/demo/platform/ifaddrs.c
[ 76%]: ccache compiling.release src/demo/platform/hostname.c
[ 76%]: ccache compiling.release src/demo/platform/cache_time.c
[ 76%]: ccache compiling.release src/demo/platform/thread.c
[ 76%]: ccache compiling.release src/demo/platform/fwatcher.c
[ 76%]: ccache compiling.release src/demo/platform/ltimer.c
[ 78%]: ccache compiling.release src/demo/platform/poller_fwatcher.c
[ 78%]: ccache compiling.release src/demo/platform/addrinfo.c
[ 78%]: ccache compiling.release src/demo/platform/poller_pipe.c
[ 78%]: ccache compiling.release src/demo/platform/poller_process.c
[ 79%]: ccache compiling.release src/demo/platform/process.c
[ 79%]: ccache compiling.release src/demo/platform/utils.c
[ 79%]: ccache compiling.release src/demo/platform/stdfile.c
[ 79%]: ccache compiling.release src/demo/platform/backtrace.c
[ 79%]: ccache compiling.release src/demo/platform/atomic.c
[ 79%]: ccache compiling.release src/demo/platform/lock.c
[ 81%]: ccache compiling.release src/demo/platform/atomic64.c
[ 81%]: ccache compiling.release src/demo/platform/atomic32.c
[ 81%]: ccache compiling.release src/demo/platform/thread_pool.c
[ 81%]: ccache compiling.release src/demo/platform/poller_server.c
[ 81%]: ccache compiling.release src/demo/platform/environment.c
[ 81%]: ccache compiling.release src/demo/platform/filelock.c
[ 83%]: ccache compiling.release src/demo/platform/timer.c
[ 83%]: ccache compiling.release src/demo/platform/file.c
[ 83%]: ccache compiling.release src/demo/platform/path.c
[ 83%]: ccache compiling.release src/demo/platform/sched.c
[ 83%]: ccache compiling.release src/demo/platform/directory.c
[ 84%]: ccache compiling.release src/demo/platform/semaphore.c
[ 84%]: ccache compiling.release src/demo/platform/event.c
[ 84%]: ccache compiling.release src/demo/platform/poller_client.c
[ 84%]: ccache compiling.release src/demo/platform/thread_local.c
[ 84%]: ccache compiling.release src/demo/platform/named_pipe.c
[ 84%]: ccache compiling.release src/demo/container/circle_queue.c
[ 87%]: ccache compiling.release src/demo/container/hash_set.c
[ 87%]: ccache compiling.release src/demo/container/heap.c
[ 87%]: ccache compiling.release src/demo/container/hash_map.c
[ 87%]: ccache compiling.release src/demo/container/single_list.c
[ 87%]: ccache compiling.release src/demo/container/queue.c
[ 87%]: ccache compiling.release src/demo/container/list.c
[ 87%]: ccache compiling.release src/demo/container/stack.c
[ 87%]: ccache compiling.release src/demo/container/vector.c
[ 89%]: ccache compiling.release src/demo/container/single_list_entry.c
[ 89%]: ccache compiling.release src/demo/container/bloom_filter.c
[ 89%]: ccache compiling.release src/demo/container/list_entry.c
[ 89%]: ccache compiling.release src/demo/algorithm/find.c
[ 89%]: ccache compiling.release src/demo/algorithm/sort.c
[ 89%]: ccache compiling.release src/demo/stream/stream.c
[ 66%]: ccache compiling.release src/demo/other/test.cpp
[ 90%]: ccache compiling.release src/demo/stream/stream/cache.c
[ 90%]: ccache compiling.release src/demo/stream/stream/charset.c
[ 90%]: ccache compiling.release src/demo/stream/stream/zip.c
[ 90%]: ccache compiling.release src/demo/stream/stream/null.c
[ 90%]: ccache compiling.release src/demo/network/cookies.c
[ 92%]: ccache compiling.release src/demo/network/ping.c
[ 92%]: ccache compiling.release src/demo/network/unix_echo_client.c
[ 92%]: ccache compiling.release src/demo/network/ipaddr.c
[ 92%]: ccache compiling.release src/demo/network/impl/date.c
[ 92%]: ccache compiling.release src/demo/network/dns.c
[ 92%]: ccache compiling.release src/demo/network/url.c
[ 92%]: ccache compiling.release src/demo/network/unix_echo_server.c
[ 93%]: ccache compiling.release src/demo/network/http.c
[ 93%]: ccache compiling.release src/demo/network/ipv4.c
[ 93%]: ccache compiling.release src/demo/network/ipv6.c
[ 93%]: ccache compiling.release src/demo/network/unixaddr.c
[ 95%]: ccache compiling.release src/demo/network/whois.c
[ 95%]: ccache compiling.release src/demo/network/hwaddr.c
[ 95%]: ccache compiling.release src/demo/math/fixed.c
[ 95%]: ccache compiling.release src/demo/libm/float.c
[ 95%]: ccache compiling.release src/demo/libm/double.c
[ 98%]: archiving.release libtbox.a
[ 99%]: linking.release demo
error: /home/liyq/qnx700/host/linux/x86_64//usr/bin/aarch64-unknown-nto-qnx7.0.0-ld: cannot find -lpthread
/home/liyq/qnx700/host/linux/x86_64//usr/bin/aarch64-unknown-nto-qnx7.0.0-ld: cannot find -ldl
collect2: error: ld returned 1 exit status

q2:lpthread、ldl等库是否需要用交叉工具链编译相应平台的so库放入指定的目录(shared)才可以?

相关环境

ubuntu x86_64上 编译 qnx700

交叉编译工具链目录结构:

  • lib
  • bin
  • shared
  • include
@waruqi
Copy link
Member

waruqi commented Nov 25, 2022

xmake f --demo=n

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

No branches or pull requests

2 participants