[MacPorts] #19733: Gnatmake uses Apple's gcc by default
#19733: Gnatmake uses Apple's gcc by default ------------------------------+--------------------------------------------- Reporter: jarimatti@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: gnatmake | Port: gnat-gcc ------------------------------+--------------------------------------------- After installation the gnatmake uses Apple's gcc (4.0.1), which does not have Ada. The workaround is to pass parameters via the command line (or via other means). Would it be possible to make the gnatmake use the gnat-gcc compilers out of the box? Or at least output a note when installing that you need to do this? Sample call and output: {{{ % gnatmake hello.adb gcc -c hello.adb i686-apple-darwin8-gcc-4.0.1: hello.adb: Ada compiler not installed on this system gnatmake: "hello.adb" compilation error }}} Sample call with compiler defined: {{{ % gnatmake --GCC=gcc-gnat-4.3 --GNATLINK="gnatlink --GCC=gcc-gnat-4.3" hello.adb gcc-gnat-4.3 -c -gnato -fstack-check -gnatE -gnaty hello.adb gnatbind -x hello.ali gnatlink hello.ali -fstack-check --GCC=gcc-gnat-4.3 }}} -- Ticket URL: <http://trac.macports.org/ticket/19733> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19733: Gnatmake uses Apple's gcc by default ------------------------------+--------------------------------------------- Reporter: jarimatti@… | Owner: krischik@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: gnatmake | Port: gnat-gcc ------------------------------+--------------------------------------------- Changes (by krischik@…): * owner: macports-tickets@… => krischik@… * status: new => assigned Comment: Hello, as with all MacPorts gcc compiler you need to install gcc-select and use '''sudo gcc_select gnat-gcc'''. But a post-install message would indeed be helpful. Martin -- Ticket URL: <http://trac.macports.org/ticket/19733#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19733: Gnatmake uses Apple's gcc by default ------------------------------+--------------------------------------------- Reporter: jarimatti@… | Owner: krischik@… Type: enhancement | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: gnatmake | Port: gnat-gcc ------------------------------+--------------------------------------------- Comment(by jarimatti@…): Replying to [comment:3 krischik@…]:
Hello,
as with all MacPorts gcc compiler you need to install gcc-select and use '''sudo gcc_select gnat-gcc'''.
Hi, A-ha! Error spotted between keyboard and chair. I installed the port gcc_select, chose the gnat-gcc compiler and everything works fine. Thanks! Jarimatti -- Ticket URL: <http://trac.macports.org/ticket/19733#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#19733: Gnatmake uses Apple's gcc by default -------------------------------+-------------------------------------------- Reporter: jarimatti@… | Owner: krischik@… Type: enhancement | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Resolution: fixed | Keywords: gnatmake Port: gnat-gcc | -------------------------------+-------------------------------------------- Changes (by krischik@…): * status: assigned => closed * resolution: => fixed Comment: A note has been added to inform the user to use gcc-select after activating the port. -- Ticket URL: <http://trac.macports.org/ticket/19733#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts