Discussion:
[Bug build/23434] New: libiberty/simple-object-elf.c fails to compile on MinGW
eliz at gnu dot org
2018-07-19 13:49:02 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23434

Bug ID: 23434
Summary: libiberty/simple-object-elf.c fails to compile on
MinGW
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: build
Assignee: unassigned at sourceware dot org
Reporter: eliz at gnu dot org
Target Milestone: 8.2
Host: MinGW
Target: MinGW
Build: MinGW

I've built the pretest of GDB 8.2 with MinGW today, and bumped into a
compilation error in libiberty:

if [ x"" != x ]; then \
gcc -c -DHAVE_CONFIG_H -O2 -gdwarf-4 -g3 -D__USE_MINGW_ACCESS -I.
-I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes
-pedantic -D_GNU_SOURCE ./simple-object-elf.c -o noasan/simple-object-elf.o;
\
else true; fi
gcc -c -DHAVE_CONFIG_H -O2 -gdwarf-4 -g3 -D__USE_MINGW_ACCESS -I.
-I./../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes
-pedantic -D_GNU_SOURCE ./simple-object-elf.c -o simple-object-elf.o
./simple-object-elf.c: In function
'simple_object_elf_copy_lto_debug_sections':
./simple-object-elf.c:1284:14: error: 'ENOTSUP' undeclared (first use in
this function)
*err = ENOTSUP;
^~~~~~~
./simple-object-elf.c:1284:14: note: each undeclared identifier is
reported only once for each function it appears in
--
You are receiving this mail because:
You are on the CC list for the bug.
cvs-commit at gcc dot gnu.org
2018-07-19 13:57:15 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23434

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eli Zaretskii <***@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=db3410f80f793189d3c8afb8b80951333d3fe007

commit db3410f80f793189d3c8afb8b80951333d3fe007
Author: Eli Zaretskii <***@gnu.org>
Date: Thu Jul 19 16:54:06 2018 +0300

Fix GDB build using mingw.org's MinGW

libiberty/
2018-07-18 Eli Zaretskii <***@gnu.org>

PR gdb/23434
* libiberty/simple-object-elf.c (ENOTSUP): If not defined by
errno.h, redirect ENOTSUP to ENOSYS.
--
You are receiving this mail because:
You are on the CC list for the bug.
cvs-commit at gcc dot gnu.org
2018-07-19 13:58:49 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23434

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-8.2-branch branch has been updated by Eli Zaretskii
<***@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6b5c10c4f80cd4a741f3e378a3a42f3ed1741d49

commit 6b5c10c4f80cd4a741f3e378a3a42f3ed1741d49
Author: Eli Zaretskii <***@gnu.org>
Date: Thu Jul 19 16:54:06 2018 +0300

Fix GDB build using mingw.org's MinGW

libiberty/
2018-07-18 Eli Zaretskii <***@gnu.org>

PR gdb/23434
* libiberty/simple-object-elf.c (ENOTSUP): If not defined by
errno.h, redirect ENOTSUP to ENOSYS.

(cherry picked from commit db3410f80f793189d3c8afb8b80951333d3fe007)
--
You are receiving this mail because:
You are on the CC list for the bug.
eliz at gnu dot org
2018-07-19 08:31:33 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23434

Eli Zaretskii <eliz at gnu dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
URL| |https://sourceware.org/ml/g
| |db-patches/2018-07/msg00558
| |.html
Resolution|--- |FIXED

--- Comment #3 from Eli Zaretskii <eliz at gnu dot org> ---
Fixed on master and GDB 8.2 branch.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...