Building LO on Raspberry pi 4b, error: unknown attribute 'externally_visible' on jni part
julien2412
serval2412 at yahoo.fr
Wed Dec 30 22:40:47 UTC 2020
Hello,
I'm giving a try at building LO on Raspberry pi 4b.
Here's the autogen.input I use:
CC=clang
CXX=clang++
--enable-compiler-plugins
--enable-ext-nlpsolver
--enable-ext-ct2n
--enable-ext-numbertext
--enable-ext-wiki-publisher
--enable-dbus
--enable-online-update
--enable-werror
--enable-dependency-tracking
--enable-python=fully-internal
--without-system-mariadb
--enable-bundle-mariadb
--enable-symbols
--enable-avahi
--enable-eot
--enable-odk
--with-lang=en-US fr
--with-myspell-dicts
Here's the first (I expect others) errors I get:
In file included from
/home/pi/lo/libreoffice/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:26:
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1945:1: error: unknown
attribute 'externally_visible' ignored [-Werror,-Wunknown-attributes]
_JNI_IMPORT_OR_EXPORT_ jint JNICALL
^
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1943:32: note: expanded
from macro '_JNI_IMPORT_OR_EXPORT_'
#define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
^
/usr/lib/jvm/java-11-openjdk-armhf/include/linux/jni_md.h:35:42: note:
expanded from macro 'JNIIMPORT'
#define JNIIMPORT
__attribute__((externally_visible,visibility("default")))
^
In file included from
/home/pi/lo/libreoffice/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:26:
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1948:1: error: unknown
attribute 'externally_visible' ignored [-Werror,-Wunknown-attributes]
_JNI_IMPORT_OR_EXPORT_ jint JNICALL
^
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1943:32: note: expanded
from macro '_JNI_IMPORT_OR_EXPORT_'
#define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
^
/usr/lib/jvm/java-11-openjdk-armhf/include/linux/jni_md.h:35:42: note:
expanded from macro 'JNIIMPORT'
#define JNIIMPORT
__attribute__((externally_visible,visibility("default")))
^
In file included from
/home/pi/lo/libreoffice/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:26:
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1951:1: error: unknown
attribute 'externally_visible' ignored [-Werror,-Wunknown-attributes]
_JNI_IMPORT_OR_EXPORT_ jint JNICALL
^
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1943:32: note: expanded
from macro '_JNI_IMPORT_OR_EXPORT_'
#define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
^
/usr/lib/jvm/java-11-openjdk-armhf/include/linux/jni_md.h:35:42: note:
expanded from macro 'JNIIMPORT'
#define JNIIMPORT
__attribute__((externally_visible,visibility("default")))
^
In file included from
/home/pi/lo/libreoffice/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:26:
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1955:1: error: unknown
attribute 'externally_visible' ignored [-Werror,-Wunknown-attributes]
JNIEXPORT jint JNICALL
^
/usr/lib/jvm/java-11-openjdk-armhf/include/linux/jni_md.h:34:42: note:
expanded from macro 'JNIEXPORT'
#define JNIEXPORT
__attribute__((externally_visible,visibility("default")))
^
In file included from
/home/pi/lo/libreoffice/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:26:
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1958:1: error: unknown
attribute 'externally_visible' ignored [-Werror,-Wunknown-attributes]
JNIEXPORT void JNICALL
^
/usr/lib/jvm/java-11-openjdk-armhf/include/linux/jni_md.h:34:42: note:
expanded from macro 'JNIEXPORT'
#define JNIEXPORT
__attribute__((externally_visible,visibility("default")))
^
In file included from
/home/pi/lo/libreoffice/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.c:28:
In file included from
/usr/lib/jvm/java-11-openjdk-armhf/include/linux/jawt_md.h:31:
/usr/lib/jvm/java-11-openjdk-armhf/include/jawt.h:337:1: error: unknown
attribute 'externally_visible' ignored [-Werror,-Wunknown-attributes]
_JNI_IMPORT_OR_EXPORT_
^
/usr/lib/jvm/java-11-openjdk-armhf/include/jni.h:1943:32: note: expanded
from macro '_JNI_IMPORT_OR_EXPORT_'
#define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
^
/usr/lib/jvm/java-11-openjdk-armhf/include/linux/jni_md.h:35:42: note:
expanded from macro 'JNIIMPORT'
#define JNIIMPORT
__attribute__((externally_visible,visibility("default")))
^
6 errors generated.
make[1]: *** [/home/pi/lo/libreoffice/solenv/gbuild/LinkTarget.mk:238 :
/home/pi/lo/libreoffice/workdir/CObject/bean/native/unix/com_sun_star_comp_beans_LocalOfficeWindow.o]
Erreur 1
Is it possible to fix this or can we just workaround this by forcing clang
to ignore these?
Julien
--
Sent from: http://document-foundation-mail-archive.969070.n3.nabble.com/Dev-f1639786.html
More information about the LibreOffice
mailing list