You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ian Rogers (JIRA)" <ji...@apache.org> on 2008/06/12 21:54:45 UTC

[jira] Created: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

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


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.


[jira] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604649#action_12604649 ] 

Mark Hindess commented on HARMONY-5871:
---------------------------------------

Ian,  I'd like to try to reproduce this problem.  What distribution are you using?  In the meantime, if you run the build using "ant ... 2>&1|tee build.log" and attach the build.log then I can take a look at that.

I've just tried running a classlib build and all of the 'cc' lines in my build.log seem to have respected the CFLAGS/CXXFLAGS, except the link lines which would respect LDFLAGS if that was set.  Does setting LDFLAGS as appropriate help at all?


> 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
>
> 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.


[jira] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604991#action_12604991 ] 

Mark Hindess commented on HARMONY-5871:
---------------------------------------

As I mentioned in my second comment, I was expecting an issue with liblcms, libpng and libjpeg.  The original awt contribution require that static versions of these libraries be supplied by the user.  To make life slightly easier the build symlinks the system versions of these files (as found in the -dev/-devel packages for these libraries).  This is does the right thing for most users but not when you are (cross) compiling for another architecture which is effectively what you are doing.

I'm not sure how best to automate fixing this.  Though you can manually replace the symlinks in depends/libs/build/*/*.linux.x86 with pre-compiled .a libraries of the respective packages from a 32-bit system.


> 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, build.out2
>
>
> 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.


[jira] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604746#action_12604746 ] 

Mark Hindess commented on HARMONY-5871:
---------------------------------------

ASFLAGS?


> 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.


[jira] Updated: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess updated HARMONY-5871:
----------------------------------

    Attachment: use.system.libs.for.awt.diff

Ian,  I've started a discussion relating to the lcms issue though we may decide not to change anything.  However I've attached a patch to change the dependencies to simply use the system installed versions of libpng, libjpeg, and liblcms. I think that these libraries are stable/common enough that doing this is much more sensible than statically linking them.


> 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, build.out2, use.system.libs.for.awt.diff
>
>
> 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.


[jira] Updated: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Ian Rogers (JIRA)" <ji...@apache.org>.
     [ 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:

http://jikesrvm.svn.sourceforge.net/viewvc/jikesrvm/rvmroot/trunk/build/components/harmony.xml?revision=14477&view=markup

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

http://jikesrvm.svn.sourceforge.net/viewvc/jikesrvm/rvmroot/trunk/build/hosts/x86_64-linux.properties?revision=14477&view=markup

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 @@
       </conditions>
       <sequential>
         <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:
http://jira.codehaus.org/browse/RVM-527

> 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.


[jira] Assigned: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess reassigned HARMONY-5871:
-------------------------------------

    Assignee: Mark Hindess

> 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
>
> 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.


[jira] Updated: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Ian Rogers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ian Rogers updated HARMONY-5871:
--------------------------------

    Attachment: build.out2

Updated build output, the environment variables and a property are being set to:

CFLAGS=-m32
CXXFLAGS=-m32
LDFLAGS=-m32
ASFLAGS=--32
hy.arch=x86

The build is dying because liblcms.a is an x86_64 binary and cannot be linked when building liblcmm.so . The build output shows a complete checkout of Harmony, the fetch depends occurring with all all flags/properties set, and then the same for build.

The set properties are in this file:
http://jikesrvm.svn.sourceforge.net/viewvc/jikesrvm/rvmroot/trunk/build/hosts/x86_64-linux.properties?revision=14496&view=markup
The revised harmony build script is here:
http://jikesrvm.svn.sourceforge.net/viewvc/jikesrvm/rvmroot/trunk/build/components/harmony.xml?revision=14496&view=markup#l_70

It appears there is an error building/fetching liblcms.a but it is not clear from the build output why. If liblcms.a is being built it is not respecting the variables that are set.

> 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, build.out2
>
>
> 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.


[jira] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605078#action_12605078 ] 

Mark Hindess commented on HARMONY-5871:
---------------------------------------

Ah fixing depends.xml would work for you but I think you only actually get to that bit of the ant file if is.x86_64 is true.  It wouldn't work for everyone even if we fixed that[0].  Debian really doesn't support multi-arch stuff in the same way so /usr/lib64 is just a symlink to /usr/lib and only has a 32-bit liblcms.so in /emul/ia32-linux/usr/lib/liblcms.so.

[0] Im not really sure how we ended up using static liblcms on x86 and dynamic on x86_64 - there was an issue with x86_64 using static but I think we should have changed both to use liblcms dynamically rather than make it more complicated especially given that the interface for lcms is fairly stable.  I'll try to get this fixed but it will involve some discussion on the mailing list.



> 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, build.out2
>
>
> 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.


[jira] Closed: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Hindess closed HARMONY-5871.
---------------------------------

    Resolution: Fixed

I committed the patch to use dynamic/system libraries and this works for me now.

> 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, build.out2, use.system.libs.for.awt.diff
>
>
> 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.


[jira] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Ian Rogers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604669#action_12604669 ] 

Ian Rogers commented on HARMONY-5871:
-------------------------------------

Forcing the architecture with hy.arch=x86 gets further, the build dies with:

     [exec] -build-native-thread:
     [exec]      [echo] Making "" in /home/ian/harmony-rvm/components/harmony/5.0M5/harmony/modules/portlib/src/main/native/thread/unix
     [exec]      [exec] cc -DLINUX -DLINUX_X86 -DHYX86 -DIPv6_FUNCTION_SUPPORT -D_REENTRANT -I/home/ian/harmony-rvm/components/harmony/5.0M5/harmony/deploy/include -I/home/ian/harmony-rvm/components/harmony/5.0M5/harmony/deploy/jdk/include -I. -I../shared/ -fpic -march=pentium3 -ggdb -O0 -w -pipe -ggdb3 -O -fPIC -m32   -c -o ../shared/thread_copyright.o ../shared/thread_copyright.c
     [exec]      [exec] as   -o x86/thrhelp.o x86/thrhelp.s
     [exec]      [exec] x86/thrhelp.s: Assembler messages:
     [exec]      [exec] x86/thrhelp.s:46: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:48: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:49: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:50: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:64: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:65: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:66: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:67: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:78: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:80: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:81: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:82: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:89: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:90: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:91: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:92: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:103: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:105: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:106: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:107: Error: suffix or operands invalid for `push'
     [exec]      [exec] x86/thrhelp.s:114: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:115: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:116: Error: suffix or operands invalid for `pop'
     [exec]      [exec] x86/thrhelp.s:117: Error: suffix or operands invalid for `pop'
     [exec]      [exec] make: *** [x86/thrhelp.o] Error 1


> 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.


[jira] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604662#action_12604662 ] 

Mark Hindess commented on HARMONY-5871:
---------------------------------------

It is probably also worth checking that:
a) you set hy.arch=x86 - though this should get set correctly if your build jre is 32-bit - and
b) the symlinks, depends/libs/build/*/*.linux.x86, are replaced by 32-bit versions of these .a files - since the links will point to 64-bit versions.


> 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.


[jira] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host

Posted by "Ian Rogers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605055#action_12605055 ] 

Ian Rogers commented on HARMONY-5871:
-------------------------------------

Thanks, it seems the definition of the lcms/png/jpeg .lib.home in depends.xml should respect the hy.arch setting. ie:

        <condition property="lcms.lib.home" value="${lcms.home}/lib64" else="${lcms.home}/lib">
            <available file="${lcms.home}/lib64/liblcms.so"/>
        </condition>

should be something like:

        <condition property="lcms.lib.home" value="${lcms.home}/lib64" else="${lcms.home}/lib">
            <and>
              <available file="${lcms.home}/lib64/liblcms.so"/>
              <isset property="is.x86_64"/>
            </and>
        </condition>

or:

        <condition property="lcms.lib.home" value="${lcms.home}/lib64" else="${lcms.home}/lib">
            <and>
              <available file="${lcms.home}/lib64/liblcms.so"/>
              <not><isset property="is.x86"/></not>
            </and>
        </condition>

as the 32bit libraries are placed in /usr/lib. Are 64bit libraries installed in ../lib64 on anything but x86_64?

Other alternatives are:
1) support building without AWT
2) from our build calling directly into build/depends.xml with ...lib.home set to /usr/lib (NB build.xml doesn't allow inheriting of properties when starting the depends.xml ant task)

> 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, build.out2
>
>
> 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.