The problem is how to fix it ... What in which script needs to be changed to fix this?
~ Neeraj -----Original Message----- From: Phantom [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 7:54 PM To: [email protected] Subject: Re: Build failing for native code By looking at the gcc command that you have a -m in it. It needs to be either -m32 or -m64 depending on whether your machine is a 32 or 64 bit machine. A On 6/18/07, Mahajan, Neeraj <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to build the native code (which includes the compression > library) on Solaris 10 (x86 64-bit). I get the following error while > building: > > gmake all-recursive > gmake[1]: Entering directory > `/home/nemahajan/hadoop-install/hadoop-0.13.0/src/native' > Making all in src/org/apache/hadoop/io/compress/zlib > gmake[2]: Entering directory > `/home/nemahajan/hadoop-install/hadoop-0.13.0/src/native/src/org/apach > e/ > hadoop/io/compress/zlib' > if /bin/sh ../../../../../../../libtool --mode=compile gcc > -DHAVE_CONFIG_H -I. -I. -I../../../../../../.. -I/usr/java/include > -I/usr/java/include/solaris -I/src > -I/home/nemahajan/hadoop-install/lzo/lzo-2.02-bin/include -g -Wall > -fPIC > -O2 -m -g -O2 -MT ZlibCompressor.lo -MD -MP -MF > ".deps/ZlibCompressor.Tpo" -c -o ZlibCompressor.lo ZlibCompressor.c; \ > then mv -f ".deps/ZlibCompressor.Tpo" ".deps/ZlibCompressor.Plo"; else > rm -f ".deps/ZlibCompressor.Tpo"; exit 1; fi gcc -DHAVE_CONFIG_H -I. > -I. -I../../../../../../.. -I/usr/java/include > -I/usr/java/include/solaris -I/src > -I/home/nemahajan/hadoop-install/lzo/lzo-2.02-bin/include -g -Wall > -fPIC > -O2 -m -g -O2 -MT ZlibCompressor.lo -MD -MP -MF > .deps/ZlibCompressor.Tpo -c ZlibCompressor.c -fPIC -DPIC -o > .libs/ZlibCompressor.o > cc1: error: missing argument to "-m" > gmake[2]: *** [ZlibCompressor.lo] Error 1 > gmake[2]: Leaving directory > `/home/nemahajan/hadoop-install/hadoop-0.13.0/src/native/src/org/apach > e/ > hadoop/io/compress/zlib' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory > `/home/nemahajan/hadoop-install/hadoop-0.13.0/src/native' > > > Any idea how this can be resolved? > > Thanks, > Neeraj >
