[Bug 187136] [NEW PORT] irc/irccd: Fast and powerful C++ IRC bot

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 25 07:08:04 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187136

--- Comment #5 from markand at malikania.fr ---
Hello,

The problem is that all GCC versions are broken on FreeBSD. Looks, even gcc 4.9
can not compile a sample C++11 code :

markand at Pomme ~ $ cat test.cpp
#include <string>

int main(void)
{
        std::to_string(1);
        std::stoi("1");

        return 0;
}
markand at Pomme ~ $ g++49 -std=c++11 test.cpp
test.cpp: In function 'int main()':
test.cpp:5:2: error: 'to_string' is not a member of 'std'
  std::to_string(1);
  ^
test.cpp:6:2: error: 'stoi' is not a member of 'std'
  std::stoi("1");
  ^

I have told to bapt@ that the compiler:c++11-lib and compiler:c++11-lang do not
work at all but I don't think he really cares. Maybe because the problem comes
from gcc.

So the only way to make irccd compile is to either: use plain clang (default in
FreeBSD 10.0) or to install clang + libc++ from ports for <10.0. Which violates
the rule of not overriding CXX and CC in the port's makefile. So at the moment,
I think I have no solution except giving up on this port unless someone fixes
the compiler:c++11-(lib|lang) and/or gcc on FreeBSD.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list