Date: Sat, 4 Apr 2020 16:50:53 +0200 From: Tomasz CEDRO <tomek@cedro.info> To: FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>, FreeBSD Stable <freebsd-stable@freebsd.org>, freebsd-ports <freebsd-ports@freebsd.org> Cc: Hans Petter Selasky <hps@selasky.org> Subject: /usr/src/release/release.sh -> ports -> fetch pkg -> Bad system call (core dumped) Message-ID: <CAFYkXj=p0C7gHmVr1UfkG=SFmgHLn-25sMmOLUShd-fc1SSDUQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello world :-) I would like to build a 12-STABLE (/usr/src contains svn.freebsd.org/base/stable/12) locally on strong machine (24CPU 127GB RAM 12-1-RELEASE AMD64), then test changes on my local machine (panasonic toughbook i5 laptop 12.1-RELEASE AMD64). This will be used for testing kernel patches and driver development/fixes. The goal is to have separate zroot/ROOT/stable to select and act as the FreeBSD base. So far I have zroot/ROOT/default to use FreeBSD 12.1-RELEASE. I would like to switch between those to on boot to have one base system stable for working and another base system for testing on real environment. I noticed that simple copy of /boot/kernel does not work on my target machine. Thus I am trying to create a whole release, put a separate system base, then on boot select different zfs container base to boot from. I just love ZFS for that! I may even use snapshots to log and rollback changes. Questions: 1. Is it a good build / testing environment? Maybe there is a simpler / better way to cross compile binaries and test on another machine? Both are using 12.1-RELEASE AMD64 installations so far. All /usr/local should work both with 12.1-RELEASE and 12-STABLE right? 2. When that works, I would like to cross-compile for ARM in a similar manner, then attach pyOCD + GDB to debug ARM target. I guess that should work too as above? 3. During /usr/src/release/release.sh I get following error as pasted below. Does release.sh update /usr/ports just as it snaps from svn or it will use the /usr/porst that are just there and I need to provide /usr/ports in a state that will be bindled into a /scratch release? ===> docproj-2.0_14 depends on file: /usr/local/sbin/pkg - not found ===> License BSD2CLAUSE accepted by the user ===> Fetching all distfiles required by pkg-1.14.2 for building ===> Extracting for pkg-1.14.2 ===> License BSD2CLAUSE accepted by the user ===> Fetching all distfiles required by pkg-1.14.2 for building => SHA256 Checksum mismatch for freebsd-pkg-1.14.2_GH0.tar.gz. ===> Refetch for 1 more times files: freebsd-pkg-1.14.2_GH0.tar.gz ===> License BSD2CLAUSE accepted by the user => freebsd-pkg-1.14.2_GH0.tar.gz doesn't seem to exist in /tmp/distfiles/. => Attempting to fetch https://codeload.github.com/freebsd/pkg/tar.gz/1.14.2?dummy=/freebsd-pkg-1.14.2_GH0.tar.gz freebsd-pkg-1.14.2_GH0.tar.gz Bad system call (core dumped) => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/freebsd-pkg-1.14.2_GH0.tar.gz freebsd-pkg-1.14.2_GH0.tar.gz Bad system call (core dumped) => Couldn't fetch it - please try to retrieve this => port manually into /tmp/distfiles/ and try again. *** Error code 1 Stop. Any hints and comments are welcome :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXj=p0C7gHmVr1UfkG=SFmgHLn-25sMmOLUShd-fc1SSDUQ>