Is gcc profile build broken?

Dmitry Sivachenko trtrmitya at
Mon Jul 6 08:28:39 UTC 2015


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/ error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

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?


More information about the freebsd-ports mailing list