public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem with '-flto=N' on MinGW
@ 2012-06-19 19:02 niXman
  2012-06-19 21:14 ` Ian Lance Taylor
  2012-06-19 23:39 ` xunxun
  0 siblings, 2 replies; 13+ messages in thread
From: niXman @ 2012-06-19 19:02 UTC (permalink / raw)
  To: gcc-help

HI,

I've built MInGW using the sources GCC version 4.7.1.
When using LTO '-flto=N' when N greater  1 - I get the following error:
> "make": [C:\Users\niXman\AppData\Local\Temp\ccl7QYlh.ltrans0.ltrans.o] Error 1 (ignored)

If I use '-flto' или '-flto=1' then the error is absent.
Tell me please, where is this error printed from? Because of what?
This error is found also in gcc-4.6.3 and gcc-4.7.0.

I'd like to have an working LTO whith more than one thread.

Thanks!


-- 
Regards,
niXman
___________________________________________________
Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows:
http://sourceforge.net/projects/mingwbuilds/

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-19 19:02 Problem with '-flto=N' on MinGW niXman
@ 2012-06-19 21:14 ` Ian Lance Taylor
  2012-06-19 23:39 ` xunxun
  1 sibling, 0 replies; 13+ messages in thread
From: Ian Lance Taylor @ 2012-06-19 21:14 UTC (permalink / raw)
  To: niXman; +Cc: gcc-help

niXman <i.nixman@gmail.com> writes:

> I've built MInGW using the sources GCC version 4.7.1.
> When using LTO '-flto=N' when N greater  1 - I get the following error:
>> "make": [C:\Users\niXman\AppData\Local\Temp\ccl7QYlh.ltrans0.ltrans.o] Error 1 (ignored)

That should not be the only error message.  What are the other ones?

When you use -flto=N, GCC simply turns that into a -j N option for
make.  Perhaps your copy of make does not suport -j?

Ian

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-19 19:02 Problem with '-flto=N' on MinGW niXman
  2012-06-19 21:14 ` Ian Lance Taylor
@ 2012-06-19 23:39 ` xunxun
  2012-06-20  9:06   ` niXman
  1 sibling, 1 reply; 13+ messages in thread
From: xunxun @ 2012-06-19 23:39 UTC (permalink / raw)
  To: niXman; +Cc: gcc-help

于 2012/6/20 3:02, niXman 写道:
> HI,
>
> I've built MInGW using the sources GCC version 4.7.1.
> When using LTO '-flto=N' when N greater  1 - I get the following error:
>> "make": [C:\Users\niXman\AppData\Local\Temp\ccl7QYlh.ltrans0.ltrans.o] Error 1 (ignored)
> If I use '-flto' или '-flto=1' then the error is absent.
> Tell me please, where is this error printed from? Because of what?
> This error is found also in gcc-4.6.3 and gcc-4.7.0.
>
> I'd like to have an working LTO whith more than one thread.
>
> Thanks!
>
>
The option should only support GNU make with jobserver feature

-- 
Best Regards,
xunxun

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-19 23:39 ` xunxun
@ 2012-06-20  9:06   ` niXman
  2012-06-20 11:20     ` xunxun
  0 siblings, 1 reply; 13+ messages in thread
From: niXman @ 2012-06-20  9:06 UTC (permalink / raw)
  To: gcc-help

2012/6/20 xunxun:
> The option should only support GNU make with jobserver feature

I use this[1] make.


[1] http://savannah.gnu.org/projects/make/


--
Regards,
niXman
___________________________________________________
Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows:
http://sourceforge.net/projects/mingwbuilds/

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-20  9:06   ` niXman
@ 2012-06-20 11:20     ` xunxun
  2012-06-20 11:28       ` Ozkan Sezer
  0 siblings, 1 reply; 13+ messages in thread
From: xunxun @ 2012-06-20 11:20 UTC (permalink / raw)
  To: niXman, Ozkan Sezer; +Cc: gcc-help

于 2012/6/20 17:06, niXman 写道:
> 2012/6/20 xunxun:
>> The option should only support GNU make with jobserver feature
> I use this[1] make.
>
>
> [1] http://savannah.gnu.org/projects/make/
>
>
> --
> Regards,
> niXman
Did you build make using --enable-job-server?

I think it's not supported by default on MinGW in the past, but I don't 
know it now.

I remembered  Ozkan Sezer wrote some patches for it, but I have no idea 
whether GNU Make has accepted them.

Forward it to Ozkan Sezer, I think he knows it.


-- 
Best Regards,
xunxun

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-20 11:20     ` xunxun
@ 2012-06-20 11:28       ` Ozkan Sezer
  2012-06-20 11:32         ` xunxun
  2012-07-06 17:07         ` niXman
  0 siblings, 2 replies; 13+ messages in thread
From: Ozkan Sezer @ 2012-06-20 11:28 UTC (permalink / raw)
  To: xunxun; +Cc: niXman, gcc-help

On Wed, Jun 20, 2012 at 2:20 PM, xunxun <xunxun1982@gmail.com> wrote:
> 于 2012/6/20 17:06, niXman 写道:
>>
>> 2012/6/20 xunxun:
>>>
>>> The option should only support GNU make with jobserver feature
>>
>> I use this[1] make.
>>
>>
>> [1] http://savannah.gnu.org/projects/make/
>>
>>
>> --
>> Regards,
>> niXman
>
> Did you build make using --enable-job-server?
>
> I think it's not supported by default on MinGW in the past, but I don't know
> it now.
>
> I remembered  Ozkan Sezer wrote some patches for it, but I have no idea
> whether GNU Make has accepted them.
>
> Forward it to Ozkan Sezer, I think he knows it.
>

make-3.82.90-20111115.zip from
http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/make/
was built (by me) with job server enabled.

>
> --
> Best Regards,
> xunxun
>

--
O.S.

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-20 11:28       ` Ozkan Sezer
@ 2012-06-20 11:32         ` xunxun
  2012-06-20 11:37           ` Ozkan Sezer
  2012-07-06 17:07         ` niXman
  1 sibling, 1 reply; 13+ messages in thread
From: xunxun @ 2012-06-20 11:32 UTC (permalink / raw)
  To: Ozkan Sezer; +Cc: niXman, gcc-help

于 2012/6/20 19:28, Ozkan Sezer 写道:
> make-3.82.90-20111115.zip from 
> http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/make/ 
> was built (by me) with job server enabled. 
Does GNU Make CVS support it now? Or need some patches?
> --
> O.S.


-- 
Best Regards,
xunxun

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-20 11:32         ` xunxun
@ 2012-06-20 11:37           ` Ozkan Sezer
  0 siblings, 0 replies; 13+ messages in thread
From: Ozkan Sezer @ 2012-06-20 11:37 UTC (permalink / raw)
  To: xunxun; +Cc: niXman, gcc-help

On Wed, Jun 20, 2012 at 2:32 PM, xunxun <xunxun1982@gmail.com> wrote:
> 于 2012/6/20 19:28, Ozkan Sezer 写道:
>
>> make-3.82.90-20111115.zip from
>> http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/make/
>> was built (by me) with job server enabled.
>
> Does GNU Make CVS support it now? Or need some patches?

At the time I built that package, the make configury didn't used to
enable job server for windows targets even if you did specify the
--enable-job-server argument to configure, so I manually changed
the generated config.h after configuring (look in the package to see
how it was built.)  Don't know whether it is enabled now in the make
CVS version.

>
> --
> Best Regards,
> xunxun
>

--
O.S.

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

* Re: Problem with '-flto=N' on MinGW
  2012-06-20 11:28       ` Ozkan Sezer
  2012-06-20 11:32         ` xunxun
@ 2012-07-06 17:07         ` niXman
  2012-07-10 14:25           ` niXman
  1 sibling, 1 reply; 13+ messages in thread
From: niXman @ 2012-07-06 17:07 UTC (permalink / raw)
  To: gcc-help

2012/6/20 Ozkan Sezer:
> make-3.82.90-20111115.zip from
> http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/make/
> was built (by me) with job server enabled.

Up: http://gcc.gnu.org/ml/gcc-help/2012-06/msg00168.html

I just replaced the make.exe/mingw32-make.exe to those in the archive,
reference to which you have given.
But the problem remained.
Ideas?


-- 
Regards,
niXman
___________________________________________________
Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows:
http://sourceforge.net/projects/mingwbuilds/

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

* Re: Problem with '-flto=N' on MinGW
  2012-07-06 17:07         ` niXman
@ 2012-07-10 14:25           ` niXman
  2012-07-13  0:52             ` NightStrike
  0 siblings, 1 reply; 13+ messages in thread
From: niXman @ 2012-07-10 14:25 UTC (permalink / raw)
  To: gcc-help

2012/7/6 niXman:
> 2012/6/20 Ozkan Sezer:
>> make-3.82.90-20111115.zip from
>> http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/make/
>> was built (by me) with job server enabled.
>
> Up: http://gcc.gnu.org/ml/gcc-help/2012-06/msg00168.html
>
> I just replaced the make.exe/mingw32-make.exe to those in the archive,
> reference to which you have given.
> But the problem remained.
> Ideas?

ping?


-- 
Regards,
niXman
___________________________________________________
Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows:
http://sourceforge.net/projects/mingwbuilds/

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

* Re: Problem with '-flto=N' on MinGW
  2012-07-10 14:25           ` niXman
@ 2012-07-13  0:52             ` NightStrike
  2012-07-13  5:32               ` Ozkan Sezer
  0 siblings, 1 reply; 13+ messages in thread
From: NightStrike @ 2012-07-13  0:52 UTC (permalink / raw)
  To: niXman; +Cc: gcc-help, Ozkan Sezer

On Tue, Jul 10, 2012 at 10:25 AM, niXman <i.nixman@gmail.com> wrote:
> 2012/7/6 niXman:
>> 2012/6/20 Ozkan Sezer:
>>> make-3.82.90-20111115.zip from
>>> http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/make/
>>> was built (by me) with job server enabled.
>>
>> Up: http://gcc.gnu.org/ml/gcc-help/2012-06/msg00168.html
>>
>> I just replaced the make.exe/mingw32-make.exe to those in the archive,
>> reference to which you have given.
>> But the problem remained.
>> Ideas?
>
> ping?

It's possible that Ozkan isn't subscribed to the list.  I added him to
the CC list.

I unfortunately have nothing else to offer you :(

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

* Re: Problem with '-flto=N' on MinGW
  2012-07-13  0:52             ` NightStrike
@ 2012-07-13  5:32               ` Ozkan Sezer
  2012-07-13  7:10                 ` niXman
  0 siblings, 1 reply; 13+ messages in thread
From: Ozkan Sezer @ 2012-07-13  5:32 UTC (permalink / raw)
  To: NightStrike; +Cc: niXman, gcc-help

On Fri, Jul 13, 2012 at 3:52 AM, NightStrike <nightstrike@gmail.com> wrote:
> On Tue, Jul 10, 2012 at 10:25 AM, niXman <i.nixman@gmail.com> wrote:
>> 2012/7/6 niXman:
>>> 2012/6/20 Ozkan Sezer:
>>>> make-3.82.90-20111115.zip from
>>>> http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/make/
>>>> was built (by me) with job server enabled.
>>>
>>> Up: http://gcc.gnu.org/ml/gcc-help/2012-06/msg00168.html
>>>
>>> I just replaced the make.exe/mingw32-make.exe to those in the archive,
>>> reference to which you have given.
>>> But the problem remained.
>>> Ideas?
>>
>> ping?
>
> It's possible that Ozkan isn't subscribed to the list.  I added him to
> the CC list.
>
> I unfortunately have nothing else to offer you :(

It has been quite some time since I compiled something on windows,
therefore I can't help you at the moment.  You may try compiling make
from CVS-latest and see whether it makes a difference.

--
O.S.

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

* Re: Problem with '-flto=N' on MinGW
  2012-07-13  5:32               ` Ozkan Sezer
@ 2012-07-13  7:10                 ` niXman
  0 siblings, 0 replies; 13+ messages in thread
From: niXman @ 2012-07-13  7:10 UTC (permalink / raw)
  To: Ozkan Sezer, gcc-help, nightstrike

2012/7/13 Ozkan Sezer:

> You may try compiling make
> from CVS-latest and see whether it makes a difference.

I tried. Result is the same.

Can anyone tell me where make is running from?



-- 
Regards,
niXman
___________________________________________________
Dual-target(32 & 64 bit) MinGW compilers for 32 and 64 bit Windows:
http://sourceforge.net/projects/mingwbuilds/

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

end of thread, other threads:[~2012-07-13  7:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19 19:02 Problem with '-flto=N' on MinGW niXman
2012-06-19 21:14 ` Ian Lance Taylor
2012-06-19 23:39 ` xunxun
2012-06-20  9:06   ` niXman
2012-06-20 11:20     ` xunxun
2012-06-20 11:28       ` Ozkan Sezer
2012-06-20 11:32         ` xunxun
2012-06-20 11:37           ` Ozkan Sezer
2012-07-06 17:07         ` niXman
2012-07-10 14:25           ` niXman
2012-07-13  0:52             ` NightStrike
2012-07-13  5:32               ` Ozkan Sezer
2012-07-13  7:10                 ` niXman

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