NetBSD-Bugs archive

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

Re: port-xen/57535 (dtrace on Xen DOMU might need -x nolibs)



riastradh%NetBSD.org@localhost writes:

> Synopsis: dtrace on Xen DOMU might need -x nolibs
>
> State-Changed-From-To: open->feedback
> State-Changed-By: riastradh%NetBSD.org@localhost
> State-Changed-When: Fri, 21 Jul 2023 20:13:06 +0000
> State-Changed-Why:
> Can you please try a clean XEN3_DOMU kernel build and report back?
>
> Note: You must clean the entire XEN3_DOMU kernel build directory
> first (and cvs up or equivalent); it is not enough to do an
> incremental build in this case.

I did a clean build of the world after a cvs update of the source tree
and the problem mentioned in this PR is still present:

# dtrace -n 'sdt:xen:clock:, sdt:xen:hardclock:, sdt:xen:timecounter: { printf("%d %d %d %d %d %d %d %d", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) }'
dtrace: invalid probe specifier sdt:xen:clock:, sdt:xen:hardclock:, sdt:xen:timecounter: { printf("%d %d %d %d %d %d %d %d", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) }: "/usr/lib/dtrace/psinfo.d", line 46: syntax error near "u_int"



I noted that a difference between GENERIC and XEN3_DOM0 is that there is
a 'makeoptions DEBUG="-g"' present with a comment that it is needed for
CTF and this option isn't present in XEN3_DOMU.  This is probably
another problem, but if you try to build a XEN3_DOMU kernel with
DEBUG="-g" you get this during link:

#      link  SAMWISE/netbsd                                                                                                                                       /lhome/CURRENT_20230720/amd64/TOOLS/bin/x86_64--netbsd-ld -Map netbsd.map --cref -T netbsd.ldscript -Ttext 0xffffffff80200000 -e start -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o                                                                                                                /lhome/CURRENT_20230720/amd64/TOOLS/bin/x86_64--netbsd-ld: warning: netbsd has a LOAD segment with RWX permissions                                                NetBSD 10.99.6 (SAMWISE) #1: Sat Jul 22 06:28:38 EDT 2023                                                                                                         
   text    data     bss     dec     hex filename                                                                                                                  
5650174  273832 1736704 7660710  74e4a6 netbsd                                                                                                                    ERROR: nbctfmerge: Input file adiantum.o was partially built from C sources, but no CTF data was present

I am pretty sure that the cvs updated correctly:

#       $NetBSD: bsd.own.mk,v 1.1343 2023/07/21 20:03:13 riastradh Exp $


Home | Main Index | Thread Index | Old Index