Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809395 - x11-base/xorg-server-1.20.13-r1 sdksyms.c:494:15: error: expected expression before ‘__attribute__’
Summary: x11-base/xorg-server-1.20.13-r1 sdksyms.c:494:15: error: expected expression ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-21 12:03 UTC by Bui Xuan Dien
Modified: 2021-09-01 17:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (xorg-server-info.txt,7.12 KB, text/plain)
2021-08-21 12:04 UTC, Bui Xuan Dien
Details
build log (build_log.txt,34.19 KB, text/plain)
2021-08-21 12:07 UTC, Bui Xuan Dien
Details
xorg-server-1.20.13-r1 build log (build.zip,39.68 KB, application/zip)
2021-08-22 00:38 UTC, Bui Xuan Dien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bui Xuan Dien 2021-08-21 12:03:35 UTC
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!
Comment 1 Bui Xuan Dien 2021-08-21 12:04:49 UTC
Created attachment 734878 [details]
emerge --info
Comment 2 Bui Xuan Dien 2021-08-21 12:07:48 UTC
Created attachment 734881 [details]
build log
Comment 3 Mike Gilbert gentoo-dev 2021-08-21 19:39:09 UTC
Please attach the full build log.
Comment 4 Bui Xuan Dien 2021-08-22 00:38:22 UTC
Created attachment 734974 [details]
xorg-server-1.20.13-r1 build log
Comment 5 Bui Xuan Dien 2021-08-22 00:46:45 UTC
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
Comment 6 Bui Xuan Dien 2021-08-27 03:31:54 UTC
Now emerge successfully after emerge --sync, add FEATURES="-userpriv", add "threads" flag to make.config flag
Comment 7 Piotr Karbowski (RETIRED) gentoo-dev 2021-08-29 09:30:14 UTC
Can you reproduce the problem if you build with default enabled userpriv? Also, what does 'ls -l /bin/sh' gives you?
Comment 8 Bui Xuan Dien 2021-08-29 14:04:12 UTC
Yes I just enabled userpriv can't build. 
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Feb 21  2021 /bin/sh -> bash
Comment 9 Piotr Karbowski (RETIRED) gentoo-dev 2021-08-29 17:19:17 UTC
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.
Comment 10 Bui Xuan Dien 2021-08-30 01:55:09 UTC
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