[MacPorts] #35612: Can't build proctors on Lion 10.7.4 / Xcode 4.4.1 (4F1003)
#35612: Can't build proctors on Lion 10.7.4 / Xcode 4.4.1 (4F1003) -------------------------------------+-------------------------------------- Reporter: chuckmcknight@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: proctools -------------------------------------+-------------------------------------- Was able to build manually by running the bsdmake at the command line and doing the build and install separately. The port command fails (see log below): -- Ticket URL: <https://trac.macports.org/ticket/35612> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument -------------------------------------+-------------------------------------- Reporter: chuckmcknight@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: proctools -------------------------------------+-------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => akitada@… Comment: The log says: {{{ bsdmake: setrlimit: Invalid argument }}} Since this was not a clean attempt, please "sudo port clean proctools", then try again, then attach the new main.log. It builds fine for me on Mountain Lion. -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument -------------------------------------+-------------------------------------- Reporter: chuckmcknight@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: proctools -------------------------------------+-------------------------------------- Comment(by chuckmcknight@…): Ran sudo port clean proctools, the sudo port install proctors (see attached log main.2.log) -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument -------------------------------------+-------------------------------------- Reporter: chuckmcknight@… | Owner: akitada@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: proctools -------------------------------------+-------------------------------------- Comment(by chuckmcknight@…): I hate auto-correct... Should say: Ran sudo port clean proctools, then ran sudo port install proctools (see attached log main.2.log). -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument --------------------------------+---------------------- Reporter: chuckmcknight@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: bsdmake proctools | --------------------------------+---------------------- Changes (by jmr@…): * cc: akitada@… (added) * owner: akitada@… => raimue@… * port: proctools => bsdmake proctools Comment: I can't reproduce this on my 10.7 system, but it looks like the problem is actually in bsdmake. -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument --------------------------------+---------------------- Reporter: chuckmcknight@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: bsdmake proctools | --------------------------------+---------------------- Comment (by raimue@…): There is only one call to `setrlimit` in bsdmake, which is at the beginning of [http://www.opensource.apple.com/source/bsdmake/bsdmake-24/main.c main] (line 751). According to the man page for setrlimit(2), valid values for the `rlim_cur` should be in the range from `0` to `rlim_max`. I could only think of a problem here if the second branch in the Apple related branch is taken which sets `rlim_cur = OPEN_MAX`. With a configuration such that OPEN_MAX > rlim_max this would be an invalid value. Do you have any special configuration for the maximum number of open files on your system? -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument --------------------------------+---------------------- Reporter: chuckmcknight@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: bsdmake proctools | --------------------------------+---------------------- Comment (by chuckmcknight@…): No special configs that I'm aware of. "ulimit -a" gives: {{{ core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 8192 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 709 virtual memory (kbytes, -v) unlimited }}} -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument --------------------------------+---------------------- Reporter: chuckmcknight@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: bsdmake proctools | --------------------------------+---------------------- Comment (by raimue@…): On my Mac OS X 10.8.2 build 12C54, `ulimit -a` returns the following list: {{{ core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 256 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 709 virtual memory (kbytes, -v) unlimited }}} So given that my system returns `256` and your system has `8192`, there seems to be a different configuration. I will try to reproduce the issue and hopefully manage to patch bsdmake for this. -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35612: proctools: bsdmake: setrlimit: Invalid argument --------------------------------+---------------------- Reporter: chuckmcknight@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: bsdmake proctools | --------------------------------+---------------------- Comment (by ajdudman@…): I also get a setrlimit: Invalid argument execution error. My hard and soft open files limits are 10240 and 12288, because my /etc/launchd.conf setting "limit maxfiles 10240 12288". I find setting rlim_max = rlim_cur = OPEN_MAX works. -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#35612: proctools: bsdmake: setrlimit: Invalid argument --------------------------------+---------------------- Reporter: chuckmcknight@… | Owner: raimue@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: bsdmake proctools | --------------------------------+---------------------- Comment (by ajdudman@…): The idea for the fix came from the discussion at [http://old.tbamud.com/forum/thread/873]. -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#35612: proctools: bsdmake: setrlimit: Invalid argument --------------------------------+---------------------- Reporter: chuckmcknight@… | Owner: raimue@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: Port: bsdmake proctools | --------------------------------+---------------------- Changes (by raimue@…): * status: new => closed * resolution: => fixed Comment: Thank you very much for providing the patch! I never came around to do it myself. Committed in r105220. -- Ticket URL: <https://trac.macports.org/ticket/35612#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts