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.

AM335x Building on a Virtualbox VM

Hi;

I'm reading the volumes of information about building the sdk for the am335x and am having problems building this even after following the guidelines at:

.  Here is what I get as a result.  Does anyone have comments or suggestions?

Regards...

mmccomb@onion:~/tisdk/build$ MACHINE=am335x-evm bitbake core-image-minimal
NOTE: Started PRServer with DBfile: /home/mmccomb/tisdk/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 33332, PID: 6365
Parsing recipes: 100% |#########################################################| Time: 19:43:43
Parsing of 1826 .bb files complete (0 cached, 1826 parsed). 2269 targets, 227 skipped, 0 masked, 0 errors.
WARNING: No recipes available for:
  /home/mmccomb/tisdk/sources/meta-arago/meta-arago-distro/recipes-connectivity/openssl/openssl_1.0.1m.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.26.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-15.04"
TARGET_SYS        = "arm-linux-gnueabi"
MACHINE           = "am335x-evm"
DISTRO            = "arago"
DISTRO_VERSION    = "2015.05"
TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa8"
TARGET_FPU        = "vfp-neon"
meta-arago-distro
meta-arago-extras = "daisy:dc89e06d2a64f33d9e9662e6f7fe1f8466ff167c"
meta-qt5          = "(detachedfrom17eb158):17eb158c6d2cd290b054b5bd54311aa44a02d04d"
toolchain-layer   
meta-networking   
meta-ruby         
meta-oe           = "daisy:d3d14d3fcca7fcde362cf0b31411dc4eea6d20aa"
meta-ti           = "daisy:090b02a104924886afd0fa79be7b5d08eebf071f"
meta-linaro-toolchain = "daisy:06008235ca752fea678953e85adaa29a491d246b"
meta              = "daisy:e1a2540227250d854d5bba278634bcc9e7572cda"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL zlib.net/.../pigz-2.3.1.tar.gz, attempting MIRRORS if available
ERROR: Function failed: do_compile (log file is located at /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/pseudo-native/1.6.2-r0/temp/log.do_compile.9994)
ERROR: Logfile of failure stored in: /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/pseudo-native/1.6.2-r0/temp/log.do_compile.9994
Log data follows:
| DEBUG: Executing shell function do_compile
| WARNING: Can't find stubs-32.h, but usually need it to build 32-bit libpseudo.
| WARNING: If the build fails, install 32-bit developer packages.
| WARNING: If you are using 32-bit binaries, the 32-bit libpseudo is NOT optional.
| make: *** No rule to make target 'distclean'.  Stop.
| WARNING: Guessing architecture CFLAGS '-m32'.
| If you need specific flags, use --cflags.
| SQLite header for version 3008003 found in /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr.
| getfattr runs, enabling extended attribute support
| Enabling in-memory database by default.
| NOTE: make -j 1 -e MAKEFLAGS= libpseudo
| mkdir -p lib/pseudo/lib
| CC="gcc  -isystem/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include -O2 -pipe -pipe -std=gnu99 -Wall -W -Wextra -fPIC -D_LARGEFILE64_SOURCE -D_ATFILE_SOURCE -m32 -DPSEUDO_PREFIX='"/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr"' -DPSEUDO_SUFFIX='""' -DPSEUDO_BINDIR='"bin"' -DPSEUDO_LIBDIR='"lib/pseudo/lib"' -DPSEUDO_LOCALSTATEDIR='"var/pseudo"' -DPSEUDO_VERSION='"1.6.2"' -DUSE_MEMORY_DB -DPSEUDO_FORCE_ASYNC -DPSEUDO_PASSWD_FALLBACK='""' -O2 -g -L/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/lib -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include " ./makewrappers "xattr=true"
| Checking for old/new clone mechanics... Can't tell, omitting clone(2) support.
| Warning: Can't compile trivial program using <attr/xattr.h>.
|          xattr support will require that header.
| common
| ports/common/wrapfuncs.in: .......
| linux
| ports/linux/wrapfuncs.in: ....................................................
| unix
| ports/unix/wrapfuncs.in: .................................................................
| uids_generic
| ports/uids_generic/wrapfuncs.in: ........................
| linux/xattr
| ports/linux/xattr/wrapfuncs.in: ............
| Writing functions... Warning: lchown from linux overriding unix
| done.  Cleaning up.
| ./maketables enums/*.in
| enums/debug_type.in: Flags: set for debug_type
| type: debug_type_t (prefix 'PDBG_ENUM')
|   extra column: unsigned char symbolic (default '\0')
|   extra column: const char * description (default NULL)
|    consistency        file               op                 pid
|    client             server             db                 syscall
|    env                chroot             path               sql
|    wrapper            ipc                invoke             benchmark
|    verbose            xattr
|
| enums/msg_type.in: type: msg_type_t (prefix 'PSEUDO_MSG_ENUM')
|    ping               shutdown           op                 ack
|    nak                fastop
|
| enums/op.in: type: op_t (prefix 'OP_ENUM')
|   extra column: int wait (default 0)
|    chdir              chmod              chown              chroot
|    close              creat              dup                fchmod
|    fchown             fstat              link               mkdir
|    mknod              open               rename             stat
|    unlink             symlink            exec               may-unlink
|    did-unlink         cancel-unlink      get-xattr          list-xattr
|    remove-xattr       set-xattr          create-xattr       replace-xattr
|
| enums/query_field.in: type: query_field_t (prefix 'PSQF_ENUM')
|    access             client             dev                fd
|    ftype              gid                id                 inode
|    mode               op                 order              path
|    perm               program            result             severity
|    stamp              tag                text               type
|    uid
|
| enums/query_type.in: type: query_type_t (prefix 'PSQT_ENUM')
|   extra column: const char * sql (default "LITTLE BOBBY TABLES")
|    exact              less               greater            bitand
|    notequal           like               notlike            sqlpat
|
| enums/res.in: type: res_t (prefix 'RESULT_ENUM')
|    succeed            fail               error
|
| enums/sev.in: type: sev_t (prefix 'SEVERITY_ENUM')
|    debug              info               warn               error
|    critical
|
| Writing datatypes... done.  Cleaning up.
| gcc  -fno-strict-aliasing -isystem/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include -O2 -pipe -pipe -std=gnu99 -Wall -W -Wextra -fPIC -D_LARGEFILE64_SOURCE -D_ATFILE_SOURCE -m32 -DPSEUDO_PREFIX='"/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr"' -DPSEUDO_SUFFIX='""' -DPSEUDO_BINDIR='"bin"' -DPSEUDO_LIBDIR='"lib/pseudo/lib"' -DPSEUDO_LOCALSTATEDIR='"var/pseudo"' -DPSEUDO_VERSION='"1.6.2"' -DUSE_MEMORY_DB -DPSEUDO_FORCE_ASYNC -DPSEUDO_PASSWD_FALLBACK='""' -O2 -g -L/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/lib -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include  -D_GNU_SOURCE -c -o pseudo_wrappers.o pseudo_wrappers.c
| In file included from /usr/include/assert.h:35:0,
|                  from pseudo_wrappers.c:20:
| /usr/include/features.h:364:25: fatal error: sys/cdefs.h: No such file or directory
|  #  include <sys/cdefs.h>
|                          ^
| compilation terminated.
| Makefile:150: recipe for target 'pseudo_wrappers.o' failed
| make: *** [pseudo_wrappers.o] Error 1
| ERROR: oe_runmake failed
| WARNING: Can't find stubs-32.h, but usually need it to build 32-bit libpseudo.
| WARNING: If the build fails, install 32-bit developer packages.
| WARNING: If you are using 32-bit binaries, the 32-bit libpseudo is NOT optional.
| ERROR: Function failed: do_compile (log file is located at /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/pseudo-native/1.6.2-r0/temp/log.do_compile.9994)
ERROR: Task 69 (virtual:native:/home/mmccomb/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_1.6.2.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 126 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  virtual:native:/home/mmccomb/tisdk/sources/oe-core/meta/recipes-devtools/pseudo/pseudo_1.6.2.bb, do_compile
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
mmccomb@onion:~/tisdk/build$

..............................

I'm running this:

uname -a
Linux onion 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Thanks in advance...

  • Hi,

    I will ask the SW team to take a look at this.
  • Hi Mike,

    Try the hacks proposed here:
    processors.wiki.ti.com/.../GLSDK_FAQs

    Best Regards,
    Yordan
  • I added a change 'not to use' -> NO32LIBS = "1" the 32 bit libraries with no luck. But, the build did actually get farther along.
    Getting closer.

    | gcc -DHAVE_CONFIG_H -I. -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas -I. -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas -I../bfd -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/config -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/../include -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/.. -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/../bfd -DLOCALEDIR="\"/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/locale\"" -isystem/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -isystem/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include -O2 -pipe -c /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/stabs.c
    | gcc -DHAVE_CONFIG_H -I. -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas -I. -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas -I../bfd -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/config -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/../include -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/.. -I/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/../bfd -DLOCALEDIR="\"/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/share/locale\"" -isystem/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -isystem/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/include -O2 -pipe -c /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c
    | In file included from /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/as.h:95:0,
    | from /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c:25:
    | /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c: In function 'subseg_change':
    | ../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
    | #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
    | ^
    | /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c:70:7: note: in expansion of macro 'bfd_set_section_userdata'
    | bfd_set_section_userdata (stdoutput, seg, seginfo);
    | ^
    | /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c: In function 'subseg_get':
    | ../bfd/bfd.h:304:75: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
    | #define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
    | ^
    | /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/gas/subsegs.c:172:7: note: in expansion of macro 'bfd_set_section_userdata'
    | bfd_set_section_userdata (stdoutput, secptr, seginfo);
    | ^
    | cc1: all warnings being treated as errors
    | Makefile:895: recipe for target 'subsegs.o' failed
    | make[4]: *** [subsegs.o] Error 1
    | make[4]: Leaving directory '/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux/gas'
    | Makefile:2165: recipe for target 'all-recursive' failed
    | make[3]: *** [all-recursive] Error 1
    | make[3]: Leaving directory '/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux/gas'
    | Makefile:682: recipe for target 'all' failed
    | make[2]: *** [all] Error 2
    | make[2]: Leaving directory '/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux/gas'
    | Makefile:4710: recipe for target 'all-gas' failed
    | make[1]: *** [all-gas] Error 2
    | make[1]: Leaving directory '/home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/binutils-linaro-2.24-2014.03/build.x86_64-linux.x86_64-linux'
    | Makefile:830: recipe for target 'all' failed
    | make: *** [all] Error 2
    | ERROR: oe_runmake failed
    | WARNING: /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/temp/run.do_compile.4785:1 exit 1 from
    | exit 1
    | ERROR: Function failed: do_compile (log file is located at /home/mmccomb/tisdk/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/linaro-2.24-r2014.03/temp/log.do_compile.4785)
    ERROR: Task 508 (virtual:native:/home/mmccomb/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/binutils/binutils_linaro-2.24.bb, do_compile) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 285 tasks of which 125 didn't need to be rerun and 1 failed.
    NOTE: Writing buildhistory
    Waiting for 0 running tasks to finish:

    *** Please tell me who you are.

    Run

    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"

    to set your account's default identity.
    Omit --global to set the identity only in this repository.

    fatal: unable to auto-detect email address (got 'mmccomb@onion.(none)')

    Summary: 1 task failed:
    virtual:native:/home/mmccomb/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/binutils/binutils_linaro-2.24.bb, do_compile
    Summary: There was 1 WARNING message shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    mmccomb@onion:~/tisdk/build$

    Thanks again for your comments...
  • Just reviewing the error again. It seems that the file:

    sources/meta-arago/meta-arago-extras/recipes-kernel/cryptodev/cryptodev_1.6.bb

    is missing in my distribution. Was I supposed to add this in as an apt-get? or do I need to remove this reference in the build somehow?

    Michael
  • Mike McC said:
    Run

    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"

    Have you ran the suggested commands, in order to set-up your git configuration.