[MacPorts] #36428: gcc44 4.4.7_6 compile error on Lion and Snow Leopard
#36428: gcc44 4.4.7_6 compile error on Lion and Snow Leopard -----------------------+-------------------------------- Reporter: mwglass@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: gcc44 -----------------------+-------------------------------- After updating our macports installation to 2.1.2, we have run into an issue with the gcc44 port which is demonstrated below. Given the simple C routine, foo.c: {{{ int foo(int a) { return a+5; } }}} It compiles fine with: {{{ gcc-mp-4.4 -c foo.c }}} But it throws an error when I have an include path the ends with the word "search": {{{ bash-3.2$ gcc-mp-4.4 -Isearch -c foo.c /opt/local/bin/as: more than one -arch option (not allowed, use cc(1) instead) bash-3.2$ gcc-mp-4.4 -Iextras/mysearch -c foo.c /opt/local/bin/as: more than one -arch option (not allowed, use cc(1) instead) }}} I also get this behavior with the gcc45 port but not with gcc46 or gcc47. We have a ~10M LOC project that is not yet ported to gcc46 or above so having this fixed got gcc44 would really be helpful. -- Ticket URL: <https://trac.macports.org/ticket/36428> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36428: gcc43, gcc44, gcc45: as: more than one -arch option ----------------------------------+------------------- Reporter: mwglass@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc43, gcc44, gcc45 | ----------------------------------+------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * owner: macports-tickets@… => mww@… * port: gcc44 => gcc43, gcc44, gcc45 Comment: We don't typically backport fixes from newer versions. We typically just update ports to newer versions as they're made available. But I suppose upstream will not release any new versions of gcc 4.4 anymore. However if you can provide a link to the relevant upstream bugreport, or identify the specific fix that needs to be backported (a specific upstream revision that implements the fix, for example), or better yet can backport it yourself and provide a patch that we can apply to the MacPorts portfile, then of course we would consider that. -- Ticket URL: <https://trac.macports.org/ticket/36428#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36428: gcc43, gcc44, gcc45: as: more than one -arch option ----------------------------------+------------------- Reporter: mwglass@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc43, gcc44, gcc45 | ----------------------------------+------------------- Comment (by mwglass@…): It looks like this Portfile change is what caused the error I'm seeing: {{{ Revision 92064, 5.8 KB checked in by jeremyhu@macports.org, 6 months ago (diff) gcc*: Use our cctools and ld64 for assembly and linking }}} -- Ticket URL: <https://trac.macports.org/ticket/36428#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36428: gcc43, gcc44, gcc45: as: more than one -arch option ----------------------------------+------------------- Reporter: mwglass@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc43, gcc44, gcc45 | ----------------------------------+------------------- Changes (by ryandesign@…): * cc: jeremyhu@… (added) -- Ticket URL: <https://trac.macports.org/ticket/36428#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36428: gcc43, gcc44, gcc45: as: more than one -arch option ----------------------------------+------------------- Reporter: mwglass@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc43, gcc44, gcc45 | ----------------------------------+------------------- Comment (by jeremyhu@…): As this is reported with older gcc, you can use -v, you can see how as is being executed differently: 4.5: {{{ /opt/local/bin/as -v -Ia/search -arch x86_64 -force_cpusubtype_ALL -o test.o /var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T//ccpSXwIb.s }}} 4.7: {{{ /opt/local/bin/as -v -I a/search -arch x86_64 -force_cpusubtype_ALL -o test.o /var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T//ccOXvW5f.s }}} Note the space between -I and "a". It looks like older gcc pass on the arguments as they get them (-Iabc becomes -Iabc, and -I abc becomes -I abc). Newer gcc separate them out into two arguments. We can probably deal with this in cctools. -- Ticket URL: <https://trac.macports.org/ticket/36428#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36428: gcc43, gcc44, gcc45: as: more than one -arch option ----------------------------------+------------------------ Reporter: mwglass@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc43, gcc44, gcc45 | ----------------------------------+------------------------ Changes (by jeremyhu@…): * status: new => assigned * owner: mww@… => jeremyhu@… -- Ticket URL: <https://trac.macports.org/ticket/36428#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36428: gcc43, gcc44, gcc45: as: more than one -arch option ----------------------------------+------------------------ Reporter: mwglass@… | Owner: jeremyhu@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: gcc43, gcc44, gcc45 | ----------------------------------+------------------------ Comment (by jeremyhu@…): <rdar://problem/12475288> -- Ticket URL: <https://trac.macports.org/ticket/36428#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#36428: gcc43, gcc44, gcc45: as: more than one -arch option ----------------------------------+------------------------ Reporter: mwglass@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: gcc43, gcc44, gcc45 | ----------------------------------+------------------------ Changes (by jeremyhu@…): * status: assigned => closed * resolution: => fixed Comment: r98627 -- Ticket URL: <https://trac.macports.org/ticket/36428#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts