Error Cannot Run Test Program While Cross Compiling Samba
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies configure: error: cannot run test program while cross compiling glib of this site About Us Learn more about Stack Overflow the company cross compile glib Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered gnu screen cross compile Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Cannot run test program while cross compiling - cross compiling Firebird up vote 0 down vote favorite I've tried to compile firebird server for arm linux, with cross-compiler (it's choosen - it's working properly). When using: ./autogen.sh --host=arm-linux-gnu I get this error: checking for working sem_init()... configure: error: in `/compile/code/firebird/trunk': configure: error: cannot run test program while cross compiling I know I'm cross-compiling, but maybe Firebird developers dissalow this (but i've read Firebird is ready to compilation for another architectures). linux arm cross-compilation sql sqlserver share|improve this question asked Dec 8 '15 at 11:49 SÅ‚awomir Kozok 12 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote Configure determines the answer to certain questions by compiling and running programs on the fly ... which it can (usually) do when the build host is the same as the target host. When you are cross-compiling, (usually) your build machine can't run the binaries produced by the cross-compiler. To overcome this, locate where the test is in the configure script and if you are lucky, the configure script will allow for the caching of the result of the test ... you can use this to fool the configure script into thinking that it already knows the answer to the question, and therefore it will not try to compile and run the binary. For example, if you were tryi
it enabled. Please turn JavaScript back on and reload this page.More Discussions in i.MX Community Where is this place located?NXP CommunityAll Placesi.MX CommunityLog in to create and rate content, and to follow, bookmark, and share content with other members.error building package (samba and new package)Discussion created by snir nisim on Feb 27, 2012Latest reply on Feb 29, 2012 by snir nisim Like • Show http://unix.stackexchange.com/questions/248088/cannot-run-test-program-while-cross-compiling-cross-compiling-firebird 0 Likes0 Comment • 5hello everyone,recently i successfully compile build and deployed a new rootfs including kernel and u-boot.after build finished successfully i tried adding some packages to the file system but encountered a couple of errors:1) i tried:./ltib -m prep -p samba --> succeeded./ltib -m https://community.nxp.com/thread/280120 scbuild -p samba --> build failedthe scbuild failed with this error:*****************************************************************************************************************snir@snir-linux:~/ltib$ ./ltib -m scbuild -p sambaProcessing: samba===================Build path taken because: directory build, build key set, no prebuilt rpm, rpmbuild --dbpath /home/snir/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/snir/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/snir/ltib/tmp' --define '_rpmdir /home/snir/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit /home/snir/ltib/dist/lfs-5.1/samba/samba.specBuilding target platforms: armBuilding for target armExecuting(%build): /bin/sh -e /home/snir/ltib/tmp/rpm-tmp.48920+ umask 022+ cd /home/snir/ltib/rpm/BUILD+ cd samba-3.0.32+ cd source+ '[' = MPC8315E ']'/home/snir/ltib/tmp/rpm-tmp.48920: line 23: [: =: unary operator expected+ '[' = MPC837xE ']'/home/snir/ltib/tmp/rpm-tmp.48920: line 23: [: =: unary operator expected+ '[' arm = m68knommu ']'+ echo '***** Using default site file for cross build settings *****'***** Using default site file for cross build settings *****+ CONFIG_SITE=samba-3.0.32-default.site+ ./configure --prefix=/usr --host=
Sign in Pricing Blog Support Search GitHub This repository https://github.com/mapnik/mapnik-packaging/issues/128 Watch 21 Star 35 Fork 28 mapnik/mapnik-packaging Code Issues http://samba-technical.samba.narkive.com/nAlT5rqU/samba-cross-compiling 47 Pull requests 3 Projects 0 Wiki Pulse Graphs New issue glib cannot run test program while cross compiling #128 Closed Whirlwind opened this Issue Mar 6, 2014 · 1 comment Projects None yet cannot run Labels None yet Milestone No milestone Assignees No one assigned 2 participants Whirlwind commented Mar 6, 2014 Build armv7 on MacOS, I got the error: **** building pkg-config **** configure: WARNING: If you wanted to set the --build type, don't use --host. If cannot run test a cross compiler is detected then cross compile mode will be used. configure: WARNING: using cross tools not prefixed with host triplet ./configure: line 11170: ./libtool: No such file or directory configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. configure: WARNING: using cross tools not prefixed with host triplet configure: error: in `/Developer/maps/mapnik-packaging/osx/out/packages/pkg-config-0.25/glib-1.2.10': configure: error: cannot run test program while cross compiling See `config.log' for more details. configure: error: ./configure failed for glib-1.2.10 springmeyer added a commit that closed this issue Mar 12, 2014 springmeyer #128 1af2286 springmeyer closed this in