pkgsrc-Bugs archive

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

Re: pkg/59059 (lang/gcc10 build failure on NetBSD 10.1)



Synopsis: lang/gcc10 build failure on NetBSD 10.1

State-Changed-From-To: open->analyzed
State-Changed-By: riastradh%NetBSD.org@localhost
State-Changed-When: Sat, 25 Oct 2025 14:38:37 +0000
State-Changed-Why:
I'm hitting the same issue with lang/gcc14 on netbsd-9.

I reran the unwind-dw2.o command line with `-E -o unwind-dw2.x' and
found that it's including $LOCALBASE/include/unwind.h rather than
/usr/include/unwind.h:

...
# 31 "../../../gcc-14.3.0/libgcc/unwind-dw2.c" 2
# 1 "/home/riastradh/pkgsrc/current/pkg/include/unwind.h" 1
# 16 "/home/riastradh/pkgsrc/current/pkg/include/unwind.h"
# 1 "/home/riastradh/pkgsrc/current/pkg/include/__libunwind_config.h" 1
# 17 "/home/riastradh/pkgsrc/current/pkg/include/unwind.h" 2
...

I checked .work.log to see why this happened, and found nothing for
that command line.  Presumably that's because it runs a newly built
xgcc which isn't munged by the wrappers, so $LOCALBASE/include isn't
hidden (that is, replaced by buildlink3 dir) as it should be:

/home/riastradh/pkgsrc/current/work/lang/gcc14/work/build/./gcc/xgcc ... -I/home/riastradh/pkgsrc/current/pkg/include -I/usr/include ... -o unwind-dw2.o ... -c ../../../gcc-14.3.0/libgcc/unwind-dw2.c ...

I bet you have lang/libunwind installed at the time you're building
gcc10, and if you remove it, you'll be able to build gcc10.





Home | Main Index | Thread Index | Old Index