Thread: Re: [Cppcms-users] [bug report]Test errors at Mac 10.9.3 x64
Brought to you by:
artyom-beilis
|
From: 胡文志 <rus...@16...> - 2014-04-16 10:51:33
|
thanks! i fixed it use gcc of mac system ,5.1. 2014年4月16日 下午6:42于 Artyom Beilis <art...@ya...>写道: > > You probably need to check - try to get a backtrace or something like that of some simplest test > like > > under build/booster > run ./test_locale_config that runs directly. > > I assume that there is some setup problem, some ABI or library mistmatch - make sure that gcc and the libstdc++ > that the program uses are of the same origin. > > In any case it looks like a setup problem. > > Artyom Beilis > -------------- > CppCMS - C++ Web Framework: http://cppcms.com/ > CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ > > -------------------------------------------- > On Tue, 4/15/14, HuWenzhi <rus...@16...> wrote: > > Subject: [Cppcms-users] [bug report]Test errors at Mac 10.9.3 x64 > To: cpp...@li... > Date: Tuesday, April 15, 2014, 1:25 PM > > Mac > 10.9.3 x64 / Darwin Kernel Version 13.1.0SVN > revision 2244Python 2.7.5cmake version > 2.8.12.2PCRE version 8.34 2013-12-15gcc > (GCC) 4.7.3icu4c/52.1 > > i use: > cmake > -DCMAKE_C_COMPILER=/usr/local/bin/x86_64-apple-darwin13.1.0-gcc-4.7.3 -DCMAKE_CXX_COMPILER=/usr/local/bin/x86_64-apple-darwin13.1.0-g++-4.7 > -DCMAKE_LIBRARY_PATH=/usr/local/Cellar/boost/1.55.0_1/lib > -DCMAKE_INCLUDE_PATH=/usr/local/Cellar/boost/1.55.0_1/include > -DDISABLE_ICONV=ON ..makemake > installmake test > > so…——————————44% > tests passed, 54 tests failed out of 97 > > Total Test time (real) = 48.55 sec > > The following tests FAILED: > 17 - tc_test_shared > (SEGFAULT) > 18 - tc_test_separate > (SEGFAULT) > 19 - status_test > (SEGFAULT) > 20 - > async_status_test (SEGFAULT) > 21 - form_test > (SEGFAULT) > 22 - cookie_test > (SEGFAULT) > 23 - > internal_forwarder_test (SEGFAULT) > 24 - forwarder_test > (SEGFAULT) > 25 - jsonrpc_test > (SEGFAULT) > 26 - > http_timeouts_test_read (SEGFAULT) > 27 - > http_timeouts_test_write (SEGFAULT) > 28 - file_server_test > (SEGFAULT) > 29 - > file_server_with_listing_test (SEGFAULT) > 30 - disco_test_http > (SEGFAULT) > 31 - > disco_test_fastcgi_tcp (SEGFAULT) > 32 - > disco_test_scgi_tcp (SEGFAULT) > 33 - secure_post_test > (SEGFAULT) > 34 - > disco_test_fastcgi_unix (SEGFAULT) > 35 - > disco_test_scgi_unix (SEGFAULT) > 36 - gzip_test > (SEGFAULT) > 37 - > cache_frontend_test (SEGFAULT) > 38 - > cppcms_service_test (Failed) > 39 - > session_interface_test_client_renew (SEGFAULT) > 40 - > session_interface_test_client_browser (SEGFAULT) > 41 - > session_interface_test_client_fixed (SEGFAULT) > 42 - > session_interface_test_server_renew (SEGFAULT) > 43 - > session_interface_test_server_browser (SEGFAULT) > 44 - > session_interface_test_server_fixed (SEGFAULT) > 45 - > session_interface_test_both_renew (SEGFAULT) > 46 - > session_interface_test_both_browser (SEGFAULT) > 47 - > session_interface_test_both_fixed (SEGFAULT) > 48 - > proto_test_async_http (SEGFAULT) > 49 - > proto_test_async_scgi (SEGFAULT) > 50 - > proto_test_async_fastcgi (SEGFAULT) > 51 - > proto_test_async_scgi_unix (SEGFAULT) > 52 - > proto_test_async_fastcgi_unix (SEGFAULT) > 53 - > proto_test_sync_http (SEGFAULT) > 54 - > proto_test_sync_scgi (SEGFAULT) > 55 - > proto_test_sync_fastcgi (SEGFAULT) > 56 - > proto_test_sync_scgi_unix (SEGFAULT) > 57 - > proto_test_sync_fastcgi_unix (SEGFAULT) > 58 - > loadable_storage_pass (SEGFAULT) > 59 - > loadable_storage_fail (SEGFAULT) > 75 - test_aio_socket > (Failed) > 79 - > test_locale_codepage (SEGFAULT) > 80 - > test_locale_message (SEGFAULT) > 83 - > test_locale_date_time (SEGFAULT) > 84 - > test_locale_generator (SEGFAULT) > 85 - > test_locale_config (SEGFAULT) > 87 - > test_locale_collate (SEGFAULT) > 88 - > test_locale_convert (SEGFAULT) > 89 - > test_locale_boundary (SEGFAULT) > 90 - > test_locale_formatting (SEGFAULT) > 91 - > test_locale_icu_vs_os_timezone (SEGFAULT) > Errors while running CTest > make: *** [test] Error > 8—————————— > make hello_world: > make > CXX=/usr/local/bin/x86_64-apple-darwin13.1.0-g++-4.7 ./hello > -c config.js > then…Segmentation fault: > 11 > > > what’s wrong ? > thanks. > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph > databases and their > applications. Written by three acclaimed leaders in the > field, > this first edition is now available. Download your free book > today! > http://p.sf.net/sfu/NeoTech > -----Inline Attachment Follows----- > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
|
From: Abhishek K. <abh...@gm...> - 2014-07-24 09:17:58
|
Dear OP You didn't mention as to how exactly you used using mac-gcc... however, I am writing these steps, in case it helps for someone stuck. I had faced this exact problem. I had OSX 10.8, which contained gcc & g++, where cppcms compilation and tests worked perfectly. It was actually some apple-gcc 4.2 However, after I upgraded to OSX 10.9.4, I started facing errors. gcc and g++ were actually pointing to clang compiler. I installed gcc using "brew install gcc49", and corrected cc,gcc,c++,g++ commands to gcc-4.9 binary files, but didn't workout. I tried the same for gcc-4.6. Finally I tried it with old apple-gcc, I installed using command "brew install apple-gcc42" and this time it did work. Hope this helps someone. Regards, Abhishek |