[poky] Odd log messages for apps using autotools and __FILE__

Richard Purdie richard.purdie at linuxfoundation.org
Sat Aug 8 09:30:43 PDT 2015


On Fri, 2015-08-07 at 20:26 +0200, Holger Freyther wrote:
> Hi,
> 
> in the Osmocom software and rauc and probably many applications that use __FILE__ in a
> log statement the log output is now:
> 
> 	/home/hfreyther/images/poky/build/tmp/work/sysmobts_v2-poky-linux-gnueabi/rauc/0+gitAUTOINC+d44adb0079-r4/git/src/install.c:811 I will unmount /mnt/rauc/rootfs.0
> 
> where it used to be:
> 
> 	install.c:811 I will unmount /mnt/rauc/rootfs.0
> 
> 
> I know I can use __BASE_FILE__ in gcc to get back to install.c but I wonder where this is
> coming from? Is this a side-effect of using B!=S? Is there another config that was made to
> pass the full path to the compiler?

I can confirm that this is from the B != S change.

We've kept meaning to go and look at how gcc generates these paths to
maybe try and add the option to remove a prefix for example. The .debug
src paths have a rewrite mechanism and we could use this for other paths
too?

Cheers,

Richard



More information about the poky mailing list