From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6560976852049985536 X-Received: by 2002:a1c:7a11:: with SMTP id v17-v6mr1322861wmc.28.1527598161511; Tue, 29 May 2018 05:49:21 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:a00a:: with SMTP id j10-v6ls5932332wme.6.gmail; Tue, 29 May 2018 05:49:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKDRZUhEAc5EKhUTE1o5NSITx9vIPAPH/7vZfxflMgu47QO7MfJW75VXpZzHexWmgIQl8+2 X-Received: by 2002:a1c:be01:: with SMTP id o1-v6mr1647598wmf.9.1527598160983; Tue, 29 May 2018 05:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527598160; cv=none; d=google.com; s=arc-20160816; b=KU37jXO76ty1BN9Xs2dRdVrV/rCvwohHs0glx0RrZherU+qCmmeboxSbKrSazIuROY l3NDqye0/OlY4wS7o/HrMNn5ZFTW38ewnXmpPpt1RSk2TNv2ggoDNP3ZKLe+tcIgwDf4 C3HlmUFs5oanc2OrFrvVhp/6fN/p/NopuyVAVDH3THhpi4nWmyJln2gsKl5co7AOFVEG 6To+SjAF+m8VG8d6i62yS7ZP/MsHegsChSNk1LO5xGsc/qoF9tChC+SQl+UawgQ3u29e ageZbxnx9dC8iye3pFG2GQnHoJsGldl7pusNNP7Po7mBNIe/M5iz8Kb7QSrPrEg3pdzD 1Tgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=p/SUdX0Fzs88H7agXu4CE+lRmlCpNMws/ukk89P0yxo=; b=GlIK+M/smH6GTwjy4vUHk5zzfxSc5fut5joZOHR0PDIlXUjx4jlHiQW7FSFYRYfIs6 UQW09u5IXUKypA6E3CtQqzDGxS6V77cp9RbabWJM0JPHIDZ1lxixV/e0cDDTOzuaYyX9 K/fMIk7oZw4cHXsXg6SZysAyKCi+eOoktPsuSuk47wJjxvWESjXongErIt/Zr6o7xqEi 2OSlifLHncNj3TfhWZCF3BQYmTsOY+4hn3DdEF1QQqwHXmtD77of2br3LiXRqZw2LLsa 6+2N4DY5ujKIXzaVmiAOPPZjf4X6iQuJV5gHiLoQY/Vr4Ye7+B4j+hMxWL5FReDKK5wJ RQHg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id p17-v6si737792wmd.2.2018.05.29.05.49.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 05:49:20 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w4TCnHIc022823 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 May 2018 14:49:17 +0200 Received: from [139.25.69.69] (linux-ses-ext02.ppmd.siemens.net [139.25.69.69]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id w4TCnH68030499; Tue, 29 May 2018 14:49:17 +0200 Subject: Re: Building .deb package from sources fails To: Francesco , isar-users@googlegroups.com References: <972b546e-0467-53da-658d-21efd95061d3@dave.eu> From: Claudius Heine Message-ID: <00bfa2a3-8ba5-c0ad-d9b1-c801dfb692cb@siemens.com> Date: Tue, 29 May 2018 14:49:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <972b546e-0467-53da-658d-21efd95061d3@dave.eu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: 3kY8dndKKmQd 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