This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: when compiling nginx for sitara processor using "arago-linux" Getting overflow error.



Tool/software: TI C/C++ Compiler

Hi,

I am trying to compile nginx with open-ssl for a sitara processor using , ./linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc cross compiler,

but I am getting an overflow error for definition of a 64bit constant.

src/core/ngx_string.c: In function 'ngx_atoi':
src/core/ngx_config.h:92:30: error: overflow in implicit constant conversion [-Werror=overflow]
 #define NGX_MAX_INT_T_VALUE  9223372036854775807

I can see there are 64bit definitions under stdint-gcc.h , but I am not sure if sitara/or compiler for it, support these or not.

I did modify the nginx definitions to represent a 32 bit value, compilation went ok but my https connections failed. I would assume because of manual modifications to "nginx" ngx_config.h .

Any idea how I can resolve this compilation issue?

Thanks

Ahmad Shahamat

Sr. Firmware Engineer

Ring.com

  • The software team have been notified. They will respond here.
  • Hello Ahmad,

    I can successfully build the nginx in OE.

    $ wget https://releases.linaro.org/components/toolchain/binaries/6.2-2016.11/arm-linux-gnueabihf/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz
    $ tar -Jxvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME

    $ git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk
    $ cd tisdk
    $ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-04.00.00.04-config.txt
    $ cd build
    $ . conf/setenv
    $ export PATH=$HOME/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH
    # add <absolute path to sdk directory>/sources/meta-openembedded/meta-webserver \ to BBLAYERS += " \ in tisdk/build/conf
    $ MACHINE=am335x-evm bitbake nginx

    Then transfer the package and its dependencies to your board and install them by using opkg install [package_ipk].ipk command.

    Best regards,
    Kemal

  • Hello Kemal,

    Thank you very much for your reply.

    I followed your steps, Everything went well, Except I got these errors.

    Any idea what I did wrong?

    Regards

    Ahmad

    NOTE: Executing RunQueue Tasks
    WARNING: cryptodev-linux-native-1.8-r0 do_fetch: Failed to fetch URL download.gna.org/.../cryptodev-linux-1.8.tar.gz, attempting MIRRORS if available
    WARNING: libpcre-native-8.39-r0 do_fetch: Failed to fetch URL ftp.csx.cam.ac.uk/.../pcre-8.39.tar.bz2, attempting MIRRORS if available
    WARNING: linux-libc-headers-4.9-r0.arago2 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y, attempting MIRRORS if available
    ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-ItnBT9m6EB"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/project/tisdk/sources/oe-core/scripts:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/arm-linux-gnueabi:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/bin/crossscripts:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/sbin:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/sbin:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/bin:/home/project/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/project/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/project/tisdk/sources/oe-core/scripts:/home/project/tisdk/sources/meta-browser/scripts:/home/project/tisdk/sources/bitbake/bin:/home/project/bin:/home/project/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/project/slickedit-pro2016/bin/"; export HOME="/home/project"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git /home/project/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git --progress failed with exit code 128, output:
    Cloning into bare repository '/home/project/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git'...
    remote: Counting objects: 7212296, done.        
    remote: Compressing objects: 100% (1026541/1026541), done.        
    remote: Total 7212296 (delta 6151533), reused 7198531 (delta 6138111)        
    Receiving objects: 100% (7212296/7212296), 1.41 GiB | 4.68 MiB/s, done.
    error: inflate: data stream error (incorrect header check)
    fatal: serious inflate inconsistency
    fatal: index-pack failed

    ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y'. Unable to fetch URL from any source.
    ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Function failed: base_do_fetch
    ERROR: Logfile of failure stored in: /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/linux-libc-headers/4.9-r0.arago2/temp/log.do_fetch.23287
    ERROR: Task (/home/project/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 347 tasks of which 0 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
      /home/project/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetch
    Summary: There were 3 WARNING messages shown.
    Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
    project@ubuntu-acer:~/tisdk/build$

  • Hi Kemal
    Thank you for replying to my question,
    I followed your instructions, Everything went well , except that I got the following errors

    Regards
    Ahmad

    project@ubuntu-acer:~/tisdk/build$ MACHINE=am335x-evm bitbake nginx
    Loading cache: 100% |############################################################################################################################################################################################################################################| Time: 0:00:01
    Loaded 3252 entries from dependency cache.
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.32.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-16.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am335x-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.05"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:3d2f620a6a98b1b6abb1103d7dc986921436ed19"
    meta-arago-distro
    meta-arago-extras = "HEAD:b727bf8fce8e9cb5a6b5d5b48c45f0088e67eb53"
    meta-browser = "HEAD:880a7bd1d3b9a1b2003f5b0620350f03158bbd43"
    meta-qt5 = "HEAD:3601fd2c5306ac6d5d0d536e0be8cbb90da9b4c1"
    meta-networking
    meta-ruby
    meta-python
    meta-oe
    meta-gnome = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti = "HEAD:41d6fdc0fe5ea6054616cfccda13baac3ff33791"
    meta-linaro-toolchain
    meta-optee = "HEAD:d84874bad834657dd04ea69c35a74dd9dbd535b8"
    meta = "HEAD:ddf907ca95a19f54785079b4396935273b3747f6"
    meta-webserver = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"

    Initialising tasks: 100% |#######################################################################################################################################################################################################################################| Time: 0:00:02
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    Currently 4 running tasks (353 of 878) 40% |########################################################################################## |
    0: linux-libc-headers-4.9-r0.arago2 do_fetch (pid 4358) | <=> WARNING: linux-libc-headers-4.9-r0.arago2 do_fetch: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y, attempting MIRRORS if available
    ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure: Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-ItnBT9m6EB"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/project/tisdk/sources/oe-core/scripts:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/arm-linux-gnueabi:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/bin/crossscripts:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/sbin:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/sbin:/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/bin:/home/project/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/project/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:/home/project/tisdk/sources/oe-core/scripts:/home/project/tisdk/sources/meta-browser/scripts:/home/project/tisdk/sources/bitbake/bin:/home/project/bin:/home/project/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/project/slickedit-pro2016/bin/"; export HOME="/home/project"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git /home/project/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git --progress failed with exit code 128, output:
    Cloning into bare repository '/home/project/tisdk/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git'...
    remote: Counting objects: 7212296, done.
    remote: Compressing objects: 100% (1026541/1026541), done.
    remote: Total 7212296 (delta 6151533), reused 7198531 (delta 6138111)
    Receiving objects: 100% (7212296/7212296), 1.41 GiB | 4.35 MiB/s, done.
    fatal: premature end of pack file, 18446744071562068014 bytes missing
    fatal: index-pack failed

    ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-lsk-linux-4.9.y'. Unable to fetch URL from any source.
    ERROR: linux-libc-headers-4.9-r0.arago2 do_fetch: Function failed: base_do_fetch
    ERROR: Logfile of failure stored in: /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/linux-libc-headers/4.9-r0.arago2/temp/log.do_fetch.4358
    ERROR: Task (/home/project/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 603 tasks of which 346 didn't need to be rerun and 1 failed.

    Summary: 1 task failed:
    /home/project/tisdk/sources/meta-arago/meta-arago-distro/recipes-kernel/linux-libc-headers/linux-libc-headers_4.9.bb:do_fetch
    Summary: There was 1 WARNING message shown.
    Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
    project@ubuntu-acer:~/tisdk/build$
  • $ sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386

    $ sudo dpkg-reconfigure dash
    Select "No" when you are asked to use dash as the default system shell.

    Download am335x-evm-linux-sdk-arago-src-04.00.00.04.tar.xz from this link.

    $ # Assuming src file downloaded to $HOME/Downloads
    $ cd /home/project/tisdk/downloads/
    $ tar xvf $HOME/Downloads/am335x-evm-linux-sdk-arago-src-04.00.00.04.tar.xz
    $ am335x-evm-linux-sdk-arago-src-04.00.00.04/get_build_sources.sh am335x-evm-linux-sdk-arago-src-04.00.00.04/source_pkg_list.txt

  • I followed all these steps , everything went flawlessly. Then I issued the bitbake command as you mentioned in your first reply.
    MACHINE=am335x-evm bitbake nginx

    but the build for nginx still fails. specifically in openssl ,

    here is a trace.


    | fi
    | make[2]: Entering directory '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
    | [ -z "" ] || arm-linux-gnueabihf-gcc -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard --sysroot=/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -isystem/home/project/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0=/usr/src/debug/openssl/1.0.2j-r0.arago0 -fdebug-prefix-map=/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux= -fdebug-prefix-map=/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm= -Wall -Wa,--noexecstack -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -Iinclude \
    | -DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso \
    | fips_premain.c fipscanister.o \
    | libcrypto.a -lgcc -ldl
    | ERROR: oe_runmake failed
    | make[3]: Entering directory '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
    | make[4]: Entering directory '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
    | libcrypto.a: member libcrypto.a(t_x509.o) in archive is not an object
    | collect2: error: ld returned 1 exit status
    | Makefile.shared:171: recipe for target 'link_a.gnu' failed
    | make[4]: *** [link_a.gnu] Error 1
    | make[4]: Leaving directory '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
    | Makefile:357: recipe for target 'do_linux-shared' failed
    | make[3]: *** [do_linux-shared] Error 2
    | make[3]: Leaving directory '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
    | Makefile:310: recipe for target 'libcrypto.so.1.0.0' failed
    | make[2]: *** [libcrypto.so.1.0.0] Error 2
    | make[2]: Leaving directory '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j'
    | Makefile:109: recipe for target 'shared' failed
    | make[1]: *** [shared] Error 2
    | make[1]: Leaving directory '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/crypto'
    | Makefile:287: recipe for target 'build_crypto' failed
    | make: *** [build_crypto] Error 1
    | WARNING: /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/temp/run.do_compile.6281:1 exit 1 from 'exit 1'
    | ERROR: Function failed: do_compile (log file is located at /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/temp/log.do_compile.6281)
    ERROR: Task (/home/project/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb:do_compile) failed with exit code '1'
    ERROR: linux-ti-staging-4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3 do_compile: oe_runmake failed
    ERROR: linux-ti-staging-4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3 do_compile: Function failed: do_compile (log file is located at /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3/temp/log.do_compile.6280)
    ERROR: Logfile of failure stored in: /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3/temp/log.do_compile.6280
    Log data follows:
    | DEBUG: Executing shell function do_compile
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E zImage CC=arm-linux-gnueabihf-gcc -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-linux-gnueabihf-ld.bfd LOADADDR=0x80008000
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E am335x-evm.dtb
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E am335x-evmsk.dtb
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E am335x-bone.dtb
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E am335x-boneblack.dtb
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E am335x-bonegreen.dtb
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E am335x-icev2.dtb
    | NOTE: make -j 4 HOSTCC=gcc HOSTCPP=gcc -E am335x-icev2-pru-excl-uio.dtb
    | ERROR: oe_runmake failed
    | CHK include/config/kernel.release
    | GEN ./Makefile
    | CHK include/generated/uapi/linux/version.h
    | Using /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work-shared/am335x-evm/kernel-source as source for kernel
    | CHK include/generated/utsrelease.h
    | CC scripts/mod/empty.o
    | CC scripts/mod/devicetable-offsets.s
    | MKELF scripts/mod/elfconfig.h
    | HOSTCC scripts/mod/modpost.o
    | GEN scripts/mod/devicetable-offsets.h
    | HOSTCC scripts/mod/sumversion.o
    | HOSTCC scripts/mod/file2alias.o
    | HOSTLD scripts/mod/modpost
    | CHK include/generated/timeconst.h
    | CHK include/generated/bounds.h
    | CHK include/generated/asm-offsets.h
    | CALL /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work-shared/am335x-evm/kernel-source/scripts/checksyscalls.sh
    | CHK include/generated/compile.h
    | CHK kernel/config_data.h
    | DTC drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb
    | DTB drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S
    | AS drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.o
    | LD drivers/gpu/drm/tilcdc/built-in.o
    | rm drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S
    | LD drivers/gpu/drm/built-in.o
    | LD drivers/gpu/built-in.o
    | LD drivers/built-in.o
    | LD vmlinux.o
    | MODPOST vmlinux.o
    | GEN .version
    | CHK include/generated/compile.h
    | UPD include/generated/compile.h
    | CC init/version.o
    | LD init/built-in.o
    | KSYM .tmp_kallsyms1.o
    | KSYM .tmp_kallsyms2.o
    | LD vmlinux
    | SORTEX vmlinux
    | SYSMAP System.map
    | OBJCOPY arch/arm/boot/Image
    | Kernel: arch/arm/boot/Image is ready
    | LZMA arch/arm/boot/compressed/piggy_data
    | AS arch/arm/boot/compressed/piggy.o
    | LD arch/arm/boot/compressed/vmlinux
    | OBJCOPY arch/arm/boot/zImage
    | Kernel: arch/arm/boot/zImage is ready
    | CC scripts/mod/empty.o
    | CC scripts/mod/devicetable-offsets.s
    | MKELF scripts/mod/elfconfig.h
    | HOSTCC scripts/mod/modpost.o
    | HOSTCC scripts/mod/sumversion.o
    | GEN scripts/mod/devicetable-offsets.h
    | HOSTCC scripts/mod/file2alias.o
    | HOSTLD scripts/mod/modpost
    | make[3]: *** No rule to make target 'arch/arm/boot/dts/am335x-icev2-pru-excl-uio.dtb'. Stop.
    | arch/arm/Makefile:336: recipe for target 'am335x-icev2-pru-excl-uio.dtb' failed
    | make[2]: *** [am335x-icev2-pru-excl-uio.dtb] Error 2
    | Makefile:150: recipe for target 'sub-make' failed
    | make[1]: *** [sub-make] Error 2
    | Makefile:24: recipe for target '__sub-make' failed
    | make: *** [__sub-make] Error 2
    | WARNING: /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3/temp/run.do_compile.6280:1 exit 1 from 'exit 1'
    | ERROR: Function failed: do_compile (log file is located at /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3/temp/log.do_compile.6280)
    ERROR: Task (/home/project/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.9.bb:do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 649 tasks of which 634 didn't need to be rerun and 2 failed.

    Summary: 2 tasks failed:
    /home/project/tisdk/sources/oe-core/meta/recipes-connectivity/openssl/openssl_1.0.2j.bb:do_compile
    /home/project/tisdk/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_4.9.bb:do_compile
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
    project@ubuntu-acer:~/tisdk/build$
    project@ubuntu-acer:~/tisdk/build$
  • Can you post the feedbacks from these commands?

    $ ar x /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/libcrypto.a
    $ file /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/t_x509.o
    $ ls -al /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3/git/arch/arm/boot/dts/am335x-icev2-pru-excl-uio.dts
    $ ls -al /bin/sh
  • Here is the result for all commands

    project@ubuntu-acer:~/tisdk/build$
    project@ubuntu-acer:~/tisdk/build$ ar x /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/libcrypto.a
    project@ubuntu-acer:~/tisdk/build$ file /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/t_x509.o
    /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/t_x509.o: cannot open `/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/t_x509.o' (No such file or directory)
    project@ubuntu-acer:~/tisdk/build$ ls -al /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3/git/arch/arm/boot/dts/am335x-icev2-pru-excl-uio.dts
    ls: cannot access '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/4.9.28+gitAUTOINC+eed43d1050-r22c.arago5.tisdk3/git/arch/arm/boot/dts/am335x-icev2-pru-excl-uio.dts': No such file or directory
    project@ubuntu-acer:~/tisdk/build$ ls -al /bin/sh
    lrwxrwxrwx 1 root root 4 Jul 12 07:12 /bin/sh -> bash
    project@ubuntu-acer:~/tisdk/build$

  • I need the file command ran on t_x509.o file. Can you find it. It should be at /home/project/tisdk/build/ if you ran the ar x /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/libcrypto.a from project@ubuntu-acer:~/tisdk/build$ location.

  • project@ubuntu-acer:~/tisdk/build$ ls -la t_x509.o
    -rw-r--r-- 1 project project 0 Jul 14 07:12 t_x509.o
    project@ubuntu-acer:~/tisdk/build$ file t_x509.o
    t_x509.o: empty
    project@ubuntu-acer:~/tisdk/build$ ar x /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/libcrypto.a
    project@ubuntu-acer:~/tisdk/build$ ls -la t_x509.o
    -rw-r--r-- 1 project project 0 Jul 17 16:12 t_x509.o
    project@ubuntu-acer:~/tisdk/build$ file t_x509.o
    t_x509.o: empty
    project@ubuntu-acer:~/tisdk/build$

  • It should be:
    project@ubuntu-acer:~$ file t_x509.o
    t_x509.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped

  • Hi Kemal,
    My post on Jul 17 Shows that the file is empty.
  • Can you attach this log?
    /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/temp/log.do_compile

  • There is no such directory

    project@ubuntu-acer:~$ ls /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/temp/log.do_compile
    ls: cannot access '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/temp/log.do_compile': No such file or directory

    project@ubuntu-acer:~$ ls /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/temp/
    ls: cannot access '/home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/temp/': No such file or directory

    project@ubuntu-acer:~$ ls /home/project/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/openssl/1.0.2j-r0.arago0/openssl-1.0.2j/
    ACKNOWLEDGMENTS  e_os.h           libcrypto.a      openssl.pc
    apps/            FAQ              libcrypto.pc     openssl.spec
    appveyor.yml     GitConfigure     libssl.pc        os2/
    bugs/            GitMake          LICENSE          patches/
    certs/           include/         MacOS/           .pc/
    CHANGES          INSTALL          Makefile         PROBLEMS
    CHANGES.SSLeay   install.com      Makefile.bak     README
    config           INSTALL.DJGPP    Makefile.org     README.ASN1
    Configure        INSTALL.MacOS    Makefile.shared  README.ENGINE
    CONTRIBUTING     INSTALL.NW       makevms.com      shlib/
    crypto/          INSTALL.OS2      ms/              ssl/
    demos/           INSTALL.VMS      Netware/         test/
    doc/             INSTALL.W32      NEWS             tools/
    engines/         INSTALL.W64      openssl.doxy     util/
    e_os2.h          INSTALL.WCE      openssl.ld       VMS/

  • Hi Kemal,
    This issue is becoming a high priority issue for me, and I am starting to feel the pressure and requests for ETA, etc. from above.
    Going back to my original problem report. I was able to get nginx and openssl and compile them with certain mofidication, meaning modifying the 64 bit max numbers to a 32 bit. but unfortunately ssl did not operate correctly for me.
    Based on your original instructions, bitbake should have the whole thing for me automatically but it does not.
    How is the 64 bit max number issue resolved when bitbake is used? Maybe I can apply to same resolution to my own compile steps ...

    Regards
    Ahmad
  • I have attached mine https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/354/2352.nginx_5F00_1.10.1_2D00_r0_5F00_armv7ahf_2D00_neon.ipk. You can use it. About your build try on different host or virtual machine. You have the two sources, compare them.