Profiling bigloo programs with gcc 5 or newer

Sven Hartrumpf <[email protected]>
Newsgroups gmane.lisp.scheme.bigloo
Message-ID <[email protected]>
Hi all.

Profiling bigloo compiled programs shows no counters at all
if using gcc-5, gcc-6 or gcc-7 from Ubuntu (and probably Debian).
The reason is that these gcc versions are configured with:

--enable-default-pie

You can check your gcc version as follows:

 # gcc -v |& grep pie

The solution is easy: add -no-pie to --cflags when configuring bigloo.
The following bug report gave me the correct hint:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854704

Ciao
Sven
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.