Is gcc profile build broken?

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


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% 

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.


More information about the freebsd-ports mailing list