include/o3tl/safeint.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ebb0ac4c922b51191979ca376f7c7d7581ace62e
Author:     Julien Nabet <[email protected]>
AuthorDate: Fri Jan 15 10:01:51 2021 +0100
Commit:     Julien Nabet <[email protected]>
CommitDate: Sat Jan 16 11:19:23 2021 +0100

    Fix o3tl::checked_multiply for Raspberry pi 4b
    
    usr/bin/ld : /usr/bin/ld: Erreur DWARF: ne peut repérer la spécification de 
variable au décalage 8953
    /usr/bin/ld: Erreur DWARF: ne peut repérer la spécification de variable au 
décalage 93da
    /usr/bin/ld: Erreur DWARF: ne peut repérer la spécification de variable au 
décalage 967a
    /usr/bin/ld: Erreur DWARF: ne peut repérer la spécification de variable au 
décalage 991a
    /home/pi/lo/libreoffice/workdir/CxxObject/sw/source/filter/xml/xmlimp.o : 
dans la fonction « bool o3tl::checked_multiply<long long>(long long, long long, 
long long&) » :
    /home/pi/lo/libreoffice/include/o3tl/safeint.hxx:121 : référence indéfinie 
vers « __mulodi4 »
    /usr/bin/ld : /home/pi/lo/libreoffice/include/o3tl/safeint.hxx:121 : 
référence indéfinie vers « __mulodi4 »
    /usr/bin/ld : /home/pi/lo/libreoffice/include/o3tl/safeint.hxx:121 : 
référence indéfinie vers « __mulodi4 »
    /usr/bin/ld : /home/pi/lo/libreoffice/include/o3tl/safeint.hxx:121 : 
référence indéfinie vers « __mulodi4 »
    clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
    make[1]: *** [/home/pi/lo/libreoffice/sw/Library_sw.mk:20 : 
/home/pi/lo/libreoffice/instdir/program/libswlo.so] Erreur 1
    
    DWARF Error: can't find spec of var at offset 8953
    
    undefined reference to "__mulodi4"
    
    Change-Id: I1c88a1567e25370eb5759912ea4918d7183f3786
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109322
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <[email protected]>

diff --git a/include/o3tl/safeint.hxx b/include/o3tl/safeint.hxx
index 0ed36c910fa3..9df92ea1a9d1 100644
--- a/include/o3tl/safeint.hxx
+++ b/include/o3tl/safeint.hxx
@@ -113,7 +113,7 @@ template<typename T> inline bool checked_sub(T a, T b, T& 
result)
     return !msl::utilities::SafeSubtract(a, b, result);
 }
 
-#elif (defined __GNUC__ && !defined __clang__) || 
(__has_builtin(__builtin_mul_overflow) && !(defined ANDROID && defined 
__clang__) && !(defined(__clang__) && defined(__i386__)))
+#elif (defined __GNUC__ && !defined __clang__) || 
(__has_builtin(__builtin_mul_overflow) && !(defined ANDROID && defined 
__clang__) && !(defined(__clang__) && (defined(__arm__) || defined(__i386__))))
 // 32-bit clang fails with undefined reference to `__mulodi4'
 
 template<typename T> inline bool checked_multiply(T a, T b, T& result)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to