librelist archives

« back to archive

Build Error on Mac OS X with config_tests

Build Error on Mac OS X with config_tests

From:
Devon Weller
Date:
2011-06-17 @ 22:39
I'm encountering errors while building mongrel2 version 1.7.3 on Mac OS X.
I'm using zeromq 2.1.7.

Has anyone else encountered this error or have any suggestions?


The "make" command ends with:

make[1]: Nothing to be done for `all'.
sh ./tests/runtests.sh
Running unit tests:
tests/bstr_tests PASS
tests/cache_tests PASS
./tests/runtests.sh: line 3: 26604 Segmentation fault      ./$i 2>&1 > 
/tmp/mongrel2-test.log
ERROR in test tests/config_tests:
make: *** [tests] Error 1



The tail of tests/tests.log is:

DEBUG tests/bstr_tests.c:283: 	# failures: 0
DEBUG tests/bstr_tests.c:294: TEST: Y codec.
DEBUG tests/bstr_tests.c:304: 	# failures: 0
DEBUG tests/bstr_tests.c:315: TEST: bsFromBstr.
DEBUG tests/bstr_tests.c:326: 	# failures: 0
DEBUG tests/bstr_tests.c:3813: # test aux failures: 0
DEBUG tests/cache_tests.c:110: ----- RUNNING: ./tests/cache_tests
DEBUG tests/cache_tests.c:103: 
----- test_cache_evict
DEBUG tests/cache_tests.c:104: 
----- test_cache_manual_evict
DEBUG tests/cache_tests.c:105: 
----- test_cache_lookup
DEBUG tests/config_tests.c:83: ----- RUNNING: ./tests/config_tests
[INFO] (src/server.c:257) Starting 0MQ with 1 threads.


Thanks.
- Devon

Re: [mongrel2] Build Error on Mac OS X with config_tests

From:
m0nastic
Date:
2011-06-18 @ 01:45
I ran into this issue last weekend, and Zed helped me out on Twitter. 

None of my other 0mq applications had an issue running, but replacing the 
homebrew'd version definitely worked. I wonder if maybe the other 0mq 
applications I wrote were just too basic to cause a problem.



On Jun 17, 2011, at 8:08 PM, "Devon Weller" <dweller@devonweller.com> wrote:

> 
> 
> That was exactly the problem.  Thanks for the help.
> 
> 
> 
> I wonder what's wrong with the zeromq brew.  There doesn't appear to be 
anything wrong with it at first glance.  Here is the pertinent ruby line 
in zeromq.rb:
> 
> system "./configure", "--disable-dependency-tracking", 
"--prefix=#{prefix}", "--with-pgm
> 
> weird.
> 
> 
> - Devon
> 
> 
> 
> On Jun 17, 2011, at 6:08 PM, Yaroslav Shirokov wrote:
> 
>> I saw this exactly three times today, and each time there was a brew 
installation of 2.1.7. Uninstall that, rebuild 0mq from source and try 
again.
>> 
>> In each case that worked for me.
>> 
>> --
>> Slava
>> 
>> On Jun 17, 2011, at 6:39 PM, Devon Weller wrote:
>> 
>>> 
>>> I'm encountering errors while building mongrel2 version 1.7.3 on Mac 
OS X.  I'm using zeromq 2.1.7.
>>> 
>>> Has anyone else encountered this error or have any suggestions?
>>> 
>>> 
>>> The "make" command ends with:
>>> 
>>> make[1]: Nothing to be done for `all'.
>>> sh ./tests/runtests.sh
>>> Running unit tests:
>>> tests/bstr_tests PASS
>>> tests/cache_tests PASS
>>> ./tests/runtests.sh: line 3: 26604 Segmentation fault      ./$i 2>&1 >
/tmp/mongrel2-test.log
>>> ERROR in test tests/config_tests:
>>> make: *** [tests] Error 1
>>> 
>>> 
>>> 
>>> The tail of tests/tests.log is:
>>> 
>>> DEBUG tests/bstr_tests.c:283:    # failures: 0
>>> DEBUG tests/bstr_tests.c:294: TEST: Y codec.
>>> DEBUG tests/bstr_tests.c:304:    # failures: 0
>>> DEBUG tests/bstr_tests.c:315: TEST: bsFromBstr.
>>> DEBUG tests/bstr_tests.c:326:    # failures: 0
>>> DEBUG tests/bstr_tests.c:3813: # test aux failures: 0
>>> DEBUG tests/cache_tests.c:110: ----- RUNNING: ./tests/cache_tests
>>> DEBUG tests/cache_tests.c:103: 
>>> ----- test_cache_evict
>>> DEBUG tests/cache_tests.c:104: 
>>> ----- test_cache_manual_evict
>>> DEBUG tests/cache_tests.c:105: 
>>> ----- test_cache_lookup
>>> DEBUG tests/config_tests.c:83: ----- RUNNING: ./tests/config_tests
>>> [INFO] (src/server.c:257) Starting 0MQ with 1 threads.
>>> 
>>> 
>>> Thanks.
>>> - Devon
>> 
> 
> 

Re: [mongrel2] Build Error on Mac OS X with config_tests

From:
Zed A. Shaw
Date:
2011-06-18 @ 17:59
On Sat, Jun 18, 2011 at 01:45:51AM +0000, m0nastic wrote:
> I ran into this issue last weekend, and Zed helped me out on Twitter. 
> 
> None of my other 0mq applications had an issue running, but replacing
> the homebrew'd version definitely worked. I wonder if maybe the other
> 0mq applications I wrote were just too basic to cause a problem.

Yeah, I don't know why the brew guys are building with openpgm support,
but not also building the openpgm library zeromq needs.  I've managed to
get someone to submit a patch to them for it so we'll see if it gets
fixed.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Build Error on Mac OS X with config_tests

From:
Yaroslav Shirokov
Date:
2011-06-17 @ 23:08
I saw this exactly three times today, and each time there was a brew 
installation of 2.1.7. Uninstall that, rebuild 0mq from source and try 
again.

In each case that worked for me.

--
Slava

On Jun 17, 2011, at 6:39 PM, Devon Weller wrote:

> 
> I'm encountering errors while building mongrel2 version 1.7.3 on Mac OS 
X.  I'm using zeromq 2.1.7.
> 
> Has anyone else encountered this error or have any suggestions?
> 
> 
> The "make" command ends with:
> 
> make[1]: Nothing to be done for `all'.
> sh ./tests/runtests.sh
> Running unit tests:
> tests/bstr_tests PASS
> tests/cache_tests PASS
> ./tests/runtests.sh: line 3: 26604 Segmentation fault      ./$i 2>&1 > 
/tmp/mongrel2-test.log
> ERROR in test tests/config_tests:
> make: *** [tests] Error 1
> 
> 
> 
> The tail of tests/tests.log is:
> 
> DEBUG tests/bstr_tests.c:283: 	# failures: 0
> DEBUG tests/bstr_tests.c:294: TEST: Y codec.
> DEBUG tests/bstr_tests.c:304: 	# failures: 0
> DEBUG tests/bstr_tests.c:315: TEST: bsFromBstr.
> DEBUG tests/bstr_tests.c:326: 	# failures: 0
> DEBUG tests/bstr_tests.c:3813: # test aux failures: 0
> DEBUG tests/cache_tests.c:110: ----- RUNNING: ./tests/cache_tests
> DEBUG tests/cache_tests.c:103: 
> ----- test_cache_evict
> DEBUG tests/cache_tests.c:104: 
> ----- test_cache_manual_evict
> DEBUG tests/cache_tests.c:105: 
> ----- test_cache_lookup
> DEBUG tests/config_tests.c:83: ----- RUNNING: ./tests/config_tests
> [INFO] (src/server.c:257) Starting 0MQ with 1 threads.
> 
> 
> Thanks.
> - Devon

Re: [mongrel2] Build Error on Mac OS X with config_tests

From:
Devon Weller
Date:
2011-06-18 @ 00:07

That was exactly the problem.  Thanks for the help.



I wonder what's wrong with the zeromq brew.  There doesn't appear to be 
anything wrong with it at first glance.  Here is the pertinent ruby line 
in zeromq.rb:

system "./configure", "--disable-dependency-tracking", 
"--prefix=#{prefix}", "--with-pgm

weird.


- Devon



On Jun 17, 2011, at 6:08 PM, Yaroslav Shirokov wrote:

> I saw this exactly three times today, and each time there was a brew 
installation of 2.1.7. Uninstall that, rebuild 0mq from source and try 
again.
> 
> In each case that worked for me.
> 
> --
> Slava
> 
> On Jun 17, 2011, at 6:39 PM, Devon Weller wrote:
> 
>> 
>> I'm encountering errors while building mongrel2 version 1.7.3 on Mac OS
X.  I'm using zeromq 2.1.7.
>> 
>> Has anyone else encountered this error or have any suggestions?
>> 
>> 
>> The "make" command ends with:
>> 
>> make[1]: Nothing to be done for `all'.
>> sh ./tests/runtests.sh
>> Running unit tests:
>> tests/bstr_tests PASS
>> tests/cache_tests PASS
>> ./tests/runtests.sh: line 3: 26604 Segmentation fault      ./$i 2>&1 > 
/tmp/mongrel2-test.log
>> ERROR in test tests/config_tests:
>> make: *** [tests] Error 1
>> 
>> 
>> 
>> The tail of tests/tests.log is:
>> 
>> DEBUG tests/bstr_tests.c:283: 	# failures: 0
>> DEBUG tests/bstr_tests.c:294: TEST: Y codec.
>> DEBUG tests/bstr_tests.c:304: 	# failures: 0
>> DEBUG tests/bstr_tests.c:315: TEST: bsFromBstr.
>> DEBUG tests/bstr_tests.c:326: 	# failures: 0
>> DEBUG tests/bstr_tests.c:3813: # test aux failures: 0
>> DEBUG tests/cache_tests.c:110: ----- RUNNING: ./tests/cache_tests
>> DEBUG tests/cache_tests.c:103: 
>> ----- test_cache_evict
>> DEBUG tests/cache_tests.c:104: 
>> ----- test_cache_manual_evict
>> DEBUG tests/cache_tests.c:105: 
>> ----- test_cache_lookup
>> DEBUG tests/config_tests.c:83: ----- RUNNING: ./tests/config_tests
>> [INFO] (src/server.c:257) Starting 0MQ with 1 threads.
>> 
>> 
>> Thanks.
>> - Devon
>