Migrating from FreeBSD 9.0-STABLE/amd to 10.0-CURRENT/amd64?
O. Hartmann
ohartman at mail.zedat.fu-berlin.de
Tue Mar 6 21:19:40 UTC 2012
On 03/06/12 18:33, Tom Evans wrote:
> On Tue, Mar 6, 2012 at 4:09 PM, O. Hartmann
> <ohartman at mail.zedat.fu-berlin.de> wrote:
>> Hello.
>> […]
>>
>> Well, I tried to switch by doing a "svn switch" in /usr/src, building a
>> kernel, restarting the kernel in single user mode and then trying to
>> build the world. At some point in /usr/src/share (I forgot were exactly,
>> it was somewhere with lots of locale stuff), the buildworld process
>> fails so I couldn't build a world.
>
> /usr/src/UPDATING says this:
>
>
> To upgrade in-place from 8.x-stable to current
> ----------------------------------------------
> <make sure you have good level 0 dumps>
> make buildworld [9]
> make kernel KERNCONF=YOUR_KERNEL_HERE [8]
> [1]
> <reboot in single user> [3]
> mergemaster -p [5]
> make installworld
> mergemaster -i [4]
> make delete-old [6]
> <reboot>
>
>
> Even though it says 8.x, I would start from these instructions.
>
> Cheers
>
> Tom
Here is what I get on FreeBSD 9.0-STABLE #0 r232611: Tue Mar 6
16:36:33 CET 2012 when trying to compile sources being FreeBSD
10.0-CURRENT/amd64 Revision: 232618:
[...]
===> sys/boot/i386/boot2 (all)
objcopy -S -O binary boot1.out boot1
dd if=/dev/zero of=boot2.ldr bs=512 count=1
1+0 records in
1+0 records out
512 bytes transferred in 0.000018 secs (28256364 bytes/sec)
clang -Os -fno-guess-branch-probability -fomit-frame-pointer
-fno-unit-at-a-time -mno-align-long-strings -mrtd -mregparm=3
-DUSE_XREAD -DUFS1_AND_UFS2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3
-DSIOSPD=9600 -I/usr/src/sys/boot/i386/boot2/../../common
-I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -Wall -Waggregate-return
-Wbad-function-cast -Wcast-align -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wwrite-strings -Winline --param
max-inline-insns-single=100 -mllvm -stack-alignment=8 -mllvm
-inline-threshold=3 -mllvm -enable-load-pre=false -ffreestanding
-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -msoft-float -m32 -march=i386 -std=gnu99 -S -o boot2.s.tmp
/usr/src/sys/boot/i386/boot2/boot2.c
clang: warning: the clang compiler does not support '-fno-unit-at-a-time'
clang: warning: argument unused during compilation:
'-fno-guess-branch-probability'
clang: warning: argument unused during compilation:
'-mno-align-long-strings'
clang: warning: argument unused during compilation: '--param
max-inline-insns-single=100'
clang: warning: argument unused during compilation:
'-mpreferred-stack-boundary=2'
In file included from /usr/src/sys/boot/i386/boot2/boot2.c:170:
/usr/src/sys/boot/i386/boot2/../../common/ufsread.c:232:17: warning:
cast from 'char *' to 'struct ufs1_dinode *' increases required
alignment from 1 to 4
[-Wcast-align]
memcpy(&dp1, (struct ufs1_dinode *)blkbuf + n,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/boot/i386/boot2/../../common/ufsread.c:235:17: warning:
cast from 'char *' to 'struct ufs2_dinode *' increases required
alignment from 1 to 4
[-Wcast-align]
memcpy(&dp2, (struct ufs2_dinode *)blkbuf + n,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/boot/i386/boot2/boot2.c:222:1: warning: no previous
prototype for function 'main' [-Wmissing-prototypes]
main(void)
^
/usr/src/sys/boot/i386/boot2/boot2.c:355:4: warning: cast from 'caddr_t'
(aka 'char *') to 'Elf32_Word *' (aka 'unsigned int *') increases
required alignment from 1 to
4 [-Wcast-align]
*(Elf32_Word *)p = es[i].sh_size;
^~~~~~~~~~~~~~~
/usr/src/sys/boot/i386/boot2/boot2.c:619:8: warning: cast from 'caddr_t'
(aka 'char *') to 'uint32_t *' (aka 'unsigned int *') increases required
alignment from 1 to 4
[-Wcast-align]
t1 = *(uint32_t *)PTOV(0x46c);
^~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s
rm -f boot2.s.tmp
clang -m32 -c boot2.s
clang -Os -fno-guess-branch-probability -fomit-frame-pointer
-fno-unit-at-a-time -mno-align-long-strings -mrtd -mregparm=3
-DUSE_XREAD -DUFS1_AND_UFS2 -DFLAGS=0x80 -DSIOPRT=0x3f8 -DSIOFMT=0x3
-DSIOSPD=9600 -I/usr/src/sys/boot/i386/boot2/../../common
-I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -Wall -Waggregate-return
-Wbad-function-cast -Wcast-align -Wmissing-declarations
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow
-Wstrict-prototypes -Wwrite-strings -Winline --param
max-inline-insns-single=100 -mllvm -stack-alignment=8 -mllvm
-inline-threshold=3 -mllvm -enable-load-pre=false -ffreestanding
-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -msoft-float -m32 -march=i386 -std=gnu99 -m32 -c
/usr/src/sys/boot/i386/boot2/sio.S
clang: warning: the clang compiler does not support '-fno-unit-at-a-time'
clang: warning: argument unused during compilation:
'-fno-guess-branch-probability'
clang: warning: argument unused during compilation:
'-mno-align-long-strings'
clang: warning: argument unused during compilation: '--param
max-inline-insns-single=100'
clang: warning: argument unused during compilation:
'-mpreferred-stack-boundary=2'
ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000 -o
boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o
sio.o
objcopy -S -O binary boot2.out boot2.bin
btxld -v -E 0x2000 -f bin -b
/usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr -o
boot2.ld -P 1 boot2.bin
kernel: ver=1.02 size=690 load=9000 entry=9010 map=16M pgctl=1:1
client: fmt=bin size=15a1 text=0 data=0 bss=0 entry=0
output: fmt=bin size=1e31 text=200 data=1c31 org=0 entry=0
-49 bytes available
*** Error code 1
Stop in /usr/src/sys/boot/i386/boot2.
*** Error code 1
Stop in /usr/src/sys/boot/i386.
*** Error code 1
Stop in /usr/src/sys/boot.
*** Error code 1
Stop in /usr/src/sys.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
*** Error code 1
Stop in /usr/src.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120306/69b87106/signature.pgp
More information about the freebsd-current
mailing list