Le 2022-03-14 21:40, Karl Semich a écrit :
Hi I'm new to coreboot and visiting briefly, I'm replying to this error because it looks like a systems error rather than a coreboot error, at first glance.
"permission denied" during any build of anything is usually from accidentally running part of the build under "sudo", and fixed with (sudo chown -R user:user .) replacing "user" with your username, to copy your parentheses syntax.
Another usual fix is to wipe the source tree and clone the repository again.
What operating system are you building on? _______________________________________________ coreboot mailing list -- coreboot@coreboot.org To unsubscribe send an email to coreboot-leave@coreboot.org
Hi Karl,
I'm under ArchLinux (Linux) but I only ran make as an unprivileged user (zwei).
I've run make manually inside the folder for GCC building and I still hit the error. [REDACTED the beginning...] make[2]: Entering directory '/home/zwei/project/opensource/coreboot/util/crossgcc/build-x86_64-elf-GCC/gcc' mkdir -p ada/bldtools/sinfo rm -f ada/bldtools/sinfo/sinfo.ads ada/bldtools/sinfo/sinfo.adb ada/bldtools/sinfo/xsinfo.adb ada/bldtools/sinfo/csinfo.adb cp -p ../../gcc-11.2.0/gcc/ada/sinfo.ads ../../gcc-11.2.0/gcc/ada/sinfo.adb ../../gcc-11.2.0/gcc/ada/xsinfo.adb ../../gcc-11.2.0/gcc/ada/csinfo.adb ada/bldtools/sinfo make[2]: cp: Permission denied make[2]: *** [../../gcc-11.2.0/gcc/ada/Make-generated.in:44: ada/sinfo.h] Error 127 make[2]: Leaving directory '/home/zwei/project/opensource/coreboot/util/crossgcc/build-x86_64-elf-GCC/gcc' make[1]: *** [Makefile:4409: all-gcc] Error 2 make[1]: Leaving directory '/home/zwei/project/opensource/coreboot/util/crossgcc/build-x86_64-elf-GCC' make: *** [Makefile:940: all] Error 2
Here is what ls shows about the permissions, manually running the command in my shell works fine.
.rw------- zwei zwei 20 KB Wed Jul 28 08:55:06 2021 ../../gcc-11.2.0/gcc/ada/csinfo.adb .rw------- zwei zwei 224 KB Wed Jul 28 08:55:06 2021 ../../gcc-11.2.0/gcc/ada/sinfo.adb .rw------- zwei zwei 530 KB Wed Jul 28 08:55:06 2021 ../../gcc-11.2.0/gcc/ada/sinfo.ads .rw------- zwei zwei 7.8 KB Wed Jul 28 08:55:06 2021 ../../gcc-11.2.0/gcc/ada/xsinfo.adb
ada/bldtools/sinfo: drwx------ zwei zwei 2 B Tue Mar 15 23:13:21 2022 . drwx------ zwei zwei 5 B Mon Mar 14 03:43:30 2022 ..
Have you any idea what should I do ? Should I run sudo make ? I've never actually have needed to do so in the past, hence I'm hesitating quite a bit.
Maybe I'll wipe the source tree as you've said and retry to build everything again.