Re: filemon

2024-07-31 Thread Simon J. Gerraty
Dag-Erling Smørgrav wrote: > Loader I/O performance is much better these days so loading modules > pre-boot doesn't slow the boot down much any more, but it's still more That depends very much on the h/w, especially the storage attachment. None of which applies to any machine likely to be using

Re: filemon

2024-07-27 Thread Simon J. Gerraty
Marek Zarychta wrote: > > What about filesystem perfomnace ? Have you benchmarked your FS and > whole system with and without filemon loaded ? FWIW filemon does nothing unless make opens the device. and then it only impacts syscalls done by that pid and its children. > I am not questionining t

Re: meta mode

2024-02-14 Thread Simon J. Gerraty
nd and thus we can use DIRDEPS_BUILD to optimize our builds. --sjg > Simon J. Gerraty escreveu (domingo, 28/01/2024 à(s) 01:43): > > > > > I use meta-mode in /etc/src-env.conf so that if (for example) a small > > > change in the kernel config is made, the mac

Re: meta mode

2024-01-27 Thread Simon J. Gerraty
> I use meta-mode in /etc/src-env.conf so that if (for example) a small > change in the kernel config is made, the machine doesn't take hours > recompiling. > But, from time to time, one might be required to make > cleanworld && make cleandir (to be sure) && make clean (to be *really* sure) Almo

Re: RFC: NFS over TLS stats

2023-10-25 Thread Simon J. Gerraty
Rick Macklem wrote: > > kern.rpctls.tls.snd_msgbytes: 20828 > > kern.rpctls.tls.snd_msgcnt: 57 > > kern.rpctls.tls.rcv_tmsgbytes: 12336 > > kern.rpctls.tls.rcv_msgcnt: 57 > > > > which allows for sysctl kern.rpctls.tls > Not sure what you mean? If for some reason I only care about tls I can do s

Re: RFC: NFS over TLS stats

2023-10-25 Thread Simon J. Gerraty
Freddie Cash wrote: > Have no technical comments, but a style suggestion: put the tls at the end > to make the output look nicer. :) > > kern.rpctls.snd_msgbytes: 21508 > kern.rpctls.snd_msgbytes_tls: 20828 > kern.rpctls.snd_msgcnt: 58 > kern.rpctls.snd_msgcnt_tls: 57 > kern.rpctls.rcv_msgbyte

Re: WITH_BEARSSL: -8112 bytes available

2023-05-31 Thread Simon J. Gerraty
> the loader program. You may also have to disable the lua build, since it uses > more stack and is just a smidge > larger than the forth build. _simp will be the smallest of them > all. On my system, without bearssl, I see: Back when I first did the LOADER_VERIEXEC bits, I found lua pushed thing

Re: /lib/libc.so.7 vs. __libc_start1@FBSD_1.7 in main [so: 14] recently ?

2023-04-23 Thread Simon J. Gerraty
Warner Losh wrote: > > ld-elf.so.1: /usr/local/bin/git: Undefined symbol "__libc_start1@FBSD_1.7" > > This is a symptom of trying to run a prog built for target on a host > which is not the same. > Your path is messed up then. We always run (a copy of) the host's binaries I wasn't using the tar

Re: /lib/libc.so.7 vs. __libc_start1@FBSD_1.7 in main [so: 14] recently ?

2023-04-23 Thread Simon J. Gerraty
Mark Millard wrote: > I will not get into why, but I executed a git built for 1400082 > in a 1400081 world context and got what was to me a surprise, > given that /lib/libc.so.7 is part of 13.2-RELEASE : > > ld-elf.so.1: /usr/local/bin/git: Undefined symbol "__libc_start1@FBSD_1.7" This is a sym

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-23 Thread Simon J. Gerraty
Mark Millard wrote: > > Perhaps you want to be using > > > > .MAKE.META.IGNORE_PATHS+= ${MAKEOBJDIRPREFIX}/tmp/legacy/usr > > or is that ${MAKEOBJDIRPREFIX}/${TARGET}.${TARGET_ARCH}/tmp/legacy/usr > > > > I had started with trying to use MAKEOBJDIRPREFIX but it > appeared to end up with an empty

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-23 Thread Simon J. Gerraty
> > First some output log lines around a few sbin/realpath "is newer than" > related Building lines, with the .info lines in place now (I've > got both kmod.mk and kern.mk with the .info line, likely producing > redundant output but I did not know up front for sure): > > make[4]: "/usr/main-src/s

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-23 Thread Simon J. Gerraty
Mark Millard wrote: > Simplifying context . . . > . . . > > As I mentioned previously, there is no variablity of OBJTOP within the > > context of a single make instance - at least not once it starts running > > targets. > > > >> . . . > > > > .MAKE.META.IGNORE_PATHS += ${OBJTOP}/tmp/legacy/usr >

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-23 Thread Simon J. Gerraty
Mark Millard wrote: > [External Email. Be cautious of content] > > > [Note for "how many separate bmake instances are in that log?": > I do not know how to tell how many submakes are run total. It > was with -j32 on the threadripper 1950X, if that is was you > were after.] You can get a clue f

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-23 Thread Simon J. Gerraty
Mark Millard wrote: > So I was hoping for a "assigned once and > inherited" status relative to submakes for > .MAKE.META.IGNORE_PATHS . No, .MAKE.* are specifically named to ensure they cannot come from the environment. So bounding them in a check for level 0 pretty much ensures they have no eff

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes) [code level bug evidence]

2023-02-23 Thread Simon J. Gerraty
Mark Millard wrote: > So with -ddM why do I see lots of "cached_realpath:" > notices for the same path? For example: how many separate bmake instances are in that log? > > # grep "tmp/legacy/usr/sbin/ln\>" > /usr/obj/BUILDs/main-amd64-nodbg-clang/sys-typescripts/typescript-make-amd64-nodbg-cla

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-23 Thread Simon J. Gerraty
Mark Millard wrote: > >> Also, OBJTOP is not constant over all the parts of > >> buildworld buildkernel . Having the late-substitution > >> form of notation ${OBJTOP} might not be appropriate > >> for the content of .MAKE.META.IGNORE_PATHS . > > > > Fwiw .MAKE.META.IGNORE_PATHS is evaluated when m

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-23 Thread Simon J. Gerraty
Mark Millard wrote: > The contribution to the list is currently generated via > use of: > > .if ${.MAKE.LEVEL} == 0 Why is this guarded by .MAKE.LEVEL 0? .MAKE.META.IGNORE_* should be largely irrelevant at level 0 which in the DIRDEPS_BUILD is reserved for orchestration. Even in the legacy build

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-22 Thread Simon J. Gerraty
Mark Millard wrote: > It appears that for symbolic links being the target, META_MODE does > not respect .MAKE.META.IGNORE_PATHS . The handling of links is rather complicated ;-) Among other things, the src needs to be treated as for a Read and the target as for Write Note that .MAKE.META.IGNORE

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-22 Thread Simon J. Gerraty
Mark Millard wrote: > > > > Is there anything under ${OBJTOP}/tmp that you don't want to ignore? > > More than just _bootstrap_tools_links entries end up in > ${WORLDTMP}/legacy/bin/ (so in ${WORLDTMP}/legacy/sbin/ > via the symbolic link pointing to ${WORLDTMP}/legacy/bin/ ). > So: yes. > > Al

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-22 Thread Simon J. Gerraty
Simon J. Gerraty wrote: > > > strings `which bmake` | grep META.IGNORE > > > .MAKE.META.IGNORE_PATHS > > > .MAKE.META.IGNORE_PATTERNS > > > ${.MAKE.META.IGNORE_PATHS:O:u:tA} > > > > The -dM output's "is newer than the target" lines &

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-22 Thread Simon J. Gerraty
Mark Millard wrote: > Thanks for the information. > > > strings `which bmake` | grep META.IGNORE > > .MAKE.META.IGNORE_PATHS > > .MAKE.META.IGNORE_PATTERNS > > ${.MAKE.META.IGNORE_PATHS:O:u:tA} > > The -dM output's "is newer than the target" lines > show the path from before the above transform

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-22 Thread Simon J. Gerraty
Mark Millard wrote: > Since some of the paths reported ended up being links > (symbolic, as I remember), what are the principles for > which form of paths should be the basis for paths in > the likes of: > > .MAKE.META_IGNORE_PATHS .MAKE.META.IGNORE_PATHS > .MAKE.META.IGNORE_PATTERNS > .MAKE.ME

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2023-02-22 Thread Simon J. Gerraty
> The timestamp on . . ./tmp/legacy/usr/sbin/rm is not > actually relevant to if libc++.a needs to be rebuilt. > >> > >> True. > >> If there is nothing under .../tmp/legacy that should be counted you can > >> just: > >> > >> .MAKE.META_IGNORE_PATHS += that path > > Was that supposed to b

Re: Build breakage with WITH_BEARSSL=1

2023-02-20 Thread Simon J. Gerraty
This has been fixed upstream, I'll look at importing an update.

Re: Build breakage with WITH_BEARSSL=1

2023-02-18 Thread Simon J. Gerraty
Stephane Rochoy wrote: > It may be worth contacting BearSSL's maintainer directly: Thomas > Pornin . The guy was very responsive and helpful > back in 2020 :) Indeed.

Re: Build breakage with WITH_BEARSSL=1

2023-02-18 Thread Simon J. Gerraty
Warner Losh wrote: > Would be nice if we could get upstream to actually fix this, but i don't even > know how to submit bugs there… > > Agreed. I didn't recall off of the top of my head, so I did the quick bandaid. I can reach out to the author, I don't know that he has a bug tracker. What is

Re: Updating EFI boot loader results in boot hangup

2022-08-17 Thread Simon J. Gerraty
Warner Losh wrote: > I think I broke it with my latest updates. I don't have a good ZFS testing > setup > so I'm spending a little time enhancing the bootable image generator to have > one that I can easily test boot with qemu. FWIW bhyve is *excellent* for mucking about with EFI and loader in g

Re: pxeboot binary is too big on FreeBSD (>640KBytes)

2022-02-21 Thread Simon J. Gerraty
Toomas Soome wrote: > > Why should pxeboot have ZFS support? > > Well, the feature X can be helpful for recovery purposes. The root > cause is not the feature X itself, but the size limit. And the > unfortunate fact, the size limit is not fixed, but depends on the > system. Therefore there are tw

Re: buildworld failed

2022-02-08 Thread Simon J. Gerraty
Brooks Davis wrote: > On Tue, Feb 08, 2022 at 02:52:27PM -0800, Simon J. Gerraty wrote: > > Brooks Davis wrote: > > > > > > This would be fine, but should not be necessicary. The sys subdir should > > > be created by AUTOOBJ. > > > > .OBJDIR sh

Re: buildworld failed

2022-02-08 Thread Simon J. Gerraty
Brooks Davis wrote: > > This would be fine, but should not be necessicary. The sys subdir should > be created by AUTOOBJ. .OBJDIR should be (and is), not .OBJDIR/sys making that subdir is up to the makefile and would also fix the problem, but given the nature of what the makefile is doing just r

Re: buildworld failed

2022-02-08 Thread Simon J. Gerraty
Warner Losh wrote: > > Same here for me for the past couple of weeks. Haven't been able to > > identify why it fails. My hunch was that a particular objdir wasn't > > being created. As a workaround I edited the Makefile.inc1 to remove > > the test-includes command (line 1128 I think). > > The sys

Re: buildworld failed

2022-02-08 Thread Simon J. Gerraty
Warner Losh wrote: > --- sys/abi_compat.c --- > echo "#include " > sys/abi_compat.c > sh: cannot create sys/abi_compat.c: No such file or directory > *** [sys/abi_compat.c] Error code 2 > > make[4]: stopped in /usr/src/tools/build/test-includes > --- sys/acct.c --- > echo "#include " > sys/acct.c

Re: jails: /pool/jails/fulljailmake -> /pool/jails/fulljailbmake: No such file or directory

2021-02-15 Thread Simon J. Gerraty via freebsd-current
O. Hartmann wrote: > > If reverting this does not help, can you try with: > > sysctl vfs.cache_fast_lookup=0 > > reverting the mentioned commit helped and made things working as expected > again. > > Thank you very much. Sorry looks like bsd.links.mk expects full paths. Can you confirm the bel

Re: Enable veriexec for 13 Beta 1

2021-02-10 Thread Simon J. Gerraty via freebsd-current
dan_parte...@rdsor.ro wrote: > [External Email. Be cautious of content] > > > Hey guys, > > What are the config knobs for enabling the veriexec driver and veriexec > mac modules for testing and playing with this new subystem ? User mode > knob for user mode tool and lib is documented in man src

Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes)

2021-01-27 Thread Simon J. Gerraty via freebsd-current
Mark Millard via freebsd-current wrote: > >> Given an already built, installed and booted system version, I've > >> noted a big difference for META_MODE in 2 rebuild contexts (no > >> source updates involved): > >> > >> *) Prior buildworld buildkernel, installkernel, installworld, boot > >> presu

Re: Getting /usr/src to match specific git hash?

2021-01-24 Thread Simon J. Gerraty
Steve Kargl wrote: > Suppose further that one had to re-install a 32-bit > i386-*-freebsd with the 24 Dec 2020 image available > from freebsd.org. > > uname -a for the booted kernel shows > > % uname -a > FreeBSD mobile 13.0-CURRENT FreeBSD 13.0-CURRENT #0 \ > 3cc0c0d66a0-c255241(main)-dirty: Th

Re: KiCad is horrible on CURRENT

2020-07-29 Thread Simon J. Gerraty
Poul-Henning Kamp wrote: > When I start cad/kicad (which I have not done in some time), the > gui is horribly lagging and often downright confused about > the cursors whereabouts. May not be relevant but FWIW I saw similar issue with kdenlive-19.12 on 11.3 kdenlive-18.x worked fine [kdenlive] [Bu

Re: svn commit: r363031 - in head: contrib/bmake contrib/bmake/lst.lib contrib/bmake/mk contrib/bmake/mk/sys contrib/bmake/unit-tests usr.bin/bmake (make now broken)

2020-07-09 Thread Simon J. Gerraty
Mark Millard wrote: > > though the one in ports is real issue: > > > > $ make config > > make: "/usr/ports/Mk/bsd.port.mk" line 2096: warning: String comparison > > operator should be either == or != > > make: "/usr/ports/Mk/bsd.port.mk" line 2096: Malformed conditional > > (defined(MAKE_JOBS_NU

Re: svn commit: r363031 - in head: contrib/bmake contrib/bmake/lst.lib contrib/bmake/mk contrib/bmake/mk/sys contrib/bmake/unit-tests usr.bin/bmake (make now broken)

2020-07-09 Thread Simon J. Gerraty
Mark Millard wrote: > [External Email. Be cautious of content] > > > This seems to have broken doing buildworld buildkernel and > other things using make: Ouch sorry I saw this at one point but couldn't reproduce while trying to work out what it was complaining about. The line numbers did/do n

Re: CTF: UEFI HTTP boot support

2020-06-17 Thread Simon J. Gerraty
Warner Losh wrote: > > loader.conf says > > > > rootfs_load="yes" > > rootfs_name="contents.izo" > > rootfs_type="md_image" > > vfs.root.mountfrom="cd9660:/dev/md0.uzip" > > > > contents.izo is uzip'd contents.iso which file(1) > > describes as ISO 9660 CD-ROM filesystem data '' > > > > That's for

Re: CTF: UEFI HTTP boot support

2020-06-16 Thread Simon J. Gerraty
Rodney W. Grimes wrote: > > The "fake cd drive" is in the kernel, loader just copies the iso into > > memory like any other module, and by the time that's done you just > > reboot into the newly installed system, which again uses > > > > vfs.root.mountfrom="cd9660:/dev/md0.uzip" >

Re: CTF: UEFI HTTP boot support

2020-06-16 Thread Simon J. Gerraty
Rodney W. Grimes wrote: > > Are you refering to something like: > > > > vfs.root.mountfrom="cd9660:/dev/md0.uzip" > > > > we boot that way all the time. > > What provides the cd9660 driver to FreeBSD? When you load the .iso > over a network card, aka PXE/HTTP, the code that does that usually > c

Re: CTF: UEFI HTTP boot support

2020-06-16 Thread Simon J. Gerraty
Rodney W. Grimes wrote: > > I'm curious if it should be possible to point to a img/iso directly (I > > tried to use the img.xz unpacked it and make it available on a local web > > server and that didn't seem to work for me) but maybe thats cause those > > images miss something, so arm64 aside doe

Re: CFT: if_bridge performance improvements

2020-04-21 Thread k simon
Hi, Interesting, maybe ng_eiface + if_bridge is a good idea . Simon 20200422 On 4/21/20 8:51 PM, Jan Bramkamp wrote: On 16.04.20 08:34, Pavel Timofeev wrote: вт, 14 апр. 2020 г., 12:51 Kristof Provost : Hi, Thanks to support from The FreeBSD Foundation I’ve been able to work on

Re: 12-STABLE: BEARSSL: liblua compiler error: too few arguments to function call

2020-04-09 Thread Simon J. Gerraty
Fixed in r359769 Hartmann, O. wrote: > While recent CURRENT doesn't show any problems, 12-STABLE (r359768) > drops out from buildworld with the error shown below when option > > WITH_BEARSSL= YES > > is set in /etc/src.conf ___ freebsd-current@freebs

Re: 12-STABLE: BEARSSL: liblua compiler error: too few arguments to function call

2020-04-09 Thread Simon J. Gerraty
Hartmann, O. wrote: > While recent CURRENT doesn't show any problems, 12-STABLE (r359768) > drops out from buildworld with the error shown below when option > > WITH_BEARSSL= YES Sorry, I did buildworld just before committing r359735 but I use ficl, - missed the below for lua. Will fix. > > i

Re: When will the FreeBSD (u)EFI work?

2020-03-29 Thread Simon J. Gerraty
Warner Losh wrote: > True, but as we move from boot1.efi to loader.efi, the need will > grow... Even if we keep boot1.efi, loader.efi will be needed for > interesting secure systems, so we can't cop-out like we have in the > past. Sigh, that would force me to have to add verification to boot1.ef

Re: When will the FreeBSD (u)EFI work?

2020-03-29 Thread Simon J. Gerraty
Nathan Whitehorn wrote: > It's basically this that has been the problem: we need a way to manage > updates of the EFI loader in this situation, which we don't currently > have. The ESP needs to be mounted at a standard point, > installworld/freebsd-update/etc. need to know to replace files there,

Re: When will the FreeBSD (u)EFI work?

2020-03-29 Thread Simon J. Gerraty
Rebecca Cran wrote: > That's another thing: we should be installing loader.efi as > \efi\boot\bootx64.efi (as well as \boot\freebsd\loader.efi) since it's > entirely possible to lose the Boot Manager entry and end up with an > unbootable system as a result. Unfortunately people have had bad > expe

Re: Turn off PROFILE option and remove WITH_PROFILE after FreeBSD 13?

2020-01-17 Thread Simon J. Gerraty
Ed Maste wrote: > Any comments on this plan? Does anyone use the -pg compiler flag and > the _p.a profiling library archives? We have teams that do - on a semi regular basis. If there's an alternate method to allow them to find hot-spots etc in userland code we can direct them accordingly I expe

Re: AMD Secure Encrypted Virtualization - FreeBSD Status?

2019-10-14 Thread Simon J. Gerraty
Clay Daniels Jr. wrote: > Simon, please do elaborate more on your implementation. I suspect you are > talking about libsecureboot? I have played with the generation of certs > with OpenSSL & LibreSSL, but libsecureboot seems to take a different > approach. Please tell us mo

Re: AMD Secure Encrypted Virtualization - FreeBSD Status?

2019-10-14 Thread Simon J. Gerraty
Tomasz CEDRO wrote: > would be really nice also to get UEFI BOOT compatible with SECURE BOOT :-) Unless you are using your own BIOS, the above means getting Microsoft to sign boot1.efi or similar. Shims that simply work around lack of acceptible signature don't help. That would need to then ver

Re: head -r351056 self-hosted amd64 installworld fails with: "don't know how to make _testsDATA_FILESINS1_data/md5test-in. Stop"

2019-08-14 Thread Simon J. Gerraty
Cy Schubert wrote: > > installworld is failing with: > > > > ===> lib/libc/tests/hash (install) > > install -o root -g wheel -m 555 hash_test > > /usr/tests/lib/libc/hash/hash_t > > est > > make[7]: don't know how to make _testsDATA_FILESINS1_data/md5test-in. Stop Sorry about that. Looks li

Re: Reducing UFS corruption from unclean shutdowns?

2019-06-21 Thread Simon J. Gerraty
Alan Somers wrote: > I would've thought that immediately following a sync(8), the > filesystem would be consistent. Why do I still see errors after a sync(8) does little more than tell the kernel to start flushing some pages - which the kernel would do anyway in about 30s So, it does not really

Re: New vm-image size is much smaller than previos

2019-05-04 Thread Simon J. Gerraty
Warner Losh wrote: > > At the risk of being branded a wishful thinker, a firstboot script that > > asked the user for some configuration information would be a great help > > to both new and experienced foot-shooters. I'm thinking of Raspberry Pi, > > but perhaps it applies to non-embedded platfor

Re: WITH_META_MODE: any effect? Tree built twice!

2018-12-13 Thread Simon J. Gerraty
O. Hartmann wrote: > I'm able to reproduce this behaviour easily: make cleanworld; kldload filemon > (if not > already loaded); make buildworld buildkernel Why are you doing cleanworld? > After the build has finished, install everything accordingly and reboot. Then > kldload > filemon and make

Re: WITH_META_MODE: any effect? Tree built twice!

2018-12-12 Thread Simon J. Gerraty
O. Hartmann wrote: > delete-old|-libs afterwards, I started again a build (filemon loaded!). And, > surprise, > surprise, compilation of all the long-haul taking LLVM/CLANG stuff starts > again! That is > not funny. If you have META_MODE enabled -dM will tell you if meta_oodate decided the targ

Re: Module compiles looking in /usr/src when alternate src tree is in use

2018-04-10 Thread Simon J. Gerraty
Rodney W. Grimes wrote: > Thank you, that does help narrow it down: (I backed up a vew lines > from the first place I saw src/.) > > ... > Global:.PARSEFILE = bsd.kmod.mk > Global:.PARSEDIR = /usr/src-topo/share/mk > Global:.PARSEFILE = bsd.kmod.mk > Result[] of :U is "/usr/src/sys" > Result[] o

Re: Module compiles looking in /usr/src when alternate src tree is in use

2018-04-10 Thread Simon J. Gerraty
Rodney W. Grimes wrote: > I am having a compile time issue for a patched that compiled fine on my > r329294 system, but now failes to compile with what looks like a wrong > header being included. You may find it helpful to do something like: make -dv -C sys/modules/vmm -V CFLAGS > /tmp/dvo 2>&1

Re: building ports (well, pkg) and make -j (even -j1 ) on a fast and64 machine: builds fail (head -r325997 context)

2017-11-22 Thread Simon J. Gerraty
Mark Millard wrote: > [Plain "make" works (no -j ).] > > Is it expected that -j1 and the like get what I report below? A bug in the makefile (eg conflict b/w .ORDER and dependencies) will result in that sort of noise. -j1 is still jobs mode ___ freeb

Re: Build failed: /usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional

2017-11-05 Thread Simon J. Gerraty
Simon J. Gerraty wrote: > David Wolfskill wrote: > > ===> Building for nvidia-driver-340-340.102 > > ===> src (all) > > make[6]: "/usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional > > (defined(SRCTOP) && (${CANONICALOBJDIR} == /${

Re: Build failed: /usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional

2017-11-05 Thread Simon J. Gerraty
David Wolfskill wrote: > ===> Building for nvidia-driver-340-340.102 > ===> src (all) > make[6]: "/usr/src/share/mk/bsd.obj.mk" line 89: Malformed conditional > (defined(SRCTOP) && (${CANONICALOBJDIR} == /${RELDIR} || ${.OBJDIR} == > /${RELDIR})) > make[6]: Fatal errors encountered -- cannot c

Re: if_igb.ko symbolic link generation is still messed up in that it hard wires the path at installkernel time, messing up copying to other places

2017-09-09 Thread Simon J. Gerraty
Mark Millard wrote: > # ls -lTt /media/boot/kernel/if_igb.ko /mnt/boot/kerndb/if_igb.ko > lrwxr-xr-x 1 root wheel 25 Sep 8 22:47:36 2017 /mnt/boot/kerndb/if_igb.ko > -> /mnt/boot/kernel/if_em.ko > lrwxr-xr-x 1 root wheel 68 Sep 6 20:27:20 2017 > /media/boot/kernel/if_igb.ko -> > /usr/ob

Re: r322769: make buildkernel/buildworld failure: Unable to determine compiler type for CC=cc

2017-08-21 Thread Simon J. Gerraty
O. Hartmann wrote: > I just updated to r322769 and now I face this when trying to recompile > kernel/world again: > > make: "/usr/src/share/mk/bsd.compiler.mk" line 142: warning: "cc --version || > echo 0.0.0" > exited on a signal make: "/usr/src/share/mk/bsd.compiler.mk" line 155: Unable >

Re: [bmake] bmake sigint handling causing tty corruption

2017-07-20 Thread Simon J. Gerraty
Konstantin Belousov wrote: > I just find is somewhat strange that make initiates a new session. In jobs mode it does - to ensure the child and all progeny can be killed in one fell swoop. In compat mode it does not, but that does not mean the child cannot do so. > Did you verified that enabling

Re: [bmake] bmake sigint handling causing tty corruption

2017-07-19 Thread Simon J. Gerraty
Hi Dmitry Thanks for the detailed report. Will take a look > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215572 > Now to fix this, I suggest that instead of killing itself, make should > signal all its childs carefully and wait() on them, only then die > itself. > > Now after a quick

Re: .configure && make fails to find ld [dlopen]

2017-07-06 Thread Simon J. Gerraty
blubee blubeeme wrote: > Thanks for the reply, I haven't set any -static in my env variables or > anything like that. Here's a brief output of my env > the linking to ldl is being done automatically since I call autoreconf -fi > and that sets up an m4 directory. grep -rn "\-ldl" in the root of t

Re: .configure && make fails to find ld [dlopen]

2017-07-05 Thread Simon J. Gerraty
blubee blubeeme wrote: > I run autoreconf -fi and it asks me to add AC_CONFIG_MACRO_DIRS([m4]) to my > configure.ac file, which I do. It creates a ./m4 directory and proceeds. > > After running .configure --prefix=/tmp [for testing] that' also goes fine, > except .configure cannot find dlopen > c

Re: Bug in make setting wrong MAKESYSPATH

2017-05-28 Thread Simon J. Gerraty
Thomas Mueller wrote: > Just because I found a workaround does not mean it is not a bug. Sorry I don't know what else to tell you. make is behaving as it should, based on the way it is configured. That setup was deemed the most useful by those working on src/, so is not likely to be changed. I

Re: Build failure in sys/modules/drm2/radeonkmsfw/ARUBA_pfp

2017-05-25 Thread Simon J. Gerraty
David Wolfskill wrote: > On Thu, May 25, 2017 at 05:07:19AM -0700, David Wolfskill wrote: > > This is on my "build machine"; running GENERIC/amd64 built yesterday: > > > > FreeBSD freebeast.catwhisker.org 12.0-CURRENT FreeBSD 12.0-CURRENT #353 > > r318739M/318739:1200031: Wed May 24 10:00:20 P

Re: Bug in make setting wrong MAKESYSPATH

2017-05-25 Thread Simon J. Gerraty
Thomas Mueller wrote: > When I did those last examples, that last line was > env MAKESYSPATH=/usr/share/mk make all-depends-list ok, that makes sense. > > > and then it seems to work correctly with no syntax error in > > > /BETA1/usr/share/mk/bsd.compiler.mk > > > > > Maybe I need to file a bug.

Re: ino64? r318606 -> r318739 OK; r318739 -> r318781 fails SIGSEGV

2017-05-25 Thread Simon J. Gerraty
Simon J. Gerraty wrote: > Peter Jeremy wrote: > > In my case, I have "WITH_META_MODE=yes" in /etc/src-env.conf and was > > using "make buildworld" - which failed. The upgrade worked cleanly > > when I manually deleted all the .meta files. If I get a r

Re: ino64? r318606 -> r318739 OK; r318739 -> r318781 fails SIGSEGV

2017-05-24 Thread Simon J. Gerraty
Peter Jeremy wrote: > In my case, I have "WITH_META_MODE=yes" in /etc/src-env.conf and was > using "make buildworld" - which failed. The upgrade worked cleanly > when I manually deleted all the .meta files. If I get a round tuit, sys.mk is setup such that missing .meta file makes the target out

Re: Bug in make setting wrong MAKESYSPATH

2017-05-24 Thread Simon J. Gerraty
Thomas Mueller wrote: > I go into /BETA1/usr/ports/ports-mgmt/synth , run > env MAKESYSPATH make all-depends-list I assume you mean MAKESYSPATH=something? otherwise env itself should vomit > and then it seems to work correctly with no syntax error in > /BETA1/usr/share/mk/bsd.compiler.mk > > M

Re: ino64? r318606 -> r318739 OK; r318739 -> r318781 fails SIGSEGV

2017-05-24 Thread Simon J. Gerraty
Peter Jeremy wrote: > as follows. My suspicion is that meta mode isn't seeing enough of the > differences between the bootstrap and main build steps and so causing make > to incorrectly skip steps. I see a number of places in src/Makefile* where BUILD_TOOLS_META=.NOMETA is added to env of things

Re: ino64? r318606 -> r318739 OK; r318739 -> r318781 fails SIGSEGV

2017-05-24 Thread Simon J. Gerraty
Ngie Cooper wrote: > There was another report on the list about a stale > MAKEOBJDIRPREFIX causing someone grief. Pointer? What does stale MAKEOBJDIRPREFIX mean? >I think it's safe to say that > meta mode and -DNO_CLEAN might not work across this transition--in > particular meta mode tends

Re: ino64? r318606 -> r318739 OK; r318739 -> r318781 fails SIGSEGV

2017-05-24 Thread Simon J. Gerraty
David Wolfskill wrote: > As far as I can tell, the "ld" command was: Since you have the .meta file, it should tell you exactly what the command was and what path was actually exec'd ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org

Re: Bug in make setting wrong MAKESYSPATH

2017-05-24 Thread Simon J. Gerraty
Thomas Mueller wrote: > For building the system, MAKESYSPATH should be $SRCDIR/share/mk , to be in > sync. > > I tried "make -V MAKESYSPATH" from several SRCDIRs, and that's what happened. Yes. If you look at share/mk/src.sys.env.mk it detects that it was found via a .../ path, and replaces it

Re: Bug in make setting wrong MAKESYSPATH

2017-05-23 Thread Simon J. Gerraty
Thomas Mueller wrote: > It seems to me that MAKESYSPATH should match the host building system > FreeBSD version. Which would only be correct if building the same version of FreeBSD as is running on the host. Many folk work on multiple branches on the same machine. Thus for anyone working on src/

Re: Bug in make setting wrong MAKESYSPATH

2017-05-22 Thread Simon J. Gerraty
Thomas Mueller wrote: > I tried building ports, starting with ports-mgmt/synth, on HEAD > (12-current) and ran into difficulties with syntax error in > bsd.compiler.mk . > > With PORTSDIR on another partition, mounted as /BETA1, I got these > errors, but not when I null-mounted /BETA1/usr/ports

Re: build src with colored output?

2017-05-16 Thread Simon J. Gerraty
David Chisnall wrote: > Ideally, we’d solve this by fixing bmake to behave more like a modern > build tool and: It's called meta mode ;-) and makes the OP's real issue much easier - when build fails, the failing .meta file is saved in src/../error/ providing no doubt and no need to search.

Re: buildworld not working with MAKEOBJDIRPREFIX

2017-05-16 Thread Simon J. Gerraty
Roger Pau Monné wrote: > $ cd /home/royger/buildjob/freebsd > $ make -j30 buildworld MAKEOBJDIRPREFIX=/home/royger/buildjob/obj/ That will not work as desired. When you set VAR=val as an argument to make, it overrides anything the makefiles want to do and there are a number of points where the t

Re: make warning: ?: No such file or directory.

2017-05-10 Thread Simon J. Gerraty
Bryan Drewery wrote: > Oh now I get it too after updating system from head from r317177 to > r318116. So it seems to be a bug in bmake-20170420. What's in your env? Eg. env | grep MAKE ls > > ~/git/freebsd # make check-old > > make warning: E No such file or directory. > > make warning: E No s

Re: filemon: weird full-time build although filemon enabled

2017-05-10 Thread Simon J. Gerraty
David Wolfskill wrote: > I placed it in /etc/src.conf; thus: > > g1-252(11.0-S)[1] cat /etc/src.conf > KERNCONF=CANARY > PORTS_MODULES=x11/nvidia-driver-340 > .MAKE.META.IGNORE_PATHS += /usr/local/etc/libmap.d > WITHOUT_DEBUG_FILES=1 > IWN_DEBUG=1 > IEEE80211_DEBUG=1 > WITH_ELFCOPY_AS_OBJCOPY=1

Re: make warning: ?: No such file or directory.

2017-05-10 Thread Simon J. Gerraty
Ngie Cooper (yaneurabeya) wrote: > I see similar oddness when running some commands. It seems to be happening as > of the last month or two. > > $ make buildenv TARGET_ARCH=armv6 > make warning: I: No such file or directory. > make warning: I: No such file or directory. > Entering world for armv

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Simon J. Gerraty
O. Hartmann wrote: > > .MAKE.META.IGNORE_PATHS += /usr/local/etc/libmap.d > > > > --sjg > > I suppose I have to set this flag in > > /etc/src-env.conf That should work. Let us know how it goes ___ freebsd-current@freebsd.org mailing list https://lis

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Simon J. Gerraty
Konstantin Belousov wrote: > If I understand the motto of meta-mode, any file change is detected for any > file accessed during the build. All dynamically-linked binary includes > the rtld into the process image, and rtld reads all config files in the > libmap.d subdirectories. The end result is

Re: filemon: weird full-time build although filemon enabled

2017-05-08 Thread Simon J. Gerraty
O. Hartmann wrote: > It is weird! > > Today, after yesterday's built, I face the same 90 minutes build horror > again, this time > I switched on "-dM" with the make command. > > This happens: > > [...] > /usr/obj/usr/src/lib/clang/libllvm/_usr_obj_usr_src_lib_clang_libllvm_CodeGen_SelectionDAG

Re: filemon: weird full-time build although filemon enabled

2017-05-07 Thread Simon J. Gerraty
Hi, > I build CURRENT on two technically similar systems on a almost daily basis. > Therefore, it > was a great relief having WITH_META_MODE=yes set in /etc/src-env.conf for > incremental > builds. To make my understanding of this clear (just in case I'm wrong): > setting > WITH_META_MODE build

Re: buildkernel broken for META_MODE

2017-04-18 Thread Simon J. Gerraty
> > [Creating objdir /usr/obj/usr/obj/root/git/freebsd/sys/GENERIC...] > Wrong^ > > Note we have 'cd /usr/obj/' and 'MAKEOBJDIRPREFIX=/usr/obj' in > there, so we get a nested /usr/obj/.CURDIR problem of /usr/obj/usr/obj. The following would probably help that case: Index: auto.obj.mk ===

Re: buildkernel broken for META_MODE

2017-04-18 Thread Simon J. Gerraty
Bryan Drewery wrote: > > What is the issue above? diff? > > I don't know what the issue is with buildkernel specifically, I never > looked into it. Buildworld had other issues like rescue/rescue not being > AUTO_OBJ safe. That's fixed. I forget the details of buildworld as well. > One of the simp

Re: buildkernel broken for META_MODE

2017-04-18 Thread Simon J. Gerraty
Bryan Drewery wrote: > Aha /usr/obj/usr/obj. > > That was in Renato's report as well. > > The bug is WITH_AUTO_OBJ. I just confirmed that. A bunch of errors occur > when doing the first build and the opt_*.h files are not generated in > the "proper" place by config(8). > > WITH_AUTO_OBJ is not

Re: Apparent build race(s), r315238 -> r315298

2017-03-15 Thread Simon J. Gerraty
Ngie Cooper (yaneurabeya) wrote: > Alternatively, could you please revert just r313650 in another > branch/workspace (I wonder if changing from .OBJDIR to OBJTOP had some > unintended consequences that unrooted issues with how bmake evaluates paths)? The only change to dir handling in recent bm

Re: bmake core dump

2017-02-27 Thread Simon J. Gerraty
Iblis Lin wrote: > > Could you perhaps run that with ktrace? > > > > Eg. > > > > ktrace -i -t cnis -f /var/tmp/make.kt whatever command you ran > > kdump -m 128 -f /var/tmp/make.kt > /var/tmp/make.kd > > > > that would show what make is actually reading > > > > I uploaded the ktrace to the gi

Re: bmake core dump

2017-02-27 Thread Simon J. Gerraty
Iblis Lin wrote: > Accutally, I made it core dump via a julia script. > Please checkout this code I'm not familiar with juila, in most scripting languages cmd = `/usr/bin/make -f - -V MAKE_ENV` would run that command and assign the output to cmd. The make instance would be reading from stdin whic

Re: bmake core dump

2017-02-27 Thread Simon J. Gerraty
Hi Iblis > I encounted core dump with `make -f - ...` can you share the content of stdin? or a relevant snippet? Also what version of bmake? (make -r -f /dev/null -V MAKE_VERSION) Your patch risks overflow, so would like to reproduce first... ___ fre

Re: Fix /etc/rc.d/random umask handling (/entropy permissions)

2017-01-23 Thread Simon J. Gerraty
Jilles Tjoelker wrote: > Index: etc/rc.d/random > === > --- etc/rc.d/random (revision 311446) > +++ etc/rc.d/random (working copy) > @@ -20,12 +20,14 @@ > > save_dev_random() > { > + oumask=`umask` why not simply use a su

Re: Secure Boot

2017-01-14 Thread Simon J. Gerraty
Johannes Lundberg wrote: > https://wiki.freebsd.org/SecureBoot > Interested in this too - though for proprietary systems where we have control over BIOS. The design should hopefully accommodate both. In particular any plan for how the loader would verify kernel and any pre-loaded modules, and

Re: MANPATH not handled correctly

2017-01-10 Thread Simon J. Gerraty
Steve Kargl wrote: > Well, yes, it is the manpage that gets installed. > > > usr.bin/man/apropos.1 > > > > is the one that matches apropos(1) I should have said "in 10.x" ;-) In current, MK_MANDOCDB defaults yes, so you are right. So the script needs an update. Is there a PR filed? ___

Re: MANPATH not handled correctly

2017-01-09 Thread Simon J. Gerraty
Steve Kargl wrote: > On Mon, Jan 09, 2017 at 05:19:01PM -0800, Simon J. Gerraty wrote: > > Steve Kargl wrote: > > > > > MANPATH is not handled correctly. According to the documentation > > > in apropos(1) and whatis(1): > > > > Can you clarify w

  1   2   3   4   >