https://bz.apache.org/ooo/show_bug.cgi?id=127040

          Issue ID: 127040
        Issue Type: DEFECT
           Summary: Patch for arm 32
           Product: Build Tools
           Version: 4.2.0-dev
          Hardware: Other
                OS: Linux 32-bit
            Status: CONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: configure
          Assignee: [email protected]
          Reporter: [email protected]

It was not possible to build on Linux ARM (32 bits) with the trunk version of
Aoo, while it does perfectly build with OOo4Kids and OOoLight.

So, I propose a patch, using the same changes I did on ARM for OOo4Kids and
OOoLight a while ago, and perfectly building and working on recent armv7+
boards.

The attached patch, under Apache License, is a proposal (feel free to improve
it) to allow building AOo on :

- old fashion ARMV4T on old machines (was before the patch) ;
- softfp abi on ARMV6 ;
- hardfloat abi arm isa v7+ architectures.

IMPORTANT : after the patch being applied,and before configure, you MUST run
"autoconf" in the main directory, to apply and keep the proposed changes.

Modified files :

- solenv/inc/unxlngr.mk : added ARM_FLAVOUR, ARMV7 macros, improved ARM_TARGET
with better flags ;
- sal/osl/unx/intelck.c : added smp barriers (arm processors are multi-cores
since a while) ;
- configure_ac : added new cases, ARMV7 is now the default (doesn't make sense
to build OOo for previous architectures, but who knows ... ) ;
- set_soenv.in : added ARM_FLAVOUR macro ;
- modified EPM_FLAGS (needed when building the .debs) ;
- added OUTPATH : unxlngrh for hardfloat abi when available.

How to use it : 

at configure time, add :

--with-arm-target=7  (or 5, or 6 ... ) => will define ARMV7 macro
And in the case the libc is fpuv3 comptabile, the hardfloat abi will be used,
(else it will be the softfp).

Notes:
- this patch has just been partially tested with AOO build
- it has not been tested on armv8 (64 bits)
- default value is armv7+ isa ;
- the flags need to be checked after configure.

Tested on Raspberry Pi 3 rev. B

Regards,
Eric Bachard

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to