Hello I have set environment to crosscompile applications for vusolo2 mipsel.
I use devshell to compile transmission 2.92. Configure command succeeds
./configure --host=mips
pablocool@Ultra7vbox:~/vu/openpli-oe-core/build$ tmp/deploy/addons/mipsel-oe-linux-openpli-vusolo2-devshell bash: alias: `./configure': invalid alias name [OE::mipsel-oe-linux-openpli-vusolo2]:~/vu/openpli-oe-core/build$ ./configure --host=mips bash: ./configure: No such file or directory [OE::mipsel-oe-linux-openpli-vusolo2]:~/vu/openpli-oe-core/build$ cd ~ [OE::mipsel-oe-linux-openpli-vusolo2]:~$ cd Pobrane/transmission-2.92 [OE::mipsel-oe-linux-openpli-vusolo2]:~/Pobrane/transmission-2.92$ ./configure --host=mips checking whether make supports nested variables... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for mips-strip... mipsel-oe-linux-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a pax tar archive... gnutar checking build system type... x86_64-pc-linux-gnu checking host system type... mips-unknown-elf checking how to print strings... printf checking for style of include used by make... GNU checking for mips-gcc... mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 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 we are using the GNU C compiler... yes checking whether mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 accepts -g... yes checking for mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 option to accept ISO C89... none needed checking whether mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 understands -c and -o together... yes checking dependency style of mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2... mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 checking if the linker (mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 ) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... mipsel-oe-linux-nm checking the name lister (mipsel-oe-linux-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to mips-unknown-elf format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 option to reload object files... -r checking for mips-objdump... mipsel-oe-linux-objdump checking how to recognize dependent libraries... unknown checking for mips-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for mips-ar... mipsel-oe-linux-ar checking for archiver @FILE support... @ checking for mips-strip... (cached) mipsel-oe-linux-strip checking for mips-ranlib... mipsel-oe-linux-ranlib checking command to parse mipsel-oe-linux-nm output from mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mips-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no checking how to run the C preprocessor... mipsel-oe-linux-gcc -E --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 -mel -mabi=32 -mhard-float -march=mips32 checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 supports -fno-rtti -fno-exceptions... no checking for mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 option to produce PIC... -fPIC -DPIC checking if mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 PIC flag -fPIC -DPIC works... yes checking if mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 static flag -static works... yes checking if mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 supports -c -o file.o... yes checking if mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 supports -c -o file.o... (cached) yes checking whether the mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 linker (mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 ) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking for cos in -lm... yes checking for mips-gcc... (cached) mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 checking whether we are using the GNU C compiler... (cached) yes checking whether mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 accepts -g... (cached) yes checking for mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 option to accept ISO C89... (cached) none needed checking whether mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 understands -c and -o together... (cached) yes checking dependency style of mipsel-oe-linux-gcc -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2... (cached) gcc3 checking whether we are using the GNU C++ compiler... yes checking whether mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 accepts -g... yes checking dependency style of mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2... gcc3 checking how to run the C++ preprocessor... mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 -E checking for ld used by mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2... mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 checking if the linker (mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 ) is GNU ld... yes checking whether the mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 linker (mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 ) supports shared libraries... no checking for mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 option to produce PIC... -fPIC -DPIC checking if mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 PIC flag -fPIC -DPIC works... yes checking if mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 static flag -static works... yes checking if mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 supports -c -o file.o... yes checking if mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 supports -c -o file.o... (cached) yes checking whether the mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 linker (mipsel-oe-linux-ld --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 ) supports shared libraries... no checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking for inline... inline checking gcc version... 4.9.1 checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking xlocale.h usability... yes checking xlocale.h presence... yes checking for xlocale.h... yes checking for iconv... yes checking for pread... yes checking for pwrite... yes checking for lrintf... no checking for strlcpy... no checking for daemon... yes checking for dirname... yes checking for basename... yes checking for canonicalize_file_name... yes checking for strcasecmp... yes checking for localtime_r... yes checking for fallocate64... yes checking for posix_fallocate... yes checking for memmem... yes checking for strsep... yes checking for strtold... yes checking for syslog... yes checking for valloc... yes checking for getpagesize... yes checking for posix_memalign... yes checking for statvfs... yes checking for htonll... no checking for ntohll... no checking for mkdtemp... yes checking for uselocale... yes checking for _configthreadlocale... no checking whether make sets $(MAKE)... (cached) yes checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for library containing cos... -lm checking for library containing socket... none required checking for library containing gethostbyname... none required checking for library containing quotacursor_skipidtype... no checking for mips-pkg-config... no checking for pkg-config... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBCURL... yes checking for LIBEVENT... yes checking for ZLIB... yes checking for OPENSSL... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for library containing getmntent... none required checking whether posix_fadvise is declared... yes checking for posix_fadvise... yes checking sys/inotify.h usability... yes checking sys/inotify.h presence... yes checking for sys/inotify.h... yes checking for inotify_init... yes checking sys/event.h usability... no checking sys/event.h presence... no checking for sys/event.h... no checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking xfs/xfs.h usability... yes checking xfs/xfs.h presence... yes checking for xfs/xfs.h... yes checking for SYSTEMD_DAEMON... no checking for clock_gettime in -lrt... yes checking µTP... yes checking system miniupnpc library... none checking whether NLS is requested... yes checking for intltool >= 0.35.0... 0.50.2 found checking for intltool-update... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/intltool-update checking for intltool-merge... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/intltool-merge checking for intltool-extract... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/intltool-extract checking for xgettext... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/xgettext checking for msgmerge... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/msgmerge checking for msgfmt... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/msgfmt checking for gmsgfmt... /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/msgfmt checking for perl... /usr/bin/perl checking for perl >= 5.8.1... 5.14.2 checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for LC_MESSAGES... yes checking for libintl.h... (cached) yes checking for ngettext in libc... yes checking for dgettext in libc... yes checking for bind_textdomain_codeset... yes checking for msgfmt... (cached) /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... (cached) /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/msgfmt checking for xgettext... (cached) /home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/x86_64-linux/usr/bin/xgettext checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating transmission-gtk.spec config.status: creating cli/Makefile config.status: creating daemon/Makefile config.status: creating extras/Makefile config.status: creating libtransmission/Makefile config.status: creating utils/Makefile config.status: creating third-party/Makefile config.status: creating third-party/dht/Makefile config.status: creating third-party/libb64/Makefile config.status: creating third-party/libutp/Makefile config.status: creating third-party/libnatpmp/Makefile config.status: creating third-party/miniupnp/Makefile config.status: creating macosx/Makefile config.status: creating gtk/Makefile config.status: creating gtk/icons/Makefile config.status: creating qt/config.pri config.status: creating web/Makefile config.status: creating web/images/Makefile config.status: creating web/style/Makefile config.status: creating web/style/jqueryui/Makefile config.status: creating web/style/jqueryui/images/Makefile config.status: creating web/style/transmission/Makefile config.status: creating web/style/transmission/images/Makefile config.status: creating web/style/transmission/images/buttons/Makefile config.status: creating web/javascript/Makefile config.status: creating web/javascript/jquery/Makefile config.status: creating po/Makefile.in config.status: executing depfiles commands config.status: executing libtool commands config.status: executing default-1 commands config.status: executing po/stamp-it commands Configuration: Source code location: . Compiler: mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2 Build libtransmission: yes * optimized for low-resource systems: no * µTP enabled: yes * crypto library: openssl Build Command-Line client: no Build GTK+ client: no * libappindicator for an Ubuntu-style tray: no Build Daemon: yes Build Mac client: no [OE::mipsel-oe-linux-openpli-vusolo2]:~/Pobrane/transmission-2.92$
Unfortunately command make fails:
^ CC libtransmission-test.o CCLD bitfield-test libtool: warning: library '/home/pablocool/vu/openpli-oe-core/build/tmp/sysroots/vusolo2/usr/lib/libcurl.la' was moved. libtool: error: cannot find the library '/usr/lib/libgmp.la' or unhandled argument '=/usr/lib/libgmp.la' make[1]: *** [bitfield-test] Error 1 make[1]: Leaving directory `/home/pablocool/Pobrane/transmission-2.92/libtransmission' make: *** [all-recursive] Error 1 bbfatal: command not found
How can I tell compiler to use libraries from ~/vu/openpli-oe-core/build/tmp/sysroots/vusolo2/usr/lib/ instead of /usr/lib ?
I know I can use symbolic links because it worked for earlier error for libgnutls.la but I dont like this solution.
[OE::mipsel-oe-linux-openpli-vusolo2]:~/vu/openpli-oe-core$ ls -l build/tmp/sysroots/vusolo2/usr/lib/libgmp.la -rwxr-xr-x 1 pablocool pablocool 907 May 21 00:51 build/tmp/sysroots/vusolo2/usr/lib/libgmp.la [OE::mipsel-oe-linux-openpli-vusolo2]:~/vu/openpli-oe-core$