[MacPorts] #25598: GNAT GPL 2010 now available, update portfile to use it?
MacPorts
noreply at macports.org
Sat Mar 12 01:24:10 PST 2011
#25598: GNAT GPL 2010 now available, update portfile to use it?
-----------------------------+----------------------------------------------
Reporter: sjs@… | Owner: krischik@…
Type: update | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: gnat-gcc
-----------------------------+----------------------------------------------
Comment(by jarimatti@…):
Replying to [comment:8 krischik@…]:
> Now I know how far it gets (faster then expected):
>
> {{{
> /opt/gnat-2010-x86_64-apple-darwin9.6.0-bin/bin/gcc -c -g -fkeep-inline-
functions -gnatpg -gnata -gnatwns -nostdinc -I- -I. -Iada
-I../../gcc-4.5.2/gcc/ada -I../../gcc-4.5.2/gcc/ada/gcc-interface
../../gcc-4.5.2/gcc/ada/uintp.adb -o ada/uintp.o
> uintp.adb:242:22: expect type "Hnum" defined at line 91
> make[3]: *** [ada/uintp.o] Error 1
> make[2]: *** [all-stage1-gcc] Error 2
> make[1]: *** [stage1-bubble] Error 2
> make: *** [all] Error 2
> }}}
>
> Looks like an incompatible change to the system. We have to analyse this
now and create patch.
I noticed that last weekend. The error is in the GNAT Ada sources
/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang
/gnat-gcc/work/gcc-4.5.1/gcc/ada/uintp.adb
Here's a fix, it's at line 242 or so (sorry, don't know how to make a
proper patch yet):
{{{
--------------
-- Hash_Num --
--------------
function Hash_Num (F : Int) return Hnum is
begin
-- return Standard."mod" (F, Hnum'Range_Length);
return Hnum (Standard."mod" (F, Hnum'Range_Length));
end Hash_Num;
}}}
After this the compiler gets built but the output is different between
stages and this causes it to fail.
-Jarimatti
--
Ticket URL: <https://trac.macports.org/ticket/25598#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list