Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need cross compile a glib-2.0.0 share libraries.when I user my crosstool(gcc-3.4.6-glibc-2.3.6) to compile it ,I encountered a error like the underline show.who meet the same error like me,or have a good solution?Thank at first!
[root@mdvs glib-2.0.0]# ./configure --host=arm-linux
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.
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for the BeOS... no
checking for Win32... no
checking whether to enable garbage collector friendliness... no
checking whether to disable memory pools... no
checking for arm-linux-gcc... arm-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gcc accepts -g... yes
checking for c++... c++
checking for arm-linux-g++... (cached) c++
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for a BSD compatible install... /usr/bin/install -c
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for pkg-config... /usr/bin/pkg-config
checking for gawk... gawk
checking for perl5... perl5
checking for indent... no
checking for perl5... /usr/bin/perl5
checking for arm-linux-ranlib... arm-linux-ranlib
checking how to run the C preprocessor... arm-linux-gcc -E
checking for ANSI C header files... yes
checking for arm-linux-gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
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 off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed... az ca de el es eu fr gl ja ko nl nn no pl pt ro ru sk sl sv ta tr uk zh_CN zh_TW
checking for bind_textdomain_codeset... yes
checking for ld used by GCC... /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld
checking if the linker (/arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld) is GNU ld... yes
checking for /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/bin/arm-linux-nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib)
checking command to parse /arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/bin/arm-linux-nm -B output... ok
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for arm-linux-file... no
checking for file... /usr/bin/file
checking for arm-linux-ranlib... (cached) arm-linux-ranlib
checking for arm-linux-strip... arm-linux-strip
checking for objdir... .libs
checking for arm-linux-gcc option to produce PIC... -fPIC
checking if arm-linux-gcc PIC flag -fPIC works... yes
checking if arm-linux-gcc static flag -static works... yes
checking if arm-linux-gcc supports -c -o file.o... yes
checking if arm-linux-gcc supports -c -o file.lo... no
checking if arm-linux-gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/arm2410s-2.6/crosstools/gcc-3.4.6-glibc-2.3.6/arm-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
Hi,
and what was your "smooth" solution.
I tried and 2.20.1 but fail the same way (the make file, with those code injections, for "the tests", is awful).
Quote:
Originally Posted by jeazh
Thanks for you help!
I have solved the problem smoothly
I compiled the version of 2.20.0 before,but fail,so I did not try 2.20.1.
[QUOTE=Galterian;3562588]Hi,
and what was your "smooth" solution.
I tried and 2.20.1 but fail the same way (the make file, with those code injections, for "the tests", is awful).[/QUOT
I think you should check the version of yout crosstools,what I use is gcc-3.4.6-glibc-2.3.6
i am compilaing and glib for my ARM baord and i am getting one error
see
Code:
checking for format to printf and scanf a guint64... none
checking for an ANSI C-conforming const... yes
checking if malloc() and friends prototypes are gmem.h compatible... yes
checking for growing stack pointer... configure: error: in `/mnt/freescale/sources/glib-2.22.0':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.
Configuration of glib library has failed
sharief@sharief-desktop:/mnt/freescale/sources/glib-2.22.0$
can anyone help me..what is this? and how to clear that?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.