pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: devel/pango build failure using clang



Le 29/04/2020 à 08:30, Frédéric Fauberteau a écrit :
> Le 28/04/2020 à 18:55, Roland Illig a écrit :
>> On 28.04.2020 17:47, Frédéric Fauberteau wrote:
>>> I do not really understand why hb.h is not found since '-I/home/triaxx/pkg/include/harfbuzz' is provided to g-ir-scanner. I tried to build devel/pango from an unprivileged bootstrap. The most surprising thing is that I successfully built devel/pango from un privileged bootstrap for the very same version and on the very same system.
>>
>> Did you follow these instructions already?
>>
>> https://www.netbsd.org/docs/pkgsrc/fixes.html#fixes.build.header
>>
>> If it's none of these scenarios, I'll add it to the pkgsrc guide after
>> you found out the cause. :)
>>
>> Roland
> 
> Thank you for your link. It is very instructive. I will give you a feedback when I have found the error.
> 
> Fred


I think I have identified the problem with the .work.log file.

We can notice in the command line which produces the error message that some -I arguments are provided with the "/home/triaxx/pkg/include" directory while other are provided with the "/usr/home/triaxx/pkg/include". Actually, /home is a symbolic link to /usr/home on FreeBSD. If I manually change "-I/usr/home/triaxx/pkg/include/harfbuzz" to "-I/home/triaxx/pkg/include/harfbuzz" then hb.h is found.

Now, I could not explain why hb.h is not found when the canonical path "/usr/home/triaxx/pkg/include/harfbuzz" is provided to the compiler.

$ ls -l .buildlink/include/harfbuzz/hb.h 
lrwxr-xr-x  1 triaxx  triaxx  38 28 avr.  15:36 .buildlink/include/harfbuzz/hb.h -> /home/triaxx/pkg/include/harfbuzz/hb.h

cc -E -I/home/triaxx/pkg/include -I/usr/include -I/home/triaxx/pkg/include/freetype2 -I/home/triaxx/pkg/include/glib-2.0 -I/home/triaxx/pkg/include/gio-unix-2.0 -I/home/triaxx/pkg/lib/glib-2.0/include -I/home/triaxx/pkg/include/python3.8 -D_POSIX_C_SOURCE=200809L -D_POSIX_THREAD_SAFE_FUNCTIONS -D_GNU_SOURCE -D_THREAD_SAFE -D_REENTRANT -I. -I/usr/home/triaxx/.pkgsrc/work/devel/pango/work/pango-1.44.7/output -I/usr/home/triaxx/.pkgsrc/work/devel/pango/work/pango-1.44.7 -I/usr/home/triaxx/.pkgsrc/work/devel/pango/work/pango-1.44.7/output/pango -I/usr/home/triaxx/.pkgsrc/work/devel/pango/work/pango-1.44.7/pango -I/usr/home/triaxx/pkg/include/glib-2.0 -I/usr/home/triaxx/pkg/lib/glib-2.0/include -I/usr/home/triaxx/pkg/include -I/usr/home/triaxx/pkg/include/fribidi -I/usr/home/triaxx/pkg/include/harfbuzz -I/usr/home/triaxx/pkg/include/freetype2 -I/usr/home/triaxx/pkg/include/uuid -I/usr/home/triaxx/pkg/include/cairo -I/usr/home/triaxx/pkg/include/pixman-1 -I/usr/home/triaxx/pkg/include/libpng16 -I/usr/home/triaxx/pkg/include -I/usr/include -I/usr/home/triaxx/pkg/include/freetype2 -I/usr/home/triaxx/pkg/include/glib-2.0 -I/usr/home/triaxx/pkg/include/gio-unix-2.0 -I/usr/home/triaxx/pkg/lib/glib-2.0/include -I/usr/home/triaxx/pkg/include/python3.8 -I/usr/home/triaxx/pkg/include -I/usr/include -I/usr/home/triaxx/pkg/include/freetype2 -I/usr/home/triaxx/pkg/include/glib-2.0 -I/usr/home/triaxx/pkg/include/gio-unix-2.0 -I/usr/home/triaxx/pkg/lib/glib-2.0/include -I/usr/home/triaxx/pkg/include/python3.8 -I/usr/home/triaxx/pkg/include/gobject-introspection-1.0 -o g-ir-cpp-pismx0oi.i -C /usr/home/triaxx/.pkgsrc/work/devel/pango/work/pango-1.44.7/output/g-ir-cpp-pismx0oi.c


Home | Main Index | Thread Index | Old Index