* tk 8.6.0: strange error: "oe_runmake: command not found"
@ 2014-01-30 11:57 Nick D'Ademo
2014-02-07 12:11 ` Nick D'Ademo
0 siblings, 1 reply; 11+ messages in thread
From: Nick D'Ademo @ 2014-01-30 11:57 UTC (permalink / raw)
To: openembedded-devel
I'm encountering a strange error at the install step with the tk 8.6.0
recipe (full log below). Does anyone have any ideas on this?
This recipe was compiling fine before (and has not been recently changed -
last change Dec 5 2013) so I'm not sure what has broken it...
Thanks,
Nick
ERROR: Function failed: do_install (log file is located at
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
> ERROR: Logfile of failure stored in:
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831
> Log data follows:
> | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
> 'bit-64', 'x86_64-linux', 'common']
> | DEBUG: Executing shell function do_install
> |
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:
> line 269: oe_runmake: command not found
> | WARNING:
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:1
> exit 127 from
> | oe_runmake
> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> install
> | ERROR: Function failed: do_install (log file is located at
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
> ERROR: Task 2098
> (/home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
> tk_8.6.0.bb, do_install) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 6752 tasks of which 6751 didn't need to be
> rerun and 1 failed.
> No currently running tasks (2879 of 6817)
>
> Summary: 1 task failed:
> /home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
> tk_8.6.0.bb, do_install
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-01-30 11:57 tk 8.6.0: strange error: "oe_runmake: command not found" Nick D'Ademo
@ 2014-02-07 12:11 ` Nick D'Ademo
2014-02-07 13:06 ` Paul Barker
0 siblings, 1 reply; 11+ messages in thread
From: Nick D'Ademo @ 2014-02-07 12:11 UTC (permalink / raw)
To: openembedded-devel
No progress on working this one out unfortunately...
This is still a build show-stopper for me - anyone have any ideas?
Thanks,
Nick
On Thu, Jan 30, 2014 at 10:57 PM, Nick D'Ademo <nickdademo@gmail.com> wrote:
> I'm encountering a strange error at the install step with the tk 8.6.0
> recipe (full log below). Does anyone have any ideas on this?
> This recipe was compiling fine before (and has not been recently changed -
> last change Dec 5 2013) so I'm not sure what has broken it...
>
> Thanks,
> Nick
>
> ERROR: Function failed: do_install (log file is located at
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
>> ERROR: Logfile of failure stored in:
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831
>> Log data follows:
>> | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
>> 'bit-64', 'x86_64-linux', 'common']
>> | DEBUG: Executing shell function do_install
>> |
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:
>> line 269: oe_runmake: command not found
>> | WARNING:
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:1
>> exit 127 from
>> | oe_runmake
>> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
>> install
>> | ERROR: Function failed: do_install (log file is located at
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
>> ERROR: Task 2098
>> (/home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
>> tk_8.6.0.bb, do_install) failed with exit code '1'
>> NOTE: Tasks Summary: Attempted 6752 tasks of which 6751 didn't need to be
>> rerun and 1 failed.
>> No currently running tasks (2879 of 6817)
>>
>> Summary: 1 task failed:
>> /home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
>> tk_8.6.0.bb, do_install
>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>>
>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-02-07 12:11 ` Nick D'Ademo
@ 2014-02-07 13:06 ` Paul Barker
2014-02-07 13:53 ` Nick D'Ademo
0 siblings, 1 reply; 11+ messages in thread
From: Paul Barker @ 2014-02-07 13:06 UTC (permalink / raw)
To: Openembedded Discussion
On 7 February 2014 12:11, Nick D'Ademo <nickdademo@gmail.com> wrote:
> No progress on working this one out unfortunately...
> This is still a build show-stopper for me - anyone have any ideas?
>
> Thanks,
> Nick
>
>
> On Thu, Jan 30, 2014 at 10:57 PM, Nick D'Ademo <nickdademo@gmail.com> wrote:
>
>> I'm encountering a strange error at the install step with the tk 8.6.0
>> recipe (full log below). Does anyone have any ideas on this?
>> This recipe was compiling fine before (and has not been recently changed -
>> last change Dec 5 2013) so I'm not sure what has broken it...
>>
>> Thanks,
>> Nick
>>
>> ERROR: Function failed: do_install (log file is located at
>>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
>>> ERROR: Logfile of failure stored in:
>>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831
>>> Log data follows:
>>> | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
>>> 'bit-64', 'x86_64-linux', 'common']
>>> | DEBUG: Executing shell function do_install
>>> |
>>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:
>>> line 269: oe_runmake: command not found
>>> | WARNING:
>>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:1
>>> exit 127 from
>>> | oe_runmake
>>> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
>>> install
>>> | ERROR: Function failed: do_install (log file is located at
>>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
>>> ERROR: Task 2098
>>> (/home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
>>> tk_8.6.0.bb, do_install) failed with exit code '1'
>>> NOTE: Tasks Summary: Attempted 6752 tasks of which 6751 didn't need to be
>>> rerun and 1 failed.
>>> No currently running tasks (2879 of 6817)
>>>
>>> Summary: 1 task failed:
>>> /home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
>>> tk_8.6.0.bb, do_install
>>> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>>>
>>
Have you looked at the log and run files mentioned?
/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831
contains all the commands for the do_install stage and should define
oe_runmake.
/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831
contains the output from running those commands.
The number after the final '.' is the pid so will change each time
bitbake runs that step.
If you can't spot anything in these files, send them to the mailing
list, maybe someone else can.
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-02-07 13:06 ` Paul Barker
@ 2014-02-07 13:53 ` Nick D'Ademo
2014-02-11 11:42 ` Paul Barker
0 siblings, 1 reply; 11+ messages in thread
From: Nick D'Ademo @ 2014-02-07 13:53 UTC (permalink / raw)
To: openembedded-devel, paul
Thanks Paul.
The run log has *oe_runmake* called via:
autotools_do_install() {
> *oe_runmake*'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> install
> # Info dir listing isn't interesting at this point so remove it if it
> exists.
> if [ -e
> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
> ]; then
> rm -f
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
> fi
>
> }
>
My base.bbclass (meta/classes) also has oe_runmake defined:
oe_runmake() {
> bbnote ${MAKE} ${EXTRA_OEMAKE} "$@"
> ${MAKE} ${EXTRA_OEMAKE} "$@" || die "oe_runmake failed"
> }
>
So I'm very puzzled as to why the recipe can't find oe_runmake...
On Sat, Feb 8, 2014 at 12:06 AM, Paul Barker <paul@paulbarker.me.uk> wrote:
> On 7 February 2014 12:11, Nick D'Ademo <nickdademo@gmail.com> wrote:
> > No progress on working this one out unfortunately...
> > This is still a build show-stopper for me - anyone have any ideas?
> >
> > Thanks,
> > Nick
> >
> >
> > On Thu, Jan 30, 2014 at 10:57 PM, Nick D'Ademo <nickdademo@gmail.com>
> wrote:
> >
> >> I'm encountering a strange error at the install step with the tk 8.6.0
> >> recipe (full log below). Does anyone have any ideas on this?
> >> This recipe was compiling fine before (and has not been recently
> changed -
> >> last change Dec 5 2013) so I'm not sure what has broken it...
> >>
> >> Thanks,
> >> Nick
> >>
> >> ERROR: Function failed: do_install (log file is located at
> >>>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
> >>> ERROR: Logfile of failure stored in:
> >>>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831
> >>> Log data follows:
> >>> | DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc',
> >>> 'bit-64', 'x86_64-linux', 'common']
> >>> | DEBUG: Executing shell function do_install
> >>> |
> >>>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:
> >>> line 269: oe_runmake: command not found
> >>> | WARNING:
> >>>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831:1
> >>> exit 127 from
> >>> | oe_runmake
> >>>
> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> >>> install
> >>> | ERROR: Function failed: do_install (log file is located at
> >>>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831)
> >>> ERROR: Task 2098
> >>> (/home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
> >>> tk_8.6.0.bb, do_install) failed with exit code '1'
> >>> NOTE: Tasks Summary: Attempted 6752 tasks of which 6751 didn't need to
> be
> >>> rerun and 1 failed.
> >>> No currently running tasks (2879 of 6817)
> >>>
> >>> Summary: 1 task failed:
> >>> /home/nick/poky/meta-openembedded/meta-oe/recipes-devtools/tcltk/
> >>> tk_8.6.0.bb, do_install
> >>> Summary: There was 1 ERROR message shown, returning a non-zero exit
> code.
> >>>
> >>
>
> Have you looked at the log and run files mentioned?
>
>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/run.do_install.1831
> contains all the commands for the do_install stage and should define
> oe_runmake.
>
>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/temp/log.do_install.1831
> contains the output from running those commands.
>
> The number after the final '.' is the pid so will change each time
> bitbake runs that step.
>
> If you can't spot anything in these files, send them to the mailing
> list, maybe someone else can.
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-02-07 13:53 ` Nick D'Ademo
@ 2014-02-11 11:42 ` Paul Barker
2014-02-11 13:01 ` Nick D'Ademo
0 siblings, 1 reply; 11+ messages in thread
From: Paul Barker @ 2014-02-11 11:42 UTC (permalink / raw)
To: Nick D'Ademo; +Cc: openembedded-devel
On 7 February 2014 13:53, Nick D'Ademo <nickdademo@gmail.com> wrote:
> Thanks Paul.
>
> The run log has oe_runmake called via:
>
>> autotools_do_install() {
>> oe_runmake
>> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
>> install
>> # Info dir listing isn't interesting at this point so remove it if it
>> exists.
>> if [ -e
>> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
>> ]; then
>> rm -f
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
>> fi
>>
>> }
>
You should see the definition of oe_runmake() in the run file itself,
possibly after the autotools_do_install() function. That run file
should include everything that is needed. Could you confirm that is
there, maybe post the whole run file for further investigation?
Thanks,
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-02-11 11:42 ` Paul Barker
@ 2014-02-11 13:01 ` Nick D'Ademo
2014-02-17 9:35 ` Paul Barker
0 siblings, 1 reply; 11+ messages in thread
From: Nick D'Ademo @ 2014-02-11 13:01 UTC (permalink / raw)
To: Paul Barker; +Cc: openembedded-devel
The only reference to "oe_runmake" in the run file is within the
autotools_do_install() function (as pasted in my previous message).
Complete run file below:
#!/bin/sh
>
> # Emit a useful diagnostic if something fails:
> bb_exit_handler() {
> ret=$?
> case $ret in
> 0) ;;
> *) case $BASH_VERSION in
> "") echo "WARNING: exit code $ret from a shell command.";;
> *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit $ret
> from
> "$BASH_COMMAND"";;
> esac
> exit $ret
> esac
> }
> trap 'bb_exit_handler' 0
> set -e
> export localstatedir="/var"
> export prefix="/usr"
> export LD="x86_64-poky-linux-ld
> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc "
> export RANLIB="x86_64-poky-linux-ranlib"
> export CXX="x86_64-poky-linux-g++ -m64 -march=corei7 -mtune=corei7
> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /lib64"
> export servicedir="/srv"
> export sysconfdir="/etc"
> export TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
> export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
> export STRINGS="x86_64-poky-linux-strings"
> export
> BUILD_CFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> -O2 -pipe"
> export base_prefix=""
> export CPP="x86_64-poky-linux-gcc -E
> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc -m64 -march=corei7
> -mtune=corei7 -mfpmath=sse -msse4.2"
> export
> PSEUDO_LOCALSTATEDIR="/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/pseudo/"
> export LOGNAME="nick"
> export STRIP="x86_64-poky-linux-strip"
> export datadir="/usr/share"
> export PKG_CONFIG_SYSROOT_DIR="/home/nick/poky/build/tmp/sysroots/nuc"
> export bindir="/usr/bin"
> export mandir="/usr/share/man"
> export
> CPPFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> export PATCH_GET="0"
> export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
> -Wl,-rpath,/usr/lib64/tcltk/8.6.0/lib"
> export MAKE="make"
> export
> PKG_CONFIG_PATH="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig:/home/nick/poky/build/tmp/sysroots/nuc/usr/share/pkgconfig"
> export LD_FOR_BUILD="ld "
> export AS="x86_64-poky-linux-as "
> export AR="x86_64-poky-linux-ar"
> export exec_prefix="/usr"
> export LC_ALL="C"
> export base_libdir="/lib64"
> export
> PATH="/home/nick/poky/scripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin/corei7-64-poky-linux:/home/nick/poky/build/tmp/sysroots/nuc/usr/bin/crossscripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/nick/poky/build/tmp/sysroots/i686-linux/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/bin:/home/nick/poky/scripts:/home/nick/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nick/workspace/tye-firmware/util/arm-2011.03/bin"
> export infodir="/usr/share/info"
> export BUILD_CC="gcc "
> export
> BUILD_LDFLAGS="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
> export BUILD_CCLD="gcc "
> export
> CFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> -O2 -pipe"
> export CC="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> export CPPFLAGS=""
> export OBJCOPY="x86_64-poky-linux-objcopy"
> export systemd_unitdir="/lib/systemd"
> export
> PKG_CONFIG_DIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> export CCLD="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> export base_bindir="/bin"
> export
> PKG_CONFIG_LIBDIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> export sbindir="/usr/sbin"
> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> export
> LDFLAGS_FOR_BUILD="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
> export docdir="/usr/share/doc"
> export TERM="xterm"
> export CCACHE_DISABLE="1"
> export
> BUILD_CXXFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> -O2 -pipe -fpermissive"
> export FC="x86_64-poky-linux-gfortran -m64 -march=corei7 -mtune=corei7
> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> export HOME="/home/nick"
> export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fpermissive
> -fvisibility-inlines-hidden"
> unset MACHINE
> export BUILD_STRIP="strip"
> export PSEUDO_PASSWD="/home/nick/poky/build/tmp/sysroots/nuc"
> export libexecdir="/usr/lib64/tk"
> export TARGET_CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
> -fpermissive"
> export includedir="/usr/include"
> export BUILD_LD="ld "
> export oldincludedir="/usr/include"
> export BUILD_RANLIB="ranlib"
> export BUILD_NM="nm"
> export BUILD_AR="ar"
> export BUILD_AS="as "
> export sharedstatedir="/com"
> export CONFIG_SITE="/home/nick/poky/meta/site/endian-little
> /home/nick/poky/meta/site/common-linux
> /home/nick/poky/meta/site/common-glibc
> /home/nick/poky/meta/site/x86_64-linux /home/nick/poky/meta/site/common
> /home/nick/poky/meta-openembedded/meta-oe/site/endian-little "
> export PSEUDO_DISABLED="0"
> export CXX_FOR_BUILD="g++ "
> export libdir="/usr/lib64"
> export nonarch_base_libdir="/lib"
> export BUILD_CXX="g++ "
> unset TARGET_ARCH
> export CCACHE_DIR="/home/nick"
> export PSEUDO_PREFIX="/home/nick/poky/build/tmp/sysroots/i686-linux/usr"
> export BUILD_CPP="cpp "
> export base_sbindir="/sbin"
> export USER="nick"
> export NM="x86_64-poky-linux-nm"
> export
> BUILD_CPPFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> export BUILD_FC="gfortran "
> export CPP_FOR_BUILD="cpp "
> export TARGET_CPPFLAGS=""
> export
> CXXFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> -O2 -pipe -fpermissive"
> export TARGET_CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> export OBJDUMP="x86_64-poky-linux-objdump"
> unset DISTRO
> export CC_FOR_BUILD="gcc "
> export SHELL="/bin/bash"
> export PSEUDO_NOSYMLINKEXP="1"
> do_install() {
> autotools_do_install
> ln -sf libtk8.6.so/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64/libtk8.6.so.0
> oe_libinstall -so libtk8.6
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64
> ln -sf wish8.6
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/bin/wish
>
> # Even after passing libdir=/usr/lib64 at config, some incorrect dirs
> are still generated for the multilib build
> if [ "$libdir" != "/usr/lib" ]; then
> # Move files to correct library directory
> mv
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib/tk8.6/*
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/tk8.6/
> # Remove unneeded/incorrect dir ('usr/lib/')
> rm -rf
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib
> fi
>
> }
>
> oe_libinstall() {
> # Purpose: Install a library, in all its forms
> # Example
> #
> # oe_libinstall libltdl
> /home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/
> # oe_libinstall -C src/libblah libblah
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/
> dir=""
> libtool=""
> silent=""
> require_static=""
> require_shared=""
> staging_install=""
> while [ "$#" -gt 0 ]; do
> case "$1" in
> -C)
> shift
> dir="$1"
> ;;
> -s)
> silent=1
> ;;
> -a)
> require_static=1
> ;;
> -so)
> require_shared=1
> ;;
> -*)
> bbfatal "oe_libinstall: unknown option: $1"
> ;;
> *)
> break;
> ;;
> esac
> shift
> done
>
> libname="$1"
> shift
> destpath="$1"
> if [ -z "$destpath" ]; then
> bbfatal "oe_libinstall: no destination path specified"
> fi
> if echo "$destpath/" | egrep
> '^/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/' >/dev/null
> then
> staging_install=1
> fi
>
> __runcmd () {
> if [ -z "$silent" ]; then
> echo >&2 "oe_libinstall: $*"
> fi
> $*
> }
>
> if [ -z "$dir" ]; then
> dir=`pwd`
> fi
>
> dotlai=$libname.lai
>
> # Sanity check that the libname.lai is unique
> number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
> if [ $number_of_files -gt 1 ]; then
> bbfatal "oe_libinstall: $dotlai is not unique in $dir"
> fi
>
>
> dir=$dir`(cd $dir;find . -name "$dotlai") | sed
> "s/^\.//;s/\/$dotlai\$//;q"`
> olddir=`pwd`
> __runcmd cd $dir
>
> lafile=$libname.la
>
> # If such file doesn't exist, try to cut version suffix
> if [ ! -f "$lafile" ]; then
> libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
> lafile1=$libname.la
> if [ -f "$lafile1" ]; then
> libname=$libname1
> lafile=$lafile1
> fi
> fi
>
> if [ -f "$lafile" ]; then
> # libtool archive
> eval `cat $lafile|grep "^library_names="`
> libtool=1
> else
> library_names="$libname.so* $libname.dll.a $libname.*.dylib"
> fi
>
> __runcmd install -d $destpath/
> dota=$libname.a
> if [ -f "$dota" -o -n "$require_static" ]; then
> rm -f $destpath/$dota
> __runcmd install -m 0644 $dota $destpath/
> fi
> if [ -f "$dotlai" -a -n "$libtool" ]; then
> rm -f $destpath/$libname.la
> __runcmd install -m 0644 $dotlai $destpath/$libname.la
> fi
>
> for name in $library_names; do
> files=`eval echo $name`
> for f in $files; do
> if [ ! -e "$f" ]; then
> if [ -n "$libtool" ]; then
> bbfatal "oe_libinstall: $dir/$f not found."
> fi
> elif [ -L "$f" ]; then
> __runcmd cp -P "$f" $destpath/
> elif [ ! -L "$f" ]; then
> libfile="$f"
> rm -f $destpath/$libfile
> __runcmd install -m 0755 $libfile $destpath/
> fi
> done
> done
>
> if [ -z "$libfile" ]; then
> if [ -n "$require_shared" ]; then
> bbfatal "oe_libinstall: unable to locate shared library"
> fi
> elif [ -z "$libtool" ]; then
> # special case hack for non-libtool .so.#.#.# links
> baselibfile=`basename "$libfile"`
> if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
> sonamelink=`x86_64-poky-linux-readelf -d $libfile |grep
> 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
> solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
> if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ];
> then
> __runcmd ln -sf $baselibfile $destpath/$sonamelink
> fi
> __runcmd ln -sf $baselibfile $destpath/$solink
> fi
> fi
>
> __runcmd cd "$olddir"
>
> }
>
> autotools_do_install() {
> oe_runmake
> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> install
> # Info dir listing isn't interesting at this point so remove it if it
> exists.
> if [ -e
> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
> ]; then
> rm -f
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
> fi
>
> }
>
> bbfatal() {
> echo "ERROR: $*"
> exit 1
>
> }
>
> cd
> '/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/tk8.6.0/unix'
> do_install
>
> # cleanup
> ret=$?
> trap '' 0
> exit $?
>
On Tue, Feb 11, 2014 at 10:42 PM, Paul Barker <paul@paulbarker.me.uk> wrote:
> On 7 February 2014 13:53, Nick D'Ademo <nickdademo@gmail.com> wrote:
> > Thanks Paul.
> >
> > The run log has oe_runmake called via:
> >
> >> autotools_do_install() {
> >> oe_runmake
> >>
> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> >> install
> >> # Info dir listing isn't interesting at this point so remove it if
> it
> >> exists.
> >> if [ -e
> >>
> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
> >> ]; then
> >> rm -f
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
> >> fi
> >>
> >> }
> >
>
> You should see the definition of oe_runmake() in the run file itself,
> possibly after the autotools_do_install() function. That run file
> should include everything that is needed. Could you confirm that is
> there, maybe post the whole run file for further investigation?
>
> Thanks,
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-02-11 13:01 ` Nick D'Ademo
@ 2014-02-17 9:35 ` Paul Barker
2014-02-17 16:11 ` Nick D'Ademo
0 siblings, 1 reply; 11+ messages in thread
From: Paul Barker @ 2014-02-17 9:35 UTC (permalink / raw)
To: Nick D'Ademo; +Cc: openembedded-devel
On 11 February 2014 13:01, Nick D'Ademo <nickdademo@gmail.com> wrote:
> The only reference to "oe_runmake" in the run file is within the
> autotools_do_install() function (as pasted in my previous message).
>
> Complete run file below:
>
>> #!/bin/sh
>>
>> # Emit a useful diagnostic if something fails:
>> bb_exit_handler() {
>> ret=$?
>> case $ret in
>> 0) ;;
>> *) case $BASH_VERSION in
>> "") echo "WARNING: exit code $ret from a shell command.";;
>> *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit $ret
>> from
>> "$BASH_COMMAND"";;
>> esac
>> exit $ret
>> esac
>> }
>> trap 'bb_exit_handler' 0
>> set -e
>> export localstatedir="/var"
>> export prefix="/usr"
>> export LD="x86_64-poky-linux-ld
>> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc "
>> export RANLIB="x86_64-poky-linux-ranlib"
>> export CXX="x86_64-poky-linux-g++ -m64 -march=corei7 -mtune=corei7
>> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /lib64"
>> export servicedir="/srv"
>> export sysconfdir="/etc"
>> export TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
>> export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
>> export STRINGS="x86_64-poky-linux-strings"
>> export
>> BUILD_CFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> -O2 -pipe"
>> export base_prefix=""
>> export CPP="x86_64-poky-linux-gcc -E
>> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc -m64 -march=corei7
>> -mtune=corei7 -mfpmath=sse -msse4.2"
>> export
>> PSEUDO_LOCALSTATEDIR="/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/pseudo/"
>> export LOGNAME="nick"
>> export STRIP="x86_64-poky-linux-strip"
>> export datadir="/usr/share"
>> export PKG_CONFIG_SYSROOT_DIR="/home/nick/poky/build/tmp/sysroots/nuc"
>> export bindir="/usr/bin"
>> export mandir="/usr/share/man"
>> export
>> CPPFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
>> export PATCH_GET="0"
>> export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
>> -Wl,-rpath,/usr/lib64/tcltk/8.6.0/lib"
>> export MAKE="make"
>> export
>> PKG_CONFIG_PATH="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig:/home/nick/poky/build/tmp/sysroots/nuc/usr/share/pkgconfig"
>> export LD_FOR_BUILD="ld "
>> export AS="x86_64-poky-linux-as "
>> export AR="x86_64-poky-linux-ar"
>> export exec_prefix="/usr"
>> export LC_ALL="C"
>> export base_libdir="/lib64"
>> export
>> PATH="/home/nick/poky/scripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin/corei7-64-poky-linux:/home/nick/poky/build/tmp/sysroots/nuc/usr/bin/crossscripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/nick/poky/build/tmp/sysroots/i686-linux/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/bin:/home/nick/poky/scripts:/home/nick/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nick/workspace/tye-firmware/util/arm-2011.03/bin"
>> export infodir="/usr/share/info"
>> export BUILD_CC="gcc "
>> export
>> BUILD_LDFLAGS="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
>> export BUILD_CCLD="gcc "
>> export
>> CFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> -O2 -pipe"
>> export CC="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
>> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> export CPPFLAGS=""
>> export OBJCOPY="x86_64-poky-linux-objcopy"
>> export systemd_unitdir="/lib/systemd"
>> export
>> PKG_CONFIG_DIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
>> export CCLD="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
>> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> export base_bindir="/bin"
>> export
>> PKG_CONFIG_LIBDIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
>> export sbindir="/usr/sbin"
>> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
>> export
>> LDFLAGS_FOR_BUILD="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
>> export docdir="/usr/share/doc"
>> export TERM="xterm"
>> export CCACHE_DISABLE="1"
>> export
>> BUILD_CXXFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> -O2 -pipe -fpermissive"
>> export FC="x86_64-poky-linux-gfortran -m64 -march=corei7 -mtune=corei7
>> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> export HOME="/home/nick"
>> export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fpermissive
>> -fvisibility-inlines-hidden"
>> unset MACHINE
>> export BUILD_STRIP="strip"
>> export PSEUDO_PASSWD="/home/nick/poky/build/tmp/sysroots/nuc"
>> export libexecdir="/usr/lib64/tk"
>> export TARGET_CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
>> -fpermissive"
>> export includedir="/usr/include"
>> export BUILD_LD="ld "
>> export oldincludedir="/usr/include"
>> export BUILD_RANLIB="ranlib"
>> export BUILD_NM="nm"
>> export BUILD_AR="ar"
>> export BUILD_AS="as "
>> export sharedstatedir="/com"
>> export CONFIG_SITE="/home/nick/poky/meta/site/endian-little
>> /home/nick/poky/meta/site/common-linux
>> /home/nick/poky/meta/site/common-glibc
>> /home/nick/poky/meta/site/x86_64-linux /home/nick/poky/meta/site/common
>> /home/nick/poky/meta-openembedded/meta-oe/site/endian-little "
>> export PSEUDO_DISABLED="0"
>> export CXX_FOR_BUILD="g++ "
>> export libdir="/usr/lib64"
>> export nonarch_base_libdir="/lib"
>> export BUILD_CXX="g++ "
>> unset TARGET_ARCH
>> export CCACHE_DIR="/home/nick"
>> export PSEUDO_PREFIX="/home/nick/poky/build/tmp/sysroots/i686-linux/usr"
>> export BUILD_CPP="cpp "
>> export base_sbindir="/sbin"
>> export USER="nick"
>> export NM="x86_64-poky-linux-nm"
>> export
>> BUILD_CPPFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
>> export BUILD_FC="gfortran "
>> export CPP_FOR_BUILD="cpp "
>> export TARGET_CPPFLAGS=""
>> export
>> CXXFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> -O2 -pipe -fpermissive"
>> export TARGET_CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
>> export OBJDUMP="x86_64-poky-linux-objdump"
>> unset DISTRO
>> export CC_FOR_BUILD="gcc "
>> export SHELL="/bin/bash"
>> export PSEUDO_NOSYMLINKEXP="1"
>> do_install() {
>> autotools_do_install
>> ln -sf libtk8.6.so
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64/libtk8.6.so.0
>> oe_libinstall -so libtk8.6
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64
>> ln -sf wish8.6
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/bin/wish
>>
>> # Even after passing libdir=/usr/lib64 at config, some incorrect dirs
>> are still generated for the multilib build
>> if [ "$libdir" != "/usr/lib" ]; then
>> # Move files to correct library directory
>> mv
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib/tk8.6/*
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/tk8.6/
>> # Remove unneeded/incorrect dir ('usr/lib/')
>> rm -rf
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib
>> fi
>>
>> }
>>
>> oe_libinstall() {
>> # Purpose: Install a library, in all its forms
>> # Example
>> #
>> # oe_libinstall libltdl
>> /home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/
>> # oe_libinstall -C src/libblah libblah
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/
>> dir=""
>> libtool=""
>> silent=""
>> require_static=""
>> require_shared=""
>> staging_install=""
>> while [ "$#" -gt 0 ]; do
>> case "$1" in
>> -C)
>> shift
>> dir="$1"
>> ;;
>> -s)
>> silent=1
>> ;;
>> -a)
>> require_static=1
>> ;;
>> -so)
>> require_shared=1
>> ;;
>> -*)
>> bbfatal "oe_libinstall: unknown option: $1"
>> ;;
>> *)
>> break;
>> ;;
>> esac
>> shift
>> done
>>
>> libname="$1"
>> shift
>> destpath="$1"
>> if [ -z "$destpath" ]; then
>> bbfatal "oe_libinstall: no destination path specified"
>> fi
>> if echo "$destpath/" | egrep
>> '^/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/' >/dev/null
>> then
>> staging_install=1
>> fi
>>
>> __runcmd () {
>> if [ -z "$silent" ]; then
>> echo >&2 "oe_libinstall: $*"
>> fi
>> $*
>> }
>>
>> if [ -z "$dir" ]; then
>> dir=`pwd`
>> fi
>>
>> dotlai=$libname.lai
>>
>> # Sanity check that the libname.lai is unique
>> number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
>> if [ $number_of_files -gt 1 ]; then
>> bbfatal "oe_libinstall: $dotlai is not unique in $dir"
>> fi
>>
>>
>> dir=$dir`(cd $dir;find . -name "$dotlai") | sed
>> "s/^\.//;s/\/$dotlai\$//;q"`
>> olddir=`pwd`
>> __runcmd cd $dir
>>
>> lafile=$libname.la
>>
>> # If such file doesn't exist, try to cut version suffix
>> if [ ! -f "$lafile" ]; then
>> libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
>> lafile1=$libname.la
>> if [ -f "$lafile1" ]; then
>> libname=$libname1
>> lafile=$lafile1
>> fi
>> fi
>>
>> if [ -f "$lafile" ]; then
>> # libtool archive
>> eval `cat $lafile|grep "^library_names="`
>> libtool=1
>> else
>> library_names="$libname.so* $libname.dll.a $libname.*.dylib"
>> fi
>>
>> __runcmd install -d $destpath/
>> dota=$libname.a
>> if [ -f "$dota" -o -n "$require_static" ]; then
>> rm -f $destpath/$dota
>> __runcmd install -m 0644 $dota $destpath/
>> fi
>> if [ -f "$dotlai" -a -n "$libtool" ]; then
>> rm -f $destpath/$libname.la
>> __runcmd install -m 0644 $dotlai $destpath/$libname.la
>> fi
>>
>> for name in $library_names; do
>> files=`eval echo $name`
>> for f in $files; do
>> if [ ! -e "$f" ]; then
>> if [ -n "$libtool" ]; then
>> bbfatal "oe_libinstall: $dir/$f not found."
>> fi
>> elif [ -L "$f" ]; then
>> __runcmd cp -P "$f" $destpath/
>> elif [ ! -L "$f" ]; then
>> libfile="$f"
>> rm -f $destpath/$libfile
>> __runcmd install -m 0755 $libfile $destpath/
>> fi
>> done
>> done
>>
>> if [ -z "$libfile" ]; then
>> if [ -n "$require_shared" ]; then
>> bbfatal "oe_libinstall: unable to locate shared library"
>> fi
>> elif [ -z "$libtool" ]; then
>> # special case hack for non-libtool .so.#.#.# links
>> baselibfile=`basename "$libfile"`
>> if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
>> sonamelink=`x86_64-poky-linux-readelf -d $libfile |grep
>> 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
>> solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
>> if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink" ];
>> then
>> __runcmd ln -sf $baselibfile $destpath/$sonamelink
>> fi
>> __runcmd ln -sf $baselibfile $destpath/$solink
>> fi
>> fi
>>
>> __runcmd cd "$olddir"
>>
>>
>> }
>>
>> autotools_do_install() {
>> oe_runmake
>> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
>> install
>> # Info dir listing isn't interesting at this point so remove it if it
>> exists.
>> if [ -e
>> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
>> ]; then
>> rm -f
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
>> fi
>>
>> }
>>
>> bbfatal() {
>> echo "ERROR: $*"
>> exit 1
>>
>> }
>>
>> cd
>> '/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/tk8.6.0/unix'
>> do_install
>>
>> # cleanup
>> ret=$?
>> trap '' 0
>> exit $?
>
Sorry, I'm lost on where to look next on this. The run files in my
builds include the definition of oe_runmake() and the other functions
which are used so I assume that's what's supposed to happen. I was
hoping someone else would notice this thread and have a better idea
what the underlying problem might be. I've never really looked at the
internals of bitbake or how these scripts are generated.
I'd suggest asking on the #oe or #yocto channels on irc.freenode.net,
plus maybe reposting to yocto@yoctoproject.org if no-one else replies
to this and you still need help.
Sorry I can't be any more help.
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-02-17 9:35 ` Paul Barker
@ 2014-02-17 16:11 ` Nick D'Ademo
2014-03-13 8:23 ` Nick D'Ademo
0 siblings, 1 reply; 11+ messages in thread
From: Nick D'Ademo @ 2014-02-17 16:11 UTC (permalink / raw)
To: Paul Barker; +Cc: openembedded-devel
No worries Paul.
The issue is currently listed in the state of Bitbake world failed tasks as
well, so hopefully someone else may see it and have a better idea.
On Mon, Feb 17, 2014 at 8:35 PM, Paul Barker <paul@paulbarker.me.uk> wrote:
> On 11 February 2014 13:01, Nick D'Ademo <nickdademo@gmail.com> wrote:
> > The only reference to "oe_runmake" in the run file is within the
> > autotools_do_install() function (as pasted in my previous message).
> >
> > Complete run file below:
> >
> >> #!/bin/sh
> >>
> >> # Emit a useful diagnostic if something fails:
> >> bb_exit_handler() {
> >> ret=$?
> >> case $ret in
> >> 0) ;;
> >> *) case $BASH_VERSION in
> >> "") echo "WARNING: exit code $ret from a shell command.";;
> >> *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit
> $ret
> >> from
> >> "$BASH_COMMAND"";;
> >> esac
> >> exit $ret
> >> esac
> >> }
> >> trap 'bb_exit_handler' 0
> >> set -e
> >> export localstatedir="/var"
> >> export prefix="/usr"
> >> export LD="x86_64-poky-linux-ld
> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc "
> >> export RANLIB="x86_64-poky-linux-ranlib"
> >> export CXX="x86_64-poky-linux-g++ -m64 -march=corei7 -mtune=corei7
> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /lib64"
> >> export servicedir="/srv"
> >> export sysconfdir="/etc"
> >> export TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
> >> export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
> >> export STRINGS="x86_64-poky-linux-strings"
> >> export
> >>
> BUILD_CFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> -O2 -pipe"
> >> export base_prefix=""
> >> export CPP="x86_64-poky-linux-gcc -E
> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc -m64 -march=corei7
> >> -mtune=corei7 -mfpmath=sse -msse4.2"
> >> export
> >>
> PSEUDO_LOCALSTATEDIR="/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/pseudo/"
> >> export LOGNAME="nick"
> >> export STRIP="x86_64-poky-linux-strip"
> >> export datadir="/usr/share"
> >> export PKG_CONFIG_SYSROOT_DIR="/home/nick/poky/build/tmp/sysroots/nuc"
> >> export bindir="/usr/bin"
> >> export mandir="/usr/share/man"
> >> export
> >>
> CPPFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> >> export PATCH_GET="0"
> >> export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
> >> -Wl,-rpath,/usr/lib64/tcltk/8.6.0/lib"
> >> export MAKE="make"
> >> export
> >>
> PKG_CONFIG_PATH="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig:/home/nick/poky/build/tmp/sysroots/nuc/usr/share/pkgconfig"
> >> export LD_FOR_BUILD="ld "
> >> export AS="x86_64-poky-linux-as "
> >> export AR="x86_64-poky-linux-ar"
> >> export exec_prefix="/usr"
> >> export LC_ALL="C"
> >> export base_libdir="/lib64"
> >> export
> >>
> PATH="/home/nick/poky/scripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin/corei7-64-poky-linux:/home/nick/poky/build/tmp/sysroots/nuc/usr/bin/crossscripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/nick/poky/build/tmp/sysroots/i686-linux/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/bin:/home/nick/poky/scripts:/home/nick/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nick/workspace/tye-firmware/util/arm-2011.03/bin"
> >> export infodir="/usr/share/info"
> >> export BUILD_CC="gcc "
> >> export
> >> BUILD_LDFLAGS="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
> >> export BUILD_CCLD="gcc "
> >> export
> >>
> CFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> -O2 -pipe"
> >> export CC="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> export CPPFLAGS=""
> >> export OBJCOPY="x86_64-poky-linux-objcopy"
> >> export systemd_unitdir="/lib/systemd"
> >> export
> >>
> PKG_CONFIG_DIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> >> export CCLD="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> export base_bindir="/bin"
> >> export
> >>
> PKG_CONFIG_LIBDIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> >> export sbindir="/usr/sbin"
> >> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> >> export
> >>
> LDFLAGS_FOR_BUILD="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
> >> export docdir="/usr/share/doc"
> >> export TERM="xterm"
> >> export CCACHE_DISABLE="1"
> >> export
> >>
> BUILD_CXXFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> -O2 -pipe -fpermissive"
> >> export FC="x86_64-poky-linux-gfortran -m64 -march=corei7 -mtune=corei7
> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> export HOME="/home/nick"
> >> export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
> -fpermissive
> >> -fvisibility-inlines-hidden"
> >> unset MACHINE
> >> export BUILD_STRIP="strip"
> >> export PSEUDO_PASSWD="/home/nick/poky/build/tmp/sysroots/nuc"
> >> export libexecdir="/usr/lib64/tk"
> >> export TARGET_CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
> >> -fpermissive"
> >> export includedir="/usr/include"
> >> export BUILD_LD="ld "
> >> export oldincludedir="/usr/include"
> >> export BUILD_RANLIB="ranlib"
> >> export BUILD_NM="nm"
> >> export BUILD_AR="ar"
> >> export BUILD_AS="as "
> >> export sharedstatedir="/com"
> >> export CONFIG_SITE="/home/nick/poky/meta/site/endian-little
> >> /home/nick/poky/meta/site/common-linux
> >> /home/nick/poky/meta/site/common-glibc
> >> /home/nick/poky/meta/site/x86_64-linux /home/nick/poky/meta/site/common
> >> /home/nick/poky/meta-openembedded/meta-oe/site/endian-little "
> >> export PSEUDO_DISABLED="0"
> >> export CXX_FOR_BUILD="g++ "
> >> export libdir="/usr/lib64"
> >> export nonarch_base_libdir="/lib"
> >> export BUILD_CXX="g++ "
> >> unset TARGET_ARCH
> >> export CCACHE_DIR="/home/nick"
> >> export PSEUDO_PREFIX="/home/nick/poky/build/tmp/sysroots/i686-linux/usr"
> >> export BUILD_CPP="cpp "
> >> export base_sbindir="/sbin"
> >> export USER="nick"
> >> export NM="x86_64-poky-linux-nm"
> >> export
> >>
> BUILD_CPPFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> >> export BUILD_FC="gfortran "
> >> export CPP_FOR_BUILD="cpp "
> >> export TARGET_CPPFLAGS=""
> >> export
> >>
> CXXFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> -O2 -pipe -fpermissive"
> >> export TARGET_CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> >> export OBJDUMP="x86_64-poky-linux-objdump"
> >> unset DISTRO
> >> export CC_FOR_BUILD="gcc "
> >> export SHELL="/bin/bash"
> >> export PSEUDO_NOSYMLINKEXP="1"
> >> do_install() {
> >> autotools_do_install
> >> ln -sf libtk8.6.so
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64/libtk8.6.so.0
> >> oe_libinstall -so libtk8.6
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64
> >> ln -sf wish8.6
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/bin/wish
> >>
> >> # Even after passing libdir=/usr/lib64 at config, some incorrect
> dirs
> >> are still generated for the multilib build
> >> if [ "$libdir" != "/usr/lib" ]; then
> >> # Move files to correct library directory
> >> mv
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib/tk8.6/*
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/tk8.6/
> >> # Remove unneeded/incorrect dir ('usr/lib/')
> >> rm -rf
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib
> >> fi
> >>
> >> }
> >>
> >> oe_libinstall() {
> >> # Purpose: Install a library, in all its forms
> >> # Example
> >> #
> >> # oe_libinstall libltdl
> >> /home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/
> >> # oe_libinstall -C src/libblah libblah
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/
> >> dir=""
> >> libtool=""
> >> silent=""
> >> require_static=""
> >> require_shared=""
> >> staging_install=""
> >> while [ "$#" -gt 0 ]; do
> >> case "$1" in
> >> -C)
> >> shift
> >> dir="$1"
> >> ;;
> >> -s)
> >> silent=1
> >> ;;
> >> -a)
> >> require_static=1
> >> ;;
> >> -so)
> >> require_shared=1
> >> ;;
> >> -*)
> >> bbfatal "oe_libinstall: unknown option: $1"
> >> ;;
> >> *)
> >> break;
> >> ;;
> >> esac
> >> shift
> >> done
> >>
> >> libname="$1"
> >> shift
> >> destpath="$1"
> >> if [ -z "$destpath" ]; then
> >> bbfatal "oe_libinstall: no destination path specified"
> >> fi
> >> if echo "$destpath/" | egrep
> >> '^/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/' >/dev/null
> >> then
> >> staging_install=1
> >> fi
> >>
> >> __runcmd () {
> >> if [ -z "$silent" ]; then
> >> echo >&2 "oe_libinstall: $*"
> >> fi
> >> $*
> >> }
> >>
> >> if [ -z "$dir" ]; then
> >> dir=`pwd`
> >> fi
> >>
> >> dotlai=$libname.lai
> >>
> >> # Sanity check that the libname.lai is unique
> >> number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
> >> if [ $number_of_files -gt 1 ]; then
> >> bbfatal "oe_libinstall: $dotlai is not unique in $dir"
> >> fi
> >>
> >>
> >> dir=$dir`(cd $dir;find . -name "$dotlai") | sed
> >> "s/^\.//;s/\/$dotlai\$//;q"`
> >> olddir=`pwd`
> >> __runcmd cd $dir
> >>
> >> lafile=$libname.la
> >>
> >> # If such file doesn't exist, try to cut version suffix
> >> if [ ! -f "$lafile" ]; then
> >> libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
> >> lafile1=$libname.la
> >> if [ -f "$lafile1" ]; then
> >> libname=$libname1
> >> lafile=$lafile1
> >> fi
> >> fi
> >>
> >> if [ -f "$lafile" ]; then
> >> # libtool archive
> >> eval `cat $lafile|grep "^library_names="`
> >> libtool=1
> >> else
> >> library_names="$libname.so* $libname.dll.a $libname.*.dylib"
> >> fi
> >>
> >> __runcmd install -d $destpath/
> >> dota=$libname.a
> >> if [ -f "$dota" -o -n "$require_static" ]; then
> >> rm -f $destpath/$dota
> >> __runcmd install -m 0644 $dota $destpath/
> >> fi
> >> if [ -f "$dotlai" -a -n "$libtool" ]; then
> >> rm -f $destpath/$libname.la
> >> __runcmd install -m 0644 $dotlai $destpath/$libname.la
> >> fi
> >>
> >> for name in $library_names; do
> >> files=`eval echo $name`
> >> for f in $files; do
> >> if [ ! -e "$f" ]; then
> >> if [ -n "$libtool" ]; then
> >> bbfatal "oe_libinstall: $dir/$f not found."
> >> fi
> >> elif [ -L "$f" ]; then
> >> __runcmd cp -P "$f" $destpath/
> >> elif [ ! -L "$f" ]; then
> >> libfile="$f"
> >> rm -f $destpath/$libfile
> >> __runcmd install -m 0755 $libfile $destpath/
> >> fi
> >> done
> >> done
> >>
> >> if [ -z "$libfile" ]; then
> >> if [ -n "$require_shared" ]; then
> >> bbfatal "oe_libinstall: unable to locate shared library"
> >> fi
> >> elif [ -z "$libtool" ]; then
> >> # special case hack for non-libtool .so.#.#.# links
> >> baselibfile=`basename "$libfile"`
> >> if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
> >> sonamelink=`x86_64-poky-linux-readelf -d $libfile |grep
> >> 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
> >> solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
> >> if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink"
> ];
> >> then
> >> __runcmd ln -sf $baselibfile $destpath/$sonamelink
> >> fi
> >> __runcmd ln -sf $baselibfile $destpath/$solink
> >> fi
> >> fi
> >>
> >> __runcmd cd "$olddir"
> >>
> >>
> >> }
> >>
> >> autotools_do_install() {
> >> oe_runmake
> >>
> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> >> install
> >> # Info dir listing isn't interesting at this point so remove it if
> it
> >> exists.
> >> if [ -e
> >>
> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
> >> ]; then
> >> rm -f
> >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
> >> fi
> >>
> >> }
> >>
> >> bbfatal() {
> >> echo "ERROR: $*"
> >> exit 1
> >>
> >> }
> >>
> >> cd
> >>
> '/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/tk8.6.0/unix'
> >> do_install
> >>
> >> # cleanup
> >> ret=$?
> >> trap '' 0
> >> exit $?
> >
>
> Sorry, I'm lost on where to look next on this. The run files in my
> builds include the definition of oe_runmake() and the other functions
> which are used so I assume that's what's supposed to happen. I was
> hoping someone else would notice this thread and have a better idea
> what the underlying problem might be. I've never really looked at the
> internals of bitbake or how these scripts are generated.
>
> I'd suggest asking on the #oe or #yocto channels on irc.freenode.net,
> plus maybe reposting to yocto@yoctoproject.org if no-one else replies
> to this and you still need help.
>
> Sorry I can't be any more help.
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-02-17 16:11 ` Nick D'Ademo
@ 2014-03-13 8:23 ` Nick D'Ademo
2014-03-13 10:21 ` Martin Jansa
0 siblings, 1 reply; 11+ messages in thread
From: Nick D'Ademo @ 2014-03-13 8:23 UTC (permalink / raw)
To: Paul Barker; +Cc: openembedded-devel
This bug is still present and has been for nearly 3 months now.
Has anyone else encountered it or has any ideas as to why oe_runmake isn't
being found?
On Tue, Feb 18, 2014 at 3:11 AM, Nick D'Ademo <nickdademo@gmail.com> wrote:
> No worries Paul.
>
> The issue is currently listed in the state of Bitbake world failed tasks
> as well, so hopefully someone else may see it and have a better idea.
>
>
>
>
> On Mon, Feb 17, 2014 at 8:35 PM, Paul Barker <paul@paulbarker.me.uk>wrote:
>
>> On 11 February 2014 13:01, Nick D'Ademo <nickdademo@gmail.com> wrote:
>> > The only reference to "oe_runmake" in the run file is within the
>> > autotools_do_install() function (as pasted in my previous message).
>> >
>> > Complete run file below:
>> >
>> >> #!/bin/sh
>> >>
>> >> # Emit a useful diagnostic if something fails:
>> >> bb_exit_handler() {
>> >> ret=$?
>> >> case $ret in
>> >> 0) ;;
>> >> *) case $BASH_VERSION in
>> >> "") echo "WARNING: exit code $ret from a shell command.";;
>> >> *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit
>> $ret
>> >> from
>> >> "$BASH_COMMAND"";;
>> >> esac
>> >> exit $ret
>> >> esac
>> >> }
>> >> trap 'bb_exit_handler' 0
>> >> set -e
>> >> export localstatedir="/var"
>> >> export prefix="/usr"
>> >> export LD="x86_64-poky-linux-ld
>> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc "
>> >> export RANLIB="x86_64-poky-linux-ranlib"
>> >> export CXX="x86_64-poky-linux-g++ -m64 -march=corei7 -mtune=corei7
>> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> >> export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /lib64"
>> >> export servicedir="/srv"
>> >> export sysconfdir="/etc"
>> >> export TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
>> >> export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
>> >> export STRINGS="x86_64-poky-linux-strings"
>> >> export
>> >>
>> BUILD_CFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> >> -O2 -pipe"
>> >> export base_prefix=""
>> >> export CPP="x86_64-poky-linux-gcc -E
>> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc -m64 -march=corei7
>> >> -mtune=corei7 -mfpmath=sse -msse4.2"
>> >> export
>> >>
>> PSEUDO_LOCALSTATEDIR="/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/pseudo/"
>> >> export LOGNAME="nick"
>> >> export STRIP="x86_64-poky-linux-strip"
>> >> export datadir="/usr/share"
>> >> export PKG_CONFIG_SYSROOT_DIR="/home/nick/poky/build/tmp/sysroots/nuc"
>> >> export bindir="/usr/bin"
>> >> export mandir="/usr/share/man"
>> >> export
>> >>
>> CPPFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
>> >> export PATCH_GET="0"
>> >> export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
>> >> -Wl,-rpath,/usr/lib64/tcltk/8.6.0/lib"
>> >> export MAKE="make"
>> >> export
>> >>
>> PKG_CONFIG_PATH="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig:/home/nick/poky/build/tmp/sysroots/nuc/usr/share/pkgconfig"
>> >> export LD_FOR_BUILD="ld "
>> >> export AS="x86_64-poky-linux-as "
>> >> export AR="x86_64-poky-linux-ar"
>> >> export exec_prefix="/usr"
>> >> export LC_ALL="C"
>> >> export base_libdir="/lib64"
>> >> export
>> >>
>> PATH="/home/nick/poky/scripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin/corei7-64-poky-linux:/home/nick/poky/build/tmp/sysroots/nuc/usr/bin/crossscripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/nick/poky/build/tmp/sysroots/i686-linux/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/bin:/home/nick/poky/scripts:/home/nick/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nick/workspace/tye-firmware/util/arm-2011.03/bin"
>> >> export infodir="/usr/share/info"
>> >> export BUILD_CC="gcc "
>> >> export
>> >> BUILD_LDFLAGS="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
>> >> export BUILD_CCLD="gcc "
>> >> export
>> >>
>> CFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> >> -O2 -pipe"
>> >> export CC="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
>> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> >> export CPPFLAGS=""
>> >> export OBJCOPY="x86_64-poky-linux-objcopy"
>> >> export systemd_unitdir="/lib/systemd"
>> >> export
>> >>
>> PKG_CONFIG_DIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
>> >> export CCLD="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
>> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> >> export base_bindir="/bin"
>> >> export
>> >>
>> PKG_CONFIG_LIBDIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
>> >> export sbindir="/usr/sbin"
>> >> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
>> >> export
>> >>
>> LDFLAGS_FOR_BUILD="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
>> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
>> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
>> >> export docdir="/usr/share/doc"
>> >> export TERM="xterm"
>> >> export CCACHE_DISABLE="1"
>> >> export
>> >>
>> BUILD_CXXFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> >> -O2 -pipe -fpermissive"
>> >> export FC="x86_64-poky-linux-gfortran -m64 -march=corei7 -mtune=corei7
>> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
>> >> export HOME="/home/nick"
>> >> export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
>> -fpermissive
>> >> -fvisibility-inlines-hidden"
>> >> unset MACHINE
>> >> export BUILD_STRIP="strip"
>> >> export PSEUDO_PASSWD="/home/nick/poky/build/tmp/sysroots/nuc"
>> >> export libexecdir="/usr/lib64/tk"
>> >> export TARGET_CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
>> >> -fpermissive"
>> >> export includedir="/usr/include"
>> >> export BUILD_LD="ld "
>> >> export oldincludedir="/usr/include"
>> >> export BUILD_RANLIB="ranlib"
>> >> export BUILD_NM="nm"
>> >> export BUILD_AR="ar"
>> >> export BUILD_AS="as "
>> >> export sharedstatedir="/com"
>> >> export CONFIG_SITE="/home/nick/poky/meta/site/endian-little
>> >> /home/nick/poky/meta/site/common-linux
>> >> /home/nick/poky/meta/site/common-glibc
>> >> /home/nick/poky/meta/site/x86_64-linux /home/nick/poky/meta/site/common
>> >> /home/nick/poky/meta-openembedded/meta-oe/site/endian-little "
>> >> export PSEUDO_DISABLED="0"
>> >> export CXX_FOR_BUILD="g++ "
>> >> export libdir="/usr/lib64"
>> >> export nonarch_base_libdir="/lib"
>> >> export BUILD_CXX="g++ "
>> >> unset TARGET_ARCH
>> >> export CCACHE_DIR="/home/nick"
>> >> export
>> PSEUDO_PREFIX="/home/nick/poky/build/tmp/sysroots/i686-linux/usr"
>> >> export BUILD_CPP="cpp "
>> >> export base_sbindir="/sbin"
>> >> export USER="nick"
>> >> export NM="x86_64-poky-linux-nm"
>> >> export
>> >>
>> BUILD_CPPFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
>> >> export BUILD_FC="gfortran "
>> >> export CPP_FOR_BUILD="cpp "
>> >> export TARGET_CPPFLAGS=""
>> >> export
>> >>
>> CXXFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
>> >> -O2 -pipe -fpermissive"
>> >> export TARGET_CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
>> >> export OBJDUMP="x86_64-poky-linux-objdump"
>> >> unset DISTRO
>> >> export CC_FOR_BUILD="gcc "
>> >> export SHELL="/bin/bash"
>> >> export PSEUDO_NOSYMLINKEXP="1"
>> >> do_install() {
>> >> autotools_do_install
>> >> ln -sf libtk8.6.so
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64/libtk8.6.so.0
>> >> oe_libinstall -so libtk8.6
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64
>> >> ln -sf wish8.6
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/bin/wish
>> >>
>> >> # Even after passing libdir=/usr/lib64 at config, some incorrect
>> dirs
>> >> are still generated for the multilib build
>> >> if [ "$libdir" != "/usr/lib" ]; then
>> >> # Move files to correct library directory
>> >> mv
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib/tk8.6/*
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/tk8.6/
>> >> # Remove unneeded/incorrect dir ('usr/lib/')
>> >> rm -rf
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib
>> >> fi
>> >>
>> >> }
>> >>
>> >> oe_libinstall() {
>> >> # Purpose: Install a library, in all its forms
>> >> # Example
>> >> #
>> >> # oe_libinstall libltdl
>> >> /home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/
>> >> # oe_libinstall -C src/libblah libblah
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/
>> >> dir=""
>> >> libtool=""
>> >> silent=""
>> >> require_static=""
>> >> require_shared=""
>> >> staging_install=""
>> >> while [ "$#" -gt 0 ]; do
>> >> case "$1" in
>> >> -C)
>> >> shift
>> >> dir="$1"
>> >> ;;
>> >> -s)
>> >> silent=1
>> >> ;;
>> >> -a)
>> >> require_static=1
>> >> ;;
>> >> -so)
>> >> require_shared=1
>> >> ;;
>> >> -*)
>> >> bbfatal "oe_libinstall: unknown option: $1"
>> >> ;;
>> >> *)
>> >> break;
>> >> ;;
>> >> esac
>> >> shift
>> >> done
>> >>
>> >> libname="$1"
>> >> shift
>> >> destpath="$1"
>> >> if [ -z "$destpath" ]; then
>> >> bbfatal "oe_libinstall: no destination path specified"
>> >> fi
>> >> if echo "$destpath/" | egrep
>> >> '^/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/' >/dev/null
>> >> then
>> >> staging_install=1
>> >> fi
>> >>
>> >> __runcmd () {
>> >> if [ -z "$silent" ]; then
>> >> echo >&2 "oe_libinstall: $*"
>> >> fi
>> >> $*
>> >> }
>> >>
>> >> if [ -z "$dir" ]; then
>> >> dir=`pwd`
>> >> fi
>> >>
>> >> dotlai=$libname.lai
>> >>
>> >> # Sanity check that the libname.lai is unique
>> >> number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
>> >> if [ $number_of_files -gt 1 ]; then
>> >> bbfatal "oe_libinstall: $dotlai is not unique in $dir"
>> >> fi
>> >>
>> >>
>> >> dir=$dir`(cd $dir;find . -name "$dotlai") | sed
>> >> "s/^\.//;s/\/$dotlai\$//;q"`
>> >> olddir=`pwd`
>> >> __runcmd cd $dir
>> >>
>> >> lafile=$libname.la
>> >>
>> >> # If such file doesn't exist, try to cut version suffix
>> >> if [ ! -f "$lafile" ]; then
>> >> libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
>> >> lafile1=$libname.la
>> >> if [ -f "$lafile1" ]; then
>> >> libname=$libname1
>> >> lafile=$lafile1
>> >> fi
>> >> fi
>> >>
>> >> if [ -f "$lafile" ]; then
>> >> # libtool archive
>> >> eval `cat $lafile|grep "^library_names="`
>> >> libtool=1
>> >> else
>> >> library_names="$libname.so* $libname.dll.a $libname.*.dylib"
>> >> fi
>> >>
>> >> __runcmd install -d $destpath/
>> >> dota=$libname.a
>> >> if [ -f "$dota" -o -n "$require_static" ]; then
>> >> rm -f $destpath/$dota
>> >> __runcmd install -m 0644 $dota $destpath/
>> >> fi
>> >> if [ -f "$dotlai" -a -n "$libtool" ]; then
>> >> rm -f $destpath/$libname.la
>> >> __runcmd install -m 0644 $dotlai $destpath/$libname.la
>> >> fi
>> >>
>> >> for name in $library_names; do
>> >> files=`eval echo $name`
>> >> for f in $files; do
>> >> if [ ! -e "$f" ]; then
>> >> if [ -n "$libtool" ]; then
>> >> bbfatal "oe_libinstall: $dir/$f not found."
>> >> fi
>> >> elif [ -L "$f" ]; then
>> >> __runcmd cp -P "$f" $destpath/
>> >> elif [ ! -L "$f" ]; then
>> >> libfile="$f"
>> >> rm -f $destpath/$libfile
>> >> __runcmd install -m 0755 $libfile $destpath/
>> >> fi
>> >> done
>> >> done
>> >>
>> >> if [ -z "$libfile" ]; then
>> >> if [ -n "$require_shared" ]; then
>> >> bbfatal "oe_libinstall: unable to locate shared library"
>> >> fi
>> >> elif [ -z "$libtool" ]; then
>> >> # special case hack for non-libtool .so.#.#.# links
>> >> baselibfile=`basename "$libfile"`
>> >> if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
>> >> sonamelink=`x86_64-poky-linux-readelf -d $libfile |grep
>> >> 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
>> >> solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
>> >> if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink"
>> ];
>> >> then
>> >> __runcmd ln -sf $baselibfile $destpath/$sonamelink
>> >> fi
>> >> __runcmd ln -sf $baselibfile $destpath/$solink
>> >> fi
>> >> fi
>> >>
>> >> __runcmd cd "$olddir"
>> >>
>> >>
>> >> }
>> >>
>> >> autotools_do_install() {
>> >> oe_runmake
>> >>
>> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
>> >> install
>> >> # Info dir listing isn't interesting at this point so remove it if
>> it
>> >> exists.
>> >> if [ -e
>> >>
>> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
>> >> ]; then
>> >> rm -f
>> >>
>> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
>> >> fi
>> >>
>> >> }
>> >>
>> >> bbfatal() {
>> >> echo "ERROR: $*"
>> >> exit 1
>> >>
>> >> }
>> >>
>> >> cd
>> >>
>> '/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/tk8.6.0/unix'
>> >> do_install
>> >>
>> >> # cleanup
>> >> ret=$?
>> >> trap '' 0
>> >> exit $?
>> >
>>
>> Sorry, I'm lost on where to look next on this. The run files in my
>> builds include the definition of oe_runmake() and the other functions
>> which are used so I assume that's what's supposed to happen. I was
>> hoping someone else would notice this thread and have a better idea
>> what the underlying problem might be. I've never really looked at the
>> internals of bitbake or how these scripts are generated.
>>
>> I'd suggest asking on the #oe or #yocto channels on irc.freenode.net,
>> plus maybe reposting to yocto@yoctoproject.org if no-one else replies
>> to this and you still need help.
>>
>> Sorry I can't be any more help.
>>
>> --
>> Paul Barker
>>
>> Email: paul@paulbarker.me.uk
>> http://www.paulbarker.me.uk
>>
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-03-13 8:23 ` Nick D'Ademo
@ 2014-03-13 10:21 ` Martin Jansa
2014-03-13 21:35 ` Nick D'Ademo
0 siblings, 1 reply; 11+ messages in thread
From: Martin Jansa @ 2014-03-13 10:21 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 17227 bytes --]
On Thu, Mar 13, 2014 at 07:23:36PM +1100, Nick D'Ademo wrote:
> This bug is still present and has been for nearly 3 months now.
tk is regularly failing in world builds for more than 3 months:
www.openembedded.org/wiki/Bitbake_World_Status
but with different error.
> Has anyone else encountered it or has any ideas as to why oe_runmake isn't
> being found?
>
>
>
>
> On Tue, Feb 18, 2014 at 3:11 AM, Nick D'Ademo <nickdademo@gmail.com> wrote:
>
> > No worries Paul.
> >
> > The issue is currently listed in the state of Bitbake world failed tasks
> > as well, so hopefully someone else may see it and have a better idea.
> >
> >
> >
> >
> > On Mon, Feb 17, 2014 at 8:35 PM, Paul Barker <paul@paulbarker.me.uk>wrote:
> >
> >> On 11 February 2014 13:01, Nick D'Ademo <nickdademo@gmail.com> wrote:
> >> > The only reference to "oe_runmake" in the run file is within the
> >> > autotools_do_install() function (as pasted in my previous message).
> >> >
> >> > Complete run file below:
> >> >
> >> >> #!/bin/sh
> >> >>
> >> >> # Emit a useful diagnostic if something fails:
> >> >> bb_exit_handler() {
> >> >> ret=$?
> >> >> case $ret in
> >> >> 0) ;;
> >> >> *) case $BASH_VERSION in
> >> >> "") echo "WARNING: exit code $ret from a shell command.";;
> >> >> *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]} exit
> >> $ret
> >> >> from
> >> >> "$BASH_COMMAND"";;
> >> >> esac
> >> >> exit $ret
> >> >> esac
> >> >> }
> >> >> trap 'bb_exit_handler' 0
> >> >> set -e
> >> >> export localstatedir="/var"
> >> >> export prefix="/usr"
> >> >> export LD="x86_64-poky-linux-ld
> >> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc "
> >> >> export RANLIB="x86_64-poky-linux-ranlib"
> >> >> export CXX="x86_64-poky-linux-g++ -m64 -march=corei7 -mtune=corei7
> >> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> >> export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /lib64"
> >> >> export servicedir="/srv"
> >> >> export sysconfdir="/etc"
> >> >> export TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
> >> >> export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
> >> >> export STRINGS="x86_64-poky-linux-strings"
> >> >> export
> >> >>
> >> BUILD_CFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> >> -O2 -pipe"
> >> >> export base_prefix=""
> >> >> export CPP="x86_64-poky-linux-gcc -E
> >> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc -m64 -march=corei7
> >> >> -mtune=corei7 -mfpmath=sse -msse4.2"
> >> >> export
> >> >>
> >> PSEUDO_LOCALSTATEDIR="/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/pseudo/"
> >> >> export LOGNAME="nick"
> >> >> export STRIP="x86_64-poky-linux-strip"
> >> >> export datadir="/usr/share"
> >> >> export PKG_CONFIG_SYSROOT_DIR="/home/nick/poky/build/tmp/sysroots/nuc"
> >> >> export bindir="/usr/bin"
> >> >> export mandir="/usr/share/man"
> >> >> export
> >> >>
> >> CPPFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> >> >> export PATCH_GET="0"
> >> >> export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
> >> >> -Wl,-rpath,/usr/lib64/tcltk/8.6.0/lib"
> >> >> export MAKE="make"
> >> >> export
> >> >>
> >> PKG_CONFIG_PATH="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig:/home/nick/poky/build/tmp/sysroots/nuc/usr/share/pkgconfig"
> >> >> export LD_FOR_BUILD="ld "
> >> >> export AS="x86_64-poky-linux-as "
> >> >> export AR="x86_64-poky-linux-ar"
> >> >> export exec_prefix="/usr"
> >> >> export LC_ALL="C"
> >> >> export base_libdir="/lib64"
> >> >> export
> >> >>
> >> PATH="/home/nick/poky/scripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin/corei7-64-poky-linux:/home/nick/poky/build/tmp/sysroots/nuc/usr/bin/crossscripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/nick/poky/build/tmp/sysroots/i686-linux/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/bin:/home/nick/poky/scripts:/home/nick/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nick/workspace/tye-firmware/util/arm-2011.03/bin"
> >> >> export infodir="/usr/share/info"
> >> >> export BUILD_CC="gcc "
> >> >> export
> >> >> BUILD_LDFLAGS="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
> >> >> export BUILD_CCLD="gcc "
> >> >> export
> >> >>
> >> CFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> >> -O2 -pipe"
> >> >> export CC="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
> >> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> >> export CPPFLAGS=""
> >> >> export OBJCOPY="x86_64-poky-linux-objcopy"
> >> >> export systemd_unitdir="/lib/systemd"
> >> >> export
> >> >>
> >> PKG_CONFIG_DIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> >> >> export CCLD="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
> >> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> >> export base_bindir="/bin"
> >> >> export
> >> >>
> >> PKG_CONFIG_LIBDIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> >> >> export sbindir="/usr/sbin"
> >> >> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> >> >> export
> >> >>
> >> LDFLAGS_FOR_BUILD="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib -Wl,-O1"
> >> >> export docdir="/usr/share/doc"
> >> >> export TERM="xterm"
> >> >> export CCACHE_DISABLE="1"
> >> >> export
> >> >>
> >> BUILD_CXXFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> >> -O2 -pipe -fpermissive"
> >> >> export FC="x86_64-poky-linux-gfortran -m64 -march=corei7 -mtune=corei7
> >> >> -mfpmath=sse -msse4.2 --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> >> >> export HOME="/home/nick"
> >> >> export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
> >> -fpermissive
> >> >> -fvisibility-inlines-hidden"
> >> >> unset MACHINE
> >> >> export BUILD_STRIP="strip"
> >> >> export PSEUDO_PASSWD="/home/nick/poky/build/tmp/sysroots/nuc"
> >> >> export libexecdir="/usr/lib64/tk"
> >> >> export TARGET_CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
> >> >> -fpermissive"
> >> >> export includedir="/usr/include"
> >> >> export BUILD_LD="ld "
> >> >> export oldincludedir="/usr/include"
> >> >> export BUILD_RANLIB="ranlib"
> >> >> export BUILD_NM="nm"
> >> >> export BUILD_AR="ar"
> >> >> export BUILD_AS="as "
> >> >> export sharedstatedir="/com"
> >> >> export CONFIG_SITE="/home/nick/poky/meta/site/endian-little
> >> >> /home/nick/poky/meta/site/common-linux
> >> >> /home/nick/poky/meta/site/common-glibc
> >> >> /home/nick/poky/meta/site/x86_64-linux /home/nick/poky/meta/site/common
> >> >> /home/nick/poky/meta-openembedded/meta-oe/site/endian-little "
> >> >> export PSEUDO_DISABLED="0"
> >> >> export CXX_FOR_BUILD="g++ "
> >> >> export libdir="/usr/lib64"
> >> >> export nonarch_base_libdir="/lib"
> >> >> export BUILD_CXX="g++ "
> >> >> unset TARGET_ARCH
> >> >> export CCACHE_DIR="/home/nick"
> >> >> export
> >> PSEUDO_PREFIX="/home/nick/poky/build/tmp/sysroots/i686-linux/usr"
> >> >> export BUILD_CPP="cpp "
> >> >> export base_sbindir="/sbin"
> >> >> export USER="nick"
> >> >> export NM="x86_64-poky-linux-nm"
> >> >> export
> >> >>
> >> BUILD_CPPFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> >> >> export BUILD_FC="gfortran "
> >> >> export CPP_FOR_BUILD="cpp "
> >> >> export TARGET_CPPFLAGS=""
> >> >> export
> >> >>
> >> CXXFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> >> >> -O2 -pipe -fpermissive"
> >> >> export TARGET_CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> >> >> export OBJDUMP="x86_64-poky-linux-objdump"
> >> >> unset DISTRO
> >> >> export CC_FOR_BUILD="gcc "
> >> >> export SHELL="/bin/bash"
> >> >> export PSEUDO_NOSYMLINKEXP="1"
> >> >> do_install() {
> >> >> autotools_do_install
> >> >> ln -sf libtk8.6.so
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64/libtk8.6.so.0
> >> >> oe_libinstall -so libtk8.6
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64
> >> >> ln -sf wish8.6
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/bin/wish
> >> >>
> >> >> # Even after passing libdir=/usr/lib64 at config, some incorrect
> >> dirs
> >> >> are still generated for the multilib build
> >> >> if [ "$libdir" != "/usr/lib" ]; then
> >> >> # Move files to correct library directory
> >> >> mv
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib/tk8.6/*
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/tk8.6/
> >> >> # Remove unneeded/incorrect dir ('usr/lib/')
> >> >> rm -rf
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib
> >> >> fi
> >> >>
> >> >> }
> >> >>
> >> >> oe_libinstall() {
> >> >> # Purpose: Install a library, in all its forms
> >> >> # Example
> >> >> #
> >> >> # oe_libinstall libltdl
> >> >> /home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/
> >> >> # oe_libinstall -C src/libblah libblah
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/
> >> >> dir=""
> >> >> libtool=""
> >> >> silent=""
> >> >> require_static=""
> >> >> require_shared=""
> >> >> staging_install=""
> >> >> while [ "$#" -gt 0 ]; do
> >> >> case "$1" in
> >> >> -C)
> >> >> shift
> >> >> dir="$1"
> >> >> ;;
> >> >> -s)
> >> >> silent=1
> >> >> ;;
> >> >> -a)
> >> >> require_static=1
> >> >> ;;
> >> >> -so)
> >> >> require_shared=1
> >> >> ;;
> >> >> -*)
> >> >> bbfatal "oe_libinstall: unknown option: $1"
> >> >> ;;
> >> >> *)
> >> >> break;
> >> >> ;;
> >> >> esac
> >> >> shift
> >> >> done
> >> >>
> >> >> libname="$1"
> >> >> shift
> >> >> destpath="$1"
> >> >> if [ -z "$destpath" ]; then
> >> >> bbfatal "oe_libinstall: no destination path specified"
> >> >> fi
> >> >> if echo "$destpath/" | egrep
> >> >> '^/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/' >/dev/null
> >> >> then
> >> >> staging_install=1
> >> >> fi
> >> >>
> >> >> __runcmd () {
> >> >> if [ -z "$silent" ]; then
> >> >> echo >&2 "oe_libinstall: $*"
> >> >> fi
> >> >> $*
> >> >> }
> >> >>
> >> >> if [ -z "$dir" ]; then
> >> >> dir=`pwd`
> >> >> fi
> >> >>
> >> >> dotlai=$libname.lai
> >> >>
> >> >> # Sanity check that the libname.lai is unique
> >> >> number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
> >> >> if [ $number_of_files -gt 1 ]; then
> >> >> bbfatal "oe_libinstall: $dotlai is not unique in $dir"
> >> >> fi
> >> >>
> >> >>
> >> >> dir=$dir`(cd $dir;find . -name "$dotlai") | sed
> >> >> "s/^\.//;s/\/$dotlai\$//;q"`
> >> >> olddir=`pwd`
> >> >> __runcmd cd $dir
> >> >>
> >> >> lafile=$libname.la
> >> >>
> >> >> # If such file doesn't exist, try to cut version suffix
> >> >> if [ ! -f "$lafile" ]; then
> >> >> libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
> >> >> lafile1=$libname.la
> >> >> if [ -f "$lafile1" ]; then
> >> >> libname=$libname1
> >> >> lafile=$lafile1
> >> >> fi
> >> >> fi
> >> >>
> >> >> if [ -f "$lafile" ]; then
> >> >> # libtool archive
> >> >> eval `cat $lafile|grep "^library_names="`
> >> >> libtool=1
> >> >> else
> >> >> library_names="$libname.so* $libname.dll.a $libname.*.dylib"
> >> >> fi
> >> >>
> >> >> __runcmd install -d $destpath/
> >> >> dota=$libname.a
> >> >> if [ -f "$dota" -o -n "$require_static" ]; then
> >> >> rm -f $destpath/$dota
> >> >> __runcmd install -m 0644 $dota $destpath/
> >> >> fi
> >> >> if [ -f "$dotlai" -a -n "$libtool" ]; then
> >> >> rm -f $destpath/$libname.la
> >> >> __runcmd install -m 0644 $dotlai $destpath/$libname.la
> >> >> fi
> >> >>
> >> >> for name in $library_names; do
> >> >> files=`eval echo $name`
> >> >> for f in $files; do
> >> >> if [ ! -e "$f" ]; then
> >> >> if [ -n "$libtool" ]; then
> >> >> bbfatal "oe_libinstall: $dir/$f not found."
> >> >> fi
> >> >> elif [ -L "$f" ]; then
> >> >> __runcmd cp -P "$f" $destpath/
> >> >> elif [ ! -L "$f" ]; then
> >> >> libfile="$f"
> >> >> rm -f $destpath/$libfile
> >> >> __runcmd install -m 0755 $libfile $destpath/
> >> >> fi
> >> >> done
> >> >> done
> >> >>
> >> >> if [ -z "$libfile" ]; then
> >> >> if [ -n "$require_shared" ]; then
> >> >> bbfatal "oe_libinstall: unable to locate shared library"
> >> >> fi
> >> >> elif [ -z "$libtool" ]; then
> >> >> # special case hack for non-libtool .so.#.#.# links
> >> >> baselibfile=`basename "$libfile"`
> >> >> if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$'); then
> >> >> sonamelink=`x86_64-poky-linux-readelf -d $libfile |grep
> >> >> 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
> >> >> solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
> >> >> if [ -n "$sonamelink" -a x"$baselibfile" != x"$sonamelink"
> >> ];
> >> >> then
> >> >> __runcmd ln -sf $baselibfile $destpath/$sonamelink
> >> >> fi
> >> >> __runcmd ln -sf $baselibfile $destpath/$solink
> >> >> fi
> >> >> fi
> >> >>
> >> >> __runcmd cd "$olddir"
> >> >>
> >> >>
> >> >> }
> >> >>
> >> >> autotools_do_install() {
> >> >> oe_runmake
> >> >>
> >> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> >> >> install
> >> >> # Info dir listing isn't interesting at this point so remove it if
> >> it
> >> >> exists.
> >> >> if [ -e
> >> >>
> >> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
> >> >> ]; then
> >> >> rm -f
> >> >>
> >> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
> >> >> fi
> >> >>
> >> >> }
> >> >>
> >> >> bbfatal() {
> >> >> echo "ERROR: $*"
> >> >> exit 1
> >> >>
> >> >> }
> >> >>
> >> >> cd
> >> >>
> >> '/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/tk8.6.0/unix'
> >> >> do_install
> >> >>
> >> >> # cleanup
> >> >> ret=$?
> >> >> trap '' 0
> >> >> exit $?
> >> >
> >>
> >> Sorry, I'm lost on where to look next on this. The run files in my
> >> builds include the definition of oe_runmake() and the other functions
> >> which are used so I assume that's what's supposed to happen. I was
> >> hoping someone else would notice this thread and have a better idea
> >> what the underlying problem might be. I've never really looked at the
> >> internals of bitbake or how these scripts are generated.
> >>
> >> I'd suggest asking on the #oe or #yocto channels on irc.freenode.net,
> >> plus maybe reposting to yocto@yoctoproject.org if no-one else replies
> >> to this and you still need help.
> >>
> >> Sorry I can't be any more help.
> >>
> >> --
> >> Paul Barker
> >>
> >> Email: paul@paulbarker.me.uk
> >> http://www.paulbarker.me.uk
> >>
> >
> >
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: tk 8.6.0: strange error: "oe_runmake: command not found"
2014-03-13 10:21 ` Martin Jansa
@ 2014-03-13 21:35 ` Nick D'Ademo
0 siblings, 0 replies; 11+ messages in thread
From: Nick D'Ademo @ 2014-03-13 21:35 UTC (permalink / raw)
To: openembedded-devel
That's right - slightly different error (but still related to oe_runmake
though):
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so:
error: undefined reference to 'FcFontRenderPrepare'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddMatrix'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcCharSetHasChar'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcCharSetDestroy'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternDestroy'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcFontSetDestroy'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetString'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetDouble'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetInteger'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcConfigSubstitute'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcFontSort'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternGetCharSet'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcCharSetCopy'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternCreate'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddString'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddDouble'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddInteger'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcPatternAddBool'
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/tk8.6.0/unix/libtk8.6.so: error: undefined reference to 'FcUtf8ToUcs4'
> | collect2: error: ld returned 1 exit status
> | make: *** [wish] Error 1
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/core2-64-oe-linux/tk/8.6.0-r0/temp/log.do_compile.10692)
> NOTE: recipe tk-8.6.0-r0: task do_compile: Failed
> ERROR: Task 11541 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-devtools/tcltk/tk_8.6.0.bb, do_compile) failed with exit code '1'
>
>
Any ideas?
On Thu, Mar 13, 2014 at 9:21 PM, Martin Jansa <martin.jansa@gmail.com>wrote:
> On Thu, Mar 13, 2014 at 07:23:36PM +1100, Nick D'Ademo wrote:
> > This bug is still present and has been for nearly 3 months now.
>
> tk is regularly failing in world builds for more than 3 months:
> www.openembedded.org/wiki/Bitbake_World_Status
> but with different error.
>
> > Has anyone else encountered it or has any ideas as to why oe_runmake
> isn't
> > being found?
> >
> >
> >
> >
> > On Tue, Feb 18, 2014 at 3:11 AM, Nick D'Ademo <nickdademo@gmail.com>
> wrote:
> >
> > > No worries Paul.
> > >
> > > The issue is currently listed in the state of Bitbake world failed
> tasks
> > > as well, so hopefully someone else may see it and have a better idea.
> > >
> > >
> > >
> > >
> > > On Mon, Feb 17, 2014 at 8:35 PM, Paul Barker <paul@paulbarker.me.uk
> >wrote:
> > >
> > >> On 11 February 2014 13:01, Nick D'Ademo <nickdademo@gmail.com> wrote:
> > >> > The only reference to "oe_runmake" in the run file is within the
> > >> > autotools_do_install() function (as pasted in my previous message).
> > >> >
> > >> > Complete run file below:
> > >> >
> > >> >> #!/bin/sh
> > >> >>
> > >> >> # Emit a useful diagnostic if something fails:
> > >> >> bb_exit_handler() {
> > >> >> ret=$?
> > >> >> case $ret in
> > >> >> 0) ;;
> > >> >> *) case $BASH_VERSION in
> > >> >> "") echo "WARNING: exit code $ret from a shell
> command.";;
> > >> >> *) echo "WARNING: ${BASH_SOURCE[0]}:${BASH_LINENO[0]}
> exit
> > >> $ret
> > >> >> from
> > >> >> "$BASH_COMMAND"";;
> > >> >> esac
> > >> >> exit $ret
> > >> >> esac
> > >> >> }
> > >> >> trap 'bb_exit_handler' 0
> > >> >> set -e
> > >> >> export localstatedir="/var"
> > >> >> export prefix="/usr"
> > >> >> export LD="x86_64-poky-linux-ld
> > >> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc "
> > >> >> export RANLIB="x86_64-poky-linux-ranlib"
> > >> >> export CXX="x86_64-poky-linux-g++ -m64 -march=corei7 -mtune=corei7
> > >> >> -mfpmath=sse -msse4.2
> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> > >> >> export lt_cv_sys_lib_dlsearch_path_spec="/usr/lib64 /lib64"
> > >> >> export servicedir="/srv"
> > >> >> export sysconfdir="/etc"
> > >> >> export TARGET_LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu
> -Wl,--as-needed"
> > >> >> export PKG_CONFIG_DISABLE_UNINSTALLED="yes"
> > >> >> export STRINGS="x86_64-poky-linux-strings"
> > >> >> export
> > >> >>
> > >>
> BUILD_CFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> > >> >> -O2 -pipe"
> > >> >> export base_prefix=""
> > >> >> export CPP="x86_64-poky-linux-gcc -E
> > >> >> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc -m64
> -march=corei7
> > >> >> -mtune=corei7 -mfpmath=sse -msse4.2"
> > >> >> export
> > >> >>
> > >>
> PSEUDO_LOCALSTATEDIR="/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/pseudo/"
> > >> >> export LOGNAME="nick"
> > >> >> export STRIP="x86_64-poky-linux-strip"
> > >> >> export datadir="/usr/share"
> > >> >> export
> PKG_CONFIG_SYSROOT_DIR="/home/nick/poky/build/tmp/sysroots/nuc"
> > >> >> export bindir="/usr/bin"
> > >> >> export mandir="/usr/share/man"
> > >> >> export
> > >> >>
> > >>
> CPPFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> > >> >> export PATCH_GET="0"
> > >> >> export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
> > >> >> -Wl,-rpath,/usr/lib64/tcltk/8.6.0/lib"
> > >> >> export MAKE="make"
> > >> >> export
> > >> >>
> > >>
> PKG_CONFIG_PATH="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig:/home/nick/poky/build/tmp/sysroots/nuc/usr/share/pkgconfig"
> > >> >> export LD_FOR_BUILD="ld "
> > >> >> export AS="x86_64-poky-linux-as "
> > >> >> export AR="x86_64-poky-linux-ar"
> > >> >> export exec_prefix="/usr"
> > >> >> export LC_ALL="C"
> > >> >> export base_libdir="/lib64"
> > >> >> export
> > >> >>
> > >>
> PATH="/home/nick/poky/scripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin/corei7-64-poky-linux:/home/nick/poky/build/tmp/sysroots/nuc/usr/bin/crossscripts:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/usr/bin:/home/nick/poky/build/tmp/sysroots/i686-linux/sbin:/home/nick/poky/build/tmp/sysroots/i686-linux/bin:/home/nick/poky/scripts:/home/nick/poky/bitbake/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/nick/workspace/tye-firmware/util/arm-2011.03/bin"
> > >> >> export infodir="/usr/share/info"
> > >> >> export BUILD_CC="gcc "
> > >> >> export
> > >> >>
> BUILD_LDFLAGS="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> > >> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> > >> >>
> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> > >> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> > >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> > >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> -Wl,-O1"
> > >> >> export BUILD_CCLD="gcc "
> > >> >> export
> > >> >>
> > >>
> CFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> > >> >> -O2 -pipe"
> > >> >> export CC="x86_64-poky-linux-gcc -m64 -march=corei7 -mtune=corei7
> > >> >> -mfpmath=sse -msse4.2
> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> > >> >> export CPPFLAGS=""
> > >> >> export OBJCOPY="x86_64-poky-linux-objcopy"
> > >> >> export systemd_unitdir="/lib/systemd"
> > >> >> export
> > >> >>
> > >>
> PKG_CONFIG_DIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> > >> >> export CCLD="x86_64-poky-linux-gcc -m64 -march=corei7
> -mtune=corei7
> > >> >> -mfpmath=sse -msse4.2
> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> > >> >> export base_bindir="/bin"
> > >> >> export
> > >> >>
> > >>
> PKG_CONFIG_LIBDIR="/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/pkgconfig"
> > >> >> export sbindir="/usr/sbin"
> > >> >> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> > >> >> export
> > >> >>
> > >>
> LDFLAGS_FOR_BUILD="-L/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> > >> >> -L/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> > >> >>
> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> > >> >> -Wl,-rpath-link,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> > >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/usr/lib
> > >> >> -Wl,-rpath,/home/nick/poky/build/tmp/sysroots/i686-linux/lib
> -Wl,-O1"
> > >> >> export docdir="/usr/share/doc"
> > >> >> export TERM="xterm"
> > >> >> export CCACHE_DISABLE="1"
> > >> >> export
> > >> >>
> > >>
> BUILD_CXXFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> > >> >> -O2 -pipe -fpermissive"
> > >> >> export FC="x86_64-poky-linux-gfortran -m64 -march=corei7
> -mtune=corei7
> > >> >> -mfpmath=sse -msse4.2
> --sysroot=/home/nick/poky/build/tmp/sysroots/nuc"
> > >> >> export HOME="/home/nick"
> > >> >> export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types
> > >> -fpermissive
> > >> >> -fvisibility-inlines-hidden"
> > >> >> unset MACHINE
> > >> >> export BUILD_STRIP="strip"
> > >> >> export PSEUDO_PASSWD="/home/nick/poky/build/tmp/sysroots/nuc"
> > >> >> export libexecdir="/usr/lib64/tk"
> > >> >> export TARGET_CXXFLAGS=" -O2 -pipe -g
> -feliminate-unused-debug-types
> > >> >> -fpermissive"
> > >> >> export includedir="/usr/include"
> > >> >> export BUILD_LD="ld "
> > >> >> export oldincludedir="/usr/include"
> > >> >> export BUILD_RANLIB="ranlib"
> > >> >> export BUILD_NM="nm"
> > >> >> export BUILD_AR="ar"
> > >> >> export BUILD_AS="as "
> > >> >> export sharedstatedir="/com"
> > >> >> export CONFIG_SITE="/home/nick/poky/meta/site/endian-little
> > >> >> /home/nick/poky/meta/site/common-linux
> > >> >> /home/nick/poky/meta/site/common-glibc
> > >> >> /home/nick/poky/meta/site/x86_64-linux
> /home/nick/poky/meta/site/common
> > >> >> /home/nick/poky/meta-openembedded/meta-oe/site/endian-little "
> > >> >> export PSEUDO_DISABLED="0"
> > >> >> export CXX_FOR_BUILD="g++ "
> > >> >> export libdir="/usr/lib64"
> > >> >> export nonarch_base_libdir="/lib"
> > >> >> export BUILD_CXX="g++ "
> > >> >> unset TARGET_ARCH
> > >> >> export CCACHE_DIR="/home/nick"
> > >> >> export
> > >> PSEUDO_PREFIX="/home/nick/poky/build/tmp/sysroots/i686-linux/usr"
> > >> >> export BUILD_CPP="cpp "
> > >> >> export base_sbindir="/sbin"
> > >> >> export USER="nick"
> > >> >> export NM="x86_64-poky-linux-nm"
> > >> >> export
> > >> >>
> > >>
> BUILD_CPPFLAGS="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include"
> > >> >> export BUILD_FC="gfortran "
> > >> >> export CPP_FOR_BUILD="cpp "
> > >> >> export TARGET_CPPFLAGS=""
> > >> >> export
> > >> >>
> > >>
> CXXFLAGS_FOR_BUILD="-isystem/home/nick/poky/build/tmp/sysroots/i686-linux/usr/include
> > >> >> -O2 -pipe -fpermissive"
> > >> >> export TARGET_CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"
> > >> >> export OBJDUMP="x86_64-poky-linux-objdump"
> > >> >> unset DISTRO
> > >> >> export CC_FOR_BUILD="gcc "
> > >> >> export SHELL="/bin/bash"
> > >> >> export PSEUDO_NOSYMLINKEXP="1"
> > >> >> do_install() {
> > >> >> autotools_do_install
> > >> >> ln -sf libtk8.6.so
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64/libtk8.6.so.0
> > >> >> oe_libinstall -so libtk8.6
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib64
> > >> >> ln -sf wish8.6
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/bin/wish
> > >> >>
> > >> >> # Even after passing libdir=/usr/lib64 at config, some
> incorrect
> > >> dirs
> > >> >> are still generated for the multilib build
> > >> >> if [ "$libdir" != "/usr/lib" ]; then
> > >> >> # Move files to correct library directory
> > >> >> mv
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib/tk8.6/*
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/tk8.6/
> > >> >> # Remove unneeded/incorrect dir ('usr/lib/')
> > >> >> rm -rf
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/lib
> > >> >> fi
> > >> >>
> > >> >> }
> > >> >>
> > >> >> oe_libinstall() {
> > >> >> # Purpose: Install a library, in all its forms
> > >> >> # Example
> > >> >> #
> > >> >> # oe_libinstall libltdl
> > >> >> /home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/
> > >> >> # oe_libinstall -C src/libblah libblah
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image//usr/lib64/
> > >> >> dir=""
> > >> >> libtool=""
> > >> >> silent=""
> > >> >> require_static=""
> > >> >> require_shared=""
> > >> >> staging_install=""
> > >> >> while [ "$#" -gt 0 ]; do
> > >> >> case "$1" in
> > >> >> -C)
> > >> >> shift
> > >> >> dir="$1"
> > >> >> ;;
> > >> >> -s)
> > >> >> silent=1
> > >> >> ;;
> > >> >> -a)
> > >> >> require_static=1
> > >> >> ;;
> > >> >> -so)
> > >> >> require_shared=1
> > >> >> ;;
> > >> >> -*)
> > >> >> bbfatal "oe_libinstall: unknown option: $1"
> > >> >> ;;
> > >> >> *)
> > >> >> break;
> > >> >> ;;
> > >> >> esac
> > >> >> shift
> > >> >> done
> > >> >>
> > >> >> libname="$1"
> > >> >> shift
> > >> >> destpath="$1"
> > >> >> if [ -z "$destpath" ]; then
> > >> >> bbfatal "oe_libinstall: no destination path specified"
> > >> >> fi
> > >> >> if echo "$destpath/" | egrep
> > >> >> '^/home/nick/poky/build/tmp/sysroots/nuc/usr/lib64/' >/dev/null
> > >> >> then
> > >> >> staging_install=1
> > >> >> fi
> > >> >>
> > >> >> __runcmd () {
> > >> >> if [ -z "$silent" ]; then
> > >> >> echo >&2 "oe_libinstall: $*"
> > >> >> fi
> > >> >> $*
> > >> >> }
> > >> >>
> > >> >> if [ -z "$dir" ]; then
> > >> >> dir=`pwd`
> > >> >> fi
> > >> >>
> > >> >> dotlai=$libname.lai
> > >> >>
> > >> >> # Sanity check that the libname.lai is unique
> > >> >> number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
> > >> >> if [ $number_of_files -gt 1 ]; then
> > >> >> bbfatal "oe_libinstall: $dotlai is not unique in $dir"
> > >> >> fi
> > >> >>
> > >> >>
> > >> >> dir=$dir`(cd $dir;find . -name "$dotlai") | sed
> > >> >> "s/^\.//;s/\/$dotlai\$//;q"`
> > >> >> olddir=`pwd`
> > >> >> __runcmd cd $dir
> > >> >>
> > >> >> lafile=$libname.la
> > >> >>
> > >> >> # If such file doesn't exist, try to cut version suffix
> > >> >> if [ ! -f "$lafile" ]; then
> > >> >> libname1=`echo "$libname" | sed 's/-[0-9.]*$//'`
> > >> >> lafile1=$libname.la
> > >> >> if [ -f "$lafile1" ]; then
> > >> >> libname=$libname1
> > >> >> lafile=$lafile1
> > >> >> fi
> > >> >> fi
> > >> >>
> > >> >> if [ -f "$lafile" ]; then
> > >> >> # libtool archive
> > >> >> eval `cat $lafile|grep "^library_names="`
> > >> >> libtool=1
> > >> >> else
> > >> >> library_names="$libname.so* $libname.dll.a
> $libname.*.dylib"
> > >> >> fi
> > >> >>
> > >> >> __runcmd install -d $destpath/
> > >> >> dota=$libname.a
> > >> >> if [ -f "$dota" -o -n "$require_static" ]; then
> > >> >> rm -f $destpath/$dota
> > >> >> __runcmd install -m 0644 $dota $destpath/
> > >> >> fi
> > >> >> if [ -f "$dotlai" -a -n "$libtool" ]; then
> > >> >> rm -f $destpath/$libname.la
> > >> >> __runcmd install -m 0644 $dotlai $destpath/$libname.la
> > >> >> fi
> > >> >>
> > >> >> for name in $library_names; do
> > >> >> files=`eval echo $name`
> > >> >> for f in $files; do
> > >> >> if [ ! -e "$f" ]; then
> > >> >> if [ -n "$libtool" ]; then
> > >> >> bbfatal "oe_libinstall: $dir/$f not found."
> > >> >> fi
> > >> >> elif [ -L "$f" ]; then
> > >> >> __runcmd cp -P "$f" $destpath/
> > >> >> elif [ ! -L "$f" ]; then
> > >> >> libfile="$f"
> > >> >> rm -f $destpath/$libfile
> > >> >> __runcmd install -m 0755 $libfile $destpath/
> > >> >> fi
> > >> >> done
> > >> >> done
> > >> >>
> > >> >> if [ -z "$libfile" ]; then
> > >> >> if [ -n "$require_shared" ]; then
> > >> >> bbfatal "oe_libinstall: unable to locate shared
> library"
> > >> >> fi
> > >> >> elif [ -z "$libtool" ]; then
> > >> >> # special case hack for non-libtool .so.#.#.# links
> > >> >> baselibfile=`basename "$libfile"`
> > >> >> if (echo $baselibfile | grep -qE '^lib.*\.so\.[0-9.]*$');
> then
> > >> >> sonamelink=`x86_64-poky-linux-readelf -d $libfile |grep
> > >> >> 'Library soname:' |sed -e 's/.*\[\(.*\)\].*/\1/'`
> > >> >> solink=`echo $baselibfile | sed -e 's/\.so\..*/.so/'`
> > >> >> if [ -n "$sonamelink" -a x"$baselibfile" !=
> x"$sonamelink"
> > >> ];
> > >> >> then
> > >> >> __runcmd ln -sf $baselibfile $destpath/$sonamelink
> > >> >> fi
> > >> >> __runcmd ln -sf $baselibfile $destpath/$solink
> > >> >> fi
> > >> >> fi
> > >> >>
> > >> >> __runcmd cd "$olddir"
> > >> >>
> > >> >>
> > >> >> }
> > >> >>
> > >> >> autotools_do_install() {
> > >> >> oe_runmake
> > >> >>
> > >>
> 'DESTDIR=/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image'
> > >> >> install
> > >> >> # Info dir listing isn't interesting at this point so remove
> it if
> > >> it
> > >> >> exists.
> > >> >> if [ -e
> > >> >>
> > >>
> "/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir"
> > >> >> ]; then
> > >> >> rm -f
> > >> >>
> > >>
> /home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/image/usr/share/info/dir
> > >> >> fi
> > >> >>
> > >> >> }
> > >> >>
> > >> >> bbfatal() {
> > >> >> echo "ERROR: $*"
> > >> >> exit 1
> > >> >>
> > >> >> }
> > >> >>
> > >> >> cd
> > >> >>
> > >>
> '/home/nick/poky/build/tmp/work/corei7-64-poky-linux/tk/8.6.0-r0/tk8.6.0/unix'
> > >> >> do_install
> > >> >>
> > >> >> # cleanup
> > >> >> ret=$?
> > >> >> trap '' 0
> > >> >> exit $?
> > >> >
> > >>
> > >> Sorry, I'm lost on where to look next on this. The run files in my
> > >> builds include the definition of oe_runmake() and the other functions
> > >> which are used so I assume that's what's supposed to happen. I was
> > >> hoping someone else would notice this thread and have a better idea
> > >> what the underlying problem might be. I've never really looked at the
> > >> internals of bitbake or how these scripts are generated.
> > >>
> > >> I'd suggest asking on the #oe or #yocto channels on irc.freenode.net,
> > >> plus maybe reposting to yocto@yoctoproject.org if no-one else replies
> > >> to this and you still need help.
> > >>
> > >> Sorry I can't be any more help.
> > >>
> > >> --
> > >> Paul Barker
> > >>
> > >> Email: paul@paulbarker.me.uk
> > >> http://www.paulbarker.me.uk
> > >>
> > >
> > >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2014-03-13 21:35 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-30 11:57 tk 8.6.0: strange error: "oe_runmake: command not found" Nick D'Ademo
2014-02-07 12:11 ` Nick D'Ademo
2014-02-07 13:06 ` Paul Barker
2014-02-07 13:53 ` Nick D'Ademo
2014-02-11 11:42 ` Paul Barker
2014-02-11 13:01 ` Nick D'Ademo
2014-02-17 9:35 ` Paul Barker
2014-02-17 16:11 ` Nick D'Ademo
2014-03-13 8:23 ` Nick D'Ademo
2014-03-13 10:21 ` Martin Jansa
2014-03-13 21:35 ` Nick D'Ademo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.