Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2020 18:01:11 +0000 (UTC)
From:      Ameya Deshpande <ameyanrd@yahoo.com>
To:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Build issues in releng/11.0
Message-ID:  <1099245616.5585158.1607623271621@mail.yahoo.com>
References:  <1099245616.5585158.1607623271621.ref@mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello to the mail recipients,

I am new to FreeBSD Development. My work is specific to
FreeBSD 11.0-RELEASE. According to this document [1], branch
"releng/11.0" corresponds 11.0-RELEASE.

When I build the kernel by fetching "releng/11.0", I am getting some errors=
.

Initially, I got the error:

```
cc: error: unknown argument: '-fformat-extensions'
```

Unfortunately, I did not get a solution for this. But I found an
option in "tools/build/options" and tried building the kernel using
"make buildkernel WITHOUT_FORMAT_EXTENSIONS=3Dyes".

This helped me to bypass the above error but I got another error:

```
In file included from /usr/src/sys/cam/cam.c:45:
In file included from /usr/src/sys/cam/cam_ccb.h:44:
In file included from /usr/src/sys/cam/nvme/nvme_all.h:32:
/usr/src/sys/dev/nvme/nvme.h:922:16: error: taking address of packed
member 'cdw10' of class or structure 'nvme_command' may result in an
=C2=A0 =C2=A0 =C2=A0 unaligned pointer value [-Werror,-Waddress-of-packed-m=
ember]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 *(uint64_t *)&cmd->cdw10 =3D lba;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 ^~~~~~~~~~
1 error generated.
*** Error code 1
```

I am not facing any issues building other kernels versions like
'stable/11' or 'head'. Ideally, I assumed a similar build process for
'releng/11.0'. Please let me know how can I build a FreeBSD
11.0-RELEASE kernel.

Thanks,
Ameya Deshpande

[1]: https://www.freebsd.org/security/unsupported.html



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