2006-11-20 12:00:36

by Padmakiran K. S.

[permalink] [raw]
Subject: Cross compilation of nfs-utils-1.0.9.tar.gz for mips architecture.

Hi all,

I am trying to enable NFS support enabled for Monta Vista linux 2.6.10 for
mips architecture. I was not able to cross-compile the nfs-utils package
that was downloaded from sourceforge.net site.

I tried setting (env variable) CC to my cross compiler
i.emips64_octeon_be-gcc and tried the configure script as mentioned
below.
--host option of configure script was set to the output of config.guessscript.

./configure --host=i686-pc-linux-gnu

checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker
(/auto/itasca/tools/packages/montavisa/mvl402/montavista/pro/devkit/mips64/octeon_be/mips64octeon-montavista-linux/bin/ld)
supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for i686-pc-linux-gnu-ar... (cached) i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-ld...
/auto/itasca/tools/packages/montavisa/mvl402/montavista/pro/devkit/mips64/octeon_be/mips64octeon-montavista-linux/bin/ld
checking for ANSI C header files... (cached) yes
checking for GNU libc2... yes
checking for BSD signal semantics... configure: error: cannot run test
program while cross compiling


My build keeps failing for BSD signal semantics. Is there any method of
suppressing this check in the configure script.
Any link or url elaborating the cross compilation for nfs-utils package
would also be of great help.

Is this the right method to cross compile nfs-utils package ? Currently i'm
using the package nfs-utils-1.0.9.tar.gz.

Thanks and Regards,
Padmakiran


Attachments:
(No filename) (2.01 kB)
(No filename) (2.17 kB)
(No filename) (347.00 B)
(No filename) (140.00 B)
Download all attachments

2006-11-20 15:37:32

by Kevin Coffman

[permalink] [raw]
Subject: Re: Cross compilation of nfs-utils-1.0.9.tar.gz for mips architecture.

Padmakiran,
I think this patch:
http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.0.10-3/nfs-utils-1.0.10-003-autotools_touchups.dif
fixes that problem. It hasn't made it upstream yet...

Please let me know if it helps or not.

K.C.

On 11/20/06, Padmakiran K. S. <[email protected]> wrote:
> Hi all,
>
> I am trying to enable NFS support enabled for Monta Vista linux 2.6.10 for
> mips architecture. I was not able to cross-compile the nfs-utils package
> that was downloaded from sourceforge.net site.
>
> I tried setting (env variable) CC to my cross compiler i.e
> mips64_octeon_be-gcc and tried the configure script as mentioned below.
> --host option of configure script was set to the output of config.guess
> script.
>
> ./configure --host=i686-pc-linux-gnu
>
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> appending configuration tag "F77" to libtool
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> checking for g77 option to produce PIC... -fPIC
> checking if g77 PIC flag -fPIC works... yes
> checking if g77 static flag -static works... yes
> checking if g77 supports -c -o file.o... yes
> checking whether the g77 linker
> (/auto/itasca/tools/packages/montavisa/mvl402/montavista/pro/devkit/mips64/octeon_be/mips64octeon-montavista-linux/bin/ld)
> supports shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking for i686-pc-linux-gnu-ar... (cached) i686-pc-linux-gnu-ar
> checking for i686-pc-linux-gnu-ld...
> /auto/itasca/tools/packages/montavisa/mvl402/montavista/pro/devkit/mips64/octeon_be/mips64octeon-montavista-linux/bin/ld
> checking for ANSI C header files... (cached) yes
> checking for GNU libc2... yes
> checking for BSD signal semantics... configure: error: cannot run test
> program while cross compiling
>
>
> My build keeps failing for BSD signal semantics. Is there any method of
> suppressing this check in the configure script.
> Any link or url elaborating the cross compilation for nfs-utils package
> would also be of great help.
>
> Is this the right method to cross compile nfs-utils package ? Currently i'm
> using the package nfs-utils-1.0.9.tar.gz .
>
> Thanks and Regards,
> Padmakiran
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs