Bug 14299 - failure in the command 'bitbake gcc-runtime -c check'
Summary: failure in the command 'bitbake gcc-runtime -c check'
Status: RESOLVED FIXED
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.4 M1
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2021-03-11 14:44 UTC by Köry Maincent
Modified: 2021-05-20 15:08 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Köry Maincent 2021-03-11 14:44:27 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/42/builds/3179/steps/20/logs/stdio

2021-03-10 05:07:15,588 - oe-selftest - INFO -  ... FAIL
2021-03-10 05:07:15,589 - oe-selftest - INFO - 1: 1/1 8/15 (376.79s) (gcc.GccCrossSelfTest.test_cross_gcc)
2021-03-10 05:07:15,589 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemuarm64/build/meta/lib/oeqa/selftest/cases/gcc.py", line 82, in test_cross_gcc
    self.run_check("gcc")
  File "/home/pokybuild/yocto-worker/qemuarm64/build/meta/lib/oeqa/selftest/cases/gcc.py", line 42, in run_check
    bitbake("{} -c check".format(recipe))
  File "/home/pokybuild/yocto-worker/qemuarm64/build/meta/lib/oeqa/utils/commands.py", line 232, in bitbake
    return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)
  File "/home/pokybuild/yocto-worker/qemuarm64/build/meta/lib/oeqa/utils/commands.py", line 210, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'bitbake  gcc-runtime -c check' returned non-zero exit status 1:

Maybe related to https://bugzilla.yoctoproject.org/show_bug.cgi?id=14289 ?
Comment 1 Oleksiy Obitotskyy 2021-03-23 10:23:26 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/74/builds/3211

2021-03-19 21:50:01,866 - oe-selftest - INFO - gcc.GccLibStdCxxSelfTest.test_libstdcxx (subunit.RemotedTestCase)
2021-03-19 21:50:01,868 - oe-selftest - INFO -  ... FAIL
2021-03-19 21:50:01,869 - oe-selftest - INFO - 6: 1/1 1/15 (5.37s) (gcc.GccLibStdCxxSelfTest.test_libstdcxx)
2021-03-19 21:50:01,870 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemumips64/build/meta/lib/oeqa/selftest/cases/gcc.py", line 102, in test_libstdcxx
    self.run_check("libstdc++-v3")
  File "/home/pokybuild/yocto-worker/qemumips64/build/meta/lib/oeqa/selftest/cases/gcc.py", line 42, in run_check
    bitbake("{} -c check".format(recipe))
  File "/home/pokybuild/yocto-worker/qemumips64/build/meta/lib/oeqa/utils/commands.py", line 232, in bitbake
    return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)
  File "/home/pokybuild/yocto-worker/qemumips64/build/meta/lib/oeqa/utils/commands.py", line 210, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'bitbake  gcc-runtime -c check' returned non-zero exit status 1:
Loading cache...done.
Loaded 0 entries from dependency cache.
Parsing recipes...ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemumips64/build/bitbake/lib/bb/command.py", line 114, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/pokybuild/yocto-worker/qemumips64/build/bitbake/lib/bb/cooker.py", line 1621, in updateCache
    self.parser = CookerParser(self, mcfilelist, total_masked)
  File "/home/pokybuild/yocto-worker/qemumips64/build/bitbake/lib/bb/cooker.py", line 2103, in __init__
    self.start()
  File "/home/pokybuild/yocto-worker/qemumips64/build/bitbake/lib/bb/cooker.py", line 2129, in start
    parser.start()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 112, in start
    self._popen = self._Popen(self)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 223, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/context.py", line 277, in _Popen
    return Popen(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
  File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 70, in _launch
    self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory


Summary: There was 1 ERROR message shown, returning a non-zero exit code.
...
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - meta_ide.MetaIDE.test_meta_ide_can_build_cpio_project: ERROR
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - meta_ide.MetaIDE.test_meta_ide_can_compile_c_program: ERROR
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - meta_ide.MetaIDE.test_meta_ide_had_installed_meta_ide_support: ERROR
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - binutils.BinutilsCrossSelfTest.test_binutils: FAILED (5.33s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - binutils.BinutilsCrossSelfTest.test_gas: FAILED (79.75s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - binutils.BinutilsCrossSelfTest.test_ld: FAILED (60.48s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - gcc.GccCrossSelfTest.test_cross_gcc: FAILED (5.38s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - gcc.GccLibAtomicSelfTest.test_libatomic: FAILED (5.38s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - gcc.GccLibGompSelfTest.test_libgomp: FAILED (5.37s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - gcc.GccLibItmSelfTest.test_libitm: FAILED (5.33s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - gcc.GccLibSspSelfTest.test_libssp: FAILED (5.38s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - gcc.GccLibStdCxxSelfTest.test_libstdcxx: FAILED (5.37s)
2021-03-19 21:52:27,439 - oe-selftest - INFO - RESULTS - gcc.GxxCrossSelfTest.test_cross_gxx: FAILED (5.35s)
2021-03-19 21:52:27,440 - oe-selftest - INFO - RESULTS - glibc.GlibcSelfTest.test_glibc: FAILED (5.37s)
Comment 2 Alexandre Belloni 2021-05-11 14:32:25 UTC
The previous occurence is a memory allocation issue, see bug 14378
Comment 3 Randy MacLeod 2021-05-20 15:08:36 UTC
Likely fixed by:

http://cgit.openembedded.org/openembedded-core/commit/?id=58d4f669bd46805669daf87626350fe9359feca5

glibc: Add 8GB VM usage cap for usermode test suite