Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation on arch64 (Odroid-N2) and Ubuntu 18.04 #183

Closed
linuxrider opened this issue Apr 29, 2019 · 2 comments
Closed

Compilation on arch64 (Odroid-N2) and Ubuntu 18.04 #183

linuxrider opened this issue Apr 29, 2019 · 2 comments

Comments

@linuxrider
Copy link

The compilation on arch64 more specifically Odroid-n2 (4GB) does not work as smooth as for amd64.
For LO the follow parameters had to be set
lo_configure_opts='with-system-icu,with-system-libatomic_ops,with-system-libpng'
I forgot why I put inwith-system-icu.

configure of packaged libatomic_ops is not able to determine build type

./config.guess: unable to guess system type

This script, last modified 2011-05-11, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2011-05-11

uname -m = aarch64
uname -r = 4.9.170-25
uname -s = Linux
uname -v = #1 SMP PREEMPT Thu Apr 25 20:03:24 -03 2019

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.9.170-25
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT Thu Apr 25 20:03:24 -03 2019
  * /usr/bin/ccache gcc bn_mp_get_long.o
configure: error: cannot guess build type; you must specify one

For for libpng also the parameter in lib/default.cfg without-system-libpng was removed.
libpng prevents oosplash from finishing

/opt/libreoffice/workdir/LinkTarget/StaticLibrary/liblibpng.a(pngrutil.o): In function `png_read_filter_row':
pngrutil.c:(.text+0x3eb4): undefined reference to `png_init_filter_functions_neon'
collect2: error: ld returned 1 exit status
/opt/libreoffice/desktop/Executable_oosplash.mk:10: recipe for target '/opt/libreoffice/instdir/program/oosplash' failed

For the make command in bin/coreBuild.sh I set USE_64=1otherwise nss throws the follow error:

/usr/bin/ccache gcc -o out/Linux_SINGLE_SHLIB/drbg.o -c -O2 -fPIC   -pipe -ffunction-sections -fdata-sections -DHAVE_STRERROR -DLINUX -Dlinux -Wall -Wshadow -DXP_UNIX -DSHLIB_SUFFIX=\"so\" -DSHLIB_PREFIX=\"lib\" -DSHLIB_VERSION=\"3\" -DSOFTOKEN_SHLIB_VERSION=\"3\" -DRIJNDAEL_INCLUDE_TABLES -UDEBUG -DNDEBUG -D_REENTRANT -DNSS_NO_INIT_SUPPORT -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DFREEBL_NO_DEPEND -DFREEBL_LOWHASH -DKRML_NOUINT128 -DMP_API_COMPATIBLE -I../../../dist/out/include -I../../../dist/public/nss -I../../../dist/private/nss -Impi -Iecl -Iverified  -std=gnu99 drbg.c
In file included from ../../../dist/out/include/prerror.h:9:0,
                 from drbg.c:9:
drbg.c: In function ‘RNG_RandomUpdate’:
../../../dist/out/include/prtypes.h:593:38: error: size of array ‘arg’ is negative
     extern void pr_static_assert(int arg[(condition) ? 1 : -1])
                                      ^
drbg.c:528:5: note: in expansion of macro ‘PR_STATIC_ASSERT’
     PR_STATIC_ASSERT(sizeof(size_t) <= 4);
     ^~~~~~~~~~~~~~~~
../../coreconf/rules.mk:392: recipe for target 'out/Linux_SINGLE_SHLIB/drbg.o' failed

Finally I ended up with a working lool.
Online Editor.pdf
I could test it with a local file but I'm still try to work out an issue with nextcloud wopi and ssl.

ERR  Cannot get file info from WOPI storage uri [URL]. Error: SSL Exception: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure| wsd/Storage.cpp:474
@linuxrider
Copy link
Author

I forgot to mention that for lool to build one needs to set disable-seccomp.
Also the SSL problem is fixed now as I removed TLS1.3 from my nginx configuration.

@baarkerlounger
Copy link

Followed this same process on a RockPro64 and Ubuntu 18.04. No compilation errors and seemed like the service starts up ok but shortly after it fails.

journalctl -u loolwsd.service
...
loolwsd[719]: FATAL: Failed to fork child processes.
loolwsd[719]: wsd-00719-00719 2019-10-07 16:55:04.312973 [ loolwsd ] FTL  Failed to fork child processes.| wsd/LOOLWSD.cpp:3343
loolwsd[719]: Failed to fork child processes.
loolwsd[719]: wsd-00719-00719 2019-10-07 16:55:04.313917 [ loolwsd ] INF  ~Admin dtor.| wsd/Admin.cpp:381
loolwsd[719]: wsd-00719-00719 2019-10-07 16:55:04.313997 [ loolwsd ] TRC  History:
loolwsd[719]: { "documents" : [], "expiredDocuments" : []}
loolwsd[719]: | wsd/AdminModel.cpp:182
loolwsd[719]: wsd-00719-00719 2019-10-07 16:55:04.314074 [ loolwsd ] INF  AdminModel dtor.| wsd/AdminModel.cpp:183
systemd[1]: loolwsd.service: Main process exited, code=exited, status=70/n/a
systemd[1]: loolwsd.service: Failed with result 'exit-code'.

Seems due to:

sudo -u lool ./loolwsd
...
frk-14310-14310 2019-10-07 16:47:55.560889 [ forkit ] FTL  Neither /opt/libreoffice/instdir/program/libsofficeapp.so or /opt/libreoffice/instdir/program/libmergedlo.so exist.| kit/Kit.cpp:2652
frk-14310-14310 2019-10-07 16:47:55.560921 [ forkit ] FTL  Failed to preinit lokit.| kit/ForKit.cpp:534

Did you solve that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants