LINUX.ORG.RU

Ошибка при кросскомпиляции с помощью тулчейна

 , ,


0

1

Здравствуйте, я начинающий пользователь Linux возникла проблема, при кросс-компиляции программы nano5.5 на Debian с помощью тулчейна buildroot

user1@Tr:~/nano-5.5$ CC=arm-buildroot-linux-uclibcgnueabihf-gcc LDFLAGS=-static ./configure –host=arm-buildroot-linux-uclibcgnueabihf checking build system type… i686-pc-linux-uclibc checking host system type… arm-buildroot-linux-uclibcgnueabihf checking for a BSD-compatible install… /usr/bin/install -c checking whether build environment is sane… yes checking for arm-buildroot-linux-uclibcgnueabihf-strip… arm-buildroot-linux-uclibcgnueabihf-strip checking for a race-free mkdir -p… /usr/bin/mkdir -p checking for gawk… no checking for mawk… mawk checking whether make sets $(MAKE)… yes checking whether make supports nested variables… yes checking whether make supports the include directive… yes (GNU style) checking for arm-buildroot-linux-uclibcgnueabihf-gcc… arm-buildroot-linux-uclibcgnueabihf-gcc checking whether the C compiler works… yes checking for C compiler default output file name… a.out checking for suffix of executables… checking whether we are cross compiling… yes checking for suffix of object files… o checking whether the compiler supports GNU C… yes checking whether arm-buildroot-linux-uclibcgnueabihf-gcc accepts -g… yes checking for arm-buildroot-linux-uclibcgnueabihf-gcc option to enable C11 features… none needed checking whether arm-buildroot-linux-uclibcgnueabihf-gcc understands -c and -o together… yes checking whether the compiler is clang… no checking for compiler option needed when checking for declarations… none checking dependency style of arm-buildroot-linux-uclibcgnueabihf-gcc… gcc3 checking for stdio.h… yes checking for stdlib.h… yes checking for string.h… yes checking for inttypes.h… yes checking for stdint.h… yes checking for strings.h… yes checking for sys/stat.h… yes checking for sys/types.h… yes checking for unistd.h… yes checking for wchar.h… yes checking for minix/config.h… no checking for dirent.h… yes checking for fnmatch.h… yes checking for getopt.h… yes checking for sys/cdefs.h… yes checking for sys/time.h… yes checking for sys/socket.h… yes checking for glob.h… yes checking for threads.h… no checking for limits.h… yes checking for crtdefs.h… no checking for wctype.h… no checking for langinfo.h… yes checking for xlocale.h… no checking for math.h… yes checking for sys/mman.h… yes checking for sys/param.h… yes checking for malloc.h… yes checking for features.h… yes checking for sys/wait.h… yes checking for utime.h… yes checking whether it is safe to define EXTENSIONS… yes checking whether _XOPEN_SOURCE should be defined… no checking for arm-buildroot-linux-uclibcgnueabihf-gcc… (cached) arm-buildroot-linux-uclibcgnueabihf-gcc checking whether the compiler supports GNU C… (cached) yes checking whether arm-buildroot-linux-uclibcgnueabihf-gcc accepts -g… (cached) yes checking for arm-buildroot-linux-uclibcgnueabihf-gcc option to enable C11 features… (cached) none needed checking whether arm-buildroot-linux-uclibcgnueabihf-gcc understands -c and -o together… (cached) yes checking whether the compiler is clang… (cached) no checking for compiler option needed when checking for declarations… (cached) none checking dependency style of arm-buildroot-linux-uclibcgnueabihf-gcc… (cached) gcc3 checking how to run the C preprocessor… arm-buildroot-linux-uclibcgnueabihf-gcc -E checking for grep that handles long lines and -e… /usr/bin/grep checking for egrep… /usr/bin/grep -E checking for Minix Amsterdam compiler… no checking for arm-buildroot-linux-uclibcgnueabihf-ar… arm-buildroot-linux-uclibcgnueabihf-ar checking for arm-buildroot-linux-uclibcgnueabihf-ranlib… arm-buildroot-linux-uclibcgnueabihf-ranlib checking for special C compiler options needed for large files… no checking for _FILE_OFFSET_BITS value needed for large files… 64 checking for size_t… yes checking for working alloca.h… yes checking for alloca… yes checking whether <wchar.h> uses ‘inline’ correctly… yes checking for btowc… no checking for symlink… yes checking for fnmatch… yes checking for mbsrtowcs… no checking for futimens… yes checking for getdelim… yes checking for getlogin_r… yes checking for gettimeofday… yes checking for glob… yes checking for glob_pattern_p… yes checking for getpwnam_r… yes checking for isblank… yes checking for iswcntrl… no checking for iswblank… no checking for lstat… yes checking for mbsinit… no checking for mbrtowc… no checking for mprotect… yes checking for _set_invalid_parameter_handler… no checking for nl_langinfo… yes checking for iswctype… no checking for sigaction… yes checking for sigaltstack… yes checking for siginterrupt… yes checking for snprintf… yes checking for vasnprintf… no checking for futimes… no checking for futimesat… yes checking for utimensat… yes checking for lutimes… yes checking for wcrtomb… no checking for wcwidth… no checking for wmempcpy… no checking for nl_langinfo and CODESET… yes checking for a traditional french locale… none checking whether the preprocessor supports include_next… yes checking whether source code line length is unlimited… yes checking how arm-buildroot-linux-uclibcgnueabihf-gcc reports undeclared, standard C functions… error checking for complete errno.h… yes checking for working fcntl.h… cross-compiling checking for pid_t… yes checking for mode_t… yes checking for mbstate_t… no checking whether frexp() can be used without linking with libm… yes checking whether alarm is declared… yes checking whether long double and double are the same… yes checking whether stat file-mode macros are broken… no checking for C/C++ restrict keyword… restrict checking for nlink_t… yes checking whether getdelim is declared… yes checking whether getline is declared… yes checking whether getlogin_r is declared… yes checking whether getlogin is declared… yes checking for getopt.h… (cached) yes checking for getopt_long_only… yes checking whether getopt is POSIX compatible… guessing yes checking for working GNU getopt function… guessing no checking for struct timeval… yes checking for wide-enough struct timeval.tv_sec member… yes checking for pthread.h… yes checking for pthread_kill in -lpthread… yes checking whether POSIX threads API is available… yes checking whether setlocale (LC_ALL, NULL) is multithread-safe… guessing no checking whether setlocale (category, NULL) is multithread-safe… guessing no checking whether imported symbols can be declared weak… no checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc…. yes checking for wint_t… no checking whether the compiler produces multi-arch binaries… no checking whether stdint.h conforms to C99… no checking for sys/inttypes.h… no checking for sys/bitypes.h… yes checking for bit size of ptrdiff_t… 32 checking for bit size of size_t… 32 checking for bit size of sig_atomic_t… 32 checking for bit size of wchar_t… 32 checking for bit size of wint_t… 32 checking whether sig_atomic_t is signed… yes checking whether wchar_t is signed… no checking whether wint_t is signed… no checking for ptrdiff_t integer literal suffix… checking for size_t integer literal suffix… u checking for sig_atomic_t integer literal suffix… checking for wchar_t integer literal suffix… u checking for wint_t integer literal suffix… u checking where to find the exponent in a ‘double’… unknown checking where to find the exponent in a ‘float’… word 0 bit 23 checking whether byte ordering is bigendian… no checking for wctype_t… no checking for wctrans_t… no checking for wchar_t… yes checking for good max_align_t… yes checking whether NULL can be used in arbitrary expressions… yes checking whether locale.h defines locale_t… no checking whether imported symbols can be declared weak… (cached) no checking for multithread API to use… posix checking whether lstat correctly handles trailing slash… guessing yes checking whether malloc, realloc, calloc are POSIX compliant… yes checking for GNU libc compatible malloc… guessing no checking for a traditional japanese locale… none checking for a french Unicode locale… none checking for a transitional chinese locale… none checking for inline… inline checking for mmap… yes checking for MAP_ANONYMOUS… yes checking whether memchr works… guessing no checking for sigset_t… yes checking for uid_t in sys/types.h… yes checking whether snprintf returns a byte count as in C99… guessing no checking whether snprintf is declared… yes checking for stdint.h… yes checking for inttypes.h… yes checking whether printf supports size specifiers as in C99… guessing no checking whether printf supports ‘long double’ arguments… (cached) yes checking whether printf supports infinite ‘double’ arguments… guessing no checking whether printf supports infinite ‘long double’ arguments… (cached) yes checking whether printf supports the ‘a’ and ‘A’ directives… guessing no checking whether printf supports the ‘F’ directive… guessing no checking whether printf supports the ‘n’ directive… (cached) yes checking whether printf supports the ‘ls’ directive… guessing yes checking whether printf supports the grouping flag… guessing yes checking whether printf supports the left-adjust flag correctly… guessing yes checking whether printf supports the zero flag correctly… guessing no checking whether printf supports large precisions… guessing yes checking whether printf survives out-of-memory conditions… guessing no checking whether snprintf truncates the result as in C99… guessing no checking for intmax_t… yes checking for snprintf… (cached) yes checking for strnlen… yes checking for wcslen… no checking for wcsnlen… no checking for mbrtowc… (cached) no checking for wcrtomb… (cached) no checking whether _snprintf is declared… no checking for stdbool.h that conforms to C99… yes checking for _Bool… yes checking whether fcloseall is declared… yes checking whether ecvt is declared… no checking whether fcvt is declared… no checking whether gcvt is declared… yes checking whether strnlen is declared… yes checking for struct timespec in <time.h>… yes checking for TIME_UTC in <time.h>… no checking whether execvpe is declared… yes checking whether the utimes function works… guessing no checking whether vsnprintf is declared… yes checking for alloca as a compiler built-in… yes checking for __builtin_expect… yes checking for library containing clock_gettime… none required checking for clock_gettime… yes checking for clock_settime… yes checking for closedir… yes checking for d_type member in directory struct… yes checking for dirfd… yes checking whether dirfd is declared… yes checking whether dirfd is a macro… no checking for flexible array member… yes checking whether conversion from ‘int’ to ‘long double’ works… guessing yes checking for working POSIX fnmatch… guessing no checking whether frexp works… guessing yes checking whether frexpl is declared… yes checking whether frexpl() can be used without linking with libm… yes checking whether frexpl works… guessing yes checking whether futimens works… guessing yes checking for working getdelim function… guessing no checking for flockfile… yes checking for funlockfile… yes checking whether getc_unlocked is declared… yes checking for getline… yes checking for working getline function… guessing no checking whether getlogin_r works with small buffers… guessing yes checking for gettimeofday with POSIX signature… almost checking for GNU glob interface version 1 or 2… yes checking whether glob lists broken symlinks… (cached) yes checking whether isnan(double) can be used without linking with libm… yes checking whether isnan(float) can be used without linking with libm… yes checking whether isnan(float) works… guessing yes checking whether isnan(long double) can be used without linking with libm… yes checking whether isnanl works… guessing yes checking whether iswblank is declared… no checking whether langinfo.h defines CODESET… yes checking whether langinfo.h defines T_FMT_AMPM… yes checking whether langinfo.h defines ALTMON_1… no checking whether langinfo.h defines ERA… yes checking whether langinfo.h defines YESEXPR… yes checking whether the compiler supports the __inline keyword… yes checking whether locale.h conforms to POSIX:2001… yes checking whether struct lconv is properly defined… yes checking for pthread_rwlock_t… yes checking whether pthread_rwlock_rdlock prefers a writer to a reader… guessing no checking whether NAN macro works… yes checking whether HUGE_VAL works… yes checking whether mbrtowc is declared… no checking whether imported symbols can be declared weak… (cached) no checking whether the -Werror option is usable… yes checking for simple visibility declarations… yes checking whether mbsinit is declared… no checking whether mbsrtowcs is declared… no checking for mbtowc… no checking for bp-sym.h… no checking for mempcpy… yes checking whether YESEXPR works… guessing yes checking for opendir… yes checking whether frexp works… (cached) guessing yes checking whether ldexp can be used without linking with libm… yes checking whether frexpl() can be used without linking with libm… (cached) yes checking whether frexpl works… (cached) guessing yes checking whether frexpl is declared… (cached) yes checking whether ldexpl() can be used without linking with libm… yes checking whether ldexpl works… guessing yes checking whether ldexpl is declared… yes checking for raise… yes checking for sigprocmask… yes checking for readdir… yes checking for working re_compile_pattern… guessing no checking for libintl.h… yes checking whether isblank is declared… yes checking whether setlocale (LC_ALL, NULL) is multithread-safe… (cached) guessing no checking whether setlocale (category, NULL) is multithread-safe… (cached) guessing no checking whether imported symbols can be declared weak… (cached) no checking whether the -Werror option is usable… (cached) yes checking for simple visibility declarations… (cached) yes checking for struct sigaction.sa_sigaction… yes checking for volatile sig_atomic_t… yes checking for sighandler_t… yes checking for signbit macro… guessing no checking for signbit compiler built-ins… guessing no checking where to find the sign bit in a ‘float’… unknown checking where to find the sign bit in a ‘double’… unknown checking where to find the sign bit in a ‘long double’… unknown checking whether copysignf is declared… yes checking whether copysignf can be used without linking with libm… yes checking whether copysign is declared… yes checking whether copysign can be used without linking with libm… yes checking whether copysignl is declared… yes checking whether copysignl can be used without linking with libm… yes checking for sigprocmask… (cached) yes checking for stdint.h… (cached) yes checking for SIZE_MAX… yes checking for snprintf… (cached) yes checking whether snprintf respects a size of 1… guessing yes checking for snprintf… (cached) yes checking whether snprintf fully supports the ‘n’ directive… (cached) yes checking whether snprintf respects a size of 1… (cached) guessing yes checking whether vsnprintf respects a zero size as in C99… guessing no checking for nl_langinfo… (cached) yes checking for ptrdiff_t… yes checking for ssize_t… yes checking whether stat handles trailing slashes on files… guessing yes checking for struct stat.st_atim.tv_nsec… yes checking whether struct stat.st_atim is of type struct timespec… yes checking for struct stat.st_birthtimespec.tv_nsec… no checking for struct stat.st_birthtimensec… no checking for struct stat.st_birthtim.tv_nsec… no checking for va_copy… yes checking for good max_align_t… (cached) yes checking whether NULL can be used in arbitrary expressions… (cached) yes checking which flavor of printf attribute matches inttypes macros… system checking for strcasecmp… yes checking for strncasecmp… yes checking whether strncasecmp is declared… yes checking for strcasestr… yes checking for working strnlen… yes checking for nlink_t… (cached) yes checking for utime… yes checking whether utime handles trailing slashes on files… guessing yes checking for ptrdiff_t… (cached) yes checking for vsnprintf… yes checking whether snprintf respects a size of 1… (cached) guessing yes checking for vsnprintf… (cached) yes checking whether snprintf fully supports the ‘n’ directive… (cached) yes checking whether snprintf respects a size of 1… (cached) guessing yes checking whether vsnprintf respects a zero size as in C99… (cached) guessing no checking for nl_langinfo… (cached) yes checking for ptrdiff_t… (cached) yes checking whether wcsdup is declared… no checking whether wcrtomb is declared… no checking for wctype_t… (cached) no checking for wctrans_t… (cached) no checking whether wcwidth is declared… no checking whether wcwidth is a macro… no checking for wmemchr… no checking for stdint.h… (cached) yes checking whether ln -s works… yes checking for library containing strerror… none required checking for special C compiler options needed for large files… (cached) no checking for _FILE_OFFSET_BITS value needed for large files… (cached) 64 checking for arm-buildroot-linux-uclibcgnueabihf-pkg-config… no checking for pkg-config… /home/user1/buildroot-2020.02.10/output/host/bin/pkg-config configure: WARNING: using cross tools not prefixed with host triplet checking pkg-config is at least version 0.9.0… yes checking for a sed that does not truncate output… /usr/bin/sed checking whether NLS is requested… yes checking for msgfmt… /home/user1/buildroot-2020.02.10/output/host/bin/msgfmt checking for gmsgfmt… /home/user1/buildroot-2020.02.10/output/host/bin/msgfmt checking for xgettext… /home/user1/buildroot-2020.02.10/output/host/bin/xgettext checking for msgmerge… /home/user1/buildroot-2020.02.10/output/host/bin/msgmerge checking for ld used by arm-buildroot-linux-uclibcgnueabihf-gcc… /home/user1/buildroot-2020.02.10/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/ld checking if the linker (/home/user1/buildroot-2020.02.10/output/host/arm-buildroot-linux-uclibcgnueabihf/bin/ld) is GNU ld… yes checking for shared library run path origin… done checking for CFPreferencesCopyAppValue… no checking for CFLocaleCopyCurrent… no checking for GNU gettext in libc… no checking for iconv… no, consider installing GNU libiconv checking for GNU gettext in libintl… yes checking whether to use NLS… yes checking where the gettext function comes from… external libintl checking how to link with libintl… -lintl checking whether building from git… no checking for libintl.h… (cached) yes checking for limits.h… (cached) yes checking for pwd.h… yes checking for termios.h… yes checking for sys/param.h… (cached) yes checking whether to enable UTF-8 support… auto checking for iswalnum… no checking for iswpunct… no checking for mblen… no checking for mbstowcs… no checking for mbtowc… (cached) no checking for wctomb… no checking whether C compiler accepts -Wall… yes checking for NCURSESW… no checking for ncurses.h… no checking for arm-buildroot-linux-uclibcgnueabihf-ncursesw5-config… no checking for ncursesw5-config… ncursesw5-config checking for wget_wch in -lncursesw… no checking for initscr in -lncurses… no checking for curses.h… no checking for wget_wch in -lcurses… no checking for initscr in -lcurses… no configure: error: *** No curses lib was found. Please install the curses header files *** from libncurses-dev (Debian), ncurses-devel (Fedora), or similar. *** (Or install ncurses from https://ftp.gnu.org/gnu/ncurses/.)


Ответ на: комментарий от gruy

вопрос как отформатировать простыню похоже

Stil ★★★★★
()

no configure: error: *** No curses lib was found. Please install the curses header files *** from libncurses-dev (Debian), ncurses-devel (Fedora), or similar.

Русским языком же написано, что нужно установить пакет libncurses-dev в твой дистрибутив и продолжить конфигурирование и компиляцию.

EXL ★★★★★
()
Ответ на: комментарий от EXL

Технически, язык английский. То что ТС не умеет на нем читать или пользоваться переводчиком вопросы к ТС.

einhander ★★★★★
()
Ответ на: комментарий от EXL

Может быть такое, что он не может найти заголовочные файлы, или может нужно переустановить пакеты?

anonymous
()
Ответ на: комментарий от anonymous

Так то ты поставил x86_64 версию библиотек себе в систему. Ставь arm’овские.

EXL ★★★★★
()
Ответ на: комментарий от anonymous

Тебе нужно собрать ncurses под arm, если Debian не предоставляет arm-пакеты и подкинуть в configure-скрипт.

EXL ★★★★★
()
Ответ на: комментарий от anonymous

Конечно. Скачай исходники этого ncursesw и выполни такую же команду ./configure над ними и всеми другими зависиостями, которые потребуются. Потом выполни ./configure --help у nano и почитай что именно требуется указать для того чтобы подсосался ncursesw.

EXL ★★★★★
()
Ответ на: комментарий от EXL

При сборке ncurses вписываю такую команду CC=arm-buildroot-linux-uclibcgnueabihf-gcc CFLAGS=-march=armv7-a LDFLAGS=«-static» ./configure –host=arm-buildroot-linux-uclibcgnueabihf Все протекает без ошибок вроде потом пишу make выдает вот это echo | mawk -f ./base/MKunctrl.awk bigstrings=1 >unctrl.c gcc -o make_keys -DHAVE_CONFIG_H -DUSE_BUILD_CC -I../ncurses -I. -I../include -I./../include ./tinfo/make_keys.c
./make_keys keys.list > init_keytry.h arm-buildroot-linux-uclibcgnueabihf-gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -march=armv7-a –param max-inline-insns-single=1200 -c ../ncurses/./tty/hardscroll.c -o ../objects/hardscroll.o make[1]: arm-buildroot-linux-uclibcgnueabihf-gcc: Команда не найдена make[1]: *** [Makefile:922: ../objects/hardscroll.o] Ошибка 127 make[1]: выход из каталога «/home/user1/ncurses-6.2/ncurses» make: *** [Makefile:120: all] Ошибка 2 Хотя я проверил переменную PATH все на месте

tr1
() автор топика
Ответ на: комментарий от EXL

user1@Tr:~/ncurses-6.2$ arm-buildroot-linux-uclibcgnueabihf-gcc –version

arm-buildroot-linux-uclibcgnueabihf-gcc.br_real (Buildroot 2020.02.10) 8.4.0 Copyright (C) 2018 Free Software Foundation, Inc. Это свободно распространяемое программное обеспечение. Условия копирования приведены в исходных текстах.

Без гарантии каких-либо качеств, включая коммерческую ценность и применимость для каких-либо целей.

tr1
() автор топика
Ответ на: комментарий от anonymous

Напиши в телегу, может помогу собрать потихоньку. Тачки с Debian’ом правда нет у меня под рукой, есть с Ubuntu 16.04, не знаю, покатит ли. Но статический бинарь nano попробую собрать на ней.

EXL ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.