{"action":"created","issue":{"url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/332","labels_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/332/comments","events_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/332/events","html_url":"https://github.com/PurpleI2P/i2pd/issues/332","id":128019295,"number":332,"title":"Building 2.3.0 on FreeBSD 10.2 amd64","user":{"login":"stargrave","id":194657,"avatar_url":"https://avatars.githubusercontent.com/u/194657?v=3","gravatar_id":"","url":"https://api.github.com/users/stargrave","html_url":"https://github.com/stargrave","followers_url":"https://api.github.com/users/stargrave/followers","following_url":"https://api.github.com/users/stargrave/following{/other_user}","gists_url":"https://api.github.com/users/stargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/stargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stargrave/subscriptions","organizations_url":"https://api.github.com/users/stargrave/orgs","repos_url":"https://api.github.com/users/stargrave/repos","events_url":"https://api.github.com/users/stargrave/events{/privacy}","received_events_url":"https://api.github.com/users/stargrave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T21:05:37Z","updated_at":"2016-01-21T21:24:08Z","closed_at":null,"body":"Greetings!\r\n\r\nI have got FreeBSD 10.2 amd64 OS with latest gcc47, boost-libs and cmake installed from ports. I checkouted 2.3.0 tag from i2pd repository.\r\n\r\nThen, following docs/build_notes_unix.md I tried to build it with gcc:\r\n\r\n    $ mkdir build/tmp\r\n    $ cd build/tmp/\r\n    $ CC=/usr/local/bin/gcc47 CXX=/usr/local/bin/g++47 cmake -DCMAKE_BUILD_TYPE=Release ..\r\n    $ gmake\r\n    $ gmake\r\n    [  2%] Building CXX object CMakeFiles/libi2pd.dir/tmp/i2pd/Reseed.cpp.o\r\n    /tmp/i2pd/Reseed.cpp: In member function 'std::string i2p::data::Reseeder::HttpsRequest(const string&)':\r\n    /tmp/i2pd/Reseed.cpp:373:53: error: 'to_string' is not a member of 'std'\r\n    /tmp/i2pd/Reseed.cpp:373:85: error: unable to deduce 'auto' from '<expression error>'\r\n    CMakeFiles/libi2pd.dir/build.make:302: recipe for target 'CMakeFiles/libi2pd.dir/tmp/i2pd/Reseed.cpp.o' failed\r\n    gmake[2]: *** [CMakeFiles/libi2pd.dir/tmp/i2pd/Reseed.cpp.o] Error 1\r\n    CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/libi2pd.dir/all' failed\r\n    gmake[1]: *** [CMakeFiles/libi2pd.dir/all] Error 2\r\n    Makefile:149: recipe for target 'all' failed\r\n    gmake: *** [all] Error 2\r\n\r\nThen, I removed tmp, created it again, call cmake without CC/CXX, leading to building with clang. It builds successfully.\r\n\r\n    [...]\r\n    18 warnings generated.\r\n    [100%] Linking CXX executable i2pd\r\n    [100%] Built target i2pd\r\n"},"comment":{"url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/comments/173711977","html_url":"https://github.com/PurpleI2P/i2pd/issues/332#issuecomment-173711977","issue_url":"https://api.github.com/repos/PurpleI2P/i2pd/issues/332","id":173711977,"user":{"login":"stargrave","id":194657,"avatar_url":"https://avatars.githubusercontent.com/u/194657?v=3","gravatar_id":"","url":"https://api.github.com/users/stargrave","html_url":"https://github.com/stargrave","followers_url":"https://api.github.com/users/stargrave/followers","following_url":"https://api.github.com/users/stargrave/following{/other_user}","gists_url":"https://api.github.com/users/stargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/stargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stargrave/subscriptions","organizations_url":"https://api.github.com/users/stargrave/orgs","repos_url":"https://api.github.com/users/stargrave/repos","events_url":"https://api.github.com/users/stargrave/events{/privacy}","received_events_url":"https://api.github.com/users/stargrave/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T21:24:07Z","updated_at":"2016-01-21T21:24:07Z","body":"The same thing:\r\n\r\n    $ git status\r\n    HEAD detached at 2.3.0\r\n    nothing to commit, working directory clean\r\n    $ gmake CC=/usr/local/bin/gcc47 CXX=/usr/local/bin/g++47 -j4\r\n    mkdir -p obj\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/Crypto.o Crypto.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/Datagram.o Datagram.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/Garlic.o Garlic.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/I2NPProtocol.o\r\n    I2NPProtocol.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/LeaseSet.o LeaseSet.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/Log.o Log.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/NTCPSession.o NTCPSession.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/NetDb.o NetDb.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/NetDbRequests.o NetDbRequests.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/Profiling.o Profiling.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/Reseed.o Reseed.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/RouterContext.o RouterContext.cpp\r\n    Reseed.cpp: In member function 'std::string i2p::data::Reseeder::HttpsRequest(const string&)':\r\n    Reseed.cpp:373:53: error: 'to_string' is not a member of 'std'\r\n    Reseed.cpp:373:85: error: unable to deduce 'auto' from '<expression error>'\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/RouterInfo.o RouterInfo.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/Signature.o Signature.cpp\r\n    /usr/local/bin/g++47 -O2 -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I/usr/include/ -I/usr/local/include/  -c -o obj/SSU.o SSU.cpp\r\n    Makefile:50: recipe for target 'obj/Reseed.o' failed\r\n    gmake: *** [obj/Reseed.o] Error 1\r\n    gmake: *** Waiting for unfinished jobs....\r\n"}}