Bug 44304 - Building gcc 4.5.0 under Snow Leopard : stages 2 & 3 differ
Summary: Building gcc 4.5.0 under Snow Leopard : stages 2 & 3 differ
Status: RESOLVED DUPLICATE of bug 43170
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.5.0
: P3 critical
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-28 07:47 UTC by Laurent Delphin
Modified: 2010-06-03 13:17 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Shell (bash) script to build gcc (225 bytes, text/plain)
2010-06-02 16:07 UTC, Laurent Delphin
Details
config.log (6.29 KB, application/octet-stream)
2010-06-02 16:08 UTC, Laurent Delphin
Details
configure.log (1.08 KB, application/octet-stream)
2010-06-02 16:09 UTC, Laurent Delphin
Details
All the files (187.20 KB, application/x-zip-compressed)
2010-06-02 16:12 UTC, Laurent Delphin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Delphin 2010-05-28 07:47:35 UTC
OS : Mac OS x 10.6.2 (Snow Leopard)
IDE tools : Xcode 3.2.2

Processor : Intel Core 2 Duo
Memory : 1 GB

Problem :
the make step operates well until teh comparison phase between stages 2 and 3. Bootstrap matter ...

I have saved the files you need but how to send them to you ?

Yours sincerely,


Laurent Delphin, Dunkerque (EU)
Comment 1 Iain Sandoe 2010-05-28 09:13:26 UTC
first can you give the output from the failure: 
i.e. which files have differences?

...the configuration line you are using.

the output of 
autoconf --version
automake --version
m4 --version

I should remind you of :
http://gcc.gnu.org/install/prerequisites.html

x86_64-apple-darwin10 will not build gcc properly with the auto* tools installed  - you must ensure that the required versions are found.

Comment 2 Jack Howarth 2010-05-28 11:56:50 UTC
MacPorts has accumulated a number of users who seem to run into this issue with gcc 4.5.0 (apparently always with libgomp)...

https://svn.macports.org/ticket/24664

Peter O'Gorman also has a problem machine as a well (a Mac Mini) which randomly fails the bootstrap comparison. Oddly I haven't seen this on my MacPro.
Comment 3 Dominique d'Humieres 2010-05-28 12:16:09 UTC
If the comparison failure is for libgomp, this pr is a duplicate of pr43170. The origin of the problem can be seen with the following test:

[macbook] f90/bug% grep -i tls /opt/gcc/omp_build_w_fail7/stage2-x86_64-apple-darwin10.3.0/libgomp/config.log
| #define HAVE_TLS 1
| #define HAVE_TLS 1
| #define HAVE_TLS 1
| #define HAVE_TLS 1
gcc_cv_have_tls=yes
#define HAVE_TLS 1
[macbook] f90/bug% grep -i tls /opt/gcc/omp_build_w_fail7/stage2-x86_64-apple-darwin10.3.0/i386/libgomp/config.log
gcc_cv_have_tls=no
[macbook] f90/bug% grep -i tls /opt/gcc/omp_build_w_fail7/stage3-x86_64-apple-darwin10.3.0/libgomp/config.log
| #define HAVE_TLS 1
| #define HAVE_TLS 1
| #define HAVE_TLS 1
| #define HAVE_TLS 1
gcc_cv_have_tls=yes
#define HAVE_TLS 1
[macbook] f90/bug% grep -i tls /opt/gcc/omp_build_w_fail7/stage3-x86_64-apple-darwin10.3.0/i386/libgomp/config.log
| #define HAVE_TLS 1
| #define HAVE_TLS 1
| #define HAVE_TLS 1
| #define HAVE_TLS 1
gcc_cv_have_tls=yes
#define HAVE_TLS 1

AFAICT "gcc_cv_have_tls=no" can occur at stage 2 or 3 and in the main lib or in the i386 one.
Comment 4 Iain Sandoe 2010-05-29 07:49:58 UTC
4.5-branch (as of r160013) has an error in config.gcc (which I just fixed on trunk yesterday, with r159979) in which several t-make fragments are included twice on x86_64-*-darwin*.  

If anyone is interested to try it out I could make you a patch for 4.5-branch to do the same fix.
still, first we need a repeatable phenomenon - and to be sure that it's not tool-related.
Comment 5 Laurent Delphin 2010-06-02 16:07:53 UTC
Created attachment 20809 [details]
Shell (bash) script to build gcc

Files related to this bug : shell (bash) script, log files.
Comment 6 Laurent Delphin 2010-06-02 16:08:27 UTC
Created attachment 20810 [details]
config.log
Comment 7 Laurent Delphin 2010-06-02 16:09:36 UTC
Created attachment 20811 [details]
configure.log

File generated by ./configure ... 2>&1 | tee configure.log
Comment 8 Laurent Delphin 2010-06-02 16:12:24 UTC
Created attachment 20812 [details]
All the files
Comment 9 Laurent Delphin 2010-06-02 16:15:55 UTC
(In reply to comment #1)
OK Thank you very much.

I have verified the prerequisites before.
Please note I just send a zip files with all log files.

Thanks.

========================================================

> first can you give the output from the failure: 
> i.e. which files have differences?
> ...the configuration line you are using.
> the output of 
> autoconf --version
> automake --version
> m4 --version
> I should remind you of :
> http://gcc.gnu.org/install/prerequisites.html
> x86_64-apple-darwin10 will not build gcc properly with the auto* tools
> installed  - you must ensure that the required versions are found.

Comment 10 Iain Sandoe 2010-06-02 16:25:19 UTC
(In reply to comment #9)
> (In reply to comment #1)
> OK Thank you very much.
> 
> I have verified the prerequisites before.
> Please note I just send a zip files with all log files.

thanks for posting the files - 
see also :
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43170

It does look like this is the same issue.
However, to confirm: 
Is this phenomenon deterministic - or a random occurrence depending on processor load?
(as I look at your script, it would seem that you have not done a parallel build)

if you remove all the libgomp directories and then re-do make - does it succeed ?

Comment 11 Iain Sandoe 2010-06-03 13:17:45 UTC

*** This bug has been marked as a duplicate of 43170 ***