You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Chris Curvey <ch...@chriscurvey.com> on 2009/11/29 21:55:57 UTC
building Hadoop on Karmic 64-bit
Hi all, newbie to Hadoop here. I hope I'm asking in the right location (if
not, a pointer would be much appreciated). I'm trying to build libhdfs
0.20.1 on Ubuntu 9.10 (Karmic) 64-bit. I applied HADOOP-5611-fixed.patch,
and now the build is failing failing with these messages:
compile-c++-utils:
[exec] depbase=`echo impl/SerialUtils.o | sed
's|[^/]*$|.deps/&|;s|\.o$||'`; \
[exec] if g++ -DHAVE_CONFIG_H -I.
-I/home/chris/downloads/hadoop-0.20.1/src/c++/utils -I./impl
-I/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api -Wall -g -O2 -MT
impl/SerialUtils.o -MD -MP -MF "$depbase.Tpo" -c -o impl/SerialUtils.o
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/impl/SerialUtils.cc; \
[exec] then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
"$depbase.Tpo"; exit 1; fi
[exec] In file included from
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/impl/SerialUtils.cc:18:
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:159:
error: variable or field ‘serializeInt’ declared void
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:159:
error: ‘int32_t’ was not declared in this scope
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:159:
error: expected primary-expression before ‘&’ token
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:159:
error: ‘stream’ was not declared in this scope
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:160:
error: ‘int32_t’ does not name a type
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:161:
error: variable or field ‘serializeLong’ declared void
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:161:
error: ‘int64_t’ was not declared in this scope
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:161:
error: expected primary-expression before ‘&’ token
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:161:
error: ‘stream’ was not declared in this scope
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/api/hadoop/SerialUtils.hh:162:
error: ‘int64_t’ does not name a type
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/impl/SerialUtils.cc: In
function ‘void HadoopUtils::serializeInt(int32_t, HadoopUtils::OutStream&)’:
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/impl/SerialUtils.cc:179:
error: ‘serializeLong’ was not declared in this scope
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/impl/SerialUtils.cc: In
function ‘int32_t HadoopUtils::deserializeInt(HadoopUtils::InStream&)’:
[exec]
/home/chris/downloads/hadoop-0.20.1/src/c++/utils/impl/SerialUtils.cc:214:
error: ‘deserializeLong’ was not declared in this scope
[exec] make: *** [impl/SerialUtils.o] Error 1
BUILD FAILED
/home/chris/downloads/hadoop-0.20.1/build.xml:1409: exec returned: 2
Can anyone give me a pointer?
Thanks!
-Chris
--
The source of your stress might be a moron
Re: building Hadoop on Karmic 64-bit
Posted by Eli Collins <el...@cloudera.com>.
Hey Chris,
Forgot to mention the patch for HADOOP-5611 is in CDH2 and the patch
for HDFS-790 will be in the next update. If you want to see how the
src/c++ is built on CDH checkout the cloudera/do-release-build script.
Thanks,
Eli
On Sun, Nov 29, 2009 at 10:21 PM, Eli Collins <el...@cloudera.com> wrote:
> Hey Chris,
>
> Thanks for reporting. I filed HDFS-790 and uploaded a patch (which you
> will need to apply after applying HADOOP-5611) and verified it
> compiles on karmic 64-bit. In the mean time if you just need to build
> libhdfs (which doesn't depend on c++-utils) you can do that
> with ant -Dcompile.c++=true -Dlibhdfs=true compile-c++-libhdfs. Lemme
> know if you hit any other issues.
>
> Thanks,
> Eli
>
Re: building Hadoop on Karmic 64-bit
Posted by Eli Collins <el...@cloudera.com>.
Hey Chris,
Thanks for reporting. I filed HDFS-790 and uploaded a patch (which you
will need to apply after applying HADOOP-5611) and verified it
compiles on karmic 64-bit. In the mean time if you just need to build
libhdfs (which doesn't depend on c++-utils) you can do that
with ant -Dcompile.c++=true -Dlibhdfs=true compile-c++-libhdfs. Lemme
know if you hit any other issues.
Thanks,
Eli