bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gprofng/30036] Build failure on aarch64 w/ glibc: symbol `pwrite64'


From: stlman at poczta dot fm
Subject: [Bug gprofng/30036] Build failure on aarch64 w/ glibc: symbol `pwrite64' is already defined
Date: Thu, 26 Jan 2023 09:50:46 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30036

--- Comment #2 from Łukasz Stelmach <stlman at poczta dot fm> ---
(In reply to Vladimir Mezentsev from comment #1)
> There was a similar Bug 29477 - Build failure on musl:
> collector_module.h:78:13: error: duplicate member ‘pwrite’

Yes, I've seen it, but I believe this is different.

>  What a version of Linux and libc do you use ?

Aarch64, glibc 2.30.

After inspecting output of gcc -E, I think Linux headers aren't included. I
also had tried building in a different environment (Debian 11 on x86 with
aarch64 cross toolchain) and it worked… until I added -D_FILE_OFFSET_BITS=64 on
the command line of gcc compiling iotrace.c. I found that in the environment
where the build fails, cc1 contains the string "_FILE_OFFSET_BITS=64" which
apparently triggers definition of __USE_FILE_OFFSET64 in features.h and later
usage of the __REDIRECT-defined pwrite in unistd.h.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]