Summary: | sys-apps/fakechroot-2.20.1_p2 - [ncurses-6.5] [llvm] open64.c: error: address of overloaded function open64 is ambiguous | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | zhixu.liu |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 903611 | ||
Attachments: |
emerge-info.txt
emerge-history.txt.xz environment etc.clang.tar.xz etc.portage.tar.xz logs.tar.xz qlist-info.txt.xz sys-apps:fakechroot-2.20.1_p2:20240831-043307.log temp.tar.xz var.tmp.clang.tar.xz |
Description
Toralf Förster
![]() Created attachment 901739 [details]
emerge-info.txt
Created attachment 901740 [details]
emerge-history.txt.xz
Created attachment 901741 [details]
environment
Created attachment 901742 [details]
etc.clang.tar.xz
Created attachment 901743 [details]
etc.portage.tar.xz
Created attachment 901744 [details]
logs.tar.xz
Created attachment 901745 [details]
qlist-info.txt.xz
Created attachment 901746 [details]
sys-apps:fakechroot-2.20.1_p2:20240831-043307.log
Created attachment 901747 [details]
temp.tar.xz
Created attachment 901748 [details]
var.tmp.clang.tar.xz
the problem is caused by "/usr/include/bits/fcntl2.h":
for gcc,
__errordecl (__open64_too_many_args,
"open64 can be called either with 2 or 3 arguments, not more");
is:
extern void __open64_too_many_args (void) __attribute__((__error__ ("open64 can be called either with 2 or 3 arguments, not more")))
while for clang, __fortify_use_clang is defined:
static __attribute__((__unused__)) __attribute__((__overloadable__)) int open64 (const char *__path, int __oflag, mode_t __mode, ...) __attribute__ ((unavailable("open64 can be called either with 2 or 3 arguments, not more")));
so in case clang, there are two symbols named open64, cause:
> error: address of overloaded function 'open64' is ambiguous
> error: initializer element is not a compile-time constant
|