public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/14644] New: Install to Windows 7 error
@ 2012-09-28 19:23 elderdo at yahoo dot com
  2012-09-28 19:42 ` [Bug gdb/14644] " palves at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: elderdo at yahoo dot com @ 2012-09-28 19:23 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

             Bug #: 14644
           Summary: Install to Windows 7 error
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: elderdo@yahoo.com
    Classification: Unclassified


I tried to run make install and got the following errors:
gcc -m64 -g -O2 -D__USE_MINGW_ACCESS   -I. -I. -I./common -I./config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../libdecnumber -I./../libdecnumber -I./../intl -I./gnulib/import
-Ibuild-gnulib/import    -Ic:/Python27/include -Ic:/Python27/include -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wno-format  -c -o i386-windows-nat.o -MT i386-windows-nat.o -MMD -MP -MF
.deps/i386-windows-nat.Tpo i386-windows-nat.c
i386-windows-nat.c:28:3: error: 'CONTEXT' has no member named 'Eax'
i386-windows-nat.c:29:3: error: 'CONTEXT' has no member named 'Ecx'
i386-windows-nat.c:30:3: error: 'CONTEXT' has no member named 'Edx'
i386-windows-nat.c:31:3: error: 'CONTEXT' has no member named 'Ebx'
i386-windows-nat.c:32:3: error: 'CONTEXT' has no member named 'Esp'
i386-windows-nat.c:33:3: error: 'CONTEXT' has no member named 'Ebp'
i386-windows-nat.c:34:3: error: 'CONTEXT' has no member named 'Esi'
i386-windows-nat.c:35:3: error: 'CONTEXT' has no member named 'Edi'
i386-windows-nat.c:36:3: error: 'CONTEXT' has no member named 'Eip'
i386-windows-nat.c:37:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:38:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:39:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:40:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:41:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:42:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:43:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:44:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:45:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:46:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:47:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:48:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:49:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:50:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:51:3: error: 'XMM_SAVE_AREA32' has no member named
'RegisterA
rea'
i386-windows-nat.c:52:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:53:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:54:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:55:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:56:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:57:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:58:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:59:3: warning: cast from pointer to integer of different
size
 [-Wpointer-to-int-cast]
i386-windows-nat.c:61:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:62:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:63:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:64:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:65:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:66:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:67:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:68:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
i386-windows-nat.c:70:3: error: 'CONTEXT' has no member named
'ExtendedRegisters
'
make[2]: *** [i386-windows-nat.o] Error 1
make[2]: Leaving directory `/c/mingw64/gdb-7.5/gdb'
make[1]: *** [install-gdb] Error 2
make[1]: Leaving directory `/c/mingw64/gdb-7.5'
make: *** [install] Error 2

-- 
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] 7+ messages in thread

* [Bug gdb/14644] Install to Windows 7 error
  2012-09-28 19:23 [Bug gdb/14644] New: Install to Windows 7 error elderdo at yahoo dot com
@ 2012-09-28 19:42 ` palves at redhat dot com
  2012-09-28 21:44 ` elderdo at yahoo dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2012-09-28 19:42 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> 2012-09-28 19:42:53 UTC ---
gcc -m64 -g -O2 -D__USE_MINGW_ACCESS   -I. -I. -I./common -I./config
    ^^^^
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../libdecnumber -I./../libdecnumber -I./../intl -I./gnulib/import
-Ibuild-gnulib/import    -Ic:/Python27/include -Ic:/Python27/include -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wno-format  -c -o i386-windows-nat.o -MT i386-windows-nat.o -MMD -MP -MF
.deps/i386-windows-nat.Tpo i386-windows-nat.c
                           ^^^^
i386-windows-nat.c:28:3: error: 'CONTEXT' has no member named 'Eax'
                                                              ^^^^

It looks like your gdb was misconfigured.  The compiler is compiling 
for 64-bit (-m64), while the files it is compiling indicate gdb was
configured for a 32-bit gdb.

Either something is wrong with the configure command you used, or
you have -m64 in your CC or CFLAGS left behind by mistake.
Can you fill us in with more information on those?

-- 
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] 7+ messages in thread

* [Bug gdb/14644] Install to Windows 7 error
  2012-09-28 19:23 [Bug gdb/14644] New: Install to Windows 7 error elderdo at yahoo dot com
  2012-09-28 19:42 ` [Bug gdb/14644] " palves at redhat dot com
@ 2012-09-28 21:44 ` elderdo at yahoo dot com
  2012-09-28 22:23 ` palves at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: elderdo at yahoo dot com @ 2012-09-28 21:44 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

--- Comment #2 from Douglas Elder <elderdo at yahoo dot com> 2012-09-28 21:44:18 UTC ---
Hi, I didn't modify or set any Flag.  I do have mingw64 installed. Using a
mingw64 window, I unzipped the latest gdb and just entered the command:
make install 


in the directory gdb-7.5.  I would think that the install would make the
appropriate checks and either proceed with the build or issue a diagnostic if
the install will not work for mingw64.



________________________________
 From: palves at redhat dot com <sourceware-bugzilla@sourceware.org>
To: elderdo@yahoo.com 
Sent: Friday, September 28, 2012 12:42 PM
Subject: [Bug gdb/14644] Install to Windows 7 error


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> 2012-09-28 19:42:53
UTC ---
gcc -m64 -g -O2 -D__USE_MINGW_ACCESS   -I. -I. -I./common -I./config
    ^^^^
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I./../include/opcode
-I./../opcodes/.. -I./../readline/.. -I../bfd -I./../bfd -I./../include
-I../libdecnumber -I./../libdecnumber -I./../intl -I./gnulib/import
-Ibuild-gnulib/import    -Ic:/Python27/include -Ic:/Python27/include -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-pointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Wno-format  -c -o i386-windows-nat.o -MT i386-windows-nat.o -MMD -MP -MF
.deps/i386-windows-nat.Tpo i386-windows-nat.c
                           ^^^^
i386-windows-nat.c:28:3: error: 'CONTEXT' has no member named 'Eax'
                                                              ^^^^

It looks like your gdb was misconfigured.  The compiler is compiling 
for 64-bit (-m64), while the files it is compiling indicate gdb was
configured for a 32-bit gdb.

Either something is wrong with the configure command you used, or
you have -m64 in your CC or CFLAGS left behind by mistake.
Can you fill us in with more information on those?

-- 
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] 7+ messages in thread

* [Bug gdb/14644] Install to Windows 7 error
  2012-09-28 19:23 [Bug gdb/14644] New: Install to Windows 7 error elderdo at yahoo dot com
  2012-09-28 19:42 ` [Bug gdb/14644] " palves at redhat dot com
  2012-09-28 21:44 ` elderdo at yahoo dot com
@ 2012-09-28 22:23 ` palves at redhat dot com
  2012-09-30  0:23 ` elderdo at yahoo dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2012-09-28 22:23 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

--- Comment #3 from Pedro Alves <palves at redhat dot com> 2012-09-28 22:23:40 UTC ---
Oh, you have a tarball with both source, and prebuilt gdb binary?  Please
confirm.

We don't provide such a thing, so you'll have to talk to whoever you get that
from.

But if I had to guess, it sounds like the timestamps in your files got messed
up, so "make" thought it needed to rebuild things.  Winzip is notorious for
doing that.  Try unpacking with tar/gz, if possible.

-- 
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] 7+ messages in thread

* [Bug gdb/14644] Install to Windows 7 error
  2012-09-28 19:23 [Bug gdb/14644] New: Install to Windows 7 error elderdo at yahoo dot com
                   ` (2 preceding siblings ...)
  2012-09-28 22:23 ` palves at redhat dot com
@ 2012-09-30  0:23 ` elderdo at yahoo dot com
  2012-10-01  8:52 ` palves at redhat dot com
  2022-12-01 21:34 ` tromey at sourceware dot org
  5 siblings, 0 replies; 7+ messages in thread
From: elderdo at yahoo dot com @ 2012-09-30  0:23 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

--- Comment #4 from Douglas Elder <elderdo at yahoo dot com> 2012-09-30 00:23:40 UTC ---
I downloaded gdb-7.5.tar.gz from http://ftp.gnu.org/gnu/gdb/.  There were no
binary files in this gnu zipped archive file.  I always look for binaries first
but I did not see any for gdb 7.5.  There were no explicit instructions on
setup so I assumed that the configure and makefile were setup for an install. 
It appeared to work until tried compiling i386-windows-nat.c.  I presume this
is the problem.  I'm using mingw64 with its 64 bit compiler.



Perhaps the error is in the configure and makefile.  I don't think it should be
trying to compile i386-windows-nat.c which may be just for 32 bit machines.  My
computer runs Windows 7 and is an Intel Core Quad 2.66 GHz with 4 GB and a 64
bit OS. 

The configure should recognize my system and create the appropriate makefile,
but it is not.




________________________________
 From: palves at redhat dot com <sourceware-bugzilla@sourceware.org>
To: elderdo@yahoo.com 
Sent: Friday, September 28, 2012 3:23 PM
Subject: [Bug gdb/14644] Install to Windows 7 error


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

--- Comment #3 from Pedro Alves <palves at redhat dot com> 2012-09-28 22:23:40
UTC ---
Oh, you have a tarball with both source, and prebuilt gdb binary?  Please
confirm.

We don't provide such a thing, so you'll have to talk to whoever you get that
from.

But if I had to guess, it sounds like the timestamps in your files got messed
up, so "make" thought it needed to
 rebuild things.  Winzip is notorious for
doing that.  Try unpacking with tar/gz, if possible.

-- 
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] 7+ messages in thread

* [Bug gdb/14644] Install to Windows 7 error
  2012-09-28 19:23 [Bug gdb/14644] New: Install to Windows 7 error elderdo at yahoo dot com
                   ` (3 preceding siblings ...)
  2012-09-30  0:23 ` elderdo at yahoo dot com
@ 2012-10-01  8:52 ` palves at redhat dot com
  2022-12-01 21:34 ` tromey at sourceware dot org
  5 siblings, 0 replies; 7+ messages in thread
From: palves at redhat dot com @ 2012-10-01  8:52 UTC (permalink / raw)
  To: gdb-prs


http://sourceware.org/bugzilla/show_bug.cgi?id=14644

--- Comment #5 from Pedro Alves <palves at redhat dot com> 2012-10-01 08:52:28 UTC ---
> I downloaded gdb-7.5.tar.gz from http://ftp.gnu.org/gnu/gdb/.  There were no
> binary files in this gnu zipped archive file.  

> There were no explicit instructions on setup so I assumed that the configure 
> and makefile were setup for an install. 

No, that's a source tarball, and that's all we provide.  Other parties, such as
mingw.org, mingw-w64, some individuals, etc. provide pre-built binaries.

> It appeared to work until tried compiling i386-windows-nat.c.  I presume this
> is the problem.  I'm using mingw64 with its 64 bit compiler.

"make install" when you haven't built the sources yet is equivalent to
"make" followed by "make install".  So what happens is that gdb is failing to
build for you.  The install part is a red herring.

1. - So you did run configure first, right?  Please don't leave out details
making us try to guess things.  Paste here the full command line you used to
configure/make.
2. - It sounds like configure detects your system as i686-pc-mingw32 or similar
instead of amd64.  You can check that in config.log.
3. - What's your CC environment variable.
4. - And your CFLAGS?
5. - You may need to pass "--build=amd64-mingw-w64 --host=amd64-mingw-w64
--host=amd64-mingw-w64" or similar to configure (exact target name depends on
the mingw variant you're using.

-- 
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] 7+ messages in thread

* [Bug gdb/14644] Install to Windows 7 error
  2012-09-28 19:23 [Bug gdb/14644] New: Install to Windows 7 error elderdo at yahoo dot com
                   ` (4 preceding siblings ...)
  2012-10-01  8:52 ` palves at redhat dot com
@ 2022-12-01 21:34 ` tromey at sourceware dot org
  5 siblings, 0 replies; 7+ messages in thread
From: tromey at sourceware dot org @ 2022-12-01 21:34 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WORKSFORME
                 CC|                            |tromey at sourceware dot org

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
It's been 10 years without a response.
I do frequent builds on Windows, both 32- and 64-bit,
so I'm sure this is working.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-01 21:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-28 19:23 [Bug gdb/14644] New: Install to Windows 7 error elderdo at yahoo dot com
2012-09-28 19:42 ` [Bug gdb/14644] " palves at redhat dot com
2012-09-28 21:44 ` elderdo at yahoo dot com
2012-09-28 22:23 ` palves at redhat dot com
2012-09-30  0:23 ` elderdo at yahoo dot com
2012-10-01  8:52 ` palves at redhat dot com
2022-12-01 21:34 ` tromey at sourceware dot org

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).