Bug 118116 - Build fails with `/usr/bin/powerpc64le-linux-gnu-ld: cannot find -ljawt`
Summary: Build fails with `/usr/bin/powerpc64le-linux-gnu-ld: cannot find -ljawt`
Status: RESOLVED MOVED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
6.2.0.0.alpha0+
Hardware: PowerPC All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-11 16:36 UTC by Paul Menzel
Modified: 2018-06-11 16:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Menzel 2018-06-11 16:36:41 UTC
On ppc64le with Ubuntu 18.04 and latest LibreOffice from master, the build fails with the error below.

```
$ uname -m
ppc64le
$ git describe --dirtylibreoffice-5-4-branch-point-1380-gc2ce3a2dbebd
$ git log --oneline -1c2ce3a2dbebd (HEAD -> master, origin/master, origin/HEAD) sw: prefix members of SwTOXInternational
$ ./configure --with-jdk-home=/usr/lib/jvm/default-java/
$ make
[…]
/usr/bin/powerpc64le-linux-gnu-ld: cannot find -ljawt
collect2: error: ld returned 1 exit status
/dev/shm/libreoffice-core/bean/Library_officebean.mk:12: recipe for target '/dev/shm/libreoffice-core/instdir/program/libofficebean.so' failed
make[1]: *** [/dev/shm/libreoffice-core/instdir/program/libofficebean.so] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:264: recipe for target 'build' failed
make: *** [build] Error 2
$ /usr/lib/jvm/default-java/bin/java --version
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
$ dpkg -S jawt
openjdk-8-jre-headless:ppc64el: /usr/lib/jvm/java-8-openjdk-ppc64el/jre/lib/ppc64le/libjawt.so
openjdk-11-jre-headless:ppc64el: /usr/lib/jvm/java-11-openjdk-ppc64el/lib/libjawt.so
openjdk-11-jdk:ppc64el: /usr/lib/jvm/java-11-openjdk-ppc64el/include/linux/jawt_md.h
openjdk-11-jdk:ppc64el: /usr/lib/jvm/java-11-openjdk-ppc64el/include/jawt.h
$ ls -l /usr/lib/jvm/total 192
lrwxrwxrwx 1 root root 27 Apr  8 15:16 default-java -> java-1.11.0-openjdk-ppc64el
lrwxrwxrwx 1 root root 23 Apr 21 15:41 java-1.11.0-openjdk-ppc64el -> java-11-openjdk-ppc64el
drwxr-xr-x 1 root root 82 May 22 18:50 java-11-openjdk-ppc64el
lrwxrwxrwx 1 root root 22 May  6  2017 java-1.8.0-openjdk-ppc64el -> java-8-openjdk-ppc64el
drwxr-xr-x 1 root root 26 May 23 14:50 java-8-openjdk-ppc64el
```
Comment 1 Xisco Faulí 2018-06-11 16:48:08 UTC
Hello,
Since this is build issue and not a software issue, would you mind sending an
email to the dev list instead? ->
https://wiki.documentfoundation.org/Development/Mailing_List
Closing as RESOLVED MOVED