public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/13510] New: Cross compile of gdbserver for w32 fails
@ 2011-12-16 9:00 nisse at lysator dot liu.se
2011-12-16 14:55 ` [Bug remote/13510] " tromey at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: nisse at lysator dot liu.se @ 2011-12-16 9:00 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13510
Bug #: 13510
Summary: Cross compile of gdbserver for w32 fails
Product: gdb
Version: 7.3
Status: NEW
Severity: normal
Priority: P2
Component: remote
AssignedTo: unassigned@sourceware.org
ReportedBy: nisse@lysator.liu.se
Classification: Unclassified
I downloaded gdb-7.3, and I tried to build gdbserver för w32 using
./configure --target=i586-pc-mingw32msvc --host=i586-pc-mingw32msvc
--prefix=/usr/local/w32 CC=i586-mingw32msvc-gcc
make
This failed with errors complaining on uintptr_t not defined:
i586-mingw32msvc-gcc -c -g -O2 -I. -I../gdb/gdbserver
-I../gdb/gdbserver/../common -I../gdb/gdbserver/../regformats
-I../gdb/gdbserver/../../include -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Werror
../gdb/gdbserver/win32-low.c
../gdb/gdbserver/win32-low.c: In function ‘child_add_thread’:
../gdb/gdbserver/win32-low.c:192: error: ‘uintptr_t’ undeclared (first use in
this function)
../gdb/gdbserver/win32-low.c:192: error: (Each undeclared identifier is
reported only once
../gdb/gdbserver/win32-low.c:192: error: for each function it appears in.)
../gdb/gdbserver/win32-low.c:192: error: expected ‘;’ before ‘tlb’
../gdb/gdbserver/win32-low.c: In function ‘child_xfer_memory’:
../gdb/gdbserver/win32-low.c:283: error: ‘uintptr_t’ undeclared (first use in
this function)
../gdb/gdbserver/win32-low.c:283: error: expected ‘;’ before ‘addr’
../gdb/gdbserver/win32-low.c:287: error: ‘addr’ undeclared (first use in this
function)
../gdb/gdbserver/win32-low.c: In function ‘handle_load_dll’:
../gdb/gdbserver/win32-low.c:1208: error: ‘uintptr_t’ undeclared (first use in
this function)
../gdb/gdbserver/win32-low.c:1208: error: expected ‘;’ before ‘event’
../gdb/gdbserver/win32-low.c: In function ‘handle_unload_dll’:
../gdb/gdbserver/win32-low.c:1216: error: ‘uintptr_t’ undeclared (first use in
this function)
../gdb/gdbserver/win32-low.c:1216: error: expected ‘,’ or ‘;’ before
‘current_event’
../gdb/gdbserver/win32-low.c: In function ‘handle_exception’:
../gdb/gdbserver/win32-low.c:1317: error: ‘uintptr_t’ undeclared (first use in
this function)
../gdb/gdbserver/win32-low.c:1317: error: expected ‘)’ before ‘current_event’
../gdb/gdbserver/win32-low.c:1317: error: too few arguments to function
‘phex_nz’
After adding a #include <stdint.h> to win32-low.c, it compiles all right. Not
sure if this is the right solution, though.
Maybe I should say something on the big picture:
I want to debug one of gmp's testcases, which fails when cross compiled for
w32, and run under wine. The plan is to build a cross gdb,
--host=x86_64-unknown-linux-gnu --target=i586-pc-mingw32msvc, and use this to
attach to a process run as
wine gdbserver.exe ... test-program.exe
I don't yet know if this will work out. Another alternative would be to cross
compile gdb itself (--target=i586-mingw32msvc --host=i586-mingw32msvc), I'm not
sure if that would be better.
I'm doing all this on a x86_64 machine with debian gnu/linux and the mingw32
packages. The i586-mingw32msvc-gcc cross compiler is version 4.4.4.
Regards,
/Niels Möller
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug remote/13510] Cross compile of gdbserver for w32 fails
2011-12-16 9:00 [Bug remote/13510] New: Cross compile of gdbserver for w32 fails nisse at lysator dot liu.se
@ 2011-12-16 14:55 ` tromey at redhat dot com
2011-12-16 20:51 ` nisse at lysator dot liu.se
2014-09-12 23:06 ` sergiodj at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2011-12-16 14:55 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13510
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |tromey at redhat dot com
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2011-12-16 14:54:51 UTC ---
Can you try the 7.4 prerelease that went out the other day?
According to the log, an include of <stdint.h> was added to
this file between 7.3 and now.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug remote/13510] Cross compile of gdbserver for w32 fails
2011-12-16 9:00 [Bug remote/13510] New: Cross compile of gdbserver for w32 fails nisse at lysator dot liu.se
2011-12-16 14:55 ` [Bug remote/13510] " tromey at redhat dot com
@ 2011-12-16 20:51 ` nisse at lysator dot liu.se
2014-09-12 23:06 ` sergiodj at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: nisse at lysator dot liu.se @ 2011-12-16 20:51 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13510
--- Comment #2 from Niels Möller <nisse at lysator dot liu.se> 2011-12-16 20:50:54 UTC ---
I couldn't find any prerelease tarball (tried google and alpha.gnu.org). So I
checked out the source code using
cvs -d :pserver:anoncvs@sourceware.org:/cvs/src co -r gdb_7_4-branch gdb
And now
./configure --target=i586-mingw32msvc --host=i586-mingw32msvc
make
works without error.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug remote/13510] Cross compile of gdbserver for w32 fails
2011-12-16 9:00 [Bug remote/13510] New: Cross compile of gdbserver for w32 fails nisse at lysator dot liu.se
2011-12-16 14:55 ` [Bug remote/13510] " tromey at redhat dot com
2011-12-16 20:51 ` nisse at lysator dot liu.se
@ 2014-09-12 23:06 ` sergiodj at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: sergiodj at redhat dot com @ 2014-09-12 23:06 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=13510
Sergio Durigan Junior <sergiodj at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
CC| |sergiodj at redhat dot com
Resolution|--- |INVALID
--- Comment #3 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
Tested and confirmed to be fixed by reporter. Closing as INVALID.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-12 23:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16 9:00 [Bug remote/13510] New: Cross compile of gdbserver for w32 fails nisse at lysator dot liu.se
2011-12-16 14:55 ` [Bug remote/13510] " tromey at redhat dot com
2011-12-16 20:51 ` nisse at lysator dot liu.se
2014-09-12 23:06 ` sergiodj at redhat dot com
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).