[MacPorts] #26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 ------------------------------------+--------------------------------------- Reporter: michaelld@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: orc ------------------------------------+--------------------------------------- MacPorts 1.9.1.99, OSX 10.5.8 i386 only, XCode 3.1.3. Building in the 'orc-test' directory needs to be disabled. OSX does not provide 'posix_memalign', nor IIRC a way of arbitrary alignment (just on a page boundary via 'valloc'). Ideally, the configure script would check for 'posix_memalign' function and then the code would use something else if it is not available. {{{ Making all in orc-test [snip] libtool: link: /usr/bin/gcc-4.0 -dynamiclib -o .libs/liborc- test-0.4.0.dylib .libs/liborc_test_0.4_la-orctest.o .libs/liborc_test_0 .4_la-orcarray.o .libs/liborc_test_0.4_la-orcrandom.o .libs/liborc_test_0 .4_la-orcprofile.o -L/opt/local/lib ../orc/.libs/liborc-0.4.dylib -arch i386 -arch i386 -install_name /opt/local/lib/liborc-test-0.4.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module -Wl,-exported_symbols_list,.libs/liborc-test-0.4-symbols.expsym Undefined symbols: "_posix_memalign", referenced from: _orc_array_new in liborc_test_0.4_la-orcarray.o ld: symbol(s) not found }}} -- Ticket URL: <http://trac.macports.org/ticket/26209> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 ------------------------------------+--------------------------------------- Reporter: michaelld@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: orc ------------------------------------+--------------------------------------- Comment(by devans@…): Also observed on OS X 10.5.8 ppc. However, it builds without error on 10.6.4 universal. So seems to be a Leopard and possibly earlier problem. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 ------------------------------------+--------------------------------------- Reporter: michaelld@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: orc ------------------------------------+--------------------------------------- Comment(by russell.jones@…): Required for schroedinger, the dirac codec implementation, and thus for ffmpeg. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 ------------------------------------+--------------------------------------- Reporter: michaelld@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: orc ------------------------------------+--------------------------------------- Comment(by elelay@…): seen also with 10.4.11 PPC -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 ------------------------------------+--------------------------------------- Reporter: michaelld@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: orc ------------------------------------+--------------------------------------- Comment(by redbeard+macport@…): CC me -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 ------------------------------------+--------------------------------------- Reporter: michaelld@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: orc ------------------------------------+--------------------------------------- Comment(by stephen@…): Replying to [ticket:26209 michaelld@…]:
MacPorts 1.9.1.99, OSX 10.5.8 i386 only, XCode 3.1.3.
Building in the 'orc-test' directory needs to be disabled.
Unfortunately, it's not that easy. The tools directory depends on orc- test. After {{{port patch orc}}}, I cd to the work directory and edited the top-level Makefile to remove the orc-test directory from SUBDIRS. Then {{{port upgrade orc}}} results in {{{ :info:build Making all in tools :info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I.. -I/opt/local/include -Wall -I.. -O2 -arch i386 -MT orcc.o -MD -MP -MF .deps/orcc.Tpo -c -o orcc.o orcc.c :info:build mv -f .deps/orcc.Tpo .deps/orcc.Po :info:build make[2]: *** No rule to make target `../orc-test/liborc- test-0.4.la', needed by `orcc'. Stop. :info:build make[1]: *** [all-recursive] Error 1 :info:build make: *** [all] Error 2 :info:build shell command " cd "/opt/local/var/macports/build/_Users_steve_src_MacPorts_dports_devel_orc/work/orc-0.4.7" && /usr/bin/make all" returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for orc): org.macports.destroot org.macports.build :notice:build Log for orc is at: /opt/local/var/macports/logs/_Users_steve_src_MacPorts_dports_devel_orc/main.log }}} from the tail of the log. /sigh/ -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 ------------------------------------+--------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: orc ------------------------------------+--------------------------------------- Changes (by michaelld@…): * owner: macports-tickets@… => michaelld@… Comment: I'm working on a set of patches to check if 'posix_memalign' and 'valloc' are available; does #ifdef's around them in the file orc-test/orcarray.c, and if neither are available does a #error. This fix (or, something like it) should be pushed upsteam. I'll check it in when it works here, and hopefully it'll work for everyone else too :) -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: orc | -------------------------------------+-------------------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: Fixed in r70897. Please 'sync', 'clean' and try to 'upgrade' again. I'm closing this ticket as fixed, but if these patches don't work for you please reopen it. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Changes (by russell.jones@…): * status: closed => reopened * resolution: fixed => Comment: Doesn't work for me. main.log attached. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by michaelld@…): Looks like you need to sync your ports & try again: {{{ sudo port clean orc sudo port sync sudo port upgrade orc }}} should do the trick. Try that and let me know if it works or not. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by russell.jones@…): Failed again, this time at the fetch stage. Did {{{ sudo port clean orc sudo port selfupdate sudo port upgrade outdated }}} which I believe to be equivalent to the steps you mentioned. main.log attached again. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by michaelld@…): BTW> You can tell if the patches are in place if you look at the debug log (e.g., as attached) -- search for "sigsetjmp" and you should see something like the following: {{{ checking for sigaction... yes checking for sigsetjmp... yes checking for posix_memalign... no checking for valloc... yes checking for clock_gettime in -lrt... no checking for monotonic clocks... no }}} and the "yes" or "no" of the middle 2 (checks for "posix_memalign" and "valloc") will vary depending on your OS, but at least one of the 2 should be "yes". If the middle 2 are not in place (i.e., the listing skips from "sigsetjmp" to "clock_gettime"), then the patches are not there & you need to do the "clean", "sync", and "upgrade" as above. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by michaelld@…): OK; if you do {{{ pushd `port dir orc` ls files }}} does the 'ls' work, and if so does it show any files? -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by russell.jones@…): Yes, patch_config.h.in.diff (623b) patch_configure.diff (628b) and patch_orc-test_orcarray.c.diff (864b) -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by michaelld@…): My bad; forgot to change patch names in the Portfile :) Fixed in r70899. Try the "sync" and such again. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by russell.jones@…): It's doing the same thing just now. I'll give it a few minutes and try again. -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by k.makisupa@…): Better now.....its working as expected. ---> Attempting to fetch orc-0.4.7.tar.gz from http://distfiles.macports.org/orc as opposed to "patch-configure.diff" -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:22> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: orc | -------------------------------------+-------------------------------------- Comment(by russell.jones@…): Now compiles fine. Thanks :-) -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:23> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26209: orc 0.4.7 build fails due to use of 'posix_memalign' of 10.5 -------------------------------------+-------------------------------------- Reporter: michaelld@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: orc | -------------------------------------+-------------------------------------- Changes (by michaelld@…): * status: reopened => closed * resolution: => fixed Comment: You're welcome; glad we all got it work :) -- Ticket URL: <http://trac.macports.org/ticket/26209#comment:24> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts