Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Mar 2012 22:19:26 +0100
From:      "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de>
To:        Tom Evans <tevans.uk@googlemail.com>
Cc:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   Re: Migrating from FreeBSD 9.0-STABLE/amd to 10.0-CURRENT/amd64?
Message-ID:  <4F567F5E.4030508@mail.zedat.fu-berlin.de>
In-Reply-To: <CAFHbX1LV3QLtiePYvCgmSS-hwSR=jLPLo0EbKa2_tuQqR%2BJSbg@mail.gmail.com>
References:  <4F5636AA.2060703@mail.zedat.fu-berlin.de> <CAFHbX1LV3QLtiePYvCgmSS-hwSR=jLPLo0EbKa2_tuQqR%2BJSbg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigBF3B7A9C75A242F3A0F25FAA
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 03/06/12 18:33, Tom Evans wrote:
> On Tue, Mar 6, 2012 at 4:09 PM, O. Hartmann
> <ohartman@mail.zedat.fu-berlin.de> wrote:
>> Hello.
>> [=E2=80=A6]
>>
>> 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 exactl=
y,
>> it was somewhere with lots of locale stuff), the buildworld process
>> fails so I couldn't build a world.
>=20
> /usr/src/UPDATING says this:
>=20
>=20
>     To upgrade in-place from 8.x-stable to current
>     ----------------------------------------------
>     <make sure you have good level 0 dumps>
>     make buildworld                 [9]
>     make kernel KERNCONF=3DYOUR_KERNEL_HERE       [8]
>                             [1]
>     <reboot in single user>             [3]
>     mergemaster -p                  [5]
>     make installworld
>     mergemaster -i                  [4]
>     make delete-old                 [6]
>     <reboot>
>=20
>=20
> Even though it says 8.x, I would start from these instructions.
>=20
> Cheers
>=20
> 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:

[...]
=3D=3D=3D> sys/boot/i386/boot2 (all)
objcopy -S -O binary boot1.out boot1
dd if=3D/dev/zero of=3Dboot2.ldr bs=3D512 count=3D1
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=3D3
-DUSE_XREAD  -DUFS1_AND_UFS2  -DFLAGS=3D0x80  -DSIOPRT=3D0x3f8  -DSIOFMT=3D=
0x3
 -DSIOSPD=3D9600  -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=3D100  -mllvm -stack-alignment=3D8 -mllvm
-inline-threshold=3D3  -mllvm -enable-load-pre=3Dfalse -ffreestanding
-mpreferred-stack-boundary=3D2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -msoft-float -m32 -march=3Di386 -std=3Dgnu99    -S -o boot2.s.t=
mp
/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=3D100'
clang: warning: argument unused during compilation:
'-mpreferred-stack-boundary=3D2'
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 =3D 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 =3D *(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=3D3
-DUSE_XREAD  -DUFS1_AND_UFS2  -DFLAGS=3D0x80  -DSIOPRT=3D0x3f8  -DSIOFMT=3D=
0x3
 -DSIOSPD=3D9600  -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=3D100  -mllvm -stack-alignment=3D8 -mllvm
-inline-threshold=3D3  -mllvm -enable-load-pre=3Dfalse -ffreestanding
-mpreferred-stack-boundary=3D2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -msoft-float -m32 -march=3Di386 -std=3Dgnu99     -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=3D100'
clang: warning: argument unused during compilation:
'-mpreferred-stack-boundary=3D2'
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=3D1.02 size=3D690 load=3D9000 entry=3D9010 map=3D16M pgctl=3D=
1:1
client: fmt=3Dbin size=3D15a1 text=3D0 data=3D0 bss=3D0 entry=3D0
output: fmt=3Dbin size=3D1e31 text=3D200 data=3D1c31 org=3D0 entry=3D0
-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.


--------------enigBF3B7A9C75A242F3A0F25FAA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iQEcBAEBAgAGBQJPVn9kAAoJEOgBcD7A/5N8LcQH/R8CFtvT6nA7UaRphoTHPm8W
Tvera2u9ATkBpuzOk2d+pd0+K5cCtUHB+pcUZnWKrWpFv8npyCAf+XWpxNxBVn56
YCET64I+KgP9EQ1rBMz7Du7Z44hqyxHnPDCQ8IWb7Zl0BaHqB18aHuqiYQePrLa2
/u7o3tSso5+PRIqOtNHDaluq8QKaleJKq2rbWu0Jzy+vzoBsT3nCCoC8WXkiAe9e
YeSNg6iBE0fmv6qZsXyTMeANnM1kGmYoTtEISan+qfBc8SDusy4Axaa/XXVMb6oq
OxEzk7JcBMZTbEw5HyMpswXO0lAmiz5AXZYmmJbXBELae1VrUu135e3Cmctu8ts=
=izJo
-----END PGP SIGNATURE-----

--------------enigBF3B7A9C75A242F3A0F25FAA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F567F5E.4030508>