I was blaming concurrent compilation or multiprocessor (multi-thread) archiver. Despite it take almost forever
I was trying to get rid of all of them, but nothing has helped me.
I don't remember when it all has began. I have tested my file system and I cannot see anything wrong with it.
Here is the example:
Code: Select all
cc1plus: fatal error: /var/tmp/portage/sys-devel/gcc-13.2.1_p20230826/work/gcc-13-20230826/gcc/lower-subreg.cc: No such file or directoryAlmost certain, when I recompile gcc again that file will be present and everything will be OK.
If not, I have to repeat it again and it will be build successfully, just because it is already compiled before and used as system compiler.
It has nothing to do with gcc, not even exact version of it. And it has nothing to do with the hardware, because all systems I have
demonstrate the same behavior.
It has all began with extremely long compiling time by gcc, not clang, but only gcc. It could take days for gcc to build up gcc or something heavier,
because it had dropped multiple jobs for just 1 and that job was doing nothing 99% of the time.
Now it seems like the issue has gone, but instead I got that crazy behavior of missing files.
Funny enough if I compile anything outside of portage, by using own script I do never experience that issue.
I do use the same archivers, the same compilers, but when compiling fails it doesn't fail because of missing file.
I cannot even file a bug, because I don't understand WHAT I should write there and WHAT application to blame.
Maybe some one else had that issue and can comment on it.
As mentioned above the workaround is dead simple - recompile the sources again it most of the time it will work. If not do that 2 times.
I have tested my DRAM by running long 10+ hours memory test. No error. FS, have been tested too, but actually it all
happens in memory - tmpfs and it happens on 4 separate systems of different age. One of them uses musl instead of glibc.
No other issues while running programs were observed.
Thx


