public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
@ 2008-11-27 17:42 ` nightstrike at gmail dot com
  2008-11-27 17:45 ` nightstrike at gmail dot com
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-11-27 17:42 UTC (permalink / raw)
  To: gcc-bugs



-- 

nightstrike at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug other/38294]  New: Enable multilib support for mingw
@ 2008-11-27 17:42 nightstrike at gmail dot com
  2008-11-27 17:42 ` [Bug other/38294] " nightstrike at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-11-27 17:42 UTC (permalink / raw)
  To: gcc-bugs

Now that we have a viable header set and libraries for x86_64-pc-mingw32, we
are able to support multilib.  This needs to be enabled.


-- 
           Summary: Enable multilib support for mingw
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nightstrike at gmail dot com
GCC target triplet: x86_64-*-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug other/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
  2008-11-27 17:42 ` [Bug other/38294] " nightstrike at gmail dot com
@ 2008-11-27 17:45 ` nightstrike at gmail dot com
  2008-12-08  7:50 ` [Bug target/38294] " nightstrike at gmail dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-11-27 17:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from nightstrike at gmail dot com  2008-11-27 17:43 -------
Created an attachment (id=16785)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16785&action=view)
My first crack at enabling the support


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
  2008-11-27 17:42 ` [Bug other/38294] " nightstrike at gmail dot com
  2008-11-27 17:45 ` nightstrike at gmail dot com
@ 2008-12-08  7:50 ` nightstrike at gmail dot com
  2008-12-08 20:18 ` ktietz at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-12-08  7:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from nightstrike at gmail dot com  2008-12-08 07:48 -------
Created an attachment (id=16849)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16849&action=view)
Second attempt

This gets us further along


-- 

nightstrike at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #16785|0                           |1
        is obsolete|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (2 preceding siblings ...)
  2008-12-08  7:50 ` [Bug target/38294] " nightstrike at gmail dot com
@ 2008-12-08 20:18 ` ktietz at gcc dot gnu dot org
  2008-12-13 21:20 ` nightstrike at gmail dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2008-12-08 20:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ktietz at gcc dot gnu dot org  2008-12-08 20:16 -------
>From my point of view this patch seems to be ok.
Multilib is just enabled for 64-bit default target, what makes sende at the
moment. Just about the point of multilib library specifier, I am not sure.
Shouldn't it separated by comman.


-- 

ktietz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ktietz at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-12-08 20:16:54
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (3 preceding siblings ...)
  2008-12-08 20:18 ` ktietz at gcc dot gnu dot org
@ 2008-12-13 21:20 ` nightstrike at gmail dot com
  2008-12-13 21:48 ` ktietz at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-12-13 21:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from nightstrike at gmail dot com  2008-12-13 21:19 -------
As per jakub, it is space separated.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (4 preceding siblings ...)
  2008-12-13 21:20 ` nightstrike at gmail dot com
@ 2008-12-13 21:48 ` ktietz at gcc dot gnu dot org
  2008-12-13 22:01 ` nightstrike at gmail dot com
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2008-12-13 21:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ktietz at gcc dot gnu dot org  2008-12-13 21:46 -------
Reasoned by the fact, that this patch will solve our build failures for w64, it
is really more to be treated as regression.

NightStrike, when all tests you are doing at the moment are passing, I'll sent
it tomorrow to gcc-patches.

Danny is this ok for you?


-- 

ktietz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |4.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (5 preceding siblings ...)
  2008-12-13 21:48 ` ktietz at gcc dot gnu dot org
@ 2008-12-13 22:01 ` nightstrike at gmail dot com
  2008-12-13 23:02 ` nightstrike at gmail dot com
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-12-13 22:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from nightstrike at gmail dot com  2008-12-13 21:59 -------
Created an attachment (id=16906)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16906&action=view)
Third attempt

There were a few lines in t-mingw32 that were commented out and shouldn't have
been there.  Fixed in this patch.


-- 

nightstrike at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #16849|0                           |1
        is obsolete|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (6 preceding siblings ...)
  2008-12-13 22:01 ` nightstrike at gmail dot com
@ 2008-12-13 23:02 ` nightstrike at gmail dot com
  2008-12-14  0:12 ` nightstrike at gmail dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-12-13 23:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from nightstrike at gmail dot com  2008-12-13 23:01 -------
Tested and verified on win64


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (7 preceding siblings ...)
  2008-12-13 23:02 ` nightstrike at gmail dot com
@ 2008-12-14  0:12 ` nightstrike at gmail dot com
  2008-12-14  5:56 ` dannysmith at users dot sourceforge dot net
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2008-12-14  0:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from nightstrike at gmail dot com  2008-12-14 00:11 -------
To complete this patch, we need to make multilib not be the default.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (8 preceding siblings ...)
  2008-12-14  0:12 ` nightstrike at gmail dot com
@ 2008-12-14  5:56 ` dannysmith at users dot sourceforge dot net
  2008-12-14  7:51 ` ktietz at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2008-12-14  5:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from dannysmith at users dot sourceforge dot net  2008-12-14 05:54 -------
(In reply to comment #5)
> Reasoned by the fact, that this patch will solve our build failures for w64, it
> is really more to be treated as regression.
> 
> NightStrike, when all tests you are doing at the moment are passing, I'll sent
> it tomorrow to gcc-patches.
> 
> Danny is this ok for you?
> 
I would prefer that this be left until 4.5. I don't understand how failing to
add a new feature is now a regression.

(In reply to comment #6)
> Created an attachment (id=16906)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16906&action=view) [edit]
> Third attempt
> 
> There were a few lines in t-mingw32 that were commented out and shouldn't have
> been there.  Fixed in this patch.


Please also remove this unnecessary change in mingw32.h

+#if TARGET_64BIT_DEFAULT
 #define STANDARD_INCLUDE_DIR "/mingw/include"
+#else
+#define STANDARD_INCLUDE_DIR "/mingw/include"
 #endif

Nightstrike,  have you completed FSF copyright assignment formality

Danny


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (9 preceding siblings ...)
  2008-12-14  5:56 ` dannysmith at users dot sourceforge dot net
@ 2008-12-14  7:51 ` ktietz at gcc dot gnu dot org
  2009-02-06  4:21 ` nightstrike at gmail dot com
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2008-12-14  7:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from ktietz at gcc dot gnu dot org  2008-12-14 07:50 -------
(In reply to comment #9)
> (In reply to comment #5)
> > Reasoned by the fact, that this patch will solve our build failures for w64, it
> > is really more to be treated as regression.
> > 
> > NightStrike, when all tests you are doing at the moment are passing, I'll sent
> > it tomorrow to gcc-patches.
> > 
> > Danny is this ok for you?
> > 
> I would prefer that this be left until 4.5. I don't understand how failing to
> add a new feature is now a regression.

Yes, this bug is reasoned by preparations to support multilib in w64 crt. Now
we generate the target specific object files for 64-bit into the 'lib64'
folder. This reasoned the problem we talking about.
In the past we put our object (and library) files into <target-triplet>/lib
folder, which has hidden the problem.
But for me it is ok to fix this for 4.5 (beside we need to work-a-round this
for version before 4.5).

> (In reply to comment #6)
> > Created an attachment (id=16906)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16906&action=view) [edit]
> > Third attempt
> > 
> > There were a few lines in t-mingw32 that were commented out and shouldn't have
> > been there.  Fixed in this patch.
> 
> 
> Please also remove this unnecessary change in mingw32.h
> 
> +#if TARGET_64BIT_DEFAULT
>  #define STANDARD_INCLUDE_DIR "/mingw/include"
> +#else
> +#define STANDARD_INCLUDE_DIR "/mingw/include"
>  #endif

Yes, just make out of this '#define STANDARD_INCLUDE_DIR "/mingw/include"'

Kai


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (10 preceding siblings ...)
  2008-12-14  7:51 ` ktietz at gcc dot gnu dot org
@ 2009-02-06  4:21 ` nightstrike at gmail dot com
  2009-08-31 19:49 ` ktietz at gcc dot gnu dot org
  2009-08-31 19:52 ` ktietz at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: nightstrike at gmail dot com @ 2009-02-06  4:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from nightstrike at gmail dot com  2009-02-06 04:21 -------
Created an attachment (id=17259)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17259&action=view)
Kai's attempt

This patch has a few caveats:

You can't use the winsup link hack to work around the issue that Corinna
injected, so you can't build libstdc++, so you can't build g++

Also, the lib directories are all fubared because of ld not allowing custom
default lib paths (it's hard coded to use /root/target/lib):
1) x86_64-pc-mingw32/lib remains the place for 64-bit mingw objects
and libraries
2) x86_64-pc-mingw32/lib64 is a link to x86_64-pc-mingw32/lib
3) x86_64-pc-mingw32/lib32 is the place for 32-bit mingw


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (11 preceding siblings ...)
  2009-02-06  4:21 ` nightstrike at gmail dot com
@ 2009-08-31 19:49 ` ktietz at gcc dot gnu dot org
  2009-08-31 19:52 ` ktietz at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-08-31 19:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from ktietz at gcc dot gnu dot org  2009-08-31 19:49 -------
(In reply to comment #11)
> Created an attachment (id=17259)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17259&action=view) [edit]
> Kai's attempt
> 
> This patch has a few caveats:
> 
> You can't use the winsup link hack to work around the issue that Corinna
> injected, so you can't build libstdc++, so you can't build g++

Why that? winsup has to point in our case always to sysroot.

> Also, the lib directories are all fubared because of ld not allowing custom
> default lib paths (it's hard coded to use /root/target/lib):
> 1) x86_64-pc-mingw32/lib remains the place for 64-bit mingw objects
> and libraries
And this library remains for ld's sake here.

> 2) x86_64-pc-mingw32/lib64 is a link to x86_64-pc-mingw32/lib
For cross-compiler with unix environment no issue, for native a junction point
is necessary. We need not to link mingw to x86_64-pc-mingw32 folder, it can be
a physical folder. Then headers and libraries can go also directly into
mingw/include and mingw/(lib/lib32).
> 3) x86_64-pc-mingw32/lib32 is the place for 32-bit mingw
And?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

* [Bug target/38294] Enable multilib support for mingw
  2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
                   ` (12 preceding siblings ...)
  2009-08-31 19:49 ` ktietz at gcc dot gnu dot org
@ 2009-08-31 19:52 ` ktietz at gcc dot gnu dot org
  13 siblings, 0 replies; 15+ messages in thread
From: ktietz at gcc dot gnu dot org @ 2009-08-31 19:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #13 from ktietz at gcc dot gnu dot org  2009-08-31 19:52 -------
As the change is already applied to head, I close this.


-- 

ktietz at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38294


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

end of thread, other threads:[~2009-08-31 19:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-27 17:42 [Bug other/38294] New: Enable multilib support for mingw nightstrike at gmail dot com
2008-11-27 17:42 ` [Bug other/38294] " nightstrike at gmail dot com
2008-11-27 17:45 ` nightstrike at gmail dot com
2008-12-08  7:50 ` [Bug target/38294] " nightstrike at gmail dot com
2008-12-08 20:18 ` ktietz at gcc dot gnu dot org
2008-12-13 21:20 ` nightstrike at gmail dot com
2008-12-13 21:48 ` ktietz at gcc dot gnu dot org
2008-12-13 22:01 ` nightstrike at gmail dot com
2008-12-13 23:02 ` nightstrike at gmail dot com
2008-12-14  0:12 ` nightstrike at gmail dot com
2008-12-14  5:56 ` dannysmith at users dot sourceforge dot net
2008-12-14  7:51 ` ktietz at gcc dot gnu dot org
2009-02-06  4:21 ` nightstrike at gmail dot com
2009-08-31 19:49 ` ktietz at gcc dot gnu dot org
2009-08-31 19:52 ` ktietz at gcc dot gnu 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).