Date: Mon, 6 Jul 2015 11:28:35 +0300 From: Dmitry Sivachenko <trtrmitya@gmail.com> To: "ports@freebsd.org Ports" <ports@freebsd.org> Cc: Gerald Pfeifer <gerald@FreeBSD.org> Subject: Is gcc profile build broken? Message-ID: <90C2F545-83B0-42D8-877E-DC5D1DB85E17@gmail.com>
next in thread | raw e-mail | index | archive | help
Hello! Consider the following simple test program: /tmp% cat t.cxx #include <iostream> int main() { std::cerr << std::endl; return 0; } I am trying to compile profile version of it with GCC (4.8 or 4.9 from = ports, FreeBSD-10): /tmp % g++49 -pg t.cxx /usr/local/bin/ld: //usr/lib/libc_p.a(sbrk.po): undefined reference to = symbol '_end' //lib/libc.so.7: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status /tmp%=20 The same error with gcc48. There is no such error if I use c++ compiler from base. On Linux it compiles without error using GCC. Is it some gcc-related problem? Thanks.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90C2F545-83B0-42D8-877E-DC5D1DB85E17>