You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by Inder Pall <in...@gmail.com> on 2011/11/09 07:08:05 UTC
error building libhdfs
facing the following
if /bin/sh ./libtool --mode=compile --tag=CC gcc
-DPACKAGE_NAME=\"libhdfs\" -DPACKAGE_TARNAME=\"libhdfs\"
-DPACKAGE_VERSION=\"0.1.0\" -DPACKAGE_STRING=\"libhdfs\ 0.1.0\"
-DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
-DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" -Dsize_t=unsigned\ int -DHAVE_FCNTL_H=1
-Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
-DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
-I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
-MT hdfs.lo -MD -MP -MF ".deps/hdfs.Tpo" -c -o hdfs.lo hdfs.c; \
then mv -f ".deps/hdfs.Tpo" ".deps/hdfs.Plo"; else rm -f
".deps/hdfs.Tpo"; exit 1; fi
libtool: compile: gcc -DPACKAGE_NAME=\"libhdfs\"
-DPACKAGE_TARNAME=\"libhdfs\" -DPACKAGE_VERSION=\"0.1.0\"
"-DPACKAGE_STRING=\"libhdfs 0.1.0\""
-DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
-DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
-DLT_OBJDIR=\".libs/\" "-Dsize_t=unsigned int" -DHAVE_FCNTL_H=1
-Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
-DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
-I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
-MT hdfs.lo -MD -MP -MF .deps/hdfs.Tpo -c hdfs.c -fPIC -DPIC -o
.libs/hdfs.o
cc1: error: unrecognized command line option "-m"
has it something to do with my gcc version
i have the following version
[inder@proudarmburn-dx libhdfs]$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
didn't find much on - http://wiki.apache.org/hadoop/LibHDFS
- Inder
Re: error building libhdfs
Posted by Harsh J <ha...@cloudera.com>.
Inder,
Can you instead try, from HADOOP_HOME:
ant -Dcompile.c++=set -Dlibhdfs=set compile-c++-libhdfs
On 10-Nov-2011, at 7:59 AM, inder.pall@gmail.com wrote:
> Calling make inside the libhdfs src, which uses libtool to produce the lib.
>
> Inder
> Sent from BlackBerry® on Airtel
>
> -----Original Message-----
> From: Harsh J <ha...@cloudera.com>
> Date: Wed, 9 Nov 2011 20:58:05
> To: <hd...@hadoop.apache.org>
> Reply-To: hdfs-user@hadoop.apache.org
> Subject: Re: error building libhdfs
>
> Inder,
>
> Can you post your invocation command?
>
> On 09-Nov-2011, at 11:38 AM, Inder Pall wrote:
>
>> facing the following
>>
>>
>> if /bin/sh ./libtool --mode=compile --tag=CC gcc
>> -DPACKAGE_NAME=\"libhdfs\" -DPACKAGE_TARNAME=\"libhdfs\"
>> -DPACKAGE_VERSION=\"0.1.0\" -DPACKAGE_STRING=\"libhdfs\ 0.1.0\"
>> -DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
>> -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
>> -DLT_OBJDIR=\".libs/\" -Dsize_t=unsigned\ int -DHAVE_FCNTL_H=1
>> -Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
>> -DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
>> -I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
>> -MT hdfs.lo -MD -MP -MF ".deps/hdfs.Tpo" -c -o hdfs.lo hdfs.c; \
>> then mv -f ".deps/hdfs.Tpo" ".deps/hdfs.Plo"; else rm -f
>> ".deps/hdfs.Tpo"; exit 1; fi
>> libtool: compile: gcc -DPACKAGE_NAME=\"libhdfs\"
>> -DPACKAGE_TARNAME=\"libhdfs\" -DPACKAGE_VERSION=\"0.1.0\"
>> "-DPACKAGE_STRING=\"libhdfs 0.1.0\""
>> -DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
>> -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
>> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
>> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
>> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
>> -DLT_OBJDIR=\".libs/\" "-Dsize_t=unsigned int" -DHAVE_FCNTL_H=1
>> -Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
>> -DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
>> -I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
>> -MT hdfs.lo -MD -MP -MF .deps/hdfs.Tpo -c hdfs.c -fPIC -DPIC -o
>> .libs/hdfs.o
>> cc1: error: unrecognized command line option "-m"
>>
>>
>> has it something to do with my gcc version
>> i have the following version
>> [inder@proudarmburn-dx libhdfs]$ gcc --version
>> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
>>
>> didn't find much on - http://wiki.apache.org/hadoop/LibHDFS
>>
>> - Inder
>
Re: error building libhdfs
Posted by in...@gmail.com.
Calling make inside the libhdfs src, which uses libtool to produce the lib.
Inder
Sent from BlackBerry® on Airtel
-----Original Message-----
From: Harsh J <ha...@cloudera.com>
Date: Wed, 9 Nov 2011 20:58:05
To: <hd...@hadoop.apache.org>
Reply-To: hdfs-user@hadoop.apache.org
Subject: Re: error building libhdfs
Inder,
Can you post your invocation command?
On 09-Nov-2011, at 11:38 AM, Inder Pall wrote:
> facing the following
>
>
> if /bin/sh ./libtool --mode=compile --tag=CC gcc
> -DPACKAGE_NAME=\"libhdfs\" -DPACKAGE_TARNAME=\"libhdfs\"
> -DPACKAGE_VERSION=\"0.1.0\" -DPACKAGE_STRING=\"libhdfs\ 0.1.0\"
> -DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
> -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" -Dsize_t=unsigned\ int -DHAVE_FCNTL_H=1
> -Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
> -DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
> -I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
> -MT hdfs.lo -MD -MP -MF ".deps/hdfs.Tpo" -c -o hdfs.lo hdfs.c; \
> then mv -f ".deps/hdfs.Tpo" ".deps/hdfs.Plo"; else rm -f
> ".deps/hdfs.Tpo"; exit 1; fi
> libtool: compile: gcc -DPACKAGE_NAME=\"libhdfs\"
> -DPACKAGE_TARNAME=\"libhdfs\" -DPACKAGE_VERSION=\"0.1.0\"
> "-DPACKAGE_STRING=\"libhdfs 0.1.0\""
> -DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
> -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" "-Dsize_t=unsigned int" -DHAVE_FCNTL_H=1
> -Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
> -DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
> -I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
> -MT hdfs.lo -MD -MP -MF .deps/hdfs.Tpo -c hdfs.c -fPIC -DPIC -o
> .libs/hdfs.o
> cc1: error: unrecognized command line option "-m"
>
>
> has it something to do with my gcc version
> i have the following version
> [inder@proudarmburn-dx libhdfs]$ gcc --version
> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
>
> didn't find much on - http://wiki.apache.org/hadoop/LibHDFS
>
> - Inder
Re: error building libhdfs
Posted by Harsh J <ha...@cloudera.com>.
Inder,
Can you post your invocation command?
On 09-Nov-2011, at 11:38 AM, Inder Pall wrote:
> facing the following
>
>
> if /bin/sh ./libtool --mode=compile --tag=CC gcc
> -DPACKAGE_NAME=\"libhdfs\" -DPACKAGE_TARNAME=\"libhdfs\"
> -DPACKAGE_VERSION=\"0.1.0\" -DPACKAGE_STRING=\"libhdfs\ 0.1.0\"
> -DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
> -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" -Dsize_t=unsigned\ int -DHAVE_FCNTL_H=1
> -Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
> -DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
> -I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
> -MT hdfs.lo -MD -MP -MF ".deps/hdfs.Tpo" -c -o hdfs.lo hdfs.c; \
> then mv -f ".deps/hdfs.Tpo" ".deps/hdfs.Plo"; else rm -f
> ".deps/hdfs.Tpo"; exit 1; fi
> libtool: compile: gcc -DPACKAGE_NAME=\"libhdfs\"
> -DPACKAGE_TARNAME=\"libhdfs\" -DPACKAGE_VERSION=\"0.1.0\"
> "-DPACKAGE_STRING=\"libhdfs 0.1.0\""
> -DPACKAGE_BUGREPORT=\"omalley@apache.org\" -DPACKAGE=\"libhdfs\"
> -DVERSION=\"0.1.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
> -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
> -DLT_OBJDIR=\".libs/\" "-Dsize_t=unsigned int" -DHAVE_FCNTL_H=1
> -Dconst= -Dvolatile= -I. -I. -g -O2 -DOS_LINUX -DDSO_DLFCN
> -DCPU=\"i386\" -m -I/home/y/libexec/jdk1.6.0//include
> -I/home/y/libexec/jdk1.6.0//include/linux -Wall -Wstrict-prototypes
> -MT hdfs.lo -MD -MP -MF .deps/hdfs.Tpo -c hdfs.c -fPIC -DPIC -o
> .libs/hdfs.o
> cc1: error: unrecognized command line option "-m"
>
>
> has it something to do with my gcc version
> i have the following version
> [inder@proudarmburn-dx libhdfs]$ gcc --version
> gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
>
> didn't find much on - http://wiki.apache.org/hadoop/LibHDFS
>
> - Inder