OPNsense Forum

English Forums => Development and Code Review => Topic started by: rackg on November 09, 2021, 03:04:42 am

Title: How to build 22.x code base ?
Post by: rackg on November 09, 2021, 03:04:42 am
I would like to build the beta code line 22.x. Kindly share the steps to follow. I have tried the existing method using FreeBSD 13.0 the build failed at make base itself. Any inputs are most welcome.
Title: Re: How to build 22.x code base ?
Post by: mimugmail on November 09, 2021, 06:31:10 am
https://www.reddit.com/r/opnsense/comments/q4epyo/guide_to_try_to_opnsense_221/
Title: Re: How to build 22.x code base ?
Post by: franco on November 09, 2021, 10:13:54 am
Posting at least the error would help diagnose.


Cheers,
Franco
Title: Re: How to build 22.x code base ?
Post by: rackg on November 10, 2021, 02:44:31 am
mimugmail I will try your post and let you know how it goes.
Title: Re: How to build 22.x code base ?
Post by: rackg on November 10, 2021, 02:45:38 am
Posting at least the error would help diagnose.


Cheers,
Franco

Sure after trying mimugmail guide.
 
Title: Re: How to build 22.x code base ?
Post by: rackg on November 19, 2021, 04:11:11 am
I have built an ISO finally. Had found an issue with following error

Issue1:
=====
DVD Create failed due to efi file copy issue no space left on device.

Logs:
------
+ UEFIBOOT=''
+ [ -n 'arm dvd serial vga vm' -a -z '' ]
+ UEFIBOOT='-o bootimage=i386;/usr/obj/usr/tools/config/22.1/OpenSSL:amd64/efiboot.img'
+ UEFIBOOT='-o bootimage=i386;/usr/obj/usr/tools/config/22.1/OpenSSL:amd64/efiboot.img -o no-emul-boot -o platformid=efi'
+ dd 'if=/dev/zero' 'of=/usr/obj/usr/tools/config/22.1/OpenSSL:amd64/efiboot.img' 'bs=4k' 'count=200'
200+0 records in
200+0 records out
819200 bytes transferred in 0.000977 secs (838207186 bytes/sec)
+ mdconfig -a -t vnode -f /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/efiboot.img
+ DEV=md0
+ newfs_msdos -F 12 -m 0xf8 /dev/md0
newfs_msdos: cannot get number of sectors per track: Operation not supported
newfs_msdos: cannot get number of heads: Operation not supported
/dev/md0: 1557 sectors in 1557 FAT12 clusters (512 bytes/cluster)
BytesPerSec=512 SecPerClust=1 ResSectors=1 FATs=2 RootDirEnts=512 Sectors=1600 Media=0xf8 FATsecs=5 SecPerTrack=63 Heads=1 HiddenSecs=0
+ mount -t msdosfs /dev/md0 /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/mnt
+ mkdir -p /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/mnt/efi/boot
+ cp /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/work/boot/loader.efi /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/mnt/efi/boot/bootx64.efi
cp: /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/mnt/efi/boot/bootx64.efi: No space left on device
*** Error code 1

After changed the count = 222 i was able to generate the ISO since the bootx64.efi size has gone beyond 4k x 200 count.

Issue 2:
=====

Really long time-consuming build process, most of my time spent on rust compilation. Note i have i5-9400 with 24G RAM but still it took long time build and i miserably failed to build ports or plugins at one shot (downloaded finally from pkg.opnsense web). Else i dont think i can get a DVD once this year. Earlier HBSD10 release i had not faced the issue like this. The issue  faced  was when a port/plugin build fails due to network error in downloading  source code or compile error it doesnt  create the pkg's build under sets. So every such  failure i  found nothing under the sets. It failed with error and i dont see the successfully built single port/plugin gets converted to sets packages.. Why it's so ?
Title: Re: How to build 22.x code base ?
Post by: franco on November 19, 2021, 08:42:02 am
I'm still working on UEFI for 22.1 and had to revert a bit to the 21.7 state to make sure not to break anything there. It hasn't been very plug and play so far and it does't help that ISO and other images are using different FAT versions for whatever reason. This work is scheduled for December.

As for rust and other "build pollution": We try to provide a minimal build. Suricata then made the decision to make rust a hard dependency and it is the way it is really for us since a couple of years DAILY dealing with these shifts and decisions in the ports tree. You don't see me complaining about this very often. ;)


Cheers,
Franco
Title: Re: How to build 22.x code base ?
Post by: rackg on November 19, 2021, 01:57:46 pm
Franko,

I feel really bad for you and appreciate the build team for handling such tiresome work. KUDOS to you guys.. I understand RUST is hard requirement for suricata and RUST take time for compilation. Keep this appart i just wonder what was the issue with rest of the build infra.

To be very frank with you we compiled 10.x i think its 20.x OPNsense build a long time before and few attempts very successful.  My questions are as follows.

1. Why the pkg sets are not created for successfully compiled port for the plugins/ports when make dvd terminated due to network issue/delay or termination ?

2. I have seen RUST getting built twice in a single fresh run for make dvd (no packages under sets) Why so ?

That make me wondering something completely different the way the ports/plugins code works for 20.x codeline.
Title: Re: How to build 22.x code base ?
Post by: franco on November 19, 2021, 02:24:13 pm
To avoid the issue in 1) there is a "make distfiles SETTINGS=22.1" target to cache all the required distfiles so no network required during the ports stage. Obviously this also speeds up subsequent builds a little.

For 2) I'm not sure as it should cache rust package for a single run as long as you don't build "packages" target which preps the target for mirror use removing go and rust in particular.

Our nightly build steps through the targets one by one instead of letting make(1) decide which dependency to build when is a little more reliable in the grand scheme of things, see

https://github.com/opnsense/tools/blob/master/composite/nightly.sh

If you do more than 1-2 builds I would highly recommend using the nightly target as a base for images since it also produces log files to skim through, see

https://nightly.opnsense.org/22.1/amd64/logs/202111191205/

As you can see we don't build images in nightly builds mostly because these builds are cheap when you have all the sets available via nightly. :)


Cheers,
Franco
Title: Re: How to build 22.x code base ?
Post by: rackg on November 26, 2021, 06:00:53 am
Dear Franco,

As per your feedback i started running the nightly make. The results are no different than distfiles getting cache. Please find the logs attached. And you will find that no set (plugins/ports saved to the sets folder.)  This throws  me 1K miles aways to restart my journey again on build. Any help on fixing this.. More concerned about the plugins/ports sets not created for all the successfully built ones.

root@limestone:/usr/local/opnsense/build/22.1/amd64/logs/latest # tail -n 200 09-ports-OpenSSL.log
checking if cc supports -Werror=nonnull... yes
checking if cc supports -Werror=init-self... yes
checking if cc supports -Werror=main... yes
checking if cc supports -Werror=missing-braces... yes
checking if cc supports -Werror=sequence-point... yes
checking if cc supports -Werror=return-type... yes
checking if cc supports -Werror=trigraphs... yes
checking if cc supports -Werror=array-bounds... yes
checking if cc supports -Werror=write-strings... yes
checking if cc supports -Werror=address... yes
checking if cc supports -Werror=int-to-pointer-cast... yes
checking if cc supports -Werror=pointer-to-int-cast... yes
checking if cc supports -pedantic... yes
checking if cc supports -Werror... yes
checking if cc supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking for gzopen in -lz... yes
checking for vasprintf... (cached) yes
checking for MKFONTSCALE... yes
checking for X11... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[20211126042817] ===> Building for mkfontscale-1.2.1
--- all ---
/usr/bin/make  all-recursive
--- all-recursive ---
Making all in man
--- mkfontdir.1 ---
--- mkfontscale.1 ---
--- mkfontdir.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|'       -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|'      -e 's|__xservername__|Xorg|g'        -e 's|__xconfigfile__|xorg.conf|g'      -e 's|__projectroot__|/usr/local|g'     -e 's|__apploaddir__||g'        -e 's|__appmansuffix__|1|g'  -e 's|__drivermansuffix__|4|g'  -e 's|__adminmansuffix__|8|g'   -e 's|__libmansuffix__|3|g'     -e 's|__miscmansuffix__|7|g'    -e 's|__filemansuffix__|5|g' < mkfontdir.man > mkfontdir.1
--- mkfontscale.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|'       -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|'      -e 's|__xservername__|Xorg|g'        -e 's|__xconfigfile__|xorg.conf|g'      -e 's|__projectroot__|/usr/local|g'     -e 's|__apploaddir__||g'        -e 's|__appmansuffix__|1|g'  -e 's|__drivermansuffix__|4|g'  -e 's|__adminmansuffix__|8|g'   -e 's|__libmansuffix__|3|g'     -e 's|__miscmansuffix__|7|g'    -e 's|__filemansuffix__|5|g' < mkfontscale.man > mkfontscale.1
--- constlist.o ---
--- hash.o ---
--- ident.o ---
--- list.o ---
--- constlist.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT constlist.o -MD -MP -MF .deps/constlist.Tpo -c -o constlist.o constlist.c
--- hash.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.c
--- ident.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT ident.o -MD -MP -MF .deps/ident.Tpo -c -o ident.o ident.c
--- list.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT list.o -MD -MP -MF .deps/list.Tpo -c -o list.o list.c
--- constlist.o ---
mv -f .deps/constlist.Tpo .deps/constlist.Po
--- mkfontscale.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT mkfontscale.o -MD -MP -MF .deps/mkfontscale.Tpo -c -o mkfontscale.o mkfontscale.c
--- hash.o ---
mv -f .deps/hash.Tpo .deps/hash.Po
--- mkfontscale.o ---
mkfontscale.c:779:66: warning: declaration shadows a variable in the global scope [-Wshadow]
doDirectory(const char *dirname_given, int numEncodings, ListPtr encodingsToDo)
                                                                 ^
mkfontscale.c:115:16: note: previous declaration is here
static ListPtr encodingsToDo;
               ^
mkfontscale.c:1293:23: warning: declaration shadows a variable in the global scope [-Wshadow]
readEncodings(ListPtr encodings, char *dirname)
                      ^
mkfontscale.c:92:21: note: previous declaration is here
static ConstListPtr encodings, extra_encodings;
                    ^
--- list.o ---
mv -f .deps/list.Tpo .deps/list.Po
--- mkfontdir ---
/usr/bin/sed -e 's|@bindir
--- ident.o ---
mv -f .deps/ident.Tpo .deps/ident.Po
--- mkfontscale.o ---
2 warnings generated.
mv -f .deps/mkfontscale.Tpo .deps/mkfontscale.Po
--- mkfontscale ---
cc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fstack-protector-strong -o mkfontscale constlist.o hash.o  ident.o list.o mkfontscale.o -L/usr/local/lib -lfontenc -lfreetype -lz
[20211126042818] ===> Staging for mkfontscale-1.2.1
===>   mkfontscale-1.2.1 depends on file: /usr/local/libdata/pkgconfig/fontenc.pc - found
[20211126042818] ===> Generating temporary packing list
Making install in man
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 install  -m 0644 mkfontdir.1 mkfontscale.1 '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
  install  -s -m 555 mkfontscale '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 install  -m 555 mkfontdir '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
[20211126042818] ====> Compressing man pages (compress-man)
[20211126042818] ===> Installing for mkfontscale-1.2.1
[20211126042818] ===> Checking if mkfontscale is already installed
[20211126042818] ===> Registering installation for mkfontscale-1.2.1 as automatic
Installing mkfontscale-1.2.1...
===>   urwfonts-1.0_8 depends on executable: mkfontscale - found
===>   Returning to build of urwfonts-1.0_8
[20211126042818] ===> Generating temporary packing list
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/Fontmap /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.pfb /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.afm /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.pfm /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
[20211126042818] ====> Compressing man pages (compress-man)
[20211126042818] ===> Installing for urwfonts-1.0_8
[20211126042818] ===> Checking if urwfonts is already installed
[20211126042818] ===> Registering installation for urwfonts-1.0_8
Installing urwfonts-1.0_8...
You'll have to add /usr/local/share/fonts/urwfonts
to your X font path by either:

$ xset fp+ /usr/local/share/fonts/urwfonts
$ xset fp rehash

or by adding it to your X-server configuration file (usually
/etc/X11/xorg.conf) and restarting the X-server.

Creating package for expat-2.4.1
expat-2.4.1 already packaged, skipping...
Creating package for fontconfig-2.13.94_1,1
fontconfig-2.13.94_1,1 already packaged, skipping...
Creating package for freetype2-2.11.0
freetype2-2.11.0 already packaged, skipping...
Creating package for libfontenc-1.1.4
Creating package for mkfontscale-1.2.1
Creating package for pkg-1.16.3
pkg-1.16.3 already packaged, skipping...
Creating package for pkgconf-1.8.0,1
pkgconf-1.8.0,1 already packaged, skipping...
Creating package for png-1.6.37_1
png-1.6.37_1 already packaged, skipping...
Creating package for urwfonts-1.0_8
Creating package for xorg-macros-1.19.3
xorg-macros-1.19.3 already packaged, skipping...
Creating package for xorgproto-2021.5
xorgproto-2021.5 already packaged, skipping...
>>> Locking package dependency: pkgconf
>>> Locking package dependency: pkg
>>> Locking package dependency: urwfonts
Updating database digests format: .......... done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages:

Installed packages to be REMOVED:
        xorg-macros: 1.19.3
        xorgproto: 2021.5

Number of packages to be removed: 2

The operation will free 1 MiB.
[1/2] Deinstalling xorg-macros-1.19.3...
[1/2] Deleting files for xorg-macros-1.19.3: ...... done
[2/2] Deinstalling xorgproto-2021.5...
[2/2] Deleting files for xorgproto-2021.5: .......... done
>>> Saving runtime package: libfontenc
>>> Saving runtime package: mkfontscale
>>> Saving runtime package: urwfonts
[20211126042823] ===> Cleaning for mkfontscale-1.2.1
[20211126042824] ===> Cleaning for libfontenc-1.1.4
[20211126042824] ===> Cleaning for urwfonts-1.0_8
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 9 packages:

Installed packages to be REMOVED:
        expat: 2.4.1
        fontconfig: 2.13.94_1,1
        freetype2: 2.11.0
        libfontenc: 1.1.4
        mkfontscale: 1.2.1
        pkg: 1.16.3
        pkgconf: 1.8.0,1
        png: 1.6.37_1
        urwfonts: 1.0_8

Number of packages to be removed: 9

The operation will free 21 MiB.
[1/9] Deinstalling urwfonts-1.0_8...
[1/9] Deleting files for urwfonts-1.0_8: .......... done
[2/9] Deinstalling fontconfig-2.13.94_1,1...
[2/9] Deleting files for fontconfig-2.13.94_1,1: .......... done
[3/9] Deinstalling mkfontscale-1.2.1...
[3/9] Deleting files for mkfontscale-1.2.1: ....... done
[4/9] Deinstalling freetype2-2.11.0...
[4/9] Deleting files for freetype2-2.11.0: .......... done
[5/9] Deinstalling expat-2.4.1...
[5/9] Deleting files for expat-2.4.1: .......... done
[6/9] Deinstalling libfontenc-1.1.4...
[6/9] Deleting files for libfontenc-1.1.4: ......... done
[7/9] Deinstalling pkg-1.16.3...
[7/9] Deleting files for pkg-1.16.3: .......... done
[8/9] Deinstalling pkgconf-1.8.0,1...
[8/9] Deleting files for pkgconf-1.8.0,1: .......... done
[9/9] Deinstalling png-1.6.37_1...
[9/9] Deleting files for png-1.6.37_1: .......... done
pkg: No package files have been found
Cannot create repository catalogue
*** Error code 1

Stop.
make[1]: stopped in /usr/tools
    53412.08 real     77975.59 user      9445.60 sys
root@limestone:/usr/local/opnsense/build/22.1/amd64/logs/latest #



Title: Re: How to build 22.x code base ?
Post by: rackg on November 28, 2021, 03:06:26 am
Some more logs strange behavior w.r.t file system space.

root@limestone:/usr/tools # mount
/dev/gpt/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/gpt/efiesp on /boot/efi (msdosfs, local)
<below>:/usr/ports on /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/ports (unionfs, local, soft-updates)
<below>:/usr/src on /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/src (unionfs, local, soft-updates)
devfs on /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/dev (devfs)
<below>:/usr/ports on /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/ports (unionfs, local, soft-updates)
<below>:/usr/src on /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/src (unionfs, local, soft-updates)
devfs on /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/dev (devfs)
root@limestone:/usr/tools #
root@limestone:/usr/tools #
root@limestone:/usr/tools #
root@limestone:/usr/tools # df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/gpt/rootfs        76G     48G     22G    69%    /
devfs                 1.0K    1.0K      0B   100%    /dev
/dev/gpt/efiesp        32M    878K     31M     3%    /boot/efi
<below>:/usr/ports    153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/ports
<below>:/usr/src      153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/src
devfs                 1.0K    1.0K      0B   100%    /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/dev
<below>:/usr/ports    153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/ports
<below>:/usr/src      153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/src
devfs                 1.0K    1.0K      0B   100%    /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/dev
root@limestone:/usr/tools #
 

Title: Re: How to build 22.x code base ?
Post by: rackg on December 01, 2021, 06:40:43 am
Any help ? Waiting for your update to fix this issue.
Title: Re: How to build 22.x code base ?
Post by: mimugmail on December 01, 2021, 02:43:32 pm
I would try a fresh install, disable LibreSSL, dont touch anything else (like additional ports etc.) and start with make dvd. If this works then enlarge, if not, there's room to debug.
Title: Re: How to build 22.x code base ?
Post by: franco on December 01, 2021, 02:46:55 pm
My guess is that pkg 1.17 installed in your build system breaks this. You can see the failing command with VERBOSE=yes and I suspect that pkg-repo looks for *.pkg files but we still have *.txz files.

Not a lot of care was taken by the FreeBSD ecosystem to keep the established system running with anything but cutting edge tools that do produce backwards compatible output, but that's obviously not our worry here since we can't get to that state where it produces anything. ;)


Cheers,
Franco
Title: Re: How to build 22.x code base ?
Post by: efetropy on December 02, 2021, 01:43:35 am
[...]
pkg: No package files have been found
Cannot create repository catalogue
*** Error code 1

Stop.
[...]

I am using a similar setup but cross compiling for aarch64 on a FreeBSD 13 host. Ran into the same issue twice.

My guess is that pkg 1.17 installed in your build system breaks this. You can see the failing command with VERBOSE=yes and I suspect that pkg-repo looks for *.pkg files but we still have *.txz files.


That's good to know. In that case, maybe pkg 1.16.3 is worth a try. I will give it a shot and am hoping for a successful build this time  ::)

BR,
efe

UPDATE: Franco's guess turned out to be the case here. In fact, the newer pkg version breaks the build. Using 1.16.3 worked out for me. Although some packages were not built (some of them require go as build dependency and we are not building go for arm, arm64 as per aux.conf). Will have a look later and see if I can build them separately.

Code: [Select]
[7/9] Deleting files for pkg-1.16.3: 100%
[8/9] Deinstalling pkgconf-1.8.0,1...
[8/9] Deleting files for pkgconf-1.8.0,1: 100%
[9/9] Deinstalling png-1.6.37_1...
[9/9] Deleting files for png-1.6.37_1: 100%
Creating repository in /usr/obj/usr/tools/config/22.1/OpenSSL:aarch64/.pkg-new/: 100%
Packing files for repository: 100%
>>> Running build step: clean
>>> Passing arguments: packages
>>> Removing packages set
>>> Creating package mirror set for 21.7.6_87-OpenSSL-aarch64... done
-rw-r--r--  1 root  wheel   338M Dec  2 12:32 packages-21.7.6_87-OpenSSL-aarch64.tar
>>> ERROR: The build encountered fatal issues!
>>> Aborted version 2.0.45 for dns/dnscrypt-proxy2
>>> Aborted version 1.31.0_1 for net-mgmt/netdata
>>> Aborted version 1.20.4 for net-mgmt/telegraf
>>> Aborted version 196.04 for net/realtek-re-kmod
>>> Aborted version 4.36.2 for net/v2ray
>>> Aborted version 2,1 for net/wireguard
>>> Aborted version 0.0.20211016,1 for net/wireguard-go
>>> Aborted version 0.0.20211105 for net/wireguard-kmod
>>> Aborted version 1.8.2 for security/vault
>>> Aborted version 4.1.1 for security/yara
>>> Aborted version 4.7.0 for sysutils/ansible@py38
>>> Aborted version 7.15.2 for sysutils/beats7
>>> Aborted version 1.10.3 for sysutils/consul
>>> Aborted version 1.2.2 for sysutils/node_exporter
*** Error code 1

Stop.
make: stopped in /usr/tools

UPDATE 2: Looks like cross compiling go doesn't work. Will try to build the remaining packages natively on the device
Title: Re: How to build 22.x code base ?
Post by: rackg on December 05, 2021, 05:53:54 am
I would try a fresh install, disable LibreSSL, dont touch anything else (like additional ports etc.) and start with make dvd. If this works then enlarge, if not, there's room to debug.

I think issue is not related to options/ports its mostly infra related to package issue. I had tried couple of time a fresh build nothing helped.
Title: Re: How to build 22.x code base ?
Post by: rackg on December 05, 2021, 05:56:31 am
My guess is that pkg 1.17 installed in your build system breaks this. You can see the failing command with VERBOSE=yes and I suspect that pkg-repo looks for *.pkg files but we still have *.txz files.

Not a lot of care was taken by the FreeBSD ecosystem to keep the established system running with anything but cutting edge tools that do produce backwards compatible output, but that's obviously not our worry here since we can't get to that state where it produces anything. ;)


Cheers,
Franco

You have a valid analysis. I have two machines  12-Release and 13.0 both had same issue since they are on pkg 1.7 version. Let me downgrade to older version and let you know.
Title: Re: How to build 22.x code base ?
Post by: mimugmail on December 05, 2021, 07:04:55 am
There is already a confirmation with similar problem where downgrade helped
Title: Re: How to build 22.x code base ?
Post by: rackg on December 05, 2021, 08:02:27 am
There is already a confirmation with similar problem where downgrade helped
I have to verify the same. I just uninstalled the pkg version 1.17. Compiled and installed the following pkg version from ports of git version.

root@limestone:/usr/ports/ports-mgmt/pkg # cat distinfo
TIMESTAMP = 1613671680
SHA256 (freebsd-pkg-1.16.3_GH0.tar.gz) = db4bba12ba56521b21b01ac2e404a57ff12f631a4fb3363316f98fc1f189e883
SIZE (freebsd-pkg-1.16.3_GH0.tar.gz) = 3834224
root@limestone:/usr/ports/ports-mgmt/pkg #
root@limestone:/usr/ports/ports-mgmt/pkg # pkg -v
1.16.3
root@limestone:/usr/ports/ports-mgmt/pkg #
Title: Re: How to build 22.x code base ?
Post by: rackg on December 06, 2021, 02:49:02 am
Dear Franco,

Thank you so much.. I could finally find the packages ../sets/packages-21.7.6_93-OpenSSL-amd64.tar. My build now continues on FBD13. Hopefully i should get my build soon. :D
Title: Re: How to build 22.x code base ?
Post by: rackg on December 06, 2021, 02:50:40 am
Some more logs strange behavior w.r.t file system space.

root@limestone:/usr/tools # mount
/dev/gpt/rootfs on / (ufs, local, soft-updates)
devfs on /dev (devfs)
/dev/gpt/efiesp on /boot/efi (msdosfs, local)
<below>:/usr/ports on /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/ports (unionfs, local, soft-updates)
<below>:/usr/src on /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/src (unionfs, local, soft-updates)
devfs on /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/dev (devfs)
<below>:/usr/ports on /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/ports (unionfs, local, soft-updates)
<below>:/usr/src on /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/src (unionfs, local, soft-updates)
devfs on /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/dev (devfs)
root@limestone:/usr/tools #
root@limestone:/usr/tools #
root@limestone:/usr/tools #
root@limestone:/usr/tools # df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
/dev/gpt/rootfs        76G     48G     22G    69%    /
devfs                 1.0K    1.0K      0B   100%    /dev
/dev/gpt/efiesp        32M    878K     31M     3%    /boot/efi
<below>:/usr/ports    153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/ports
<below>:/usr/src      153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/usr/src
devfs                 1.0K    1.0K      0B   100%    /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/dev
<below>:/usr/ports    153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/ports
<below>:/usr/src      153G    125G     22G    85%    /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/usr/src
devfs                 1.0K    1.0K      0B   100%    /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/dev
root@limestone:/usr/tools #

Franco i could still find the /: write failed, filesystem is full, Is this related to EFI and can be ignored safely ?
Title: Re: How to build 22.x code base ?
Post by: franco on December 06, 2021, 08:55:51 am
Depends on the image build method. dvd should have this error, serial/vga should not.


Cheers,
Franco
Title: Re: How to build 22.x code base ?
Post by: rackg on December 07, 2021, 03:26:42 pm
I could get the image using make dvd, however nightly build failed as follows. Kindly let me know if this error is known issue/

logs:

root@limestone:/usr/local/opnsense/build/22.1/amd64/logs/latest # cat 09-ports-LibreSSL.log.err
>>> Stage ports-LibreSSL was aborted due to an error, last 400 lines as follows:
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd13.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for cc option to accept ISO C99... none needed
checking whether __clang__ is declared... yes
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking pkg-config is at least version 0.9.0... yes
checking if cc supports -Werror=unknown-warning-option... yes
checking if cc supports -Werror=unused-command-line-argument... yes
checking if cc supports -Wall... yes
checking if cc supports -Wpointer-arith... yes
checking if cc supports -Wmissing-declarations... yes
checking if cc supports -Wformat=2... yes
checking if cc supports -Wstrict-prototypes... yes
checking if cc supports -Wmissing-prototypes... yes
checking if cc supports -Wnested-externs... yes
checking if cc supports -Wbad-function-cast... yes
checking if cc supports -Wold-style-definition... yes
checking if cc supports -Wdeclaration-after-statement... yes
checking if cc supports -Wunused... yes
checking if cc supports -Wuninitialized... yes
checking if cc supports -Wshadow... yes
checking if cc supports -Wmissing-noreturn... yes
checking if cc supports -Wmissing-format-attribute... yes
checking if cc supports -Wredundant-decls... yes
checking if cc supports -Wlogical-op... no
checking if cc supports -Werror=implicit... yes
checking if cc supports -Werror=nonnull... yes
checking if cc supports -Werror=init-self... yes
checking if cc supports -Werror=main... yes
checking if cc supports -Werror=missing-braces... yes
checking if cc supports -Werror=sequence-point... yes
checking if cc supports -Werror=return-type... yes
checking if cc supports -Werror=trigraphs... yes
checking if cc supports -Werror=array-bounds... yes
checking if cc supports -Werror=write-strings... yes
checking if cc supports -Werror=address... yes
checking if cc supports -Werror=int-to-pointer-cast... yes
checking if cc supports -Werror=pointer-to-int-cast... yes
checking if cc supports -pedantic... yes
checking if cc supports -Werror... yes
checking if cc supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking for root directory for font files... ${datarootdir}/fonts/X11
checking for directory for encodings files... /usr/local/share/fonts/encodings
checking for zlib.h... (cached) yes
checking for gzclose in -lz... yes
checking for FONTENC... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating fontenc.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --enable-malloc0returnsnull
[20211206195952] ===> Building for libfontenc-1.1.4
--- all ---
/usr/bin/make  all-recursive
--- all-recursive ---
Making all in src
--- encparse.lo ---
--- fontenc.lo ---
--- encparse.lo ---
/bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\"   -I/usr/local/include  -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT encparse.lo -MD -MP -MF .deps/encparse.Tpo -c -o encparse.lo encparse.c
--- fontenc.lo ---
/bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\"   -I/usr/local/include  -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT fontenc.lo -MD -MP -MF .deps/fontenc.Tpo -c -o fontenc.lo fontenc.c
--- encparse.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT encparse.lo -MD -MP -MF .deps/encparse.Tpo -c encparse.c  -fPIC -DPIC -o .libs/encparse.o
--- fontenc.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT fontenc.lo -MD -MP -MF .deps/fontenc.Tpo -c fontenc.c  -fPIC -DPIC -o .libs/fontenc.o
--- encparse.lo ---
encparse.c:903:30: warning: format string is not a string literal [-Wformat-nonliteral]
        count = fscanf(file, format, encoding_name, file_name);
                             ^~~~~~
--- fontenc.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT fontenc.lo -MD -MP -MF .deps/fontenc.Tpo -c fontenc.c -o fontenc.o >/dev/null 2>&1
--- encparse.lo ---
1 warning generated.
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT encparse.lo -MD -MP -MF .deps/encparse.Tpo -c encparse.c -o encparse.o >/dev/null 2>&1
--- fontenc.lo ---
mv -f .deps/fontenc.Tpo .deps/fontenc.Plo
--- encparse.lo ---
mv -f .deps/encparse.Tpo .deps/encparse.Plo
--- libfontenc.la ---
/bin/sh ../libtool  --tag=CC    --mode=link cc -I/usr/local/include  -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing  -version-number 1:0:0 -no-undefined -fstack-protector-strong -o libfontenc.la -rpath /usr/local/lib encparse.lo fontenc.lo  -lz
libtool: link: cc -shared  -fPIC -DPIC  .libs/encparse.o .libs/fontenc.o   -lz  -O2 -fstack-protector-strong -fstack-protector-strong   -Wl,-soname -Wl,libfontenc.so.1 -o .libs/libfontenc.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libfontenc.so.1" && ln -s "libfontenc.so.1.0.0" "libfontenc.so.1")
libtool: link: (cd ".libs" && rm -f "libfontenc.so" && ln -s "libfontenc.so.1.0.0" "libfontenc.so")
libtool: link: ar cru .libs/libfontenc.a  encparse.o fontenc.o
libtool: link: ranlib .libs/libfontenc.a
libtool: link: ( cd ".libs" && rm -f "libfontenc.la" && ln -s "../libfontenc.la" "libfontenc.la" )
[20211206195953] ===> Staging for libfontenc-1.1.4
[20211206195953] ===> Generating temporary packing list
Making install in src
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libfontenc.la '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libfontenc.so.1.0.0 /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.so.1.0.0
libtool: install: (cd /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib && { ln -s -f libfontenc.so.1.0.0 libfontenc.so.1 || { rm -f libfontenc.so.1 && ln -s libfontenc.so.1.0.0 libfontenc.so.1; }; })
libtool: install: (cd /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib && { ln -s -f libfontenc.so.1.0.0 libfontenc.so || { rm -f libfontenc.so && ln -s libfontenc.so.1.0.0 libfontenc.so; }; })
libtool: install: /usr/bin/install -c .libs/libfontenc.lai /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.la
libtool: install: /usr/bin/install -c .libs/libfontenc.a /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.a
libtool: install: chmod 644 /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.a
libtool: install: ranlib /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.a
libtool: warning: remember to run 'libtool --finish /usr/local/lib'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/include/X11/fonts'
 install  -m 0644 ../include/X11/fonts/fontenc.h '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/include/X11/fonts'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/libdata/pkgconfig'
 install  -m 0644 fontenc.pc '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/libdata/pkgconfig'
[20211206195953] ====> Compressing man pages (compress-man)
[20211206195953] ===> Installing for libfontenc-1.1.4
[20211206195953] ===> Checking if libfontenc is already installed
[20211206195953] ===> Registering installation for libfontenc-1.1.4 as automatic
Installing libfontenc-1.1.4...
===>   mkfontscale-1.2.1 depends on file: /usr/local/libdata/pkgconfig/fontenc.pc - found
===>   Returning to build of mkfontscale-1.2.1
===>   mkfontscale-1.2.1 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so)
[20211206195953] ===> Configuring for mkfontscale-1.2.1
configure: loading site script /usr/ports/Templates/config.site
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for minix/config.h... (cached) no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of cc... gcc3
checking for cc option to accept ISO C99... none needed
checking whether __clang__ is declared... yes
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking pkg-config is at least version 0.9.0... yes
checking build system type... amd64-portbld-freebsd13.0
checking host system type... amd64-portbld-freebsd13.0
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking if cc supports -Werror=unknown-warning-option... yes
checking if cc supports -Werror=unused-command-line-argument... yes
checking if cc supports -Wall... yes
checking if cc supports -Wpointer-arith... yes
checking if cc supports -Wmissing-declarations... yes
checking if cc supports -Wformat=2... yes
checking if cc supports -Wstrict-prototypes... yes
checking if cc supports -Wmissing-prototypes... yes
checking if cc supports -Wnested-externs... yes
checking if cc supports -Wbad-function-cast... yes
checking if cc supports -Wold-style-definition... yes
checking if cc supports -Wdeclaration-after-statement... yes
checking if cc supports -Wunused... yes
checking if cc supports -Wuninitialized... yes
checking if cc supports -Wshadow... yes
checking if cc supports -Wmissing-noreturn... yes
checking if cc supports -Wmissing-format-attribute... yes
checking if cc supports -Wredundant-decls... yes
checking if cc supports -Wlogical-op... no
checking if cc supports -Werror=implicit... yes
checking if cc supports -Werror=nonnull... yes
checking if cc supports -Werror=init-self... yes
checking if cc supports -Werror=main... yes
checking if cc supports -Werror=missing-braces... yes
checking if cc supports -Werror=sequence-point... yes
checking if cc supports -Werror=return-type... yes
checking if cc supports -Werror=trigraphs... yes
checking if cc supports -Werror=array-bounds... yes
checking if cc supports -Werror=write-strings... yes
checking if cc supports -Werror=address... yes
checking if cc supports -Werror=int-to-pointer-cast... yes
checking if cc supports -Werror=pointer-to-int-cast... yes
checking if cc supports -pedantic... yes
checking if cc supports -Werror... yes
checking if cc supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking for gzopen in -lz... yes
checking for vasprintf... (cached) yes
checking for MKFONTSCALE... yes
checking for X11... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[20211206195955] ===> Building for mkfontscale-1.2.1
--- all ---
/usr/bin/make  all-recursive
--- all-recursive ---
Making all in man
--- mkfontdir.1 ---
--- mkfontscale.1 ---
--- mkfontdir.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|'       -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|'      -e 's|__xservername__|Xorg|g'        -e 's|__xconfigfile__|xorg.conf|g'      -e 's|__projectroot__|/usr/local|g'     -e 's|__apploaddir__||g'        -e 's|__appmansuffix__|1|g'  -e 's|__drivermansuffix__|4|g'  -e 's|__adminmansuffix__|8|g'   -e 's|__libmansuffix__|3|g'     -e 's|__miscmansuffix__|7|g'    -e 's|__filemansuffix__|5|g' < mkfontdir.man > mkfontdir.1
--- mkfontscale.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|'       -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|'      -e 's|__xservername__|Xorg|g'        -e 's|__xconfigfile__|xorg.conf|g'      -e 's|__projectroot__|/usr/local|g'     -e 's|__apploaddir__||g'        -e 's|__appmansuffix__|1|g'  -e 's|__drivermansuffix__|4|g'  -e 's|__adminmansuffix__|8|g'   -e 's|__libmansuffix__|3|g'     -e 's|__miscmansuffix__|7|g'    -e 's|__filemansuffix__|5|g' < mkfontscale.man > mkfontscale.1
--- constlist.o ---
--- hash.o ---
--- ident.o ---
--- list.o ---
--- constlist.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT constlist.o -MD -MP -MF .deps/constlist.Tpo -c -o constlist.o constlist.c
--- hash.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.c
--- ident.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT ident.o -MD -MP -MF .deps/ident.Tpo -c -o ident.o ident.c
--- list.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT list.o -MD -MP -MF .deps/list.Tpo -c -o list.o list.c
--- constlist.o ---
mv -f .deps/constlist.Tpo .deps/constlist.Po
--- mkfontscale.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT mkfontscale.o -MD -MP -MF .deps/mkfontscale.Tpo -c -o mkfontscale.o mkfontscale.c
--- hash.o ---
mv -f .deps/hash.Tpo .deps/hash.Po
--- mkfontdir ---
/usr/bin/sed -e 's|@bindir
--- mkfontscale.o ---
mkfontscale.c:779:66: warning: declaration shadows a variable in the global scope [-Wshadow]
doDirectory(const char *dirname_given, int numEncodings, ListPtr encodingsToDo)
                                                                 ^
mkfontscale.c:115:16: note: previous declaration is here
static ListPtr encodingsToDo;
               ^
--- list.o ---
mv -f .deps/list.Tpo .deps/list.Po
--- mkfontscale.o ---
mkfontscale.c:1293:23: warning: declaration shadows a variable in the global scope [-Wshadow]
readEncodings(ListPtr encodings, char *dirname)
                      ^
mkfontscale.c:92:21: note: previous declaration is here
static ConstListPtr encodings, extra_encodings;
                    ^
--- ident.o ---
mv -f .deps/ident.Tpo .deps/ident.Po
--- mkfontscale.o ---
2 warnings generated.
mv -f .deps/mkfontscale.Tpo .deps/mkfontscale.Po
--- mkfontscale ---
cc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fstack-protector-strong -o mkfontscale constlist.o hash.o  ident.o list.o mkfontscale.o -L/usr/local/lib -lfontenc -lfreetype -lz
[20211206195955] ===> Staging for mkfontscale-1.2.1
===>   mkfontscale-1.2.1 depends on file: /usr/local/libdata/pkgconfig/fontenc.pc - found
[20211206195955] ===> Generating temporary packing list
Making install in man
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 install  -m 0644 mkfontdir.1 mkfontscale.1 '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
  install  -s -m 555 mkfontscale '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 install  -m 555 mkfontdir '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
[20211206195955] ====> Compressing man pages (compress-man)
[20211206195955] ===> Installing for mkfontscale-1.2.1
[20211206195955] ===> Checking if mkfontscale is already installed
[20211206195955] ===> Registering installation for mkfontscale-1.2.1 as automatic
Installing mkfontscale-1.2.1...
===>   urwfonts-1.0_8 depends on executable: mkfontscale - found
===>   Returning to build of urwfonts-1.0_8
[20211206195955] ===> Generating temporary packing list
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/Fontmap /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.pfb /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.afm /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.pfm /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
[20211206195955] ====> Compressing man pages (compress-man)
[20211206195955] ===> Installing for urwfonts-1.0_8
[20211206195955] ===> Checking if urwfonts is already installed
[20211206195955] ===> Registering installation for urwfonts-1.0_8
Installing urwfonts-1.0_8...
You'll have to add /usr/local/share/fonts/urwfonts
to your X font path by either:

$ xset fp+ /usr/local/share/fonts/urwfonts
$ xset fp rehash

or by adding it to your X-server configuration file (usually
/etc/X11/xorg.conf) and restarting the X-server.

Creating package for expat-2.4.1
expat-2.4.1 already packaged, skipping...
Creating package for fontconfig-2.13.94_1,1
fontconfig-2.13.94_1,1 already packaged, skipping...
Creating package for freetype2-2.11.0
freetype2-2.11.0 already packaged, skipping...
Creating package for libfontenc-1.1.4
Creating package for mkfontscale-1.2.1
Creating package for pkg-1.16.3
pkg-1.16.3 already packaged, skipping...
Creating package for pkgconf-1.8.0,1
pkgconf-1.8.0,1 already packaged, skipping...
Creating package for png-1.6.37_1
png-1.6.37_1 already packaged, skipping...
Creating package for urwfonts-1.0_8
Creating package for xorg-macros-1.19.3
xorg-macros-1.19.3 already packaged, skipping...
Creating package for xorgproto-2021.5
xorgproto-2021.5 already packaged, skipping...
>>> Locking package dependency: pkgconf
>>> Locking package dependency: pkg
>>> Locking package dependency: urwfonts
Updating database digests format: .......... done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages:

Installed packages to be REMOVED:
        xorg-macros: 1.19.3
        xorgproto: 2021.5

Number of packages to be removed: 2

The operation will free 1 MiB.
[1/2] Deinstalling xorg-macros-1.19.3...
[1/2] Deleting files for xorg-macros-1.19.3: ...... done
[2/2] Deinstalling xorgproto-2021.5...
[2/2] Deleting files for xorgproto-2021.5: .......... done
>>> Saving runtime package: libfontenc
>>> Saving runtime package: mkfontscale
>>> Saving runtime package: urwfonts
[20211206200000] ===> Cleaning for mkfontscale-1.2.1
[20211206200000] ===> Cleaning for libfontenc-1.1.4
[20211206200000] ===> Cleaning for urwfonts-1.0_8
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 9 packages:

Installed packages to be REMOVED:
        expat: 2.4.1
        fontconfig: 2.13.94_1,1
        freetype2: 2.11.0
        libfontenc: 1.1.4
        mkfontscale: 1.2.1
        pkg: 1.16.3
        pkgconf: 1.8.0,1
        png: 1.6.37_1
        urwfonts: 1.0_8

Number of packages to be removed: 9

The operation will free 21 MiB.
[1/9] Deinstalling urwfonts-1.0_8...
[1/9] Deleting files for urwfonts-1.0_8: .......... done
[2/9] Deinstalling fontconfig-2.13.94_1,1...
[2/9] Deleting files for fontconfig-2.13.94_1,1: .......... done
[3/9] Deinstalling mkfontscale-1.2.1...
[3/9] Deleting files for mkfontscale-1.2.1: ....... done
[4/9] Deinstalling freetype2-2.11.0...
[4/9] Deleting files for freetype2-2.11.0: .......... done
[5/9] Deinstalling expat-2.4.1...
[5/9] Deleting files for expat-2.4.1: .......... done
[6/9] Deinstalling libfontenc-1.1.4...
[6/9] Deleting files for libfontenc-1.1.4: ......... done
[7/9] Deinstalling pkg-1.16.3...
[7/9] Deleting files for pkg-1.16.3: .......... done
[8/9] Deinstalling pkgconf-1.8.0,1...
[8/9] Deleting files for pkgconf-1.8.0,1: .......... done
[9/9] Deinstalling png-1.6.37_1...
[9/9] Deleting files for png-1.6.37_1: .......... done
Creating repository in /usr/obj/usr/tools/config/22.1/LibreSSL:amd64/.pkg-new/: .......... done
Packing files for repository: .... done
>>> Running build step: clean
>>> Passing arguments: packages
>>> Removing packages set
>>> Creating package mirror set for 21.7.6_95-LibreSSL-amd64... done
-rw-r--r--  1 root  wheel   784M Dec  7 01:30 packages-21.7.6_95-LibreSSL-amd64.tar
>>> ERROR: The build encountered fatal issues!
>>> Aborted version 11.1_1 for devel/gdb
>>> Aborted version 9.16.23 for dns/bind916
>>> Aborted version 2.7_1 for mail/rspamd
*** Error code 1

Stop.
make[1]: stopped in /usr/tools
    52335.70 real     49114.27 user      7144.14 sys
root@limestone:/usr/local/opnsense/build/22.1/amd64/logs/latest #


Title: Re: How to build 22.x code base ?
Post by: rackg on December 07, 2021, 03:27:30 pm
Logs for OpenSSL error:

root@limestone:/usr/local/opnsense/build/22.1/amd64/logs/latest # cat 09-ports-OpenSSL.log.err
>>> Stage ports-OpenSSL was aborted due to an error, last 400 lines as follows:
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd13.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for cc option to accept ISO C99... none needed
checking whether __clang__ is declared... yes
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking pkg-config is at least version 0.9.0... yes
checking if cc supports -Werror=unknown-warning-option... yes
checking if cc supports -Werror=unused-command-line-argument... yes
checking if cc supports -Wall... yes
checking if cc supports -Wpointer-arith... yes
checking if cc supports -Wmissing-declarations... yes
checking if cc supports -Wformat=2... yes
checking if cc supports -Wstrict-prototypes... yes
checking if cc supports -Wmissing-prototypes... yes
checking if cc supports -Wnested-externs... yes
checking if cc supports -Wbad-function-cast... yes
checking if cc supports -Wold-style-definition... yes
checking if cc supports -Wdeclaration-after-statement... yes
checking if cc supports -Wunused... yes
checking if cc supports -Wuninitialized... yes
checking if cc supports -Wshadow... yes
checking if cc supports -Wmissing-noreturn... yes
checking if cc supports -Wmissing-format-attribute... yes
checking if cc supports -Wredundant-decls... yes
checking if cc supports -Wlogical-op... no
checking if cc supports -Werror=implicit... yes
checking if cc supports -Werror=nonnull... yes
checking if cc supports -Werror=init-self... yes
checking if cc supports -Werror=main... yes
checking if cc supports -Werror=missing-braces... yes
checking if cc supports -Werror=sequence-point... yes
checking if cc supports -Werror=return-type... yes
checking if cc supports -Werror=trigraphs... yes
checking if cc supports -Werror=array-bounds... yes
checking if cc supports -Werror=write-strings... yes
checking if cc supports -Werror=address... yes
checking if cc supports -Werror=int-to-pointer-cast... yes
checking if cc supports -Werror=pointer-to-int-cast... yes
checking if cc supports -pedantic... yes
checking if cc supports -Werror... yes
checking if cc supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking for root directory for font files... ${datarootdir}/fonts/X11
checking for directory for encodings files... /usr/local/share/fonts/encodings
checking for zlib.h... (cached) yes
checking for gzclose in -lz... yes
checking for FONTENC... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating fontenc.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --enable-malloc0returnsnull
[20211206190203] ===> Building for libfontenc-1.1.4
--- all ---
/usr/bin/make  all-recursive
--- all-recursive ---
Making all in src
--- encparse.lo ---
--- fontenc.lo ---
--- encparse.lo ---
/bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\"   -I/usr/local/include  -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT encparse.lo -MD -MP -MF .deps/encparse.Tpo -c -o encparse.lo encparse.c
--- fontenc.lo ---
/bin/sh ../libtool  --tag=CC    --mode=compile cc -DHAVE_CONFIG_H  -I. -I..  -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\"   -I/usr/local/include  -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT fontenc.lo -MD -MP -MF .deps/fontenc.Tpo -c -o fontenc.lo fontenc.c
--- encparse.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT encparse.lo -MD -MP -MF .deps/encparse.Tpo -c encparse.c  -fPIC -DPIC -o .libs/encparse.o
--- fontenc.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT fontenc.lo -MD -MP -MF .deps/fontenc.Tpo -c fontenc.c  -fPIC -DPIC -o .libs/fontenc.o
--- encparse.lo ---
encparse.c:903:30: warning: format string is not a string literal [-Wformat-nonliteral]
        count = fscanf(file, format, encoding_name, file_name);
                             ^~~~~~
--- fontenc.lo ---
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT fontenc.lo -MD -MP -MF .deps/fontenc.Tpo -c fontenc.c -o fontenc.o >/dev/null 2>&1
--- encparse.lo ---
1 warning generated.
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../include -DFONT_ENCODINGS_DIRECTORY=\"/usr/local/share/fonts/encodings/encodings.dir\" -I/usr/local/include -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing -MT encparse.lo -MD -MP -MF .deps/encparse.Tpo -c encparse.c -o encparse.o >/dev/null 2>&1
--- fontenc.lo ---
mv -f .deps/fontenc.Tpo .deps/fontenc.Plo
--- encparse.lo ---
mv -f .deps/encparse.Tpo .deps/encparse.Plo
--- libfontenc.la ---
/bin/sh ../libtool  --tag=CC    --mode=link cc -I/usr/local/include  -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -Werror=uninitialized -fstack-protector-strong -fno-strict-aliasing  -version-number 1:0:0 -no-undefined -fstack-protector-strong -o libfontenc.la -rpath /usr/local/lib encparse.lo fontenc.lo  -lz
libtool: link: cc -shared  -fPIC -DPIC  .libs/encparse.o .libs/fontenc.o   -lz  -O2 -fstack-protector-strong -fstack-protector-strong   -Wl,-soname -Wl,libfontenc.so.1 -o .libs/libfontenc.so.1.0.0
libtool: link: (cd ".libs" && rm -f "libfontenc.so.1" && ln -s "libfontenc.so.1.0.0" "libfontenc.so.1")
libtool: link: (cd ".libs" && rm -f "libfontenc.so" && ln -s "libfontenc.so.1.0.0" "libfontenc.so")
libtool: link: ar cru .libs/libfontenc.a  encparse.o fontenc.o
libtool: link: ranlib .libs/libfontenc.a
libtool: link: ( cd ".libs" && rm -f "libfontenc.la" && ln -s "../libfontenc.la" "libfontenc.la" )
[20211206190203] ===> Staging for libfontenc-1.1.4
[20211206190203] ===> Generating temporary packing list
Making install in src
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libfontenc.la '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libfontenc.so.1.0.0 /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.so.1.0.0
libtool: install: (cd /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib && { ln -s -f libfontenc.so.1.0.0 libfontenc.so.1 || { rm -f libfontenc.so.1 && ln -s libfontenc.so.1.0.0 libfontenc.so.1; }; })
libtool: install: (cd /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib && { ln -s -f libfontenc.so.1.0.0 libfontenc.so || { rm -f libfontenc.so && ln -s libfontenc.so.1.0.0 libfontenc.so; }; })
libtool: install: /usr/bin/install -c .libs/libfontenc.lai /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.la
libtool: install: /usr/bin/install -c .libs/libfontenc.a /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.a
libtool: install: chmod 644 /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.a
libtool: install: ranlib /usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/lib/libfontenc.a
libtool: warning: remember to run 'libtool --finish /usr/local/lib'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/include/X11/fonts'
 install  -m 0644 ../include/X11/fonts/fontenc.h '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/include/X11/fonts'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/libdata/pkgconfig'
 install  -m 0644 fontenc.pc '/usr/obj/usr/ports/x11-fonts/libfontenc/work/stage/usr/local/libdata/pkgconfig'
[20211206190203] ====> Compressing man pages (compress-man)
[20211206190203] ===> Installing for libfontenc-1.1.4
[20211206190203] ===> Checking if libfontenc is already installed
[20211206190203] ===> Registering installation for libfontenc-1.1.4 as automatic
Installing libfontenc-1.1.4...
===>   mkfontscale-1.2.1 depends on file: /usr/local/libdata/pkgconfig/fontenc.pc - found
===>   Returning to build of mkfontscale-1.2.1
===>   mkfontscale-1.2.1 depends on shared library: libfreetype.so - found (/usr/local/lib/libfreetype.so)
[20211206190204] ===> Configuring for mkfontscale-1.2.1
configure: loading site script /usr/ports/Templates/config.site
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for minix/config.h... (cached) no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of cc... gcc3
checking for cc option to accept ISO C99... none needed
checking whether __clang__ is declared... yes
checking whether __INTEL_COMPILER is declared... no
checking whether __SUNPRO_C is declared... no
checking pkg-config is at least version 0.9.0... yes
checking build system type... amd64-portbld-freebsd13.0
checking host system type... amd64-portbld-freebsd13.0
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking if cc supports -Werror=unknown-warning-option... yes
checking if cc supports -Werror=unused-command-line-argument... yes
checking if cc supports -Wall... yes
checking if cc supports -Wpointer-arith... yes
checking if cc supports -Wmissing-declarations... yes
checking if cc supports -Wformat=2... yes
checking if cc supports -Wstrict-prototypes... yes
checking if cc supports -Wmissing-prototypes... yes
checking if cc supports -Wnested-externs... yes
checking if cc supports -Wbad-function-cast... yes
checking if cc supports -Wold-style-definition... yes
checking if cc supports -Wdeclaration-after-statement... yes
checking if cc supports -Wunused... yes
checking if cc supports -Wuninitialized... yes
checking if cc supports -Wshadow... yes
checking if cc supports -Wmissing-noreturn... yes
checking if cc supports -Wmissing-format-attribute... yes
checking if cc supports -Wredundant-decls... yes
checking if cc supports -Wlogical-op... no
checking if cc supports -Werror=implicit... yes
checking if cc supports -Werror=nonnull... yes
checking if cc supports -Werror=init-self... yes
checking if cc supports -Werror=main... yes
checking if cc supports -Werror=missing-braces... yes
checking if cc supports -Werror=sequence-point... yes
checking if cc supports -Werror=return-type... yes
checking if cc supports -Werror=trigraphs... yes
checking if cc supports -Werror=array-bounds... yes
checking if cc supports -Werror=write-strings... yes
checking if cc supports -Werror=address... yes
checking if cc supports -Werror=int-to-pointer-cast... yes
checking if cc supports -Werror=pointer-to-int-cast... yes
checking if cc supports -pedantic... yes
checking if cc supports -Werror... yes
checking if cc supports -Werror=attributes... yes
checking whether make supports nested variables... (cached) yes
checking for gzopen in -lz... yes
checking for vasprintf... (cached) yes
checking for MKFONTSCALE... yes
checking for X11... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[20211206190206] ===> Building for mkfontscale-1.2.1
--- all ---
/usr/bin/make  all-recursive
--- all-recursive ---
Making all in man
--- mkfontdir.1 ---
--- mkfontscale.1 ---
--- mkfontdir.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|'       -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|'      -e 's|__xservername__|Xorg|g'        -e 's|__xconfigfile__|xorg.conf|g'      -e 's|__projectroot__|/usr/local|g'     -e 's|__apploaddir__||g'        -e 's|__appmansuffix__|1|g'  -e 's|__drivermansuffix__|4|g'  -e 's|__adminmansuffix__|8|g'   -e 's|__libmansuffix__|3|g'     -e 's|__miscmansuffix__|7|g'    -e 's|__filemansuffix__|5|g' < mkfontdir.man > mkfontdir.1
--- mkfontscale.1 ---
/usr/bin/sed -e 's|__vendorversion__|"mkfontscale 1.2.1" "X Version 11"|'       -e 's|__xorgversion__|"mkfontscale 1.2.1" "X Version 11"|'      -e 's|__xservername__|Xorg|g'        -e 's|__xconfigfile__|xorg.conf|g'      -e 's|__projectroot__|/usr/local|g'     -e 's|__apploaddir__||g'        -e 's|__appmansuffix__|1|g'  -e 's|__drivermansuffix__|4|g'  -e 's|__adminmansuffix__|8|g'   -e 's|__libmansuffix__|3|g'     -e 's|__miscmansuffix__|7|g'    -e 's|__filemansuffix__|5|g' < mkfontscale.man > mkfontscale.1
--- constlist.o ---
--- hash.o ---
--- ident.o ---
--- list.o ---
--- constlist.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT constlist.o -MD -MP -MF .deps/constlist.Tpo -c -o constlist.o constlist.c
--- hash.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT hash.o -MD -MP -MF .deps/hash.Tpo -c -o hash.o hash.c
--- ident.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT ident.o -MD -MP -MF .deps/ident.Tpo -c -o ident.o ident.c
--- list.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT list.o -MD -MP -MF .deps/list.Tpo -c -o list.o list.c
--- hash.o ---
mv -f .deps/hash.Tpo .deps/hash.Po
--- list.o ---
mv -f .deps/list.Tpo .deps/list.Po
--- mkfontscale.o ---
cc -DHAVE_CONFIG_H -I.  -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/libpng16  -I/usr/local/include  -D_BSD_SOURCE   -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -MT mkfontscale.o -MD -MP -MF .deps/mkfontscale.Tpo -c -o mkfontscale.o mkfontscale.c
--- constlist.o ---
mv -f .deps/constlist.Tpo .deps/constlist.Po
--- mkfontdir ---
/usr/bin/sed -e 's|@bindir
--- ident.o ---
mv -f .deps/ident.Tpo .deps/ident.Po
--- mkfontscale.o ---
mkfontscale.c:779:66: warning: declaration shadows a variable in the global scope [-Wshadow]
doDirectory(const char *dirname_given, int numEncodings, ListPtr encodingsToDo)
                                                                 ^
mkfontscale.c:115:16: note: previous declaration is here
static ListPtr encodingsToDo;
               ^
mkfontscale.c:1293:23: warning: declaration shadows a variable in the global scope [-Wshadow]
readEncodings(ListPtr encodings, char *dirname)
                      ^
mkfontscale.c:92:21: note: previous declaration is here
static ConstListPtr encodings, extra_encodings;
                    ^
2 warnings generated.
mv -f .deps/mkfontscale.Tpo .deps/mkfontscale.Po
--- mkfontscale ---
cc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fstack-protector-strong -o mkfontscale constlist.o hash.o  ident.o list.o mkfontscale.o -L/usr/local/lib -lfontenc -lfreetype -lz
[20211206190206] ===> Staging for mkfontscale-1.2.1
===>   mkfontscale-1.2.1 depends on file: /usr/local/libdata/pkgconfig/fontenc.pc - found
[20211206190206] ===> Generating temporary packing list
Making install in man
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 install  -m 0644 mkfontdir.1 mkfontscale.1 '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/man/man1'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
  install  -s -m 555 mkfontscale '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 /bin/mkdir -p '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
 install  -m 555 mkfontdir '/usr/obj/usr/ports/x11-fonts/mkfontscale/work/stage/usr/local/bin'
[20211206190206] ====> Compressing man pages (compress-man)
[20211206190206] ===> Installing for mkfontscale-1.2.1
[20211206190206] ===> Checking if mkfontscale is already installed
[20211206190206] ===> Registering installation for mkfontscale-1.2.1 as automatic
Installing mkfontscale-1.2.1...
===>   urwfonts-1.0_8 depends on executable: mkfontscale - found
===>   Returning to build of urwfonts-1.0_8
[20211206190207] ===> Generating temporary packing list
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/Fontmap /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.pfb /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.afm /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
install  -m 0644 /usr/obj/usr/ports/x11-fonts/urwfonts/work/URW/*.pfm /usr/obj/usr/ports/x11-fonts/urwfonts/work/stage/usr/local/share/fonts/urwfonts
[20211206190207] ====> Compressing man pages (compress-man)
[20211206190207] ===> Installing for urwfonts-1.0_8
[20211206190207] ===> Checking if urwfonts is already installed
[20211206190207] ===> Registering installation for urwfonts-1.0_8
Installing urwfonts-1.0_8...
You'll have to add /usr/local/share/fonts/urwfonts
to your X font path by either:

$ xset fp+ /usr/local/share/fonts/urwfonts
$ xset fp rehash

or by adding it to your X-server configuration file (usually
/etc/X11/xorg.conf) and restarting the X-server.

Creating package for expat-2.4.1
expat-2.4.1 already packaged, skipping...
Creating package for fontconfig-2.13.94_1,1
fontconfig-2.13.94_1,1 already packaged, skipping...
Creating package for freetype2-2.11.0
freetype2-2.11.0 already packaged, skipping...
Creating package for libfontenc-1.1.4
Creating package for mkfontscale-1.2.1
Creating package for pkg-1.16.3
pkg-1.16.3 already packaged, skipping...
Creating package for pkgconf-1.8.0,1
pkgconf-1.8.0,1 already packaged, skipping...
Creating package for png-1.6.37_1
png-1.6.37_1 already packaged, skipping...
Creating package for urwfonts-1.0_8
Creating package for xorg-macros-1.19.3
xorg-macros-1.19.3 already packaged, skipping...
Creating package for xorgproto-2021.5
xorgproto-2021.5 already packaged, skipping...
>>> Locking package dependency: pkgconf
>>> Locking package dependency: pkg
>>> Locking package dependency: urwfonts
Updating database digests format: .......... done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages:

Installed packages to be REMOVED:
        xorg-macros: 1.19.3
        xorgproto: 2021.5

Number of packages to be removed: 2

The operation will free 1 MiB.
[1/2] Deinstalling xorg-macros-1.19.3...
[1/2] Deleting files for xorg-macros-1.19.3: ...... done
[2/2] Deinstalling xorgproto-2021.5...
[2/2] Deleting files for xorgproto-2021.5: .......... done
>>> Saving runtime package: libfontenc
>>> Saving runtime package: mkfontscale
>>> Saving runtime package: urwfonts
[20211206190223] ===> Cleaning for mkfontscale-1.2.1
[20211206190224] ===> Cleaning for libfontenc-1.1.4
[20211206190224] ===> Cleaning for urwfonts-1.0_8
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 9 packages:

Installed packages to be REMOVED:
        expat: 2.4.1
        fontconfig: 2.13.94_1,1
        freetype2: 2.11.0
        libfontenc: 1.1.4
        mkfontscale: 1.2.1
        pkg: 1.16.3
        pkgconf: 1.8.0,1
        png: 1.6.37_1
        urwfonts: 1.0_8

Number of packages to be removed: 9

The operation will free 21 MiB.
[1/9] Deinstalling urwfonts-1.0_8...
[1/9] Deleting files for urwfonts-1.0_8: .......... done
[2/9] Deinstalling fontconfig-2.13.94_1,1...
[2/9] Deleting files for fontconfig-2.13.94_1,1: .......... done
[3/9] Deinstalling mkfontscale-1.2.1...
[3/9] Deleting files for mkfontscale-1.2.1: ....... done
[4/9] Deinstalling freetype2-2.11.0...
[4/9] Deleting files for freetype2-2.11.0: .......... done
[5/9] Deinstalling expat-2.4.1...
[5/9] Deleting files for expat-2.4.1: .......... done
[6/9] Deinstalling libfontenc-1.1.4...
[6/9] Deleting files for libfontenc-1.1.4: ......... done
[7/9] Deinstalling pkg-1.16.3...
[7/9] Deleting files for pkg-1.16.3: .......... done
[8/9] Deinstalling pkgconf-1.8.0,1...
[8/9] Deleting files for pkgconf-1.8.0,1: .......... done
[9/9] Deinstalling png-1.6.37_1...
[9/9] Deleting files for png-1.6.37_1: .......... done
Creating repository in /usr/obj/usr/tools/config/22.1/OpenSSL:amd64/.pkg-new/: .......... done
Packing files for repository: .... done
>>> Running build step: clean
>>> Passing arguments: packages
>>> Removing packages set
>>> Creating package mirror set for 21.7.6_95-OpenSSL-amd64... done
-rw-r--r--  1 root  wheel   802M Dec  7 00:32 packages-21.7.6_95-OpenSSL-amd64.tar
>>> ERROR: The build encountered fatal issues!
>>> Aborted version 1.56.0 for lang/rust
*** Error code 1

Stop.
make[1]: stopped in /usr/tools
    48888.92 real     76262.82 user      8795.64 sys
root@limestone:/usr/local/opnsense/build/22.1/amd64/logs/latest #
Title: Re: How to build 22.x code base ?
Post by: franco on December 08, 2021, 09:01:14 am
>>> Aborted version 1.56.0 for lang/rust

I mean what am I supposed to do? On GitHub someone reported vault and beats7 not building, but our nightly build on the latest commits from ports went fine:

https://nightly.opnsense.org/21.7/amd64/logs/202112080005/

This is where you are on your own...


Cheers,
Franco