Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yocto setup #283

Open
FlYnN91 opened this issue May 29, 2018 · 1 comment
Open

Yocto setup #283

FlYnN91 opened this issue May 29, 2018 · 1 comment

Comments

@FlYnN91
Copy link

FlYnN91 commented May 29, 2018

Hi, I am trying to setup Monkey on yocto following the guide from here, but it seems that it fails to build when executing bitbake monkey.

This is the build output:

user@machine:/opt/PHYTEC_BSPs/am335x/build$ bitbake monkey
Loading cache: 100% |#################################################################| Time: 0:00:00
Loaded 2745 entries from dependency cache.
NOTE: /opt/PHYTEC_BSPs/am335x/sources/poky/meta/recipes-extended/monkey/monkey_1.5.3.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /opt/PHYTEC_BSPs/am335x/sources/poky/meta/recipes-extended/monkey/monkey_1.5.2.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /opt/PHYTEC_BSPs/am335x/sources/poky/meta/recipes-extended/monkey/monkey_1.5.4.bb: base_contains is deprecated, please use bb.utils.contains instead.
NOTE: /opt/PHYTEC_BSPs/am335x/sources/poky/meta/recipes-extended/monkey/monkey_1.5.1.bb: base_contains is deprecated, please use bb.utils.contains instead.
Parsing recipes: 100% |###############################################################| Time: 0:00:00
Parsing of 2037 .bb files complete (2031 cached, 6 parsed). 2750 targets, 397 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal"
TARGET_SYS        = "arm-phytec-linux-gnueabi"
MACHINE           = "phycore-am335x-1"
DISTRO            = "yogurt"
DISTRO_VERSION    = "BSP-Yocto-AM335x-PD17.1.1"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard       cortexa8"
TARGET_FPU        = "hard"
meta              
meta-poky         = "HEAD:e2fcc721c2af8e2785a91eaceea1d81f503ea2ec"
meta-oe           
meta-networking   
meta-python       
meta-multimedia   = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6"
workspace         = "<unknown>:<unknown>"
meta-gstreamer1.0 = "HEAD:2c74a61e11c46d8bd5ebe4642292bc145e33d6d1"
meta-nodejs       = "HEAD:eec531e97a17bfd406f3bf76dee4057dcf5286a4"
meta-phytec       = "HEAD:72bd4d8b3f08fb51d591a4be4f63f21d53c1d71c"
meta-qt5          = "HEAD:2c9f0e4eb0e9097f6f872ec1e1d81768a8ab5f1b"
meta-yogurt       = "HEAD:cb43dd6f3bb1e149af67006feabc980121f2c995"
meta-avid         = "custom_machine:dc74a15a220579afdb7bbbcf10b24e88d05f351a"

Initialising tasks: 100% |############################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: monkey-1.5.4-r0 do_configure: configure failed
ERROR: monkey-1.5.4-r0 do_configure: Function failed: do_configure (log file is located at /opt/PHYTEC_BSPs/am335x/build/tmp/work/cortexa8hf-neon-phytec-linux-gnueabi/monkey/1.5.4-r0/temp/log.do_configure.3509)
ERROR: Logfile of failure stored in: /opt/PHYTEC_BSPs/am335x/build/tmp/work/cortexa8hf-neon-phytec-linux-gnueabi/monkey/1.5.4-r0/temp/log.do_configure.3509
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_configure
| NOTE: Running ./configure  --build=x86_64-linux 		  --host=arm-phytec-linux-gnueabi 	  --target=arm-phytec-linux-gnueabi 		  --prefix=/usr 		  --exec_prefix=/usr   --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/libexec 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		  --with-libtool-sysroot=/opt/PHYTEC_BSPs/am335x/build/tmp/sysroots/phycore-am335x-1 --plugdir=/usr/lib/monkey/                 --logdir=/var/log/monkey/                 --pidfile=/var/run/monkey.pid                 --default-user=www-data                 --datadir=/var/www/monkey/                 --sysconfdir=/etc/monkey/                 --enable-plugins=*                 --disable-plugins=polarssl                 --debug                 --malloc-libc --disable-static
| NOTE: The following config.log files may provide further information.
| NOTE:
| ERROR: configure failed
| Usage: ./configure [OPTION]... [VAR=VALUE]...
| 
| Optional Commands: 
|   --help        Display this help and exit
|   --version     Display version information and exit
| 
| Compiler and debug Features: 
|   --debug                 Compile Monkey with debugging symbols
|   --trace                 Enable trace messages (don't use in production)
|   --no-backtrace          Disable backtrace feature
|   --linux-trace           Enable Linux Trace Toolkit
|   --musl-mode             Enable musl compatibility mode
|   --uclib-mode            Enable uClib compatibility mode
|   --malloc-libc           Use system default memory allocator (default is jemalloc)
|   --platform=PLATFORM     Target platform: 'generic' or 'android' (default: generic)
| 
| Shared library options: 
|   --enable-shared         Build Monkey as a shared library in addition to a stand-alone server
|   --enable-relaxed-plugins Allow the application to make the library load arbitrary plugins.
|                           WARNING security risk, do not enable in distro packages!
| 
| Installation Directories: 
|   --prefix=PREFIX         Root prefix directory
|   --bindir=BINDIR         Binary files (executables)
|   --libdir=LIBDIR         Libraries
|   --incdir=INCDIR         Header install path
|   --sysconfdir=SYSCONFDIR Configuration files
|   --datadir=DATADIR       Specific Monkey data files
|   --mandir=MANDIR         Manpages - documentation
|   --logdir=LOGDIR         Log files
|   --pidfile=PIDFILE       Path to file to store PID
|   --plugdir=PLUGDIR       Plugins directory path
|   --systemddir[=DIR]      Systemd directory path
|   --enable-plugins=a,b    Enable the listed plugins
|   --disable-plugins=a,b   Disable the listed plugins
|   --only-accept           Use only accept(2)
|   --only-accept4          Use only accept4(2) (default and preferred)
|   --safe-free             Force Monkey to free resources before exit
| 
| Override Server Configuration: 
|   --default-port=PORT     Override default TCP port (default: 2001)
|   --default-user=USER     Override default web user (default: nobody)
| 
| ERROR: Function failed: do_configure (log file is located at /opt/PHYTEC_BSPs/am335x/build/tmp/work/cortexa8hf-neon-phytec-linux-gnueabi/monkey/1.5.4-r0/temp/log.do_configure.3509)
ERROR: Task (/opt/PHYTEC_BSPs/am335x/sources/poky/meta/recipes-extended/monkey/monkey_1.5.4.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 409 tasks of which 404 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /opt/PHYTEC_BSPs/am335x/sources/poky/meta/recipes-extended/monkey/monkey_1.5.4.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
user@machine:/opt/PHYTEC_BSPs/am335x/build$

The output of the said log file is identical, but I thought to post it anyway.

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Executing shell function do_configure
NOTE: Running ./configure  --build=x86_64-linux 		  --host=arm-phytec-linux-gnueabi 		  --target=arm-phytec-linux-gnueabi 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/libexec 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --disable-dependency-tracking 		  --with-libtool-sysroot=/opt/PHYTEC_BSPs/am335x/build/tmp/sysroots/phycore-am335x-1 --plugdir=/usr/lib/monkey/                 --logdir=/var/log/monkey/                 --pidfile=/var/run/monkey.pid                 --default-user=www-data                 --datadir=/var/www/monkey/                 --sysconfdir=/etc/monkey/                 --enable-plugins=*                 --disable-plugins=polarssl                 --debug                 --malloc-libc --disable-static  
NOTE: The following config.log files may provide further information.
NOTE: 
ERROR: configure failed
Usage: ./configure [OPTION]... [VAR=VALUE]...

�[1;37mOptional Commands: �[0m
  --help        Display this help and exit
  --version     Display version information and exit

�[1;37mCompiler and debug Features: �[0m
  --debug                 Compile Monkey with debugging symbols
  --trace                 Enable trace messages (don't use in production)
  --no-backtrace          Disable backtrace feature
  --linux-trace           Enable Linux Trace Toolkit
  --musl-mode             Enable musl compatibility mode
  --uclib-mode            Enable uClib compatibility mode
  --malloc-libc           Use system default memory allocator (default is jemalloc)
  --platform=PLATFORM     Target platform: 'generic' or 'android' (default: generic)

�[1;37mShared library options: �[0m
  --enable-shared         Build Monkey as a shared library in addition to a stand-alone server
  --enable-relaxed-plugins Allow the application to make the library load arbitrary plugins.
                          WARNING security risk, do not enable in distro packages!

�[1;37mInstallation Directories: �[0m
  --prefix=PREFIX         Root prefix directory
  --bindir=BINDIR         Binary files (executables)
  --libdir=LIBDIR         Libraries
  --incdir=INCDIR         Header install path
  --sysconfdir=SYSCONFDIR Configuration files
  --datadir=DATADIR       Specific Monkey data files
  --mandir=MANDIR         Manpages - documentation
  --logdir=LOGDIR         Log files
  --pidfile=PIDFILE       Path to file to store PID
  --plugdir=PLUGDIR       Plugins directory path
  --systemddir[=DIR]      Systemd directory path
  --enable-plugins=a,b    Enable the listed plugins
  --disable-plugins=a,b   Disable the listed plugins
  --only-accept           Use only accept(2)
  --only-accept4          Use only accept4(2) (default and preferred)
  --safe-free             Force Monkey to free resources before exit

�[1;37mOverride Server Configuration: �[0m
  --default-port=PORT     Override default TCP port (default: 2001)
  --default-user=USER     Override default web user (default: nobody)

ERROR: Function failed: do_configure (log file is located at /opt/PHYTEC_BSPs/am335x/build/tmp/work/cortexa8hf-neon-phytec-linux-gnueabi/monkey/1.5.4-r0/temp/log.do_configure.3509)
@mr-mop
Copy link

mr-mop commented Jun 27, 2018

You are getting the help text from the configure script, it is trying to tell you something. Perhaps it is suggesting that your configure command line options are wrong?

You're using v1.5.4, so downloading the tar file of that release, and manually running the configure command with the options you specified gives the same result.

Going through your options to configure individually, it appears the offending option is --disable-static

Remove that one and the configure step works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants