From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by mx.groups.io with SMTP id smtpd.web10.22563.1621859991853569770 for ; Mon, 24 May 2021 05:39:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pH+F5beb; spf=pass (domain: gmail.com, ip: 209.85.208.48, mailfrom: fntoth@gmail.com) Received: by mail-ed1-f48.google.com with SMTP id b17so31801846ede.0 for ; Mon, 24 May 2021 05:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=BqEGFTM96Ab2O2Em0SlJC0PqA4PQ4d0SJSj9pztxSJE=; b=pH+F5beb6BctTtwuaRUy/8cEr+GUrQiB+NfXibDix1C5Z8iI7JkA/P5O1Fix+HvNwE +zIKcfe+PdfXzW5xBdtMXBVVjc8VsZ/x3LH9n0RnDu2Uycfl8TaD7L/g9eeygJHZkY4M a/ebKcmn5NPG2+xUiKe3n/ARimsoOZs/VbyvTwEx2mzI7iCS8esuIEkiYGCFIgkXE6/2 b4qYBjSElXwl886jBSv/db3o1gt0Kk8m7chz3s2Gw9I452SN5JTkhnpGw/cSQLvNMOWT h30MiHB2WxziQYwmku5nMY1Xgg8R/TDsIn9LuexW4XYZxIT8kSD1PWZyvMg5EKh5JkId CNLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=BqEGFTM96Ab2O2Em0SlJC0PqA4PQ4d0SJSj9pztxSJE=; b=XxS2SsvtL7H3YxBCR5YgRCy9tMOArv0CMrXY0nwD2nkCPuzkD9BPp0prKrf2qnSei+ uCKr7inhavdvNO8fv+gIEsR5OQH1cuI2EdchWi22NFXH5QQQx9ef6j9Ko2b6j84mYnWi GRikNjOCdrtOyiv96zjojNABcfv+FpFsmxFjvEnRiVXf+1mLmZz9rAC/Ro1DknfpL/55 xT5UguIT7VRn4r+FgmGEp194IIJPfZj5V+xFLi0P3n19RJydSG3kK1lm2C6jHJE9X79e fH7KRqludH9baVbkU+niJGoJSaSK1CMVo7sHnOvq0orww2KKe5somUoOs5Fr5bQ1Ks+a cCKA== X-Gm-Message-State: AOAM531+iNpaNM2sFhdM5w40eLbBJRA3tuRCH+EWbgsB2tYw5qNXT0SD 9TQXf3B4LDwLWMxHIzNrqDIkWmlFdi0= X-Google-Smtp-Source: ABdhPJyaYPlLYEjc97XCY1aFsP8TDUfiKY2Npwt4cFHGpfQwSGiIYahnM2pEIr1tLwQEM9KUWUXNCQ== X-Received: by 2002:a50:eb08:: with SMTP id y8mr25627276edp.89.1621859990239; Mon, 24 May 2021 05:39:50 -0700 (PDT) Return-Path: Received: from ?IPv6:2001:981:6fec:1:10c3:2774:2816:c1fd? ([2001:981:6fec:1:10c3:2774:2816:c1fd]) by smtp.gmail.com with ESMTPSA id by20sm7701806ejc.74.2021.05.24.05.39.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 05:39:49 -0700 (PDT) Subject: Re: Gatesgarth-24.0.4 image-live fails From: "Ferry Toth" To: yocto@lists.yoctoproject.org References: <2b1a204e-3c12-a955-6850-f5c2710ce529@gmail.com> Message-ID: <56b76313-e6b2-591f-5b1f-020acd40afa5@gmail.com> Date: Mon, 24 May 2021 14:39:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <2b1a204e-3c12-a955-6850-f5c2710ce529@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Wow, that got messed up, let me retry. Op 24-05-2021 om 14:19 schreef Ferry Toth: > Accidentally I refreshed poky and rebuilt. The image-live (do_bootimg) > fails when building hddimg with the following: > ERROR: edison-image-1.0-r0 do_bootimg: Error executing a python function in exec_python_func() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function:      0001:  *** 0002:do_bootimg(d)      0003: File: '/home/ferry/tmp/edison-intel/my/edison-morty/out/linux64/poky/meta/classes/image-live.bbclass', lineno: 258, function: do_bootimg      0254:    if d.getVar("PCBIOS") == "1":      0255:        bb.build.exec_func('build_syslinux_cfg', d)      0256:    if d.getVar("EFI") == "1":      0257:        bb.build.exec_func('build_efi_cfg', d)  *** 0258:    bb.build.exec_func('build_hddimg', d)      0259:    bb.build.exec_func('build_iso', d)      0260:    bb.build.exec_func('create_symlinks', d)      0261:}      0262:do_bootimg[subimages] = "hddimg iso" File: '/home/ferry/tmp/edison-intel/my/edison-morty/out/linux64/poky/bitbake/lib/bb/build.py', lineno: 256, function: exec_func      0252:    with bb.utils.fileslocked(lockfiles):      0253:        if ispython:      0254:            exec_func_python(func, d, runfile, cwd=adir)      0255:        else:  *** 0256:            exec_func_shell(func, d, runfile, cwd=adir)      0257:      0258:    try:      0259:        curcwd = os.getcwd()      0260:    except: File: '/home/ferry/tmp/edison-intel/my/edison-morty/out/linux64/poky/bitbake/lib/bb/build.py', lineno: 503, function: exec_func_shell      0499:    with open(fifopath, 'r+b', buffering=0) as fifo:      0500:        try:      0501:            bb.debug(2, "Executing shell function %s" % func)      0502:            with open(os.devnull, 'r+') as stdin, logfile:  *** 0503:                bb.process.run(cmd, shell=False, stdin=stdin, log=logfile, extrafiles=[(fifo,readfifo)])      0504:        except bb.process.ExecutionError as exe:      0505:            # Find the backtrace that the shell trap generated      0506:            backtrace_marker_regex = re.compile(r"WARNING: Backtrace \(BB generated script\)")      0507:            stdout_lines = (exe.stdout or "").split("\n") File: '/home/ferry/tmp/edison-intel/my/edison-morty/out/linux64/poky/bitbake/lib/bb/process.py', lineno: 184, function: run      0180:        if not stderr is None:      0181:            stderr = stderr.decode("utf-8")      0182:      0183:    if pipe.returncode != 0:  *** 0184:        raise ExecutionError(cmd, pipe.returncode, stdout, stderr)      0185:    return stdout, stderr Exception: bb.process.ExecutionError: Execution of '/home/ferry/tmp/edison-intel/my/edison-morty/out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0-r0/temp/run.build_hddimg.256530' failed with exit code 1: mkdosfs: unable to create /home/ferry/tmp/edison-intel/my/edison-morty/out/linux64/build/tmp/work/edison-poky-linux/edison-image/1.0-r0/deploy-edison-image-image-complete/edison-image-edison-20210524113748.hddimg mkfs.fat 4.1 (2017-01-24) WARNING: exit code 1 from a shell command. > The reason is that the directory deploy-edison-image-image-complete > doesn't exist at the time mkdosfs want to write. However after > completing the remainder of image live the directory does exists. > Consequently, running bitbake a second time image-live succeeds. > > I've tried various thing including expressly creating the directory > before mkdosfs, but nothing worked. It seems I don't understand how it > is supposed to work in the first place. > > However, I managed to trace back the issue to this commit 91e4a1c1 > "image-live.bbclass: optional depends when ROOTFS empty". > > Reverting this resolves the issue. > > Any idea what could be wrong? >