Last active
November 22, 2021 19:10
-
-
Save smalinux/c9999b7419576a83c9068e877adb4401 to your computer and use it in GitHub Desktop.
barebox-qemu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[smalinux@dhcppc9 test]$ ./emulate.pl virt64_defconfig | |
Can't exec "tuxmake": No such file or directory at ./emulate.pl line 377. | |
vsystem: No such file or directory | |
Error building: -1 | |
Resolved: https://gitlab.com/Linaro/tuxmake/-/blob/master/docs/install-rpm.md | |
[smalinux@dhcppc9 test]$ tuxmake -a riscv -k virt64_defconfig --kconfig-add=test/kconfig/base.cfg -b /tmp/bareboxbuild-eof2wEgQ36 -o /tmp/bareboxbuild-eof2wEgQ36/artifacts default | |
Traceback (most recent call last): | |
File "/usr/share/tuxmake/tuxmake/build.py", line 638, in run | |
self.validate() | |
File "/usr/share/tuxmake/tuxmake/build.py", line 297, in validate | |
raise UnrecognizedSourceTree(source.absolute()) | |
tuxmake.exceptions.UnrecognizedSourceTree: /home/smalinux/repos/barebox/test does not look like a Linux source tree | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/lib64/python3.10/runpy.py", line 196, in _run_module_as_main | |
return _run_code(code, main_globals, None, | |
File "/usr/lib64/python3.10/runpy.py", line 86, in _run_code | |
exec(code, run_globals) | |
File "/usr/share/tuxmake/tuxmake/__main__.py", line 9, in <module> | |
run() | |
File "/usr/share/tuxmake/tuxmake/__main__.py", line 6, in run | |
main() | |
File "/usr/share/tuxmake/tuxmake/cli.py", line 170, in main | |
build.run() | |
File "/usr/share/tuxmake/tuxmake/build.py", line 652, in run | |
self.collect_metadata() | |
File "/usr/share/tuxmake/tuxmake/build.py", line 577, in collect_metadata | |
errors, warnings = self.parse_log() | |
File "/usr/share/tuxmake/tuxmake/build.py", line 602, in parse_log | |
parser.parse(self.output_dir / "build.log") | |
File "/usr/share/tuxmake/tuxmake/log.py", line 19, in parse | |
for orig_line in filepath.open("r", errors="ignore"): | |
File "/usr/lib64/python3.10/pathlib.py", line 1117, in open | |
return self._accessor.open(self, mode, buffering, encoding, errors, | |
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/bareboxbuild-eof2wEgQ36/artifacts/build.log' | |
[smalinux@dhcppc9 barebox]$ tuxmake -a riscv -k virt64_defconfig --kconfig-add=test/kconfig/base.cfg -b /tmp/bareboxbuild-60x_833CSy -o /tmp/bareboxbuild-60x_833CSy/artifacts default | |
# to reproduce this build locally: tuxmake --target-arch=riscv --kconfig=virt64_defconfig --kconfig-add=test/kconfig/base.cfg --toolchain=gcc --wrapper=none --environment=KBUILD_BUILD_TIMESTAMP=@1637606948 --environment=KBUILD_BUILD_USER=tuxmake --environment=KBUILD_BUILD_HOST=tuxmake --runtime=null config default | |
# test/kconfig/base.cfg -> /tmp/bareboxbuild-60x_833CSy/0.config | |
make --silent --keep-going --jobs=12 O=/tmp/bareboxbuild-60x_833CSy ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- virt64_defconfig | |
scripts/Kconfig.include:39: compiler 'riscv64-linux-gnu-gcc' not found | |
make[2]: *** [/home/smalinux/repos/barebox/scripts/kconfig/Makefile:94: virt64_defconfig] Error 1 | |
make[1]: *** [/home/smalinux/repos/barebox/Makefile:530: virt64_defconfig] Error 2 | |
make: *** [Makefile:180: sub-make] Error 2 | |
make: Target 'virt64_defconfig' not remade because of errors. | |
I: config: FAIL in 0:00:00.025027 | |
I: default: SKIP in 0:00:00.000005 | |
I: build output in /tmp/bareboxbuild-60x_833CSy/artifacts | |
.................................................... | |
You should build cross-compiler first with buildroot | |
.................................................... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment