* Building .deb package from sources fails
@ 2018-05-29 12:21 Francesco
2018-05-29 12:49 ` Claudius Heine
2018-06-05 8:43 ` Henning Schild
0 siblings, 2 replies; 3+ messages in thread
From: Francesco @ 2018-05-29 12:21 UTC (permalink / raw)
To: isar-users
Hello everyone,
I'm trying to build the .deb package from the sources of this
repository: https://github.com/codeauroraforum/imx-kobs
This is what I have done looking at your helloworld example:
recipe imx-kobs_5.5.bb:
#
# This software is a part of ISAR.
# Copyright (C) 2015-2018 ilbers GmbH
DESCRIPTION = "imx-kobs"
LICENSE = "gpl-2.0"
PN = "imx-kobs"
PV = "5.5"
SRC_URI =
"git://github.com/codeauroraforum/imx-kobs.git;protocol=https;destsuffix=${P}"
SRC_URI[md5sum] = "07a9c2114bd73fe3b6491118cbb0eef3"
SRCREV = "c70685de47cfb67c5e16e1631b7033023ca3e97c"
inherit dpkg
When I compile the package using bitbake I'm getting this:
dave@beleriand /mnt/elbe/Isar/isar/build $ bitbake
multiconfig:lynx-config:imx-kobs
Parsing recipes: 100%
|##############################################################################################################################################|
Time: 0:00:00Parsing of 9 .bb files complete (0 cached, 9 parsed). 99
targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100%
|###########################################################################################################################################|
Time: 0:00:00NOTE: Executing RunQueue Tasks
ERROR: mc:lynx-config:imx-kobs-5.5-r0 do_build: Function failed:
do_build (log file is located at
/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528)
ERROR: Logfile of failure stored in:
/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528
Log data follows:
| DEBUG: Executing shell function do_build
| /build.sh: line 10: cd:
/home/builder/imx-kobs//mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/imx-kobs-5.5:
No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_build (log file is located at
/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528)
ERROR: Task
(multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-devtools/kobs-ng/kobs-imx-5.5.bb:do_build)
failed with exit code '1'
NOTE: Tasks Summary: Attempted 11 tasks of which 0 didn't need to be
rerun and 1 failed.
Summary: 1 task failed:
multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-devtools/kobs-ng/kobs-imx-5.5.bb:do_build
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
If I look inside the build.sh line 10 is :
9 # Go to build directory
10 cd $1
How is $1 passed to the build.sh script from the recipe?
Why the path is messed up with this prefix : /home/builder/imx-kobs/,
when the correct destination is :
/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/imx-kobs-5.5?
Am I misunderstanding something here?
Thanks for your help
Frank
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building .deb package from sources fails
2018-05-29 12:21 Building .deb package from sources fails Francesco
@ 2018-05-29 12:49 ` Claudius Heine
2018-06-05 8:43 ` Henning Schild
1 sibling, 0 replies; 3+ messages in thread
From: Claudius Heine @ 2018-05-29 12:49 UTC (permalink / raw)
To: Francesco, isar-users
Hi Francesco,
On 2018-05-29 14:21, Francesco wrote:
> Hello everyone,
> I'm trying to build the .deb package from the sources of this
> repository: https://github.com/codeauroraforum/imx-kobs
> This is what I have done looking at your helloworld example:
>
> recipe imx-kobs_5.5.bb:
> #
> # This software is a part of ISAR.
> # Copyright (C) 2015-2018 ilbers GmbH
>
> DESCRIPTION = "imx-kobs"
>
> LICENSE = "gpl-2.0"
> PN = "imx-kobs"
> PV = "5.5"
>
> SRC_URI =
> "git://github.com/codeauroraforum/imx-kobs.git;protocol=https;destsuffix=${P}"
>
> SRC_URI[md5sum] = "07a9c2114bd73fe3b6491118cbb0eef3"
> SRCREV = "c70685de47cfb67c5e16e1631b7033023ca3e97c"
> inherit dpkg
>
>
> When I compile the package using bitbake I'm getting this:
>
> dave@beleriand /mnt/elbe/Isar/isar/build $ bitbake
> multiconfig:lynx-config:imx-kobs
> Parsing recipes: 100%
> |##############################################################################################################################################|
> Time: 0:00:00Parsing of 9 .bb files complete (0 cached, 9 parsed). 99
> targets, 0 skipped, 0 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> Initialising tasks: 100%
> |###########################################################################################################################################|
> Time: 0:00:00NOTE: Executing RunQueue Tasks
> ERROR: mc:lynx-config:imx-kobs-5.5-r0 do_build: Function failed:
> do_build (log file is located at
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528)
>
> ERROR: Logfile of failure stored in:
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528
>
> Log data follows:
> | DEBUG: Executing shell function do_build
> | /build.sh: line 10: cd:
> /home/builder/imx-kobs//mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/imx-kobs-5.5:
> No such file or directory
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_build (log file is located at
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528)
>
> ERROR: Task
> (multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-devtools/kobs-ng/kobs-imx-5.5.bb:do_build)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 11 tasks of which 0 didn't need to be
> rerun and 1 failed.
>
> Summary: 1 task failed:
> multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-devtools/kobs-ng/kobs-imx-5.5.bb:do_build
>
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
> If I look inside the build.sh line 10 is :
>
> 9 # Go to build directory
> 10 cd $1
>
> How is $1 passed to the build.sh script from the recipe?
> Why the path is messed up with this prefix : /home/builder/imx-kobs/,
> when the correct destination is :
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/imx-kobs-5.5?
> Am I misunderstanding something here?
I don't know what is happening here for you. The 'build.sh' script is
called by the 'dpkg.bbclass' like this:
sudo -E chroot ${BUILDCHROOT_DIR} /build.sh ${PP}/${PPS}
You can look at what those variables are by either inspecting the all
environments "bitbake -e ...| grep -E '^(PP|PPS)'" or looking at the
generated shell scripts of this task:
/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/run.do_build
For me with the example-hello recipe it looks like this:
PP="/home/builder/example-hello"
PPS="example-hello-0.2-86cc719"
Good luck,
Claudius
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-54 Fax: (+49)-8142-66989-80 Email: ch@denx.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Building .deb package from sources fails
2018-05-29 12:21 Building .deb package from sources fails Francesco
2018-05-29 12:49 ` Claudius Heine
@ 2018-06-05 8:43 ` Henning Schild
1 sibling, 0 replies; 3+ messages in thread
From: Henning Schild @ 2018-06-05 8:43 UTC (permalink / raw)
To: Francesco; +Cc: isar-users
Am Tue, 29 May 2018 14:21:02 +0200
schrieb Francesco <fdprnd@dave.eu>:
> Hello everyone,
> I'm trying to build the .deb package from the sources of this
> repository: https://github.com/codeauroraforum/imx-kobs
> This is what I have done looking at your helloworld example:
>
> recipe imx-kobs_5.5.bb:
> #
> # This software is a part of ISAR.
> # Copyright (C) 2015-2018 ilbers GmbH
>
> DESCRIPTION = "imx-kobs"
>
> LICENSE = "gpl-2.0"
> PN = "imx-kobs"
> PV = "5.5"
PN and PV default to exactly that based on the name you chose
>
> SRC_URI =
> "git://github.com/codeauroraforum/imx-kobs.git;protocol=https;destsuffix=${P}"
This should clone SRCREV to the directory that seems to be missing
later on.
> SRC_URI[md5sum] = "07a9c2114bd73fe3b6491118cbb0eef3"
I do not think the md5sum should be specified when using git.
> SRCREV = "c70685de47cfb67c5e16e1631b7033023ca3e97c"
> inherit dpkg
>
>
> When I compile the package using bitbake I'm getting this:
>
> dave@beleriand /mnt/elbe/Isar/isar/build $ bitbake
> multiconfig:lynx-config:imx-kobs
> Parsing recipes: 100%
> |##############################################################################################################################################|
> Time: 0:00:00Parsing of 9 .bb files complete (0 cached, 9 parsed). 99
> targets, 0 skipped, 0 masked, 0 errors.
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> NOTE: Resolving any missing task queue dependencies
> Initialising tasks: 100%
> |###########################################################################################################################################|
> Time: 0:00:00NOTE: Executing RunQueue Tasks
> ERROR: mc:lynx-config:imx-kobs-5.5-r0 do_build: Function failed:
> do_build (log file is located at
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528)
> ERROR: Logfile of failure stored in:
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528
> Log data follows:
> | DEBUG: Executing shell function do_build
> | /build.sh: line 10: cd:
> /home/builder/imx-kobs//mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/imx-kobs-5.5:
This directory should exist, looks like something went wrong in
fetch/unpack.
Try "bitbake -c clean imx-kobs" to restart the fetch/unpack tasks. Or
delete /home/builder/imx-kobs//mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0
and /home/builder/imx-kobs//mnt/elbe/Isar/isar/build/tmp/stamps/imx-kobs*
from outside.
Henning
> No such file or directory
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_build (log file is located at
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/temp/log.do_build.17528)
> ERROR: Task
> (multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-devtools/kobs-ng/kobs-imx-5.5.bb:do_build)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 11 tasks of which 0 didn't need to be
> rerun and 1 failed.
>
> Summary: 1 task failed:
> multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-devtools/kobs-ng/kobs-imx-5.5.bb:do_build
> Summary: There was 1 ERROR message shown, returning a non-zero exit
> code.
>
> If I look inside the build.sh line 10 is :
>
> 9 # Go to build directory
> 10 cd $1
>
> How is $1 passed to the build.sh script from the recipe?
> Why the path is messed up with this prefix : /home/builder/imx-kobs/,
> when the correct destination is :
> /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/imx-kobs-5.5-r0/imx-kobs-5.5?
> Am I misunderstanding something here?
>
> Thanks for your help
>
> Frank
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-05 8:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-29 12:21 Building .deb package from sources fails Francesco
2018-05-29 12:49 ` Claudius Heine
2018-06-05 8:43 ` Henning Schild
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox