[MacPorts] #23580: odcctools: update to support LTO
#23580: odcctools: update to support LTO -------------------------------+-------------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: llvm lto | Port: odcctools -------------------------------+-------------------------------------------- To enable -O4 and -flto [http://llvm.org/docs/LinkTimeOptimization.html link time optimization] in clang and llvm-gcc we need a linker with support for llvm bitcode. Newer versions of the [http://opensource.apple.com/source/ld64/ ld64 linker] (>=v77) can be configured to include such support through libLTO.dylib. The recent release of [http://svn.macosforge.org/repository/odcctools/release/ odcctools-20090808] comes bundled with ld64 v85. Updating the odcctools port would be very helpful, see #19679. [http://lists.apple.com/archives/Darwin-dev/2009/Sep/msg00025.html Note that the latest source releases v95 through v96.5 of ld64 are known to be incomplete and wont work]. -- Ticket URL: <http://trac.macports.org/ticket/23580> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23580: odcctools: update to support LTO -------------------------------+-------------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: llvm lto | Port: odcctools -------------------------------+-------------------------------------------- Comment(by raimue@…): I tried to update the port, but couldn't get it to compile on 10.6. {{{ make[1]: Entering directory `/opt/local/var/macports/build/_Users_raim_src_macports_trunk_dports_devel_odcctools/work/trunk/odcctools/otool' ccache /usr/bin/gcc-4.2 -x objective-c -Wall -Wno-import -DHAVE_CONFIG_H -I/opt/local/include -I. -I. -I../include -I../include -pipe -O2 -arch x86_64 -fno-builtin-round -fno-builtin-trunc -no-cpp-precomp -mdynamic-no- pic -c -o print_objc.o print_objc.c ccache /usr/bin/gcc-4.2 -DOTOOL -Wall -Wno-import -DHAVE_CONFIG_H -I/opt/local/include -I. -I. -I../include -I../include -pipe -O2 -arch x86_64 -fno-builtin-round -fno-builtin-trunc -no-cpp-precomp -mdynamic-no- pic -c -o ofile.o ../libstuff/ofile.c print_objc.c: In function 'print_objc_segment': print_objc.c:627: warning: implicit declaration of function 'CLS_GETINFO' print_objc.c:627: error: 'CLS_META' undeclared (first use in this function) print_objc.c:627: error: (Each undeclared identifier is reported only once print_objc.c:627: error: for each function it appears in.) print_objc.c:666: error: 'CLS_CLASS' undeclared (first use in this function) make[1]: *** [print_objc.o] Error 1 }}} -- Ticket URL: <http://trac.macports.org/ticket/23580#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23580: odcctools: update to support LTO -------------------------------+-------------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: llvm lto | Port: odcctools -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: I updated odcctools to version 20090808 in r67362. It doesn't build for me on Snow Leopard either, but at least it now does on Tiger, and maybe Leopard, which is more than I could say for the previous version of the port. -- Ticket URL: <http://trac.macports.org/ticket/23580#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23580: odcctools: update to support LTO -------------------------------+-------------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: llvm lto | Port: odcctools -------------------------------+-------------------------------------------- Comment(by macports@…): Thanks for updating odcctools! Unfortunately the updated port doesnt work for me on Snow Leopard either. I did succeed to manually compile and test just the ld64 v85.2.1 component on Snow Leopard. But sadly these 10.5 era tools seem to be unsuitable for targeting newer releases of mac os x. Well, I guess on 10.6 the only remaining option is to grab a copy of the installed tools. I will try this in a separate ld64 port to keep odcctools undiluted. A port of ld64 is really all we need for LTO in llvm anyway. And a separate port would even match upstream (apple) more closely, where ld64 is a standalone package too. -- Ticket URL: <http://trac.macports.org/ticket/23580#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23580: odcctools: update to support LTO -------------------------------+-------------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: llvm lto | Port: odcctools -------------------------------+-------------------------------------------- Comment(by macports@…): A port of ld64 and several related enhancements are available in #24112. This ticket can be closed. -- Ticket URL: <http://trac.macports.org/ticket/23580#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23580: odcctools: update to support LTO --------------------------------+------------------------------------------- Reporter: macports@… | Owner: macports-tickets@… Type: update | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: duplicate | Keywords: llvm lto Port: odcctools | --------------------------------+------------------------------------------- Changes (by macsforever2000@…): * status: new => closed * resolution: => duplicate -- Ticket URL: <http://trac.macports.org/ticket/23580#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts