From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) by mx.groups.io with SMTP id smtpd.web08.22139.1621858786500094518 for ; Mon, 24 May 2021 05:19:46 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s92PtOVD; spf=pass (domain: gmail.com, ip: 209.85.208.41, mailfrom: fntoth@gmail.com) Received: by mail-ed1-f41.google.com with SMTP id g7so19528720edm.4 for ; Mon, 24 May 2021 05:19:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=Rwais4rMPHzZLBPS/7FLe/tE422JpLERYVl8FlwSkm4=; b=s92PtOVDr00SyDtaLMGvjUqLhg4JJEUnQOZHBLmlROodrButFKqgAr3Hf2B4QHILYv iu6kTeVhvb3EVS3sTHMvvIu38fhcX3XRDLi7U/wI5StrxP8w7IiX+5DITeG2vvDenu+U iKOpieL18yqJboEWxwcG/8PDDEKhOynjX+Ge39Bz3yiKCgeS746LXvCrZWBnDMsEIJ20 sllZ4LxXkITGnhPAozGHB63y2qBK1HbE5EtMRwwmiSYZRZ8bsmb+B/EtU/t8l7DQO/Od DioIVVBCd9uxoYe60ohxu3m+CbW7NppmYjEBCv14cllFn7Y3U2rv9bdNqiM4TNrMYcTd g/cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=Rwais4rMPHzZLBPS/7FLe/tE422JpLERYVl8FlwSkm4=; b=eZT3ANxcMWpRHRl89FC1tm1GyynE0lnKiXzmv7fsudIv1my+bNxQUeg5ALUpVJbfkd hLFHLqp9wl3K7p55V33J+Ax3vVWrma4XXB+sj8bGaSAAPjn7UnRsOOGWBAF0XOs5nD+q jibfJ+RODZOeExPE2a7RAEv/MYbcths8l+VjG4IxncRdvr9u9/9CEf+gPIO5InjrIhpj BTSXEi4vKy6O+4TmGaO+G13XANypqHCGtspuiRRzo8auEVhJt8j1ScW8uLyq0Len3ATd mbQALB5LcBSoEXBKWF6Ha/73Y1WbF0UnJGifFLsW8mHxYWbDATxHr4bFDay1pzr6ZJQ1 /uZw== X-Gm-Message-State: AOAM531/Ynt3h6+dy9Fj7zliqAmxtAjyb+vBrezyy2CaehnmsqsXpkDs MnHQ2Rj8teYiexIwAgyFGdejg1GZ3sY= X-Google-Smtp-Source: ABdhPJyKif6il7a3iNRCk1Y4045nyhb0yUIne63OUtLlzIeUYzsS+xLikup63XXDxPFbVkFDPvTxsg== X-Received: by 2002:a05:6402:b8c:: with SMTP id cf12mr20419750edb.61.1621858784920; Mon, 24 May 2021 05:19:44 -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 yw9sm7734509ejb.91.2021.05.24.05.19.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 May 2021 05:19:44 -0700 (PDT) To: yocto@lists.yoctoproject.org From: "Ferry Toth" Subject: Gatesgarth-24.0.4 image-live fails Message-ID: <2b1a204e-3c12-a955-6850-f5c2710ce529@gmail.com> Date: Mon, 24 May 2021 14:19:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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?