Bug 77593 - [7 Regression] Bootstrap failure with configure-target-libgfortran " cygwin64 Windows 10 anniversary
Summary: [7 Regression] Bootstrap failure with configure-target-libgfortran " cygwin64...
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 7.0
: P3 normal
Target Milestone: 7.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-14 16:18 UTC by Tim Prince
Modified: 2016-10-04 16:39 UTC (History)
2 users (show)

See Also:
Host: x86_64-unknown-cygwin
Target: x86_64-unknown-cygwin
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Log file as specified in "please report a bug" (8.51 KB, text/plain)
2016-09-14 16:18 UTC, Tim Prince
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Prince 2016-09-14 16:18:04 UTC
Created attachment 39621 [details]
Log file as specified in "please report a bug"

This failure appears to be Windows version dependent, but it provokes "please report a bug."
It's possible to cd into libgfortran and configure and build, but the gfortran build is faulty as the script reports.  Attaching config.log as requested.
Comment 1 Thomas Koenig 2016-09-14 20:22:24 UTC
Error message (from the logfile):

configure:15660: checking whether the GNU Fortran compiler is working
configure:15673: /cygdrive/c/Users/tim/gnu/gcc/cyg64/./gcc/gfortran -B/cygdrive/c/Users/tim/gnu/gcc/cyg64/./gcc/ -B/usr/local/gcc7/x86_64-unknown-cygwin/bin/ -B/usr/local/gcc7/x86_64-unknown-cygwin/lib/ -isystem /usr/local/gcc7/x86_64-unknown-cygwin/include -isystem /usr/local/gcc7/x86_64-unknown-cygwin/sys-include    -c   conftest.f >&5
Cygwin runtime failure: /cygdrive/c/Users/tim/gnu/gcc/cyg64/gcc/f951.exe: Invalid relocation.  Offset 0x2feaf09a3 at address 0x1004b8179 doesn't fit into 32 bits
configure:15673: $? = 1
configure: failed program was:
| 
|       program foo
|       real, parameter :: bar = sin (12.34 / 2.5)
|       end program foo
configure:15677: result: no
configure:15679: error: GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching /cygdrive/c/Users/tim/gnu/gcc/cyg64/x86_64-unknown-cygwin/libgfortran/config.log
Comment 2 Tim Prince 2016-09-14 21:50:26 UTC
I suspect the Windows 10 provided svn may be partly at fault (although it works for bootstrapping on the Microsoft provided gcc in linux subsystem).  I grabbed trunk using cygwin svn and have seen the bootstrap go as far as the stage3 libstdc++ build (without intervention) before jumping back to stage1 and failing on permissions to move into stage1-gcc.
Comment 3 Andrew Pinski 2016-09-15 08:20:24 UTC
Not a GCC bug.
Comment 4 Tim Prince 2016-09-15 13:52:24 UTC
Same failure of f951 after checking alternate svn apps.
Comment 5 Thomas Koenig 2016-09-16 16:51:36 UTC
Tim, can you grab a clean copy of trunk (from a Linux box or from whereever), cooy that to your Windows machine and try again?
Comment 6 Jerry DeLisle 2016-09-16 20:41:45 UTC
(In reply to Thomas Koenig from comment #5)
> Tim, can you grab a clean copy of trunk (from a Linux box or from
> whereever), cooy that to your Windows machine and try again?

Thomas, do you have bootstrap working?

I have it building without bootstrap, but I am totally unclear about some of the configure parameters, when I tried some of the odd ones used by the Cygwin released 5.4 I could not get through stage 1
Comment 7 n8tm 2016-09-17 15:36:21 UTC
The bootstrap was working for me on Windows 8.1 the last few days although it had been broken for a month or 2.  The symptom was that file edits made during build were being dropped or the files from various stages were mixed (although ok after build stopped).  Not the same as this corrupt f951.
I am away from my win10 and linux machines and have insufficient internet access but I think I ruled out any difference between the Linux and cygwin svn drops.  
By the way I haven't seen any internet installer vans this trip.

Sent via the ASUS PadFone X mini, an AT&T 4G LTE smartphone

-------- Original Message --------
From:"jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
Sent:Fri, 16 Sep 2016 16:41:45 -0400
To:tprince@computer.org
Subject:[Bug bootstrap/77593] [7 Regression] Bootstrap failure with configure-target-libgfortran " cygwin64 Windows 10 anniversary

>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77593
>
>Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>                 CC|                            |jvdelisle at gcc dot gnu.org
>
>--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
>(In reply to Thomas Koenig from comment #5)
>> Tim, can you grab a clean copy of trunk (from a Linux box or from
>> whereever), cooy that to your Windows machine and try again?
>
>Thomas, do you have bootstrap working?
>
>I have it building without bootstrap, but I am totally unclear about some of
>the configure parameters, when I tried some of the odd ones used by the Cygwin
>released 5.4 I could not get through stage 1
>
>-- 
>You are receiving this mail because:
>You reported the bug.
Comment 8 Tim Prince 2016-09-18 16:57:11 UTC
I show my configure parameters in my test results posts.  At some time in the past, each of them has been important.  I don't know if the parameters quoted by cygwin release pertain to cross compiling.  As the parameters I use have been successful again last week on win8.1 I don't see how they might pertain to the f951 bootstrap failure on win10.  When I get back to the win10 box I will compare with disable bootstrap.
Comment 9 Jerry DeLisle 2016-09-25 19:03:55 UTC
(In reply to tprince from comment #8)
> I show my configure parameters in my test results posts.  At some time in
> the past, each of them has been important.  I don't know if the parameters
> quoted by cygwin release pertain to cross compiling.  As the parameters I
> use have been successful again last week on win8.1 I don't see how they
> might pertain to the f951 bootstrap failure on win10.  When I get back to
> the win10 box I will compare with disable bootstrap.

Tim, using your parameters I was able to build.  I proceeded to do a regression hunt and confirmed that it was at the DTIO patch on 8/31/2016.

In this patch we added two new functions to libgfortran and set the symbol versioning. I modified the library by inserting a printf("ping\n") in the code path for a simple program.

print *, "hello"
end

The ping does not show which means the wrong library is being used at run time.

I am trying various config and bath settings to see if I can sort it out. No luck so far.
Comment 10 n8tm 2016-09-25 19:26:46 UTC
Jerry ,
Thanks for the efforts and apparent progress. I will return to wired internet territory and the win10 box next weekend.  I have the win8.1 laptop here.

Sent via the ASUS PadFone X mini, an AT&T 4G LTE smartphone

-------- Original Message --------
From:"jvdelisle at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
Sent:Sun, 25 Sep 2016 15:03:55 -0400
To:tprince@computer.org
Subject:[Bug bootstrap/77593] [7 Regression] Bootstrap failure with configure-target-libgfortran " cygwin64 Windows 10 anniversary

>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77593
>
>--- Comment #9 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
>(In reply to tprince from comment #8)
>> I show my configure parameters in my test results posts.  At some time in
>> the past, each of them has been important.  I don't know if the parameters
>> quoted by cygwin release pertain to cross compiling.  As the parameters I
>> use have been successful again last week on win8.1 I don't see how they
>> might pertain to the f951 bootstrap failure on win10.  When I get back to
>> the win10 box I will compare with disable bootstrap.
>
>Tim, using your parameters I was able to build.  I proceeded to do a regression
>hunt and confirmed that it was at the DTIO patch on 8/31/2016.
>
>In this patch we added two new functions to libgfortran and set the symbol
>versioning. I modified the library by inserting a printf("ping\n") in the code
>path for a simple program.
>
>print *, "hello"
>end
>
>The ping does not show which means the wrong library is being used at run time.
>
>I am trying various config and bath settings to see if I can sort it out. No
>luck so far.
>
>-- 
>You are receiving this mail because:
>You reported the bug.
Comment 11 n8tm 2016-10-01 13:41:37 UTC
I returned to attempts to build trunk on win8.1.  Initial bootstrap of
c++ is failing, attempting (unsuccessfully!) to build eh_arm.  I filed
pr 77814 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77814>


On 9/25/2016 3:03 PM, jvdelisle at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77593
>
> --- Comment #9 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
> (In reply to tprince from comment #8)
>> I show my configure parameters in my test results posts.  At some time in
>> the past, each of them has been important.  I don't know if the parameters
>> quoted by cygwin release pertain to cross compiling.  As the parameters I
>> use have been successful again last week on win8.1 I don't see how they
>> might pertain to the f951 bootstrap failure on win10.  When I get back to
>> the win10 box I will compare with disable bootstrap.
> Tim, using your parameters I was able to build.  I proceeded to do a regression
> hunt and confirmed that it was at the DTIO patch on 8/31/2016.
>
> In this patch we added two new functions to libgfortran and set the symbol
> versioning. I modified the library by inserting a printf("ping\n") in the code
> path for a simple program.
>
> print *, "hello"
> end
>
> The ping does not show which means the wrong library is being used at run time.
>
> I am trying various config and bath settings to see if I can sort it out. No
> luck so far.
>
Comment 12 n8tm 2016-10-04 16:39:47 UTC
On 9/25/2016 3:03 PM, jvdelisle at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77593
>
> --- Comment #9 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
> (In reply to tprince from comment #8)
>> I show my configure parameters in my test results posts.  At some time in
>> the past, each of them has been important.  I don't know if the parameters
>> quoted by cygwin release pertain to cross compiling.  As the parameters I
>> use have been successful again last week on win8.1 I don't see how they
>> might pertain to the f951 bootstrap failure on win10.  When I get back to
>> the win10 box I will compare with disable bootstrap.
> Tim, using your parameters I was able to build.  I proceeded to do a regression
> hunt and confirmed that it was at the DTIO patch on 8/31/2016.
>
> In this patch we added two new functions to libgfortran and set the symbol
> versioning. I modified the library by inserting a printf("ping\n") in the code
> path for a simple program.
>
> print *, "hello"
> end
>
> The ping does not show which means the wrong library is being used at run time.
>
> I am trying various config and bath settings to see if I can sort it out. No
> luck so far.
>
Jerry,
They fixed the blocking update in trunk libstdc++ yesterday.  In order
to build libgfortran, I #if'd out the __MINGW64_VERSION_MAJOR section in
intrinsics/random.c (not having received any advice about this). 
gfortran testsuite for cygwin/win8.1 is hanging on some of the arrayio
tests which I am having to kill by Task Manager.
If I try to use any parallel method for testsuite, there are pipe
failures, so I guess the cygwin implementation of pipes remains non
thread-safe.
I had no trouble completing gfortran testsuite in Windows 10 Ubuntu
subsystem (it skipped many tests), but it remains relatively easy to
hang the entire linux subsystem, requiring a full Windows reboot.