8 Replies Latest reply on Apr 13, 2017 8:52 PM by stmorgan

    Unable to do initial 'make' on Jelly Bean (4.3)

    calebtimms

      Hi,

       

      I'm attempting to work with the RIoTboard for the first time and have run into the issue of creating a flash-able android image. I downloaded the Jelly Bean (Android 4.3) code and got the repo all initialized and synced with no issues. There were no issues with the '. build/envsetup.sh' and choosing the desired lunch item (23 - RIoTboard_6solo-eng), however the 'make -j8' continues to fail regardless of what I try.

       

      Please see the attached log from the make command. Note that I had already tried to make the images, thus the reason that the log is so short. However, the issues I am having are fully encompassed in the provided log.

       

      As can be seen, there seems to be some issue with the EthernetStateTracker.java includes. There are multiple (22) symbols that are supposed to be included that have not been found. I am also getting Error 41 in regards to a debug .jar file and I'm being told that I'm using deprecated APIs.

       

      I am running this with JDK 1.6.0_45 at the moment. I have tried the same process with both the latest JDK 1.5 and JDK 1.8 versions, to no avail.

       

      If someone has run across this and knows the solution, I would love to find the answer. My Googling has turned up absolutely nothing helpful enough to solve my problem. Again, I am simply trying to do the first make on the downloaded Android source code. I have not modified it in any way, and yet it will not build.

       

      Things I have tried:

      1. Completely commenting out EthernetStateTracker.java. Similar symbol missing errors simply occurred in other .java files
      2. Running 'make clean', 'make clean -j8', 'make update-api', 'make', etc.
      3. Creating a custom classes-full-debug.jar file in the folder where Error 41 popped up (though this might have been wrong?)
      4. Completely deleting, re-downloading, re-initializing, and re-syncing repository.
      5. Multiple versions of Java JDK.
      6. Re-download Jelly Bean code from riotboard.org (as opposed to previous link on the Riotboard Element 14 site).
      7. There are probably more that I can't remember off the top of my head

       

      Thanks,

      Caleb

       

      P.S. Just noticed that for some reason the log file I attached defaulted to a .zip file, so I'm also pasting the log down below in case you didn't want to have to download and unzip a file just to read the log

       

      riot_source: make -j8

      ============================================

      PLATFORM_VERSION_CODENAME=REL

      PLATFORM_VERSION=4.3

      TARGET_PRODUCT=RIoTboard_6solo

      TARGET_BUILD_VARIANT=eng

      TARGET_BUILD_TYPE=release

      TARGET_BUILD_APPS=

      TARGET_ARCH=arm

      TARGET_ARCH_VARIANT=armv7-a-neon

      TARGET_CPU_VARIANT=cortex-a9

      HOST_ARCH=x86

      HOST_OS=linux

      HOST_OS_EXTRA=Linux-3.13.0-55-generic-x86_64-with-Ubuntu-12.04-precise

      HOST_BUILD_TYPE=release

      BUILD_ID=1.0.0-rc2

      OUT_DIR=out

      ============================================

      build/core/Makefile:32: warning: overriding commands for target `out/target/product/RIoTboard_6solo/system/etc/wifi/wpa_supplicant.conf'

      build/core/base_rules.mk:520: warning: ignoring old commands for target `out/target/product/RIoTboard_6solo/system/etc/wifi/wpa_supplicant.conf'

      build/core/Makefile:32: warning: overriding commands for target `out/target/product/RIoTboard_6solo/system/etc/permissions/android.software.live_wallpaper.xml'

      build/core/base_rules.mk:520: warning: ignoring old commands for target `out/target/product/RIoTboard_6solo/system/etc/permissions/android.software.live_wallpaper.xml'

      No private recovery resources for TARGET_DEVICE RIoTboard_6solo

      target Java: voip-common (out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes)

      make -C kernel_imx -j8 uImage ARCH=arm CROSS_COMPILE=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-

      make[1]: Entering directory `/home/lattice/riot_source/kernel_imx'

      make[1]: warning: -jN forced in submake: disabling jobserver mode.

        CHK     include/linux/version.h

      target Symbolic: libcutils (out/target/product/RIoTboard_6solo/symbols/system/lib/libcutils.so)

      target Strip: libsync (out/target/product/RIoTboard_6solo/obj/lib/libsync.so)

      target Strip: libnativehelper (out/target/product/RIoTboard_6solo/obj/lib/libnativehelper.so)

      target Symbolic: libicuuc (out/target/product/RIoTboard_6solo/symbols/system/lib/libicuuc.so)

      target Symbolic: libcrypto (out/target/product/RIoTboard_6solo/symbols/system/lib/libcrypto.so)

      Install: out/target/product/RIoTboard_6solo/system/lib/libsync.so

      Copying: out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/APPS/BasicDreams_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/APPS/BackupRestoreConfirmation_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/JAVA_LIBRARIES/javax.obex_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/JAVA_LIBRARIES/android-support-v4-honeycomb-mr2_intermediates/emma_out/lib/classes-jarjar.jar

      Copying: out/target/common/obj/APPS/SoundRecorder_intermediates/classes-jarjar.jar

      Note: frameworks/opt/net/voip/src/java/com/android/server/sip/SipService.java uses or overrides a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: frameworks/opt/net/voip/src/java/com/android/server/sip/SipService.java uses unchecked or unsafe operations.

      Note: Recompile with -Xlint:unchecked for details.

      Copying: out/target/common/obj/APPS/CalendarProvider_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/APPS/CertInstaller_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/JAVA_LIBRARIES/com.android.phone.shared_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/APPS/DefaultContainerService_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/JAVA_LIBRARIES/junit-runner_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/APPS/DownloadProvider_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/APPS/DownloadProviderUi_intermediates/classes-jarjar.jar

      target Java: Ethernet (out/target/common/obj/APPS/Ethernet_intermediates/classes)

      Copying: out/target/common/obj/JAVA_LIBRARIES/com.android.location.provider_intermediates/classes-jarjar.jar

      Copying: out/target/common/obj/JAVA_LIBRARIES/android-support-v8-renderscript_intermediates/classes-jarjar.jar

      target Java: HTMLViewer (out/target/common/obj/APPS/HTMLViewer_intermediates/classes)

      target Java: InputDevices (out/target/common/obj/APPS/InputDevices_intermediates/classes)

      target Java: KeyChain (out/target/common/obj/APPS/KeyChain_intermediates/classes)

      target Java: LiveWallpapers (out/target/common/obj/APPS/LiveWallpapers_intermediates/classes)

      target Java: LiveWallpapersPicker (out/target/common/obj/APPS/LiveWallpapersPicker_intermediates/classes)

      target Java: MagicSmokeWallpapers (out/target/common/obj/APPS/MagicSmokeWallpapers_intermediates/classes)

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:24: cannot find symbol

      symbol  : class scanResult

      location: class android.net.EthernetDataTracker

      import android.net.EthernetDataTracker.scanResult;

                                            ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:25: cannot find symbol

      symbol  : class connectResult

      location: class android.net.EthernetDataTracker

      import android.net.EthernetDataTracker.connectResult;

                                            ^

      target Java: MediaProvider (out/target/common/obj/APPS/MediaProvider_intermediates/classes)

      packages/apps/Ethernet/src/android/net/ethernet/EthernetMonitor.java:57: cannot find symbol

      symbol  : method setHandler(android.net.ethernet.EthernetMonitor.NetStateHandler)

      location: class android.net.EthernetDataTracker

              mDataTracker.setHandler(sInstance);

                          ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:197: cannot find symbol

      symbol  : method getEthernetCarrierState(java.lang.String)

      location: class android.net.EthernetDataTracker

              return mDataTracker.getEthernetCarrierState(iface);

                                 ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:238: cannot find symbol

      symbol  : method configureIfc(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean)

      location: class android.net.EthernetDataTracker

              mDataTracker.configureIfc(m.getIfName(),

                          ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:255: cannot find symbol

      symbol  : method configureIfc(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean)

      location: class android.net.EthernetDataTracker

                  isOK = mDataTracker.configureIfc(m.getIfName(),

                                     ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:271: cannot find symbol

      symbol  : method setUserFlag(boolean)

      location: class android.net.EthernetDataTracker

              mDataTracker.setUserFlag(flag);

                          ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:346: cannot find symbol

      symbol  : class scanResult

      location: class android.net.ethernet.EthernetStateTracker

              scanResult sR;

              ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:347: cannot find symbol

      symbol  : class connectResult

      location: class android.net.ethernet.EthernetStateTracker

              connectResult cR;

              ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:352: cannot find symbol

      symbol  : variable ETHER_MSG_ADD_INTERFACE

      location: class android.net.EthernetDataTracker

                  case EthernetDataTracker.ETHER_MSG_ADD_INTERFACE:

                                          ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:353: cannot find symbol

      symbol  : class scanResult

      location: class android.net.ethernet.EthernetStateTracker

                      sR = (scanResult)msg.obj;

                            ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:363: cannot find symbol

      symbol  : variable ETHER_MSG_INTERFACE_STATUS_CHANGE

      location: class android.net.EthernetDataTracker

                  case EthernetDataTracker.ETHER_MSG_INTERFACE_STATUS_CHANGE:

                                          ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:364: cannot find symbol

      symbol  : class scanResult

      location: class android.net.ethernet.EthernetStateTracker

                      sR = (scanResult)msg.obj;

                            ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:373: cannot find symbol

      symbol  : variable ETHER_MSG_INTERFACE_STATUS_CHANGE

      location: class android.net.EthernetDataTracker

                          sendMessage(EthernetDataTracker.ETHER_MSG_INTERFACE_STATUS_CHANGE, sR.iFace);

                                                         ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:378: cannot find symbol

      symbol  : variable ETHER_MSG_CONNECTED_SUCCESS

      location: class android.net.EthernetDataTracker

                  case EthernetDataTracker.ETHER_MSG_CONNECTED_SUCCESS:

                                          ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:379: cannot find symbol

      symbol  : class connectResult

      location: class android.net.ethernet.EthernetStateTracker

                      cR = (connectResult)msg.obj;

                            ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:390: cannot find symbol

      symbol  : variable ETHER_MSG_CONNECTED_SUCCESS

      location: class android.net.EthernetDataTracker

                          sendMessage(EthernetDataTracker.ETHER_MSG_CONNECTED_SUCCESS, cR.iFace);

                                                         ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:395: cannot find symbol

      symbol  : variable ETHER_MSG_CONNECTED_FAILED

      Note: packages/apps/HTMLViewer/src/com/android/htmlviewer/HTMLViewerActivity.java uses or overrides a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      location: class android.net.EthernetDataTracker

                  case EthernetDataTracker.ETHER_MSG_CONNECTED_FAILED:

                                          ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:396: cannot find symbol

      symbol  : class connectResult

      location: class android.net.ethernet.EthernetStateTracker

                      cR = (connectResult)msg.obj;

                            ^

      packages/apps/Ethernet/src/android/net/ethernet/EthernetStateTracker.java:406: cannot find symbol

      symbol  : variable ETHER_MSG_CONNECTED_FAILED

      location: class android.net.EthernetDataTracker

                          sendMessage(EthernetDataTracker.ETHER_MSG_CONNECTED_FAILED, cR.iFace);

                                                         ^

      packages/apps/Ethernet/src/android/net/server/EthernetService.java:63: cannot find symbol

      symbol  : method clearConnections()

      location: class android.net.EthernetDataTracker

              mDataTracker.clearConnections();

                          ^

      packages/apps/Ethernet/src/android/net/server/EthernetService.java:64: cannot find symbol

      symbol  : method scanInterface()

      location: class android.net.EthernetDataTracker

              mDataTracker.scanInterface();

                          ^

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      22 errors

      make: *** [out/target/common/obj/APPS/Ethernet_intermediates/classes-full-debug.jar] Error 41

      make: *** Waiting for unfinished jobs....

      Note: packages/apps/KeyChain/src/com/android/keychain/KeyChainActivity.java uses or overrides a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

        CHK     include/generated/utsrelease.h

      make[2]: `include/generated/mach-types.h' is up to date.

        CALL    scripts/checksyscalls.sh

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: packages/providers/MediaProvider/src/com/android/providers/media/MediaProvider.java uses unchecked or unsafe operations.

      Note: Recompile with -Xlint:unchecked for details.

        CHK     include/generated/compile.h

        Kernel: arch/arm/boot/Image is ready

        SHIPPED arch/arm/boot/compressed/lib1funcs.S

        AS      arch/arm/boot/compressed/lib1funcs.o

        LD      arch/arm/boot/compressed/vmlinux

        OBJCOPY arch/arm/boot/zImage

        Kernel: arch/arm/boot/zImage is ready

        UIMAGE  arch/arm/boot/uImage

      Image Name:   Linux-3.0.35-06440-g69a9d24

      Created:      Tue Jun 23 10:36:38 2015

      Image Type:   ARM Linux Kernel Image (uncompressed)

      Data Size:    4735296 Bytes = 4624.31 kB = 4.52 MB

      Load Address: 10008000

      Entry Point:  10008000

        Image arch/arm/boot/uImage is ready

      make[1]: Leaving directory `/home/lattice/riot_source/kernel_imx'

      install -D kernel_imx/arch/arm/boot/uImage  out/target/product/RIoTboard_6solo/uImage

      install -D kernel_imx/arch/arm/boot/zImage  out/target/product/RIoTboard_6solo/kernel

       

      Message was edited by: Caleb Timms

        • Re: Unable to do initial 'make' on Jelly Bean (4.3)
          calebtimms

          Just a note, I downloaded the code via the repo as detailed on Page 53 in the https://www.dropbox.com/s/xap0b9am0bkbi1f/RIoTboard%20User%20Manual_V2.1.pdf?dl=0 . However, I had to substitute the Kit Kat code for the Jelly Bean code which can be found in the same folder of the repository. I initially tried it exactly as found in the manual and the sync failed with various errors. Multiple tries all resulted in the same thing, so I switched to Jelly Bean instead. The sync with Jelly Bean went fine, but then I ran into this issue with actually making the system image.

           

          In the manual, it also listed the possibility of getting the source code from the website, but as far as I can tell, all they have on the website is just a download for the system images?

           

          Any help or suggestions would be appreciated.

          • Re: Unable to do initial 'make' on Jelly Bean (4.3)
            tekkentux

            I have exactly the same error, but no solution yet. But actually I'm more interested in compiling kitkat. which also did not work for yet. But this will be discussed in a separate topic.

            If someone finds a solution for jb I would also apprechiate it. I will also go on trying with both.

              • Re: Unable to do initial 'make' on Jelly Bean (4.3)
                calebtimms

                Hi Tekken Tux,

                 

                I've located a solution (though a highly imperfect one, depending on your application) and wanted to make sure you had access to it. The issue appears to be with the Ethernet modules they added in to the most recent commit of the Jelly Bean code, and you can completely disable the inclusion of the Ethernet modules by doing the following:

                 

                1. Locate the make file - build/target/product/generic_no_telephony.mk

                2. Open in editor and remove the entry 'Ethernet \' from this file (it occurs within the first 50 or so lines and was the only instance of 'Ethernet' in my file. Might want to run a text search just to be sure for yourself).

                 

                Once I removed the Ethernet stuff, I was able to successfully make the solution (and get the resulting .img files in out/target/product/RIoTboard_6solo/. Unfortunately, if you are attempting to make use of the Ethernet modules, then I'm not sure this solution will be of any use to you. I was still unable to find an actual patch or solution to keep the Ethernet functionality and it appears literally impossible to get in contact with anyone at RIoTboard considering their email address bounces back emails (I've also sent a message to Embest Tech with no response).

                 

                I just got that at the end of last week and am going to attempt to flash the newly created image onto the RIoTboard this morning. If I have any further issues, I'll comment them below, but no new posts should be a good sign from me. Let me know if these steps solve your problem.

                 

                Caleb

                1 of 1 people found this helpful