harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Rogers (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host
Date Thu, 12 Jun 2008 22:22:45 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Ian Rogers updated HARMONY-5871:

    Attachment: build.out

Thanks Mark, you are quite right that I wasn't defining LDFLAGS - with defining them I still
cannot get Harmony r653525 to build with -m32. Attached is the output of the build, the environment
variables were:

CXXFLAGS=-w -pipe -ggdb3 -O -fPIC -m32
CFLAGS=-w -pipe -ggdb3 -O -fPIC -m32
LDFLAGS=-w -pipe -ggdb3 -O -fPIC -m32 -shared

The build is of Jikes RVM on a OpenSuSE 10.3 machine. The build can be repeated by:

svn co https://jikesrvm.svn.sourceforge.net/svnroot/jikesrvm/rvmroot/trunk jikesrvm
cd jikesrvm
ant -Dhost.name=x86_64.linux -Dclasslib.provider=Harmony -Dconfig.name=prototype

The script for building Harmony is:


where line 79 is attempting the build. The properties for an x86_64-linux build are:


In the attached build output the following patch was applied:

Index: build/components/harmony.xml
--- build/components/harmony.xml        (revision 14478)
+++ build/components/harmony.xml        (working copy)
@@ -77,6 +77,7 @@
         <exec executable="${ant.exe}" dir="${harmony.dir}" failonerror="true">
+          <env key="LDFLAGS" value="${shld.args}"/>
           <env key="CFLAGS" value="${c.args}"/>
           <env key="CXXFLAGS" value="${c++.args}"/>
           <arg value="-Dhy.javac.compiler=modern"/>

There is a related Jikes RVM bug tracker:

> Cannot build 32bit C libraries on X86_64 Linux host
> ---------------------------------------------------
>                 Key: HARMONY-5871
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5871
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M6
>         Environment: x86_64 GNU/Linux
>            Reporter: Ian Rogers
>            Assignee: Mark Hindess
>         Attachments: build.out
> I would like to build a 32bit version of Harmony on a x86_64 linux system for a VM with
incomplete x86_64 support. Setting the CFLAGS and CXXFLAGS to define -m32 causes a failure
during linking the C libraries (not all the components have picked up the CFLAGS). Running
the build under linux32 is also unsuccessful.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message