Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 46203 invoked from network); 13 Dec 2008 04:53:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2008 04:53:07 -0000 Received: (qmail 97152 invoked by uid 500); 13 Dec 2008 04:53:18 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 97138 invoked by uid 500); 13 Dec 2008 04:53:18 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 97127 invoked by uid 99); 13 Dec 2008 04:53:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 20:53:18 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 04:53:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5D19B234C3C8 for ; Fri, 12 Dec 2008 20:52:44 -0800 (PST) Message-ID: <1238921570.1229143964380.JavaMail.jira@brutus> Date: Fri, 12 Dec 2008 20:52:44 -0800 (PST) From: "Hadoop QA (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3344) libhdfs: always builds 32bit, even when x86_64 Java used In-Reply-To: <383133104.1209854335607.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656250#action_12656250 ] Hadoop QA commented on HADOOP-3344: ----------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12395943/HADOOP-3344.patch against trunk revision 726129. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 10 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 Eclipse classpath. The patch retains Eclipse classpath integrity. -1 core tests. The patch failed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3734/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3734/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3734/artifact/trunk/build/test/checkstyle-errors.html Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3734/console This message is automatically generated. > libhdfs: always builds 32bit, even when x86_64 Java used > -------------------------------------------------------- > > Key: HADOOP-3344 > URL: https://issues.apache.org/jira/browse/HADOOP-3344 > Project: Hadoop Core > Issue Type: Bug > Components: build, libhdfs > Environment: x86_64 linux, x86_64 Java installed > Reporter: Craig Macdonald > Assignee: Giridharan Kesavan > Attachments: HADOOP-3344-v2.patch, HADOOP-3344.patch, HADOOP-3344.v0.patch, HADOOP-3344.v1.patch, HADOOP-3344.v3.patch > > > The makefile for libhdfs is hard-coded to compile 32bit libraries. It should perhaps compile dependent on which Java is set. > The relevant lines are: > LDFLAGS = -L$(JAVA_HOME)/jre/lib/$(OS_ARCH)/server -ljvm -shared -m32 -Wl,-x > CPPFLAGS = -m32 -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(PLATFORM) > $OS_ARCH can be (e.g.) amd64 if you're using a 64bit java on the x86_64 platform. So while gcc will try to link against the correct libjvm.so, it will fail because libhdfs is to be built 32bit (because of -m32) > {noformat} > [exec] /usr/bin/ld: skipping incompatible /usr/java64/latest/jre/lib/amd64/server/libjvm.so when searching for -ljvm > [exec] /usr/bin/ld: cannot find -ljvm > [exec] collect2: ld returned 1 exit status > [exec] make: *** [/root/def/hadoop-0.16.3/build/libhdfs/libhdfs.so.1] Error 1 > {noformat} > The solution should be to specify -m32 or -m64 depending on the os.arch detected. > There are 3 cases to check: > * 32bit OS, 32bit java => libhdfs should be built 32bit, specify -m32 > * 64bit OS, 32bit java => libhdfs should be built 32bit, specify -m32 > * 64bit OS, 64bit java => libhdfs should be built 64bit, specify -m64 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.