Bug 20089 - [4.0/4.1 Regression] gnatmake broken when building ada tools
Summary: [4.0/4.1 Regression] gnatmake broken when building ada tools
Status: RESOLVED DUPLICATE of bug 18434
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-19 19:38 UTC by Mariusz Mazur
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: alpha-pld-linux
Target: alpha-pld-linux
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariusz Mazur 2005-02-19 19:38:56 UTC
Building fails here: 
 
touch ../stamp-tools 
../../gnatmake -c -I../rts -I. -I/home/users/builder/rpm/BUILD/gcc-4.0-20050213/gcc/ada 
gnatchop --GCC="../../xgcc -B../../ -O2 -O2 -mieee -mieee      -gnatpg -gnata" 
gnatmake: "gnatchop" not found 
 
Unified build environment on multiple archs shows this bug occurs only on alpha: 
http://ep09.pld-linux.org/~builderth/queue.html (sparc broke because of something else, 
which I've already fixed). 
 
Full buildlog can be found here: ftp://buildlogs.pld-linux.org/th/alpha/FAIL/gcc.bz2
Comment 1 Andrew Pinski 2005-02-19 19:44:10 UTC
hmm, RTH was able to build and report Ada results on alpha-linux-gnu:
http://gcc.gnu.org/ml/gcc-testresults/2005-02/msg00683.html
Comment 2 Mariusz Mazur 2005-02-19 20:10:18 UTC
I've managed to google myself to PR18434 so looks like there is something wrong with 
alpha. 
 
Though I've seen stuff being broken depending on what languages are marked as 
supported (I've turned on only c++ and ada). 
 
Either way, I'll be building a whole distro (5 archs included) based on gcc4 and I need this 
working, so even a workaround would help. 
Comment 3 Laurent GUERBY 2005-02-19 20:32:51 UTC
Yes this is probably a miscompilation of gnatmake, you may try to set boot flags
to -O0 or -O1 instead of -O2. No idea on why RTH doesn't see this.
Comment 4 Mariusz Mazur 2005-02-20 18:12:03 UTC
I've recompiled the whole thing with -O0. Still doesn't work. If this is a miscompilation, then 
gcc4 is seriously borked on alpha. Any suggestions what to do with this? (I need gcc4 on 
alpha :) 
Comment 5 Pawel Sikora 2005-02-21 17:53:27 UTC
CC'ed. 
Comment 6 Mariusz Mazur 2005-02-28 10:26:44 UTC
Forgot to mention - here's a quick fix: 
http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/gcc-alpha-ada_fix.patch 
Comment 7 Richard Henderson 2005-05-18 06:04:14 UTC

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