I try to upgrade the system with 'emerge --verbose --update --deep --changed-use @world' When building package x11-base/xorg-server-1.20.13-r1 sdksyms.c:494:15: error: expected expression before ‘__attribute__’ 494 | (void *) &__attribute__ I did not find any information regarding this error. Hope to help. Thanks!
Created attachment 734878 [details] emerge --info
Created attachment 734881 [details] build log
Please attach the full build log.
Created attachment 734974 [details] xorg-server-1.20.13-r1 build log
I don't think this is a syntax related error. as it happens the same with ebuild xorg-server version 1.20.11, 1.20.12 I found some information related to gcc5 but I am using gcc 10.3.0 . Maybe my system built the wrong flag. Thanks
Now emerge successfully after emerge --sync, add FEATURES="-userpriv", add "threads" flag to make.config flag
Can you reproduce the problem if you build with default enabled userpriv? Also, what does 'ls -l /bin/sh' gives you?
Yes I just enabled userpriv can't build. $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 Feb 21 2021 /bin/sh -> bash
Sounds like some silent permissions problems. Get yourself dev-util/sysdig, load kernel module and in another shell, as root run: sysdig "user.name = 'portage' and (evt.res = EACCES or evt.res = EPERM)" Then in yet another shell try to build xorg-server with userpriv and see what paths are yielding permissions problems.
Wow that's amazing! I found the path that was causing the error. But I don't quite understand the current permission. Apparently the path that caused the error was still working fine before for a long time. readlink (48079) < openat fd=-13(EACCES) dirfd=5(<f>/mnt/tmp_build/portage) name=..(/mnt/tmp_build) flags=1(O_RDONLY) mode=0 dev=0 An error occurred in the build directory attached to the hard drive. $ ls -l /mnt/tmp_build 4 drwx--x--x 13 root root 4096 Jun 24 13:49 tmp_build I have chmod 777 /mnt/tmp_build and successfully bulid xorg-server