Errors Building mLinux Firmware Image

Home Forums Conduit: mLinux Model Errors Building mLinux Firmware Image

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15041
    Benjamin Artes
    Participant

    I’m attempting to build the mLinux Firmware image and encountering errors. In particular, after running bitbake mlinux-factory-image I receive various /usr/bin/ld: mpn/.libs/invert_limb.o: relocation R_X86_64_32S against protected symbol '__gmpn_invert_limb_table' can not be used when making a shared object errors. From the looks of it, this means that limb wasn’t built with the fPIC (Position Independent Code) flag.

    Built with Latest Ubuntu 16.04.

    Is this a known error? Is there a version of Ubuntu that is known working (I geta warning that 16.04 hasn’t been validated)

    #15046
    John Klug
    Moderator

    The newest Ubuntu that I know works is 14.04LTS. We also do builds on 12.04LTS.

    Thanks for letting us know.
    John Klug

    #15048
    Benjamin Artes
    Participant

    Thanks, seems to be building on 14.04 (400 of 4700 done).

    #15074
    Benjamin Artes
    Participant

    I just got back from a small vacation and checked on the build of mLinux using stock Ubuntu 14.04 LTS. It failed with the following errors:

    ERROR: Function failed: do_compile (log file is located at /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/temp/log.do_compile.9576)
    ERROR: Logfile of failure stored in: /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/temp/log.do_compile.9576
    Log data follows:
    | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
    | DEBUG: Executing shell function do_compile
    | NOTE: 1/2 Building Hotspot
    | NOTE: make ZIPEXE=/home/ulc/mLinux-3.x/build/tmp/sysroots/x86_64-linux/usr/bin/zip hotspot
    | rm -f stamps/icedtea-ecj.stamp
    | rm -f stamps/icedtea-against-ecj.stamp
    | /usr/bin/make ICEDTEA_BUILD_TARGET=hotspot icedtea-against-ecj
    | make[1]: Entering directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11'
    | /usr/bin/make \
    | 	  ALT_JDK_IMPORT_PATH="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0" ANT="/home/ulc/mLinux-3.x/build/tmp/sysroots/x86_64-linux/usr/bin/ant" BUILD_NUMBER="b18" JDK_UPDATE_VERSION="18" JRE_RELEASE_VERSION="1.6.0_18-b18" MILESTONE="fcs" LANG="C" PATH="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0/bin::$PATH" ALT_BOOTDIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0" ALT_BINARY_PLUGS_PATH="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.7.0" BUILD_ARCH_DIR="amd64" ICEDTEA_BUILD_DIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk/build/linux-amd64" ICEDTEA_CLS_DIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk/build/linux-amd64/classes" ICEDTEA_ENDORSED_DIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0/lib/endorsed" ENDORSED="-Djava.endorsed.dirs=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0/lib/endorsed" CLASSPATH="" LD_LIBRARY_PATH="" ZERO_BUILD="" SHARK_BUILD="" ZERO_LIBARCH="amd64" ARCH_DATA_MODEL="64" ZERO_ENDIANNESS="little" ZERO_ARCHDEF="AMD64" ZERO_ARCHFLAG="-m64" LIBFFI_CFLAGS="" LIBFFI_LIBS="" LLVM_CFLAGS="" LLVM_LDFLAGS="" LLVM_LIBS="" FREETYPE2_HEADERS="-I/home/ulc/mLinux-3.x/build/tmp/sysroots/x86_64-linux/usr/include/freetype2 " FT2_LIB="-L/home/ulc/mLinux-3.x/build/tmp/sysroots/x86_64-linux/usr/lib -lfreetype " ALT_PARALLEL_COMPILE_JOBS="1" HOTSPOT_BUILD_JOBS="1" OE_CFLAGS="" OE_CPPFLAGS="" OE_CXXFLAGS="" OE_LDFLAGS="" JAVAC="" JAVA_HOME="" JDK_HOME="" DISTRIBUTION_ID="Built on Ubuntu 14.04.4 LTS (Fri Oct 14 20:41:30 EDT 2016)" DERIVATIVE_ID="IcedTea6 1.8.11" DEBUG_CLASSFILES="true" DEBUG_BINARIES="true" ALT_DROPS_DIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/drops" VERBOSE="" ALT_NETX_DIST="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/netx.build" ALT_LIVECONNECT_DIST="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/liveconnect"   NO_DOCS="true" CROSS_COMPILATION="true" CROSS_TARGET_ARCH="x86_64"   RHINO_JAR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/rhino/rhino.jar" JAVA_TOOLS_DIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0/bin" ICEDTEA_RT="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0/jre/lib/rt.jar" ICEDTEA_BUILD_DIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/" ICEDTEA_CLS_DIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/classes" BOOTCLASSPATH_CLS_RT="-bootclasspath /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/classes:/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0/jre/lib/rt.jar" BOOTCLASSPATH_CLS="-bootclasspath /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/classes" BOOTCLASSPATH_RT_LIBGCJ="-bootclasspath /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0/jre/lib/rt.jar" GENSRCDIR="/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/generated" JAR_KNOWS_ATFILE="1" JAR_KNOWS_J_OPTIONS="1" JAR_ACCEPTS_STDIN_LIST="1" DISABLE_NIMBUS="true" NO_DOCS="true" \
    | 	  -C openjdk-ecj/ \
    | 	  hotspot
    | make[2]: Entering directory /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj'
    | /bin/mkdir -p /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir
    | /bin/mkdir -p /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/import
    | cd  ./hotspot/make && \
    | 	    /usr/bin/make JDK_TOPDIR=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk JDK_MAKE_SHARED_DIR=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/jdk/make/common/shared EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5 MILESTONE=fcs BUILD_NUMBER=b18 JDK_BUILD_NUMBER=b18 FULL_VERSION=1.6.0_18-b18 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.6.0_18 JDK_MKTG_VERSION=6u18 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=6 JDK_MICRO_VERSION=0 ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=180 COOKED_BUILD_NUMBER=18 ALT_OUTPUTDIR=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir ALT_EXPORT_PATH=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/import ALT_SLASH_JAVA=/NOT-SET ALT_BOOTDIR=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0 ALT_LANGTOOLS_DIST=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/langtools/dist all_product
    | make[3]: Entering directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot/make'
    | Makefile:367: target '/Xusage.txt' given more than once in the same rule.
    | cd /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot/make; \
    | 	/usr/bin/make VM_TARGET=product generic_build2 ALT_OUTPUTDIR=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir
    | make[4]: Entering directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot/make'
    | Makefile:367: target '/Xusage.txt' given more than once in the same rule.
    | mkdir -p /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir
    | cd /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir; \
    | 	    /usr/bin/make -f /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot/make/linux/Makefile \
    | 		       LP64=1 JAVA_HOME=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/bootstrap/jdk1.6.0 OUTPUTDIR=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir GAMMADIR=/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot MAKE_VERBOSE=y HOTSPOT_RELEASE_VERSION=14.0-b16 JRE_RELEASE_VERSION=1.6.0_18-b18 HOTSPOT_BUILD_VERSION= product
    | make[5]: Entering directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir'
    | /usr/bin/make -f /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot/make/linux/Makefile checks
    | make[6]: Entering directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir'
    | >&2 echo "*** This OS is not supported:" 'uname -a'; exit 1;
    | *** This OS is not supported: Linux ulc-VirtualBox 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
    | make[6]: *** [check_os_version] Error 1
    | make[6]: Leaving directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir'
    | make[5]: *** [linux_amd64_compiler2/debug] Error 2
    | make[5]: Leaving directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/build/linux-amd64/hotspot/outputdir'
    | make[4]: *** [generic_build2] Error 2
    | make[4]: Leaving directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot/make'
    | make[3]: *** [product] Error 2
    | make[3]: Leaving directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj/hotspot/make'
    | make[2]: *** [hotspot-build] Error 2
    | make[2]: Leaving directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11/openjdk-ecj'
    | make[1]: *** [stamps/icedtea-ecj.stamp] Error 2
    | make[1]: Leaving directory '/home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/icedtea6-1.8.11'
    | make: *** [hotspot] Error 2
    | ERROR: oe_runmake failed
    | WARNING: exit code 1 from a shell command.
    | ERROR: Function failed: do_compile (log file is located at /home/ulc/mLinux-3.x/build/tmp/work/x86_64-linux/icedtea6-native/1.8.11-r5.3/temp/log.do_compile.9576)
    ERROR: Task 2335 (/home/ulc/mLinux-3.x/layers/meta-java/recipes-core/icedtea/icedtea6-native_1.8.11.bb, do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 3485 tasks of which 3475 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish:
    
    Summary: 1 task failed:
      /home/ulc/mLinux-3.x/layers/meta-java/recipes-core/icedtea/icedtea6-native_1.8.11.bb, do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    

    Any suggestions?

    #15078
    John Klug
    Moderator

    This error means that your build system kernel is not supported by the icedtea build. Apparently you are on Linux kernel 4.2.0-27?

    >&2 echo “*** This OS is not supported:” ‘uname -a’; exit 1;
    | *** This OS is not supported: Linux ulc-VirtualBox 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

    For instance, my Ubuntu 14.04 system is kernel 3.13.0.

    #15090
    Brandon Bayer
    Blocked

    Yeah, mLinux doesn’t currently build with a 4.x kernal 🙁

    -Brandon

    #15097
    Benjamin Artes
    Participant

    Thanks guys. [Turns out the 14.04.5 LTS of Ubuntu updated the kernel.](https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes#Kernel)

    Downloading 14.04.1 release now to try again.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.