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] Commented: (HARMONY-5871) Cannot build 32bit C libraries on X86_64 Linux host
Date Sat, 14 Jun 2008 10:07:45 GMT

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


Mime
View raw message