public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "madebr at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug build/31050] New: Compile error in gnulib/import/closedir.c
Date: Fri, 10 Nov 2023 23:04:15 +0000	[thread overview]
Message-ID: <bug-31050-4717@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 31050
           Summary: Compile error in gnulib/import/closedir.c
           Product: gdb
           Version: 13.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: madebr at gmail dot com
  Target Milestone: ---

Trying to build a Windows 32-bit executable of gdb 13.2 on Linux, building
fails with the following error:
```
i686-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../../gnulib/import -I..    
-Wno-cast-qual -Wno-conversion -Wno-float-equal -Wno-sign-compare -Wno-undef
-Wno-unused-function -Wno-unused-parameter -Wno-float-conversion
-Wimplicit-fallthrough -Wno-pedantic -Wno-sign-conversion -Wno-type-limits
-Wno-unsuffixed-float-constants -g -O2     -MT libgnu_a-closedir.o -MD -MP -MF
.deps/libgnu_a-closedir.Tpo -c -o libgnu_a-closedir.o `test -f 'closedir.c' ||
echo '../../../gnulib/import/'`closedir.c
../../../gnulib/import/closedir.c: In function 'closedir':
../../../gnulib/import/closedir.c:58:11: error: 'DIR' has no member named
'current'
   58 |   if (dirp->current != INVALID_HANDLE_VALUE)
      |           ^~
../../../gnulib/import/closedir.c:59:20: error: 'DIR' has no member named
'current'
   59 |     FindClose (dirp->current);
      |                     
```
commands:
```
tar xf gdb-13.2.tar.xz
cd gdb-13.2 && mkdir build && cd build
CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ ../configure
--prefix=$PWD/prefix --build=x86_64-linux-gnu --host=i686-w64-mingw32
make V=1
```


This is on Fedora 38

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

             reply	other threads:[~2023-11-10 23:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-10 23:04 madebr at gmail dot com [this message]
2023-11-10 23:18 ` [Bug build/31050] " simark at simark dot ca
2023-11-10 23:28 ` madebr at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-31050-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).