https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-misc/linuxptp-2.0-r1 fails to compile. Discovered on: amd64 (internal ref: ci)
Created attachment 798999 [details] build.log build log and emerge --info
I would say this is yet another indication of linuxptp-2.0 being ancient and will therefore make this dependent on the version bump. Ultimately it is entirely up to the maintainer, though.
OK, let's see if this still happens with 3.1.1.
ci has reproduced this issue with version 3.1.1 - Updating summary.
Would you kindly let me know if the "cpp" symlink exists on the system in question? I do not see in the log whether sys-devel/gcc has been built with USE="-native-symlinks" or not.
Having just managed to reproduce this error by simply deleting "cpp", I will proceed under the assumption that there were no gcc native symlinks present. Please correct me (and reopen the issue should I manage to resolve it by then) if I am wrong.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6274f4bc036e953c693b17e21a2946520a90b48f commit 6274f4bc036e953c693b17e21a2946520a90b48f Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2022-08-15 13:30:20 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2022-08-15 13:37:04 +0000 net-misc/linuxptp: honour user value of CPP Upstream build scripts call the preprocessor to acquire the list of system include directories, which is then used to locate the declaration of clock_adjtime(). However, they hard-coded the preprocessor name to "cpp" - and if that is absent (e.g. on a system without native gcc symlinks) the script invoking it gets an empty list of directories, assumes the absence of clock_adjtime() definition and compensates by enabling a custom one, and subsequently causes a build failure when the two definitions collide. Closes: https://bugs.gentoo.org/864557 Signed-off-by: Marek Szuba <marecki@gentoo.org> net-misc/linuxptp/files/linuxptp-3.1.1-user_cpp.patch | 11 +++++++++++ net-misc/linuxptp/linuxptp-3.1.1.ebuild | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-)