[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/26328] New: Compilation warning when building ld v2.35 with MinG
From: |
eliz at gnu dot org |
Subject: |
[Bug ld/26328] New: Compilation warning when building ld v2.35 with MinGW |
Date: |
Sat, 01 Aug 2020 10:50:59 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=26328
Bug ID: 26328
Summary: Compilation warning when building ld v2.35 with MinGW
Product: binutils
Version: 2.35
Status: NEW
Severity: minor
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: eliz at gnu dot org
Target Milestone: ---
Building GNU Binutils 2.35 with mingw.org's MinGW (GCC 9.2.0) produces the
following warning in the 'ld' directory:
mingw32-gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.35/ld -I.
-I../../binutils-2.35/ld -I../bfd -I../../binutils-2.35/ld/../bfd
-I../../binutils-2.35/ld/../include -O2 -gdwarf-4 -g3 -D__USE_MINGW_ACCESS
-DLOCALEDIR="\"/mingw/share/locale\"" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wno-format
-DELF_LIST_OPTIONS=FALSE -DELF_SHLIB_LIST_OPTIONS=FALSE
-DELF_PLT_UNWIND_LIST_OPTIONS=FALSE -O2 -gdwarf-4 -g3 -D__USE_MINGW_ACCESS -MT
lexsup.o -MD -MP -MF .deps/lexsup.Tpo -c -o lexsup.o
../../binutils-2.35/ld/lexsup.c
../../binutils-2.35/ld/lexsup.c: In function 'parse_args':
../../binutils-2.35/ld/lexsup.c:1663:12: warning: implicit declaration of
function 'asprintf'; did you mean 'xasprintf'?
[-Wimplicit-function-declaration]
1663 | if (asprintf (&new_name, "%s/%s.map",
| ^~~~~~~~
| xasprintf
This is because the MinGW system headers don't provide a declaration of
'asprintf', and to get libiberty's prototype visible, libiberty.h needs to see
HAVE_DECL_ASPRINTF defined to zero.
So the solution would be to add a test for 'asprintf' being declared to
ld/configure.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/26328] New: Compilation warning when building ld v2.35 with MinGW,
eliz at gnu dot org <=