* [Buildroot] Error while cross-compiling ntp using buildroot for MIPS
@ 2012-03-14 7:55 Raj Kumar
2012-03-15 21:22 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: Raj Kumar @ 2012-03-14 7:55 UTC (permalink / raw)
To: buildroot
Hi All,
I am trying to cross compile ntp-4.2.6p3? (network time protocol) using? buildroot-2009.02 (mipsel-linux-gcc) for MIPS processor.
On linux-2.6.32-21 based machine ntp package cross compiles fine.
But? I? am getting error while cross compiling the same package using the same version of? buildroot on 2.6.35-28 based PC.
Case 1? (Everything works fine)
---------
Build root version :- buildroot-2009.02 (mipsel-linux-gcc)
Build Machine Linux version :-? 2.6.32-21-generic #32-Ubuntu SMP
Target Linux version :-? linux-2.6.29.2
NTP version :-? ntp-4.2.6p3
automake (GNU automake) 1.11.1
aclocal (GNU automake) 1.11.1
Case 2? (? gives compilation error? )
--------------------------------------
Build root version :- buildroot-2009.02 (mipsel-linux-gcc)
Build Machine Linux version :-?? 2.6.35-28-generic #50-Ubuntu SMP
Target Linux version :-? linux-2.6.29.2
NTP version :-? ntp-4.2.6p3
automake (GNU automake) 1.11.1
aclocal (GNU automake) 1.11.1
libtoolize (GNU libtool) 2.2.6b
Just for testing i compiled ntp using gcc, on the same machine and the? package compiles fine.?
So problem happens only when cross compiling using buildroot.?
When i cross-compiled first time i got following error
---------------------------------------------------------------------------------
make[2]: Entering directory `/home/ws/mint_ubuws2/test-depot/test/main/src/external/ntp-4.2.6p3'
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/ws/mint_ubuws2/test-depot/test/main/src/external/ntp-4.2.6p3/missing --run aclocal-1.11 -I m4 -I sntp/libopts/m4
?cd . && /bin/sh /home/ws/mint_ubuws2/test-depot/test/main/src/external/ntp-4.2.6p3/missing --run automake-1.11 --foreign
ElectricFence/Makefile.am:11: library used but `RANLIB' is undefined
ElectricFence/Makefile.am:11:?? The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
ElectricFence/Makefile.am:11:?? to `configure.ac' and run `autoconf' again.
libntp/Makefile.am:7: library used but `RANLIB' is undefined
libntp/Makefile.am:7:?? The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
libntp/Makefile.am:7:?? to `configure.ac' and run `autoconf' again.
libparse/Makefile.am:6: library used but `RANLIB' is undefined
libparse/Makefile.am:6:?? The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
libparse/Makefile.am:6:?? to `configure.ac' and run `autoconf' again.
ntpd/Makefile.am:10: library used but `RANLIB' is undefined
ntpd/Makefile.am:10:?? The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
ntpd/Makefile.am:10:?? to `configure.ac' and run `autoconf' again.
ntpq/Makefile.am:18: library used but `RANLIB' is undefined
ntpq/Makefile.am:18:?? The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
ntpq/Makefile.am:18:?? to `configure.ac' and run `autoconf' again.
--------------------------------------------------------------------------------------
Then i added? AC_PROG_RANLIB in configure.ac and recompiled the package . Then i hit the following error
----------------------------------------------------------------------------------------
libopts/Makefile.am:4: Libtool library used but `LIBTOOL' is undefined
libopts/Makefile.am:4:?? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libopts/Makefile.am:4:?? to `configure.ac' and run `aclocal' and `autoconf' again.
libopts/Makefile.am:4:?? If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
libopts/Makefile.am:4:?? its definition is in aclocal's search path.
---------------------------------------------------------------------------------------
I have added AC_PROG_LIBTOOL in configure.ac and recompiled but gave the same error.
I goggled and tried some solutions suggested like? recompiling the aclocal , libtool prefixing /usr/share . etc ..? but didn't help ..
Please find attached? detailed build log.
Your help would be highly appreciated.
Thanks and Regards
Raj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120314/9e153169/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ntp_logs.txt
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120314/9e153169/attachment-0001.txt>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] Error while cross-compiling ntp using buildroot for MIPS
2012-03-14 7:55 [Buildroot] Error while cross-compiling ntp using buildroot for MIPS Raj Kumar
@ 2012-03-15 21:22 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2012-03-15 21:22 UTC (permalink / raw)
To: buildroot
On Wednesday 14 March 2012 08:55:44 Raj Kumar wrote:
> I am trying to cross compile ntp-4.2.6p3 (network time protocol) using buildroot-2009.02 (mipsel-linux-gcc) for MIPS processor.
From the log you sent I conclude that you're not actually using
buildroot to compile ntp. Did you try building it with a recent
buildroot? 4.2.6p3 is included in buildroot-2011.02, the latest
release has 4.2.6p5.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-15 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 7:55 [Buildroot] Error while cross-compiling ntp using buildroot for MIPS Raj Kumar
2012-03-15 21:22 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox