Project

General

Profile

Actions

Issue #1861

open

Recommend to use an FSDG compliant distribution to build Replicant

Added by Denis 'GNUtoo' Carikli almost 7 years ago. Updated about 2 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
-
Category:
Freedom
Target version:
Start date:
04/09/2017
Due date:
% Done:

50%

Estimated time:
(Total: 0.00 h)
Resolution:
Device:
Grant:
Type of work:
Communication (mails, contacting people, etc), Wiki editions

Description

Currently, Replicant advise to use Debian9 in https://redmine.replicant.us/projects/replicant/wiki/BuildDependenciesInstallation .

If we look at https://www.gnu.org/distros/free-distros.html , we have:
  • GnewSense, Ututo: its packages are way too old
  • GuixSD: probably lacks a lot of packages. Could be deployed on top of existing distribution with Guix package manager.
  • Parabola: Requires packaging a lot of software to build Replicant with it.
  • PureOS: Based on debian, has lot of the required packages. Has no i686 version, and doesn't have repo (debian contrib).
  • Trisquel7: The version of ubuntu it's based on should be able to build Android 6.0
  • Trisquel8: More recent than Trisque7, probably has very few packages missing. Might be more stable (in the sense that its packages versions do not change) than pureOS.

There is more documentation on Replicant build dependencies in the wiki.


Files


Subtasks 4 (2 open2 closed)

Issue #1787: Make Replicant 6.0 buildable on a GNU FSDG-compliant distributionClosed04/09/2017

Actions
Issue #1975: Build Replicant 6.0 on PureOS amberNew11/23/2019

Actions
Issue #2148: Test Trisquel 9 for building ReplicantIn Progress10/21/2020

Actions
Upstreaming patches - Issue #2271: Fix proguard in Trisquel 9ResolvedDenis 'GNUtoo' Carikli08/24/2021

Actions

Related issues

Related to Replicant - Issue #1846: Toolchain build failure when /usr/lib64/libxml2.so is not presentNewDenis 'GNUtoo' Carikli11/10/2017

Actions
Actions #1

Updated by Denis 'GNUtoo' Carikli almost 7 years ago

PureOS

Missing packages:
  • libemma-java
  • libandroidsdk-ddmlib-java
  • zlib1g-dev:i386
  • libandroidsdk-sdklib-java

References

On PureOS, running the following (comes from the wiki instructions):

apt-get build-dep gcc binutils llvm-defaults
apt-get install gcc-arm-none-eabi cmake python-dev swig ant bc proguard maven-debian-helper libemma-java libasm4-java libguava-java libnb-platform18-java libnb-org-openide-util-java libandroidsdk-ddmlib-java libmaven-source-plugin-java libfreemarker-java libmaven-javadoc-plugin-java ca-cacert curl gawk libgmp3-dev libmpfr-dev libmpc-dev git-core gperf libncurses-dev squashfs-tools pngcrush zip zlib1g-dev lzma libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-dev lib32ncurses5-dev zlib1g-dev:i386 xsltproc python-mako schedtool gradle dirmngr libandroidsdk-sdklib-java eclipse-jdt libgradle-android-plugin-java android-sdk-build-tools android-sdk-platform-23 aapt lzop

installing that results in:
Note, selecting 'git' instead of 'git-core'
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
E: Unable to locate package libemma-java
E: Unable to locate package libandroidsdk-ddmlib-java
E: Unable to locate package zlib1g-dev:i386
E: Unable to locate package libandroidsdk-sdklib-java

PureOS also lacks the 'repo' tool, but the wiki page had instructions on how to build it before, so they could be added back once Replicant builds on PureOS.

Actions #2

Updated by Denis 'GNUtoo' Carikli almost 7 years ago

  • Related to Issue #1846: Toolchain build failure when /usr/lib64/libxml2.so is not present added
Actions #3

Updated by Denis 'GNUtoo' Carikli almost 7 years ago

  • Description updated (diff)
Actions #4

Updated by Denis 'GNUtoo' Carikli over 6 years ago

Trisquel 8

For Trisquel we need to find a replacement for:
  • android-sdk-platform-23: maybe android-sdk-platform-tools/flidas 23.0.0+2 amd64 could work
  • libgradle-android-plugin-java: maybe libgradle-plugins-java could work as its description states: "Powerful build system for the JVM - All plugins"
We also cannot install the following dependencies because they depend on a non-existing libfop-java package:
  • libdoxia-sitetools-java
  • libmaven-site-plugin-java
  • libsurefire-java

References:

Unable to locate package

With Trisquel 8 if I follow the debian 9 dependencies installation in the wiki I have:

E: Unable to locate package libgradle-android-plugin-java
E: Unable to locate package android-sdk-platform-23

If I remove theses two packages from the list I have:

The following packages have unmet dependencies:
 libmaven-javadoc-plugin-java : Depends: libdoxia-sitetools-java but it is not going to be installed
 maven-debian-helper : Depends: libmaven-site-plugin-java but it is not going to be installed
                       Depends: libsurefire-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

libdoxia-sitetools-java

# apt install libdoxia-sitetools-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdoxia-sitetools-java : Depends: libdoxia-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt install libdoxia-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdoxia-java : Depends: libfop-java but it is not installable
E: Unable to correct problems, you have held broken packages.
# apt install libfop-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libfop-java is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libfop-java' has no installation candidate

libmaven-site-plugin-java

# apt install libmaven-site-plugin-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmaven-site-plugin-java : Depends: libdoxia-java but it is not going to be installed
                             Depends: libdoxia-sitetools-java but it is not going to be installed
                             Depends: libmaven-doxia-tools-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt install libdoxia-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdoxia-java : Depends: libfop-java but it is not installable
E: Unable to correct problems, you have held broken packages.
# apt install libdoxia-sitetools-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdoxia-sitetools-java : Depends: libdoxia-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt install libmaven-doxia-tools-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmaven-doxia-tools-java : Depends: libdoxia-java but it is not going to be installed
                             Depends: libdoxia-sitetools-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# 

libsurefire-java

# apt install libsurefire-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libsurefire-java : Depends: libmaven-plugin-tools-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt install libmaven-plugin-tools-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmaven-plugin-tools-java : Depends: libdoxia-sitetools-java but it is not going to be installed
                              Depends: libmaven-reporting-impl-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt install libmaven-reporting-impl-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmaven-reporting-impl-java : Depends: libdoxia-java but it is not going to be installed
                                Depends: libdoxia-sitetools-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Actions #5

Updated by Denis 'GNUtoo' Carikli over 6 years ago

  • Is duplicate of Issue #1787: Make Replicant 6.0 buildable on a GNU FSDG-compliant distribution added
Actions #6

Updated by Denis 'GNUtoo' Carikli over 6 years ago

  • Priority changed from Normal to Urgent
Actions #8

Updated by Kurtis Hanna over 6 years ago

This is being talked about a little bit over at the Trisquel Forum: https://trisquel.info/en/forum/replicant-sdk

Actions #9

Updated by Kurtis Hanna over 6 years ago

Here's the issue on Trisquel's issue tracker: https://trisquel.info/en/issues/24193

Actions #10

Updated by Denis 'GNUtoo' Carikli over 6 years ago

Some progress on Trisquel 8.

I'm really bad at Debian packaging so after trying for a long time I abandoned and used workarounds instead.

Since we lack fop and ubuntu has fop, and that ubuntu's fop is most probably FSDG compliant, I just installed it this way:

# apt-key adv --recv-key --keyserver keyserver.ubuntu.com 40976EAF437D05B5 3B4FE6ACC0B21F32
# echo "deb http://archive.ubuntu.com/ubuntu xenial universe" >> /etc/apt/sources.list.d/ubuntu.list
# apt update
# apt install fop
# sed 's/^/# /' -i /etc/apt/sources.list.d/ubuntu.list
# apt update

we then need a more recent toolchain:

# apt-key adv --recv-key --keyserver keyserver.ubuntu.com 0x1e9377a2ba9ef27f
# echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/gcc-6.list
# echo "deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/gcc-6.list
# apt install gcc-6 g++-6
# cd /usr/bin
# ln -s g++-6 g++
# ln -s g++-6 c++

And we also need to workaround the bug #1846 and #1847 (and probably otherS)

Then we can go in Replicant sources and do that:

$ ./vendor/replicant/build-toolchain

It then fails pretty late:

----------------------------------------------------------------------
Libraries have been installed in:
   /home/replicant/replicant-6.0/toolchain/gcc/host/install/lib/../lib64

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/replicant/replicant-6.0/toolchain/gcc/host/build/gcc/x86_64-linux/libatomic'
make[3]: Leaving directory '/home/replicant/replicant-6.0/toolchain/gcc/host/build/gcc/x86_64-linux/libatomic'
make[2]: Leaving directory '/home/replicant/replicant-6.0/toolchain/gcc/host/build/gcc/x86_64-linux/libatomic'
make[1]: Leaving directory '/home/replicant/replicant-6.0/toolchain/gcc/host/build/gcc'
+ cd ../../install/lib/gcc/x86_64-linux/4.9.x/include
+ rm stdatomic.h
+ ln -s ../../../../../../../../../bionic/libc/include/stdatomic.h stdatomic.h
+ cd ../../../../../x86_64-linux/bin/
+ rm -f ld ld.gold ld.bfd
+ ln -s /usr/bin/ld.gold ld
+ ln -s /usr/bin/ld.gold ld.gold
+ ln -s /usr/bin/ld.bfd ld.bfd
+ cd /home/replicant/replicant-6.0
+ touch toolchain/src/Android.mk
+ mkdir -p toolchain/headers/clang
+ cd toolchain/headers/clang
+ [ ! -f stdatomic.h ]
+ ln -s ../../../bionic/libc/include/stdatomic.h stdatomic.h
+ cd ../../src/jack/simple
+ mvn-debian clean package -Dmaven.test.skip=true
find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-compiler/*/*.jar’: No such file or directory
find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-compilers/*/*.jar’: No such file or directory
find: ‘/usr/share/maven-repo/org/codehaus/plexus/plexus-containers/*/*.jar’: No such file or directory
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.simpleframework:simple-common:jar:6.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 59, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 67, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 83, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.simpleframework:simple-transport:jar:6.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 64, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 72, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 88, column 15
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.simpleframework:simple-http:jar:6.0.1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 69, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 77, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 93, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Simple Common
[INFO] Simple Transport
[INFO] Simple HTTP
[INFO] Simple
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Simple Common 6.0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ simple-common ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ simple-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/replicant/replicant-6.0/toolchain/src/jack/simple/simple-common/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ simple-common ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 38 source files to /home/replicant/replicant-6.0/toolchain/src/jack/simple/simple-common/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Simple Common ...................................... FAILURE [  2.076 s]
[INFO] Simple Transport ................................... SKIPPED
[INFO] Simple HTTP ........................................ SKIPPED
[INFO] Simple ............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.598 s
[INFO] Finished at: 2018-08-19T00:34:51+02:00
[INFO] Final Memory: 10M/35M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project simple-common: Compilation failure: Compilation failure:
[ERROR] Source option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
+ cd ..
+ ant clean dist
Buildfile: /home/replicant/replicant-6.0/toolchain/src/jack/build.xml

jack-lib-clean:

jack-clean:

jack-api-lib-clean:

jack-api-src-clean:

jack-launcher-clean:

jack-server-lib-clean:

jack-annotations-lib-clean:

jack-intermediate-clean:

jackunittests-lib-clean:

jackunittests-clean:

jack-tests-clean:

args4j-lib-clean:

dx-lib-clean:

ecj-clean:

simple-lib-clean:

freemarker-lib-clean:

guava-lib-clean:

jsr305-lib-clean:

maths-lib-clean:

sched-lib-clean:

sched-build-lib-clean:

sched-build-clean:

schedtests-lib-clean:

watchmaker-lib-clean:

antlr-rt-lib-clean:

allocation-lib-clean:

junit4-lib-clean:

junit4-jack-lib-clean:

junit4-clean:

hamcrest-core-lib-clean:

dexcomparator-clean:

dex-lib-clean:

ddm-lib-clean:

dx-ref-lib-clean:

core-stubs-mini-clean:

jack-default-lib-clean:

dist-clean:

clean:

ecj:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/ecj/dist
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/ecj/dist
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/ecj/dist

jsr305-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/dist
    [javac] Compiling 31 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/build/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/dist/jsr305-lib.jar

guava-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/dist
    [javac] Compiling 394 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/build/classes
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:25: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac] import sun.misc.Unsafe;
    [javac]                ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Iterables.java:710: error: incompatible types: Iterator<CAP#1> cannot be converted to Iterator<T>
    [javac]         return Iterators.transform(fromIterable.iterator(), function);
    [javac]                                   ^
    [javac]   where T,F are type-variables:
    [javac]     T extends Object declared in method <F,T>transform(Iterable<F>,Function<? super F,? extends T>)
    [javac]     F extends Object declared in method <F,T>transform(Iterable<F>,Function<? super F,? extends T>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends T from capture of ? extends T
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSet.java:301: error: incompatible types: ImmutableSet<? extends E> cannot be converted to ImmutableSet<E>
    [javac]         ? copyOf(Collections2.cast(elements))
    [javac]         ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Iterable<? extends E>)
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSet.java:368: error: incompatible types: ImmutableSet<CAP#1> cannot be converted to ImmutableSet<E>
    [javac]     return copyFromCollection(elements);
    [javac]                              ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Collection<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableList.java:224: error: incompatible types: ImmutableList<? extends E> cannot be converted to ImmutableList<E>
    [javac]       ? copyOf(Collections2.cast(elements))
    [javac]       ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Iterable<? extends E>)
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableList.java:253: error: incompatible types: ImmutableList<CAP#1> cannot be converted to ImmutableList<E>
    [javac]     return copyFromCollection(elements);
    [javac]                              ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Collection<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:103: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]         private static final sun.misc.Unsafe UNSAFE;
    [javac]                                      ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:300: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]     private static final sun.misc.Unsafe UNSAFE;
    [javac]                                  ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:323: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]     private static sun.misc.Unsafe getUnsafe() {
    [javac]                            ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:325: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]             return sun.misc.Unsafe.getUnsafe();
    [javac]                            ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:330: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                      .PrivilegedExceptionAction<sun.misc.Unsafe>() {
    [javac]                                                         ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:331: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                         public sun.misc.Unsafe run() throws Exception {
    [javac]                                        ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:333: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                                 .Unsafe.class.getDeclaredField("theUnsafe");
    [javac]                                 ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:335: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                             return (sun.misc.Unsafe) f.get(null);
    [javac]                                             ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Sets.java:231: error: incompatible types: HashSet<? extends E> cannot be converted to HashSet<E>
    [javac]         ? new HashSet<E>(Collections2.cast(elements))
    [javac]         ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>newHashSet(Iterable<? extends E>)
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Sets.java:702: error: incompatible types: Predicate<CAP#1> cannot be converted to Predicate<Object>
    [javac]     final Predicate<Object> inSet2 = Predicates.in(set2);
    [javac]                                                   ^
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends Object from capture of ?
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Sets.java:739: error: incompatible types: Predicate<CAP#1> cannot be converted to Predicate<Object>
    [javac]     final Predicate<Object> notInSet2 = Predicates.not(Predicates.in(set2));
    [javac]                                                       ^
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends Object from capture of ?
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Collections2.java:290: error: incompatible types: Iterator<CAP#1> cannot be converted to Iterator<T>
    [javac]       return Iterators.transform(fromCollection.iterator(), function);
    [javac]                                 ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class TransformedCollection
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends T from capture of ? extends T
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Maps.java:1080: error: incompatible types: Map<CAP#1,CAP#2> cannot be converted to Map<K,V>
    [javac]       unmodifiableMap = Collections.unmodifiableMap(delegate);
    [javac]                                                    ^
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in class UnmodifiableBiMap
    [javac]     V extends Object declared in class UnmodifiableBiMap
    [javac]   where CAP#1,CAP#2 are fresh type-variables:
    [javac]     CAP#1 extends K from capture of ? extends K
    [javac]     CAP#2 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Maps.java:1105: error: incompatible types: Set<CAP#1> cannot be converted to Set<V>
    [javac]           ? values = Collections.unmodifiableSet(delegate.values())
    [javac]                                                 ^
    [javac]   where V is a type-variable:
    [javac]     V extends Object declared in class UnmodifiableBiMap
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableMultiset.java:180: error: incompatible types: ImmutableMultiset<CAP#1> cannot be converted to ImmutableMultiset<E>
    [javac]     return copyOfInternal(multiset);
    [javac]                          ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Iterable<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableMultiset.java:189: error: incompatible types: ImmutableMultiset<CAP#1> cannot be converted to ImmutableMultiset<E>
    [javac]     return copyFromEntries(multiset.entrySet());
    [javac]                           ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOfInternal(Multiset<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ArrayTable.java:151: error: incompatible types: ImmutableList<CAP#1> cannot be converted to ImmutableList<R>
    [javac]     this.rowList = ImmutableList.copyOf(rowKeys);
    [javac]                                        ^
    [javac]   where R is a type-variable:
    [javac]     R extends Object declared in class ArrayTable
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends R from capture of ? extends R
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ArrayTable.java:152: error: incompatible types: ImmutableList<CAP#1> cannot be converted to ImmutableList<C>
    [javac]     this.columnList = ImmutableList.copyOf(columnKeys);
    [javac]                                           ^
    [javac]   where C is a type-variable:
    [javac]     C extends Object declared in class ArrayTable
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends C from capture of ? extends C
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/CompoundOrdering.java:36: error: incompatible types: ImmutableList<CAP#1> cannot be converted to ImmutableList<Comparator<? super T>>
    [javac]     this.comparators = ImmutableList.copyOf(comparators);
    [javac]                                            ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class CompoundOrdering
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends Comparator<? super T> from capture of ? extends Comparator<? super T>
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ComputingConcurrentHashMap.java:444: error: incompatible types: no instance(s) of type variable(s) K#1 exist so that ConcurrentMap<K#1,CAP#1> conforms to ConcurrentMap<K#2,V#2>
    [javac]       delegate = mapMaker.makeComputingMap(computingFunction);
    [javac]                                           ^
    [javac]   where K#1,V#1,V#2,K#2 are type-variables:
    [javac]     K#1 extends Object declared in method <K#1,V#1>makeComputingMap(Function<? super K#1,? extends V#1>)
    [javac]     V#1 extends Object declared in method <K#1,V#1>makeComputingMap(Function<? super K#1,? extends V#1>)
    [javac]     V#2 extends Object declared in class ComputingSerializationProxy
    [javac]     K#2 extends Object declared in class ComputingSerializationProxy
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends V#2 from capture of ? extends V#2
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedSet.java:251: error: incompatible types: ImmutableSortedSet<CAP#1> cannot be converted to ImmutableSortedSet<E>
    [javac]     return copyOf(naturalOrder, elements);
    [javac]                  ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Iterable<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedSet.java:289: error: incompatible types: ImmutableSortedSet<CAP#1> cannot be converted to ImmutableSortedSet<E>
    [javac]     return copyOf(naturalOrder, elements);
    [javac]                  ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Collection<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedSet.java:309: error: incompatible types: ImmutableSortedSet<CAP#1> cannot be converted to ImmutableSortedSet<E>
    [javac]     return copyOf(naturalOrder, elements);
    [javac]                  ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Iterator<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedSet.java:323: error: incompatible types: ImmutableSortedSet<CAP#1> cannot be converted to ImmutableSortedSet<E>
    [javac]     return copyOf(comparator, Lists.newArrayList(elements));
    [javac]                  ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Comparator<? super E>,Iterator<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedSet.java:377: error: incompatible types: ImmutableSortedSet<CAP#1> cannot be converted to ImmutableSortedSet<E>
    [javac]     return copyOf(comparator, (Iterable<? extends E>) elements);
    [javac]                  ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Comparator<? super E>,Collection<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:209: error: incompatible types: ImmutableSortedMultiset<CAP#1> cannot be converted to ImmutableSortedMultiset<E>
    [javac]     return copyOf(naturalOrder, elements);
    [javac]                  ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Iterable<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedMultiset.java:227: error: incompatible types: ImmutableSortedMultiset<CAP#1> cannot be converted to ImmutableSortedMultiset<E>
    [javac]     return copyOf(naturalOrder, elements);
    [javac]                  ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>copyOf(Iterator<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableBiMap.java:206: error: incompatible types: ImmutableMap<CAP#1,CAP#2> cannot be converted to ImmutableMap<K,V>
    [javac]     ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
    [javac]                                                          ^
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in method <K,V>copyOf(Map<? extends K,? extends V>)
    [javac]     V extends Object declared in method <K,V>copyOf(Map<? extends K,? extends V>)
    [javac]   where CAP#1,CAP#2 are fresh type-variables:
    [javac]     CAP#1 extends K from capture of ? extends K
    [javac]     CAP#2 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableMultimap.java:302: error: incompatible types: ImmutableListMultimap<CAP#1,CAP#2> cannot be converted to ImmutableMultimap<K,V>
    [javac]     return ImmutableListMultimap.copyOf(multimap);
    [javac]                                        ^
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>)
    [javac]     V extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>)
    [javac]   where CAP#1,CAP#2 are fresh type-variables:
    [javac]     CAP#1 extends K from capture of ? extends K
    [javac]     CAP#2 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableListMultimap.java:262: error: incompatible types: ImmutableList<CAP#1> cannot be converted to ImmutableList<V>
    [javac]       ImmutableList<V> list = ImmutableList.copyOf(entry.getValue());
    [javac]                                                   ^
    [javac]   where V,K are type-variables:
    [javac]     V extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>)
    [javac]     K extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSetMultimap.java:322: error: incompatible types: ImmutableSetMultimap<CAP#1,CAP#2> cannot be converted to ImmutableSetMultimap<K,V>
    [javac]     return copyOf(multimap, null);
    [javac]                  ^
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>)
    [javac]     V extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>)
    [javac]   where CAP#1,CAP#2 are fresh type-variables:
    [javac]     CAP#1 extends K from capture of ? extends K
    [javac]     CAP#2 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSetMultimap.java:350: error: incompatible types: ImmutableSet<? extends V> cannot be converted to ImmutableSet<V>
    [javac]           ? ImmutableSet.copyOf(values)
    [javac]           ^
    [javac]   where V,K are type-variables:
    [javac]     V extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>,Comparator<? super V>)
    [javac]     K extends Object declared in method <K,V>copyOf(Multimap<? extends K,? extends V>,Comparator<? super V>)
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedMap.java:203: error: incompatible types: ImmutableSortedMap<CAP#1,CAP#2> cannot be converted to ImmutableSortedMap<K,V>
    [javac]     return copyOfInternal(map, naturalOrder);
    [javac]                          ^
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in method <K,V>copyOf(Map<? extends K,? extends V>)
    [javac]     V extends Object declared in method <K,V>copyOf(Map<? extends K,? extends V>)
    [javac]   where CAP#1,CAP#2 are fresh type-variables:
    [javac]     CAP#1 extends K from capture of ? extends K
    [javac]     CAP#2 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedMap.java:220: error: incompatible types: ImmutableSortedMap<CAP#1,CAP#2> cannot be converted to ImmutableSortedMap<K,V>
    [javac]     return copyOfInternal(map, checkNotNull(comparator));
    [javac]                          ^
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in method <K,V>copyOf(Map<? extends K,? extends V>,Comparator<? super K>)
    [javac]     V extends Object declared in method <K,V>copyOf(Map<? extends K,? extends V>,Comparator<? super K>)
    [javac]   where CAP#1,CAP#2 are fresh type-variables:
    [javac]     CAP#1 extends K from capture of ? extends K
    [javac]     CAP#2 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedMap.java:242: error: incompatible types: ImmutableSortedMap<K,CAP#1> cannot be converted to ImmutableSortedMap<K,V>
    [javac]     return copyOfInternal(map, comparator);
    [javac]                          ^
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in method <K,V>copyOfSorted(SortedMap<K,? extends V>)
    [javac]     V extends Object declared in method <K,V>copyOfSorted(SortedMap<K,? extends V>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/StandardTable.java:603: error: incompatible types: Predicate<CAP#1> cannot be converted to Predicate<? super Entry<R,V>>
    [javac]         return removePredicate(Predicates.not(Predicates.in(c)));
    [javac]                                              ^
    [javac]   where R,V are type-variables:
    [javac]     R extends Object declared in class StandardTable
    [javac]     V extends Object declared in class StandardTable
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends Object from capture of ?
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Iterators.java:401: error: incompatible types: ArrayList<CAP#1> cannot be converted to List<T>
    [javac]     List<T> list = Lists.newArrayList(iterator);
    [javac]                                      ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>toArray(Iterator<? extends T>,Class<T>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends T from capture of ? extends T
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Iterators.java:1391: error: no suitable method found for add(PeekingIterator<CAP#1>)
    [javac]           queue.add(Iterators.peekingIterator(iterator));
    [javac]                ^
    [javac]     method Collection.add(PeekingIterator<T>) is not applicable
    [javac]       (argument mismatch; PeekingIterator<CAP#1> cannot be converted to PeekingIterator<T>)
    [javac]     method Queue.add(PeekingIterator<T>) is not applicable
    [javac]       (argument mismatch; PeekingIterator<CAP#1> cannot be converted to PeekingIterator<T>)
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class MergingIterator
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends T from capture of ? extends T
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/Lists.java:126: error: incompatible types: ArrayList<? extends E> cannot be converted to ArrayList<E>
    [javac]         ? new ArrayList<E>(Collections2.cast(elements))
    [javac]         ^
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in method <E>newArrayList(Iterable<? extends E>)
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/MapConstraints.java:768: error: incompatible types: ArrayList<CAP#1> cannot be converted to Collection<V>
    [javac]     Collection<V> copy = Lists.newArrayList(values);
    [javac]                                            ^
    [javac]   where V,K are type-variables:
    [javac]     V extends Object declared in method <K,V>checkValues(K,Iterable<? extends V>,MapConstraint<? super K,? super V>)
    [javac]     K extends Object declared in method <K,V>checkValues(K,Iterable<? extends V>,MapConstraint<? super K,? super V>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends V from capture of ? extends V
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/MinMaxPriorityQueue.java:106: error: incompatible types: MinMaxPriorityQueue<CAP#1> cannot be converted to MinMaxPriorityQueue<E>
    [javac]     return new Builder<E>(Ordering.<E>natural()).create(initialContents);
    [javac]                                                        ^
    [javac]   where E is a type-variable:
    [javac]     E extends Comparable<E> declared in method <E>create(Iterable<? extends E>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends E from capture of ? extends E
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:319: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]       static final Unsafe theUnsafe;
    [javac]                    ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:325: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]         theUnsafe = (Unsafe) AccessController.doPrivileged(
    [javac]                      ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:330: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                   Field f = Unsafe.class.getDeclaredField("theUnsafe");
    [javac]                             ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/util/concurrent/Futures.java:221: error: incompatible types: ListenableFuture<CAP#1> cannot be converted to ListenableFuture<O>
    [javac]     return transform(input, function, MoreExecutors.sameThreadExecutor());
    [javac]                     ^
    [javac]   where O,I are type-variables:
    [javac]     O extends Object declared in method <I,O>transform(ListenableFuture<I>,AsyncFunction<? super I,? extends O>)
    [javac]     I extends Object declared in method <I,O>transform(ListenableFuture<I>,AsyncFunction<? super I,? extends O>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends O from capture of ? extends O
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/util/concurrent/Futures.java:329: error: incompatible types: ListenableFuture<CAP#1> cannot be converted to ListenableFuture<O>
    [javac]     return transform(input, function, MoreExecutors.sameThreadExecutor());
    [javac]                     ^
    [javac]   where O,I are type-variables:
    [javac]     O extends Object declared in method <I,O>transform(ListenableFuture<I>,Function<? super I,? extends O>)
    [javac]     I extends Object declared in method <I,O>transform(ListenableFuture<I>,Function<? super I,? extends O>)
    [javac]   where CAP#1 is a fresh type-variable:
    [javac]     CAP#1 extends O from capture of ? extends O
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedSet.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
    [javac] 40 errors
    [javac] 12 warnings

BUILD FAILED
/home/replicant/replicant-6.0/toolchain/src/jack/build.xml:1042: Compile failed; see the compiler error output for details.

Total time: 10 seconds

If you need to do a clean test after a failure, and that you changed the host toolchain, you will need to remove all the directories but src/ in the toolchain directory:

$ cd toolchain
$ rm -rf clang gcc headers jack_jill

Actions #11

Updated by Denis 'GNUtoo' Carikli over 6 years ago

While the Android Open Source Project recommends to use openjdk-7 to build Android 6.0 (https://source.android.com/setup/build/requirements#jdk) it works fine on Debian stretch which uses openjdk-8 (https://packages.debian.org/search?keywords=openjdk-&searchon=names&suite=stable&section=main)

I'll then try again with opendjk-8 instead of openjdk-9 on Trisquel:

apt install openjdk-8-jdk-headless openjdk-8-jre-headless openjdk-8-jre
apt remove openjdk-9-jdk-headless openjdk-9-jre-headless openjdk-9-jre

Actions #12

Updated by Denis 'GNUtoo' Carikli over 6 years ago

After installing openjdk-8, it now fails with:

[INFO] Building jar: /home/replicant/replicant-6.0/toolchain/src/jack/simple/simple-http/target/simple-http-6.0.1-javadoc.jar
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Simple 6.0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ simple ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Simple Common ...................................... SUCCESS [ 15.848 s]
[INFO] Simple Transport ................................... SUCCESS [  3.396 s]
[INFO] Simple HTTP ........................................ SUCCESS [  6.351 s]
[INFO] Simple ............................................. SUCCESS [  0.022 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.373 s
[INFO] Finished at: 2018-08-26T18:34:12+02:00
[INFO] Final Memory: 19M/242M
[INFO] ------------------------------------------------------------------------
+ cd ..
+ ant clean dist
Buildfile: /home/replicant/replicant-6.0/toolchain/src/jack/build.xml

jack-lib-clean:

jack-clean:

jack-api-lib-clean:

jack-api-src-clean:

jack-launcher-clean:

jack-server-lib-clean:

jack-annotations-lib-clean:

jack-intermediate-clean:

jackunittests-lib-clean:

jackunittests-clean:

jack-tests-clean:

args4j-lib-clean:

dx-lib-clean:

ecj-clean:

simple-lib-clean:

freemarker-lib-clean:

guava-lib-clean:

jsr305-lib-clean:

maths-lib-clean:

sched-lib-clean:

sched-build-lib-clean:

sched-build-clean:

schedtests-lib-clean:

watchmaker-lib-clean:

antlr-rt-lib-clean:

allocation-lib-clean:

junit4-lib-clean:

junit4-jack-lib-clean:

junit4-clean:

hamcrest-core-lib-clean:

dexcomparator-clean:

dex-lib-clean:

ddm-lib-clean:

dx-ref-lib-clean:

core-stubs-mini-clean:

jack-default-lib-clean:

dist-clean:

clean:

ecj:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/ecj/dist
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/ecj/dist
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/ecj/dist

jsr305-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/dist
    [javac] Compiling 31 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/build/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jsr305/dist/jsr305-lib.jar

guava-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/dist
    [javac] Compiling 394 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/build/classes
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:25: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac] import sun.misc.Unsafe;
    [javac]                ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:103: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]         private static final sun.misc.Unsafe UNSAFE;
    [javac]                                      ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:300: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]     private static final sun.misc.Unsafe UNSAFE;
    [javac]                                  ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:323: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]     private static sun.misc.Unsafe getUnsafe() {
    [javac]                            ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:325: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]             return sun.misc.Unsafe.getUnsafe();
    [javac]                            ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:330: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                      .PrivilegedExceptionAction<sun.misc.Unsafe>() {
    [javac]                                                         ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:331: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                         public sun.misc.Unsafe run() throws Exception {
    [javac]                                        ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:333: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                                 .Unsafe.class.getDeclaredField("theUnsafe");
    [javac]                                 ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/cache/Striped64.java:335: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                             return (sun.misc.Unsafe) f.get(null);
    [javac]                                             ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:319: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]       static final Unsafe theUnsafe;
    [javac]                    ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:325: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]         theUnsafe = (Unsafe) AccessController.doPrivileged(
    [javac]                      ^
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/primitives/UnsignedBytes.java:330: warning: Unsafe is internal proprietary API and may be removed in a future release
    [javac]                   Field f = Unsafe.class.getDeclaredField("theUnsafe");
    [javac]                             ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /home/replicant/replicant-6.0/toolchain/src/jack/guava/src/com/google/common/collect/ImmutableSortedSet.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 12 warnings
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/build/classes/com/google/common/eventbus/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/build/classes/com/google/common/annotations/package-info.class
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/guava/dist/guava-lib.jar

dx-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dx/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dx/dist
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dx/libs
    [javac] Compiling 277 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dx/classes
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dx/classes/com/android/jack/dx/rop/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dx/classes/com/android/jack/dx/ssa/package-info.class
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dx/dist/dx-lib.jar

args4j-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/args4j/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/args4j/dist
    [javac] Compiling 60 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/args4j/build/classes
    [javac] Note: /home/replicant/replicant-6.0/toolchain/src/jack/args4j/args4j/src/org/kohsuke/args4j/spi/PatternOptionHandler.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 8 files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/args4j/build/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/args4j/dist/args4j-lib.jar

antlr-rt-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/antlr-rt/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/antlr-rt/dist
    [javac] Compiling 85 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/antlr-rt/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/antlr-rt/dist/antlr-runtime-lib.jar

hamcrest-core-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/hamcrest-core/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/hamcrest-core/dist
    [javac] Compiling 21 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/hamcrest-core/build/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/hamcrest-core/dist/hamcrest-core-lib.jar

junit4-lib-compile:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/dist
    [javac] Compiling 162 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/internal/requests/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/internal/runners/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/runner/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/junit/framework/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/runner/notification/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/junit/textui/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/junit/extensions/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/runner/manipulation/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/runners/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/junit/runner/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4-lib/classes/org/junit/matchers/package-info.class

junit4:
     [copy] Copying 231 files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4/classes
     [copy] Copying 21 files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/build/junit4/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/junit4/dist/junit4.jar

dex-lib-compile:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dexlib/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dexlib/dist
    [javac] Compiling 149 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dexlib/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

dex-lib:
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dexlib/dist/dex-lib.jar

jack-api-lib-copy-libs:
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jack-api/libs

jack-api-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jack-api/build/lib/classes
    [javac] Compiling 18 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jack-api/build/lib/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/jack-api/dist/jack-api-lib.jar

jack-copy-libs:
     [copy] Copying 10 files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/libs

allocation-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/allocation/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/allocation/dist
    [javac] Compiling 2 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/allocation/build/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/allocation/dist/allocation-lib.jar

freemarker-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/freemarker/dist
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/freemarker/dist

maths-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/dist
    [javac] Compiling 38 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes/org/uncommons/maths/binary/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes/org/uncommons/maths/number/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes/org/uncommons/maths/statistics/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes/org/uncommons/maths/combinatorics/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes/org/uncommons/maths/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/build/classes/org/uncommons/maths/random/package-info.class
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/maths/dist/maths-lib.jar

watchmaker-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/dist
    [javac] Compiling 81 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/util/id/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/watchmaker/framework/interactive/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/watchmaker/framework/selection/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/util/concurrent/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/watchmaker/framework/operators/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/watchmaker/framework/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/util/reflection/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/watchmaker/framework/termination/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/watchmaker/framework/islands/package-info.class
    [javac] Creating empty /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/build/classes/org/uncommons/watchmaker/framework/factories/package-info.class
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/watchmaker/dist/watchmaker-lib.jar

sched-copy-libs:
     [copy] Copying 7 files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/libs

sched-build-lib-compile:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-build-lib/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/dist
    [javac] Compiling 2 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-build-lib/classes

sched-build:
     [copy] Copying 9 files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-build/classes
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-build/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/dist/sched-build.jar
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/tools

sched-build-lib:
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-build-lib/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/dist/sched-build-lib.jar

sched-lib:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-lib/classes
    [javac] Compiling 417 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-lib/classes
    [javac] Note: /home/replicant/replicant-6.0/toolchain/src/jack/sched/src/com/android/sched/util/log/tracer/StatsTracerFtl.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
     [copy] Copying 6 files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/build/sched-lib/classes
      [jar] Building jar: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/sched/dist/sched-lib.jar

jack-lib-compile-step1:
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/build/jack-lib/classes
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/dist
    [mkdir] Created dir: /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/tools
     [copy] Copying 1 file to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/tools

jack-lib-generate-proguard-parser-check:

jack-lib-generate-proguard-parser:

jack-lib-generate-preprocessor-parser-check:

jack-lib-generate-preprocessor-parser:

jack-lib-compile-step2:
    [javac] Compiling 976 source files to /home/replicant/replicant-6.0/toolchain/jack_jill/build/jack/build/jack-lib/classes
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/jack/src/com/android/jack/ecj/loader/jast/JAstBinaryType.java:46: error: cannot find symbol
    [javac] import org.eclipse.jdt.internal.compiler.env.ITypeAnnotationWalker;
    [javac]                                             ^
    [javac]   symbol:   class ITypeAnnotationWalker
    [javac]   location: package org.eclipse.jdt.internal.compiler.env
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/jack/src/com/android/jack/ecj/loader/jast/JAstBinaryType.java:460: error: cannot find symbol
    [javac]   public ITypeAnnotationWalker enrichWithExternalAnnotationsFor(ITypeAnnotationWalker walker,
    [javac]                                                                 ^
    [javac]   symbol:   class ITypeAnnotationWalker
    [javac]   location: class JAstBinaryType
    [javac] /home/replicant/replicant-6.0/toolchain/src/jack/jack/src/com/android/jack/ecj/loader/jast/JAstBinaryType.java:460: error: cannot find symbol
    [javac]   public ITypeAnnotationWalker enrichWithExternalAnnotationsFor(ITypeAnnotationWalker walker,
    [javac]          ^
    [javac]   symbol:   class ITypeAnnotationWalker
    [javac]   location: class JAstBinaryType
    [javac] 3 errors

BUILD FAILED
/home/replicant/replicant-6.0/toolchain/src/jack/build.xml:296: Compile failed; see the compiler error output for details.

Total time: 25 seconds

Actions #13

Updated by Denis 'GNUtoo' Carikli about 6 years ago

In Debian ITypeAnnotationWalker comes from this jar:

# zipinfo /usr/share/maven-repo/org/eclipse/jdt/core/compiler/ecj/debian/ecj-debian.jar | grep --color org/eclipse/jdt/internal/compiler/env/ITypeAnnotationWalker
-rw----     1.0 fat     1680 b- defN 17-Jan-11 20:38 org/eclipse/jdt/internal/compiler/env/ITypeAnnotationWalker$1.class
-rw----     1.0 fat     1405 b- defN 17-Jan-11 20:38 org/eclipse/jdt/internal/compiler/env/ITypeAnnotationWalker.class

which comes from this package:
# dpkg --search /usr/share/maven-repo/org/eclipse/jdt/core/compiler/ecj/debian/ecj-debian.jar
libecj-java: /usr/share/maven-repo/org/eclipse/jdt/core/compiler/ecj/debian/ecj-debian.jar

I'll install the deb on Trisquel and see if the build complete

Actions #14

Updated by Denis 'GNUtoo' Carikli about 6 years ago

So the toolchain now built. I will now to try to build an image.

To sumarize what is missing and how it was worked around:
  • 'libfop-java' and 'fop' were missing and were installed by adding ubuntu repositories.
  • 'gcc6' and g++6 were missing and were installed from the ubuntu-toolchain-r PPA
  • 'libecj-java' was installed from debian with 'dpkg -i --force-all libecj-java-gcj_3.11.1-1_amd64.deb'
Actions #15

Updated by Denis 'GNUtoo' Carikli almost 6 years ago

  • Description updated (diff)
Actions #16

Updated by Kurtis Hanna about 5 years ago

  • Status changed from New to Resolved
Actions #17

Updated by Kurtis Hanna about 5 years ago

  • Is duplicate of deleted (Issue #1787: Make Replicant 6.0 buildable on a GNU FSDG-compliant distribution)
Actions #18

Updated by Kurtis Hanna about 5 years ago

  • Target version changed from Replicant 6.0 to Replicant 6.0 0004
  • % Done changed from 0 to 30

I changed the target version to 0004 since we now can build Replicant 6.0 with Trisquel: https://redmine.replicant.us/issues/1787

So now it should just be a matter of changing the documentation.

Actions #19

Updated by Kurtis Hanna about 5 years ago

  • Blocked by Issue #1787: Make Replicant 6.0 buildable on a GNU FSDG-compliant distribution added
Actions #20

Updated by Kurtis Hanna about 5 years ago

  • Subject changed from Recomment to use an FSDG compliant distribution to build Replicant to Recommend to use an FSDG compliant distribution to build Replicant
  • Target version changed from Replicant 6.0 0004 to Replicant 6.0

I took off the 0004 target version. I had changed it recently due to a misunderstanding here: https://redmine.replicant.us/issues/1787#note-9

Actions #21

Updated by Denis 'GNUtoo' Carikli about 5 years ago

  • Status changed from Resolved to In Progress
Actions #22

Updated by Denis 'GNUtoo' Carikli almost 5 years ago

  • Target version changed from Replicant 6.0 to Replicant 6.0 0005
Actions #23

Updated by _I3^ RELATIVISM over 3 years ago

  • Type of work Communication (mails, contacting people, etc), Wiki editions added
Actions #24

Updated by Denis 'GNUtoo' Carikli about 2 years ago

Status

Distro Freedom Stable build-toolchain builds all images images boot Missing packages Comments
Debian 9 (stretch) main * 100% free
*not FSDG compliant
Yes Yes Yes Yes None
Dragora FSDG compliant Yes Untested No: Lacks way too many packages
Guix FSDG compliant Yes1 Untested Untested
Hyperbola 0.3 FSDG compliant Yes Untested Untested patches from Debian
stretch2
Hyperbola 0.4 FSDG compliant Yes Untested No: Lacks Java
Parabola FSDG compliant No Untested Untested
PureOS FSDG compliant No Untested Untested
Trisquel 7 (belenos) FSDG compliant Yes Untested Untested * aapt
* android-sdk-build-tools
* android-sdk-platform-23
* ca-cacert
* libgradle-android-plugin-java
* libnb-platform18-java
Trisquel 8 (flidas) FSDG compliant Yes Untested Untested
Trisquel 9 (etiona) FSDG compliant Yes Yes Unknown3 No * libemma-java
Trisquel 10 (nabia) FSDG compliant Yes No4 * eclipse-jdt
* libandroidsdk-ddmlib-java
* libandroidsdk-sdklib-java
* libasm4-java
* libemma-java
* libandroidsdk-ddmlib-java

1 Guix has manifests and guix-time machine that can be used to have fixed versions/revisions of packages

2 https://wiki.hyperbola.info/doku.php?id=en:project:releases

3 I can't remember if it built all images. It at least built the i9300 target. At the end some of the patches that made it build were reverted because none of the device would boot.

4 Requires to use gcc-7 (using gcc > 7 even with -Wno-error, -fpermissive etc doesn't work). Also requires export CXX=g++-7 for building clang. With that it still doesn't complete the build-toolchain step though.

edit1: Add more infos and references.
edit2: Fix copy-paste issue with stable reference in Hyperbola
edit3: fix references order
edit4: Add dragora
edit5: Add Trisquel 9 and 10 missing packages.
edit6: Add trisquel 7 missing packages

Actions #25

Updated by Denis 'GNUtoo' Carikli about 2 years ago

Here's a test on Trisquel 10:

# dpkg --add-architecture i386
# apt update
# apt-get install aapt android-sdk-build-tools android-sdk-platform-23 ant bash bc ca-cacert cmake curl dirmngr eclipse-jdt gawk gcc-arm-none-eabi git g++-multilib gperf gradle lib32ncurses5-dev lib32readline-dev lib32z1-dev libandroidsdk-ddmlib-java libandroidsdk-sdklib-java libasm4-java libc6-dev-i386 libemma-java libfreemarker-java libgmp3-dev libgradle-android-plugin-java libguava-java libmaven-javadoc-plugin-java libmaven-source-plugin-java libmpc-dev libmpfr-dev libnb-org-openide-util-java libnb-platform18-java libncurses-dev lzma lzop maven-debian-helper pngcrush proguard python-dev python-mako rsync schedtool squashfs-tools swig xsltproc zip zlib1g-dev zlib1g-dev:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'lib32ncurses-dev' instead of 'lib32ncurses5-dev'
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
E: Unable to locate package eclipse-jdt
E: Unable to locate package libandroidsdk-ddmlib-java
E: Unable to locate package libandroidsdk-sdklib-java
E: Unable to locate package libasm4-java
E: Unable to locate package libemma-java

libemma-java might not be 100% required as on trisquel9 it seemed to build Replicant 6.0 without it.

Actions

Also available in: Atom PDF