Thread: [Cppcms-users] Some compilation errors when trying to build cppCms
Brought to you by:
artyom-beilis
From: Vizcayno <viz...@gm...> - 2012-02-19 21:35:15
|
Hello: I downloaded last version of cppCms (using svn). The cmake 2.8.7 configured and generated the necessary elements for compiling. When trying to build using MS-VC++ 2010 the next initial errors do not let me continue, it is not the intention that you solve everything, but to receive some guidelines on how to solve them; may be I am loosing something in the cmake configuration: IntelliSense: identifier "snprintf" is undefined c:\apps\instapps\cppcms\src\json.cpp line:240 col:7 cppcms error C3861: 'atoll': identifier not found C:\apps\instApps\cppcms\src\http_request.cpp Line:233 col:1 cppcms error C1001: An internal error has occurred in the compiler. c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp 710 1 booster error C3861: 'inet_ntop': identifier not found C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 189 1 booster error C2228: left of '.sin6_port' must have class/struct/union C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 157 1 booster error C2065: 'INET6_ADDRSTRLEN' : undeclared identifier C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 188 1 booster error C2039: 'inet_pton' : is not a member of '`global namespace'' C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 104 1 booster My best regards. |
From: Artyom B. <art...@ya...> - 2012-02-19 22:06:05
|
Hello, How do you build? I've tested the latest release with MSVC 2010 and it worked fine. Few points: 1. Make sure you are using nmake make files and **not** visual studio projects! VS projects for building CppCMS library ARE NOT SUPPORTED. If it still fails: 1. Please provide a full output of the cmake and then nmake runs. 2. Give the content of autogenerated cppcms/config.h and booster/build_config.h (it seems that something wrong with them) Artyom Beilis ------------- Support CppCMS by donating money: https://sourceforge.net/donate/index.php?group_id=209965 >________________________________ > From: Vizcayno <viz...@gm...> >To: cpp...@li... >Sent: Saturday, February 18, 2012 8:14 PM >Subject: [Cppcms-users] Some compilation errors when trying to build cppCms > >Hello: >I downloaded last version of cppCms (using svn). >The cmake 2.8.7 configured and generated the necessary elements for compiling. >When trying to build using MS-VC++ 2010 the next initial errors do not let me >continue, it is not the intention that you solve everything, but to receive >some guidelines on how to solve them; may be I am loosing something in the >cmake configuration: > >IntelliSense: identifier "snprintf" is undefined > c:\apps\instapps\cppcms\src\json.cpp line:240 col:7 cppcms > >error C3861: 'atoll': identifier not found > C:\apps\instApps\cppcms\src\http_request.cpp Line:233 col:1 cppcms > >error C1001: An internal error has occurred in the compiler. > c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp 710 1 > booster > >error C3861: 'inet_ntop': identifier not found > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 189 > 1 booster > >error C2228: left of '.sin6_port' must have class/struct/union > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 157 > 1 booster >error C2065: 'INET6_ADDRSTRLEN' : undeclared identifier > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 188 > 1 booster > >error C2039: 'inet_pton' : is not a member of '`global namespace'' > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 104 > 1 booster > >My best regards. > > > >------------------------------------------------------------------------------ >Virtualization & Cloud Management Using Capacity Planning >Cloud computing makes use of virtualization - but cloud computing >also focuses on allowing computing to be delivered as a service. >http://www.accelacomm.com/jaw/sfnl/114/51521223/ >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |
From: Vizcayno T. <viz...@gm...> - 2012-02-21 00:35:40
|
Thanks for your answer and help. I could not solve the problem yet,so let me send you the errors I have: $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The cmake command and options I used are: cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ apps\extApps\cppcms -DPCRE_INCLUDE=C:/apps/extApps/pcre/include -DPCRE_LIB=C:/ap ps/extApps/pcre/lib -DZLIB_INCLUDE_DIR=C:/apps/extApps/zlib/include -DZLIB=C:/ap ps/extApps/zlib/lib -DPYTHON=C:/apps/extApps/Python27 .. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The result of the command is: -- The C compiler identification is MSVC -- The CXX compiler identification is MSVC -- Check for CL compiler version -- Check for CL compiler version - 1600 -- Check if this is a free VC compiler -- Check if this is a free VC compiler - no -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at c:/apps/extApps/cmake/share/cmake-2.8/Modules/CPack.cmake:236 ( MESSAGE): CPack.cmake has already been included!! Call Stack (most recent call first): booster/CMakeLists.txt:14 (include) -- Looking for ICU libraries -- ICU not found, disabling ICU localization backend -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Failed -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Failed -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Failed -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Failed -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Failed -- Looking for atoll -- Looking for atoll - not found -- Looking for _atoi64 -- Looking for _atoi64 - found -- Looking for snprintf -- Looking for snprintf - not found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Failed -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Success -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Success -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Failed -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Failed -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - not found GNU-TLS Gcrypt or OpenSSL librarys are not found, disabling AES encryption suppo rt -- Configuring done WARNING: Target "base64_test" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "base64_test" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cache_backend_test" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cache_backend_test" requests linking to directory "C:/apps/extA pps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cache_frontend_test" requests linking to directory "C:/apps/ext Apps/pcre/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "cache_frontend_test" requests linking to directory "C:/apps/ext Apps/zlib/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "content_type_parser_test" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "content_type_parser_test" requests linking to directory "C:/app s/extApps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cookie_test" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cookie_test" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "copy_filter_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "copy_filter_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms" requests linking to directory "C:/apps/extApps/zlib/lib ". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms" requests linking to directory "C:/apps/extApps/pcre/lib ". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms-static" requests linking to directory "C:/apps/extApps/z lib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms-static" requests linking to directory "C:/apps/extApps/p cre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_config_find_param" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_make_key" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_make_key" requests linking to directory "C:/apps/extApps /zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_scale" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "cppcms_scale" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "disco_test" requests linking to directory "C:/apps/extApps/pcre /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "disco_test" requests linking to directory "C:/apps/extApps/zlib /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "encryptor_test" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "encryptor_test" requests linking to directory "C:/apps/extApps/ zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "file_server_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "file_server_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "form_test" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "form_test" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "forwarder_test" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "forwarder_test" requests linking to directory "C:/apps/extApps/ zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "gzip_test" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "gzip_test" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "hello_world" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "hello_world" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "http_timeouts_test" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "http_timeouts_test" requests linking to directory "C:/apps/extA pps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "json_test" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "json_test" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "jsonrpc_test" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "jsonrpc_test" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "loadable_storage" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "loadable_storage" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "loadable_storage_test" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "loadable_storage_test" requests linking to directory "C:/apps/e xtApps/zlib/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "mount_point_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "mount_point_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "multipart_parser_test" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "multipart_parser_test" requests linking to directory "C:/apps/e xtApps/zlib/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "proto_test" requests linking to directory "C:/apps/extApps/pcre /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "proto_test" requests linking to directory "C:/apps/extApps/zlib /lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "rewrite_test" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "rewrite_test" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "secure_post_test" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "secure_post_test" requests linking to directory "C:/apps/extApp s/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "serialization_test" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "serialization_test" requests linking to directory "C:/apps/extA pps/zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "session_interface_test" requests linking to directory "C:/apps/ extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "session_interface_test" requests linking to directory "C:/apps/ extApps/zlib/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "skin3" requests linking to directory "C:/apps/extApps/pcre/lib" . Targets may link only to libraries. CMake is dropping the item. WARNING: Target "skin3" requests linking to directory "C:/apps/extApps/zlib/lib" . Targets may link only to libraries. CMake is dropping the item. WARNING: Target "status_test" requests linking to directory "C:/apps/extApps/pcr e/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "status_test" requests linking to directory "C:/apps/extApps/zli b/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "storage_test" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "storage_test" requests linking to directory "C:/apps/extApps/zl ib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin" requests linking to directory "C:/apps/extApps/pcre/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin" requests linking to directory "C:/apps/extApps/zlib/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_a" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_a" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_b" requests linking to directory "C:/apps/extApps/pcre/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_skin_b" requests linking to directory "C:/apps/extApps/zlib/ lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_test" requests linking to directory "C:/apps/extApps/pcre/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "tc_test" requests linking to directory "C:/apps/extApps/zlib/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "url_mapper_test" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "url_mapper_test" requests linking to directory "C:/apps/extApps /zlib/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "xss_test" requests linking to directory "C:/apps/extApps/pcre/l ib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "xss_test" requests linking to directory "C:/apps/extApps/zlib/l ib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "booster" requests linking to directory "C:/apps/extApps/pcre/li b". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "booster-static" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_endpoint" requests linking to directory "C:/apps/extAp ps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_event_loop" requests linking to directory "C:/apps/ext Apps/pcre/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "test_aio_reactor" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_socket" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_aio_timer" requests linking to directory "C:/apps/extApps/ pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_backtrace_backtrace" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_function_callback" requests linking to directory "C:/apps/ extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "test_function_function" requests linking to directory "C:/apps/ extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the i tem. WARNING: Target "test_iostreams_streambuf" requests linking to directory "C:/app s/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_codepage" requests linking to directory "C:/apps/ex tApps/pcre/lib". Targets may link only to libraries. CMake is dropping the ite m. WARNING: Target "test_locale_codepage_converter" requests linking to directory " C:/apps/extApps/pcre/lib". Targets may link only to libraries. CMake is droppi ng the item. WARNING: Target "test_locale_config" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_date_time" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "test_locale_generator" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "test_locale_ios_prop" requests linking to directory "C:/apps/ex tApps/pcre/lib". Targets may link only to libraries. CMake is dropping the ite m. WARNING: Target "test_locale_message" requests linking to directory "C:/apps/ext Apps/pcre/lib". Targets may link only to libraries. CMake is dropping the item . WARNING: Target "test_locale_std_collate" requests linking to directory "C:/apps /extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_std_convert" requests linking to directory "C:/apps /extApps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_std_formatting" requests linking to directory "C:/a pps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping t he item. WARNING: Target "test_locale_utf" requests linking to directory "C:/apps/extApps /pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_locale_winapi_collate" requests linking to directory "C:/a pps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping t he item. WARNING: Target "test_locale_winapi_convert" requests linking to directory "C:/a pps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping t he item. WARNING: Target "test_locale_winapi_formatting" requests linking to directory "C :/apps/extApps/pcre/lib". Targets may link only to libraries. CMake is droppin g the item. WARNING: Target "test_log_log" requests linking to directory "C:/apps/extApps/pc re/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_nowide_nowide" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_ptime_posix_time" requests linking to directory "C:/apps/e xtApps/pcre/lib". Targets may link only to libraries. CMake is dropping the it em. WARNING: Target "test_regex_regex" requests linking to directory "C:/apps/extApp s/pcre/lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "test_smart_ptr_atomic_counter" requests linking to directory "C :/apps/extApps/pcre/lib". Targets may link only to libraries. CMake is droppin g the item. WARNING: Target "test_smart_ptr_shared_ptr" requests linking to directory "C:/ap ps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping th e item. WARNING: Target "test_smart_ptr_sp_counter" requests linking to directory "C:/ap ps/extApps/pcre/lib". Targets may link only to libraries. CMake is dropping th e item. WARNING: Target "test_thread_thread" requests linking to directory "C:/apps/extA pps/pcre/lib". Targets may link only to libraries. CMake is dropping the item. -- Generating done -- Build files have been written to: C:/apps/instApps/cppcms/build $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Then I execute the "nmake" command i get the next error: Microsoft (R) Program Maintenance Utility Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. Scanning dependencies of target booster [ 0%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/posix_ti me.cpp.obj posix_time.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/ctime.cp p.obj ctime.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/regex/src/pcre_reg ex.cpp.obj pcre_regex.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/posix_e rror.cpp.obj posix_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/windows _error.cpp.obj windows_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/aio_catego ry.cpp.obj aio_category.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/deadline_t imer.cpp.obj deadline_timer.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.c pp.obj endpoint.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/io_service .cpp.obj io_service.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp p.obj reactor.cpp c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) : fatal error C1001 : An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c[0x68F438D3:0x00000008]' , line 183) To work around this problem, try simplifying or changing the program near the l ocations listed above. Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Internal Compiler Error in c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe. You will be pr ompted to send an error report to Microsoft later. NMAKE : fatal error U1077: 'c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The content of C:\apps\instApps\cppcms\build\cppcms\config.h is: /////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <art...@ya...> // // See accompanying file COPYING.TXT file for licensing details. // /////////////////////////////////////////////////////////////////////////////// #ifndef CPPCMS_CONFIG_H #define CPPCMS_CONFIG_H /* Have stdint.h */ #define CPPCMS_HAVE_STDINT_H /* Have _atol64 */ #define CPPCMS_HAVE_ATOI64 /* Have atoll */ /* #undef CPPCMS_HAVE_ATOLL */ #if !defined(CPPCMS_HAVE_ATOLL) && defined(CPPCMS_HAVE_ATOI64) #define atoll _atoi64 #endif /* Have stat */ #define CPPCMS_HAVE_STAT /* Have _stat */ #define CPPCMS_HAVE__STAT /* Have tm.tm_zone */ /* #undef CPPCMS_HAVE_BSD_TM */ /* Have snprintf */ /* #undef CPPCMS_HAVE_SNPRINTF */ /* Have inttypes.h */ /* #undef CPPCMS_HAVE_INTTYPES_H */ /* "Have C++0x std::uXXstring" */ #define CPPCMS_HAVE_CPP0X_UXSTRING #ifdef CPPCMS_HAVE_CPP0X_UXSTRING # define CPPCMS_HAS_CHAR16_T # define CPPCMS_HAS_CHAR32_T #endif /* "Have C++0x auto" */ #define CPPCMS_HAVE_CPP_0X_AUTO /* "Have C++0x decltype" */ #define CPPCMS_HAVE_CPP_0X_DECLTYPE /* "Have g++ typeof" */ /* #undef CPPCMS_HAVE_GCC_TYPEOF */ /* "Enable ICU support" */ /* #undef CPPCMS_HAVE_ICU */ /* Use STD locales instead of ICU ones */ /* #undef CPPCMS_DISABLE_ICU_LOCALIZATION */ /* "Enable ICONV support" */ /* #undef CPPCMS_HAVE_ICONV */ /* "Enable GNU GCrypt library */ /* #undef CPPCMS_HAVE_GCRYPT */ /* "Enable OpenSSL library */ /* #undef CPPCMS_HAVE_OPENSSL */ /* "Have std::wstring" */ #define CPPCMS_HAVE_STD_WSTRING #ifndef CPPCMS_HAVE_STD_WSTRING # define CPPCMS_NO_STD_WSTRING #endif /* Have canonicalize_file_name */ /* #undef CPPCMS_HAVE_CANONICALIZE_FILE_NAME */ /* "Have g++ typeof" */ /* #undef CPPCMS_HAVE_UNDERSCORE_TYPEOF */ /* Define to the full name of this package. */ #define CPPCMS_PACKAGE_NAME "CppCMS" /* Define to the full name and version of this package. */ #define CPPCMS_PACKAGE_STRING "CppCMS/0.999.1" /* Define to the version of this package. */ #define CPPCMS_PACKAGE_VERSION "0.999.1" /* Define to module suffix. */ #define CPPCMS_LIBRARY_SUFFIX ".dll" /* Define to module suffix. */ /* #undef CPPCMS_LIBRARY_PREFIX */ #define CPPCMS_HAS_FCGI #define CPPCMS_HAS_SCGI #define CPPCMS_HAS_HTTP /* #undef CPPCMS_NO_TCP_CACHE */ /* #undef CPPCMS_NO_CACHE */ /* #undef CPPCMS_NO_PREFOK_CACHE */ /* #undef CPPCMS_NO_GZIP */ /* #undef CPPCMS_SQLITE_LINK_STATIC */ #endif $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ And the content of C:\apps\instApps\cppcms\build\booster\booster\build_config.h is: // // Copyright (C) 2009-2012 Artyom Beilis (Tonkikh) // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOSTER_BUILD_CONFIG_H #define BOOSTER_BUILD_CONFIG_H // // GCC's __sync_* operations // /* #undef BOOSTER_HAS_GCC_SYNC */ // // STDC++ library atomic ops in <bits/atomicity.h> // /* #undef BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD */ // // STDC++ library atomic ops in <ext/atomicity.h> // /* #undef BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD */ // // FreeBSD atomic operations // /* #undef BOOSTER_HAVE_FREEBSD_ATOMIC */ // // Solaris atomic operations // /* #undef BOOSTER_HAVE_SOLARIS_ATOMIC */ // // Mac OS X atomic operations // /* #undef BOOSTER_HAVE_MAC_OS_X_ATOMIC */ // // Have <stdint.h> // #define BOOSTER_HAVE_STDINT_H // // Have <inttypes.h> // /* #undef BOOSTER_HAVE_INTTYPES_H */ // // Have IPv6 support // /* #undef BOOSTER_AIO_HAVE_PF_INET6 */ /* #undef BOOSTER_HAVE_EXECINFO */ /* Define to module suffix. */ #define BOOSTER_LIBRARY_SUFFIX ".dll" /* Define to module suffix. */ /* #undef BOOSTER_LIBRARY_PREFIX */ #endif My best regards. On Sun, Feb 19, 2012 at 5:59 PM, Artyom Beilis <art...@ya...> wrote: > Hello, > > How do you build? I've tested the latest release with MSVC 2010 > and it worked fine. > > Few points: > > 1. Make sure you are using nmake make files and **not** visual studio > projects! VS projects for building CppCMS library > ARE NOT SUPPORTED. > > If it still fails: > > 1. Please provide a full output of the cmake and then nmake runs. > 2. Give the content of autogenerated cppcms/config.h and > booster/build_config.h (it seems that something wrong with them) > > > Artyom Beilis > ------------- > > Support CppCMS by donating money: > https://sourceforge.net/donate/index.php?group_id=209965 > > >________________________________ > > From: Vizcayno <viz...@gm...> > >To: cpp...@li... > >Sent: Saturday, February 18, 2012 8:14 PM > >Subject: [Cppcms-users] Some compilation errors when trying to build > cppCms > > > >Hello: > >I downloaded last version of cppCms (using svn). > >The cmake 2.8.7 configured and generated the necessary elements for > compiling. > >When trying to build using MS-VC++ 2010 the next initial errors do not > let me > >continue, it is not the intention that you solve everything, but to > receive > >some guidelines on how to solve them; may be I am loosing something in the > >cmake configuration: > > > >IntelliSense: identifier "snprintf" is undefined > > c:\apps\instapps\cppcms\src\json.cpp line:240 col:7 cppcms > > > >error C3861: 'atoll': identifier not found > > C:\apps\instApps\cppcms\src\http_request.cpp Line:233 col:1 > cppcms > > > >error C1001: An internal error has occurred in the compiler. > > c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp 710 1 > > booster > > > >error C3861: 'inet_ntop': identifier not found > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 189 > > 1 booster > > > >error C2228: left of '.sin6_port' must have class/struct/union > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 157 > > 1 booster > >error C2065: 'INET6_ADDRSTRLEN' : undeclared identifier > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 188 > > 1 booster > > > >error C2039: 'inet_pton' : is not a member of '`global namespace'' > > C:\apps\instApps\cppcms\booster\lib\aio\src\endpoint.cpp 104 > > 1 booster > > > >My best regards. > > > > > > > > >------------------------------------------------------------------------------ > >Virtualization & Cloud Management Using Capacity Planning > >Cloud computing makes use of virtualization - but cloud computing > >also focuses on allowing computing to be delivered as a service. > >http://www.accelacomm.com/jaw/sfnl/114/51521223/ > >_______________________________________________ > >Cppcms-users mailing list > >Cpp...@li... > >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > > > > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Artyom B. <art...@ya...> - 2012-02-21 09:12:59
|
> >Thanks for your answer and help. >I could not solve the problem yet,so let me send you the errors I have: >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ >The cmake command and options I used are: >cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ >apps\extApps\cppcms -DPCRE_INCLUDE=C:/apps/extApps/pcre/include -DPCRE_LIB=C:/ap >ps/extApps/pcre/lib -DZLIB_INCLUDE_DIR=C:/apps/extApps/pcre/include -DZLIB=C:/ap >ps/extApps/zlib/lib -DPYTHON=C:/apps/extApps/Python27 .. > >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ First of all you should specify: -DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/extApps/pcre/include" -DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extApps/zlib/lib" This were cmake would search the libraries. You also don't need to specify: -DPYTHON=C:/apps/extApps/Python27 But rather set environment variable PATH in cmd SET PATH=c:\apps\extapps\python27;%PATH% And let CMake find the libraries and executables. Also if you want to specify "PCRE_LIB" and ZLIB directly (which is not recommended) you need to specify a full path to the import library and not to the directory. Take a look on your warnings they tell everything. Regards, Artyom |
From: Vizcayno <viz...@gm...> - 2012-02-21 13:13:38
|
Artyom Beilis <artyomtnk@...> writes: > > > > > >Thanks for your answer and help. > >I could not solve the problem yet,so let me send you the errors I have: > >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$ > >The cmake command and options I used are: > >cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ > >apps\extApps\cppcms -DPCRE_INCLUDE=C:/apps/extApps/pcre/include - DPCRE_LIB=C:/ap > >ps/extApps/pcre/lib -DZLIB_INCLUDE_DIR=C:/apps/extApps/pcre/include - DZLIB=C:/ap > >ps/extApps/zlib/lib -DPYTHON=C:/apps/extApps/Python27 .. > > > >$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$ > > First of all you should specify: > > - DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/extApps/pcre/include" > -DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extApps/zlib/lib" > > This were cmake would search the libraries. > > You also don't need to specify: > > -DPYTHON=C:/apps/extApps/Python27 > > But rather set environment variable PATH in cmd > > SET PATH=c:\apps\extapps\python27;%PATH% > > And let CMake find the libraries and executables. Also if you want to specify "PCRE_LIB" and > ZLIB directly (which is not recommended) you need to specify a full path to the > import library and not to the directory. > > Take a look on your warnings they tell everything. > > Regards, > Artyom > > ----------------------------------------------------------------------------- - > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > Artyom, Again, thanks for your help. It looks much better now as you can see below. However, the error about the program reactor.cpp (at the end) remains, I am not including all the objects indicated in the "recommended dependencies" and "suggested" because I understand they are optional, is that right?: Thanks. cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=c:\ apps\extApps\cppcms - DCMAKE_INCLUDE_PATH="C:/apps/extApps/pcre/include;C:/apps/e xtApps/zlib/include" - DCMAKE_LIBRARY_PATH="C:/apps/extApps/pcre/lib;C:/apps/extA pps/zlib/lib" .. -- The C compiler identification is MSVC -- The CXX compiler identification is MSVC -- Check for CL compiler version -- Check for CL compiler version - 1600 -- Check if this is a free VC compiler -- Check if this is a free VC compiler - no -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- Check for working C compiler: c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- Check for working CXX compiler: c:/Program Files (x86)/Microsoft Visual Studi o 10.0/VC/bin/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for ICU libraries -- ICU not found, disabling ICU localization backend -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Failed -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Failed -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Failed -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Failed -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Failed -- Looking for atoll -- Looking for atoll - not found -- Looking for _atoi64 -- Looking for _atoi64 - found -- Looking for snprintf -- Looking for snprintf - not found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Failed -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Success -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Success -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Success -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Failed -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Failed -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - not found GNU-TLS Gcrypt or OpenSSL librarys are not found, disabling AES encryption suppo rt -- Configuring done -- Generating done -- Build files have been written to: C:/apps/instApps/cppcms/build :nmake Microsoft (R) Program Maintenance Utility Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. Scanning dependencies of target booster [ 0%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/posix_ti me.cpp.obj posix_time.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/ptime/src/ctime.cp p.obj ctime.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/regex/src/pcre_reg ex.cpp.obj pcre_regex.cpp [ 1%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/posix_e rror.cpp.obj posix_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/system/src/windows _error.cpp.obj windows_error.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/aio_catego ry.cpp.obj aio_category.cpp [ 2%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/deadline_t imer.cpp.obj deadline_timer.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/endpoint.c pp.obj endpoint.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/io_service .cpp.obj io_service.cpp [ 3%] Building CXX object booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp p.obj reactor.cpp c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) : fatal error C1001 : An internal error has occurred in the compiler. (compiler file 'f:\dd\vctools\compiler\utc\src\p2\main.c [0x6CC138D3:0x00000008]' , line 183) To work around this problem, try simplifying or changing the program near the l ocations listed above. Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Internal Compiler Error in c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe. You will be pr ompted to send an error report to Microsoft later. NMAKE : fatal error U1077: 'c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code '0x1' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop. |
From: Artyom B. <art...@ya...> - 2012-02-21 13:50:34
|
> From: Vizcayno <viz...@gm...> > [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp > p.obj > reactor.cpp > c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) > : fatal error > C1001 > : An internal error has occurred in the compiler. > (compiler file > 'f:\dd\vctools\compiler\utc\src\p2\main.c > [0x6CC138D3:0x00000008]' > , line 183) > To work around this problem, try simplifying or changing the program near the > l > ocations listed above. > Please choose the Technical Support command on the Visual C++ > Help menu, or open the Technical Support help file for more information > Internal Compiler Error in > c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe. You will be > pr > ompted to send an error report to Microsoft later. > NMAKE : fatal error U1077: > 'c:\PROGRA~2\MICROS~2.0\VC\bin\cl.exe' : return code > '0x1' > Stop. OMG o_O, I hadn't expected such thing... Start from there: http://msdn.microsoft.com/en-us/library/y19zxzb2.aspx I'd suggest first of all try to build the library as "RelWithDebInfo" instead of Release. It is fully optimized version that uses release run-time but comes with debug information. It is actually recommended build configuration. Tell me if it builds or not. If it works I'll try to reproduce the problem on my PC. I don't know if I'll be able to as I don't have 64 bit MSVC10. Only 32 bit. Small note try to "play" with the flags... You can find CMAKE_CXX_FLAGS_RELEASE Variable in CMakeCache.txt try to change it. And see if there is a particular flags that causes the problem Best Regards and update me on what happens. Artyom |
From: Artyom B. <art...@ya...> - 2012-02-23 21:11:03
|
> [ 3%] Building CXX object > booster/CMakeFiles/booster.dir/lib/aio/src/reactor.cp > p.obj > reactor.cpp > c:\apps\instapps\cppcms\booster\lib\aio\src\reactor.cpp(710) > : fatal error > C1001 > : An internal error has occurred in the compiler. > (compiler file > 'f:\dd\vctools\compiler\utc\src\p2\main.c > [0x6CC138D3:0x00000008]' > , line 183) > To work around this problem, try simplifying or changing the program near the > l > ocations listed above. Confirmed the problem, Added a workaround for it in the trunk, so 1.0.0 will include this fix. Now you can build CppCMS with MSVC10+Release mode Thank you for the report. Artyom |
From: Vizcayno <viz...@gm...> - 2012-02-21 16:31:33
|
Artyom: The next worked for me, thank you very much!! > I'd suggest first of all try to build the library as "RelWithDebInfo" instead > of Release. It is fully optimized version that uses release run-time but > comes with debug information. It is actually recommended build configuration. > Then I could execute command "nmake test" and got the next final result: . . . 76/79 Test #76: test_locale_std_collate ................. Passed 0.09 sec Start 77: test_locale_winapi_formatting 77/79 Test #77: test_locale_winapi_formatting ........... Passed 0.05 sec Start 78: test_locale_winapi_collate 78/79 Test #78: test_locale_winapi_collate .............. Passed 0.04 sec Start 79: test_locale_winapi_convert 79/79 Test #79: test_locale_winapi_convert .............. Passed 0.08 sec 100% tests passed, 0 tests failed out of 79 Total Test time (real) = 465.65 sec I then executed "nmake install", it was necessary to force the DCMAKE_INSTALL_PREFIX in the two cmake_install.cmake files in spite of assigning this in the cmake option. Now I am very motivated to go ahead. You made my day!! My best regards. Vizcayno. |
From: vizcayno <viz...@gm...> - 2012-02-29 01:20:38
|
> Confirmed the problem, > Added a workaround for it in the trunk, so 1.0.0 will include this fix. > > Now you can build CppCMS with MSVC10+Release mode > Artyom, I confirm you I built last CppCMS version in Release mode and tested it without problems, thank you and, my best regards. Vizcayno. |