From nobody Wed Jan 19 01:30:23 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 245421956F35; Wed, 19 Jan 2022 01:30:35 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (1.212.52.36.ap.yournet.ne.jp [36.52.212.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp", Issuer "smtp" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jdp49729cz3PQK; Wed, 19 Jan 2022 01:30:33 +0000 (UTC) (envelope-from kiri@truefc.org) Received: from kx.truefc.org (kx.truefc.org [36.52.212.1]) by kx.truefc.org (8.16.1/8.16.1) with ESMTP id 20J1UNVP058297; Wed, 19 Jan 2022 10:30:23 +0900 (JST) (envelope-from kiri@kx.truefc.org) Message-Id: <202201190130.20J1UNVP058297@kx.truefc.org> Date: Wed, 19 Jan 2022 10:30:23 +0900 From: KIRIYAMA Kazuhiko To: ports@freebsd.org Cc: freebsd-arm@freebsd.org, kiri@truefc.org Subject: Can't build 5 ports in arm64/aarch64 on PBP User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 MULE XEmacs/21.4 (patch 24) (Standard C) (amd64--freebsd) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Jdp49729cz3PQK X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kiri@truefc.org designates 36.52.212.1 as permitted sender) smtp.mailfrom=kiri@truefc.org X-Spamd-Result: default: False [-1.10 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[kiri]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:36.52.212.0/29]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[truefc.org]; NEURAL_SPAM_SHORT(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm,ports]; RCVD_COUNT_ONE(0.00)[1]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:10013, ipnet:36.52.208.0/21, country:JP]; ONCE_RECEIVED(0.10)[] X-ThisMailContainsUnwantedMimeParts: N Hi, lists I've tried to build arm64/aarch64 packages on Pinebook Pro (PBP). 15 ports out of 80 were failed. Besides ports which could not be built in arm64/aarch64 in the first place, 9 ports remained. 4 ports out of the 9 are textproc/smartdoc-devel, print/pdftk, japanese/libreoffice, java/icedtea-web. These could be built by upgrade Jave version from 8 to 12. Eventually, followng 5 ports remained with CANNOT BUILD PORTS : 1) japanese/tgif, graphics/inkscape, japanese/xv These were failed with linker error at graphics/jasper : ld: error: undefined symbol: glutSetWindowTitle >>> referenced by jiv.c >>> src/appl/CMakeFiles/jiv.dir/jiv.c.o:(loadimage) ld: error: undefined symbol: glutTimerFunc >>> referenced by jiv.c >>> src/appl/CMakeFiles/jiv.dir/jiv.c.o:(loadimage) cc: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make[4]: stopped in /var/ports/lpbpkx/graphics/jasper 2) www/firefox Failed at devel/llvm13 : [ 65% 4725/7265] /usr/bin/c++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACR= OS -D__STDC_LIMIT_MACROS -I/var/ports/work/usr/ports/devel/llvm13/work/.bui= ld/tools/flang/lib/Evaluate -I/var/ports/work/usr/ports/devel/llvm13/work/l= lvm-project-13.0.0.src/flang/lib/Evaluate -I/var/ports/work/usr/ports/devel= /llvm13/work/llvm-project-13.0.0.src/flang/include -I/var/ports/work/usr/po= rts/devel/llvm13/work/.build/tools/flang/include -I/var/ports/work/usr/port= s/devel/llvm13/work/.build/include -I/var/ports/work/usr/ports/devel/llvm13= /work/llvm-project-13.0.0.src/llvm/include -isystem /var/ports/work/usr/por= ts/devel/llvm13/work/llvm-project-13.0.0.src/llvm/../mlir/include -isystem = /var/ports/work/usr/ports/devel/llvm13/work/.build/tools/mlir/include -isys= tem /var/ports/work/usr/ports/devel/llvm13/work/.build/tools/clang/include = -isystem /var/ports/work/usr/ports/devel/llvm13/work/llvm-project-13.0.0.sr= c/llvm/../clang/include -O2 -pipe -DNDEBUG -fstack-protector-strong -isyste= m /usr/local/include -fno-strict-aliasing -DNDEBUG -isystem /usr/local/inc= lude -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror= =3Ddate-time -Werror=3Dunguarded-availability-new -Wall -Wextra -Wno-unused= -parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedant= ic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovere= d-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual= -dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdia= gnostics-color -ffunction-sections -fdata-sections -Wno-deprecated-copy -Wn= o-string-conversion -Wno-unused-command-line-argument -Wstring-conversion = -Wcovered-switch-default -Wno-nested-anon-types -O2 -pipe -DNDEBUG= -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing = -DNDEBUG -isystem /usr/local/include -fno-exceptions -std=3Dc++17 -MD -MT= tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/check-expressi= on.cpp.o -MF tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/ch= eck-expression.cpp.o.d -o tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEv= aluate.dir/check-expression.cpp.o -c /var/ports/work/usr/ports/devel/llvm13= /work/llvm-project-13.0.0.src/flang/lib/Evaluate/check-expression.cpp ninja: build stopped: subcommand failed. =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make[3]: stopped in /var/ports/lpbpkx/devel/llvm13 *** Error code 1 Stop. make[2]: stopped in /var/ports/lpbpkx/devel/wasi-libc *** Error code 1 Stop. make[1]: stopped in /var/ports/lpbpkx/devel/wasi-libcxx *** Error code 1 Stop. make: stopped in /usr/ports/www/firefox 3) www/chromium Failed with "'__CPUELT' is invalid in C99" at sysutils/flock : libtool: compile: cc -DHAVE_CONFIG_H -I. -include config.h -I./include -DL= OCALEDIR=3D\"/usr/local/share/locale\" -D_PATH_LOCALSTATEDIR=3D\"/var\" -I/= usr/local/include -fsigned-char -fno-common -Wall -Werror=3Dsequence-point = -Wextra -Wextra-se mi -Wembedded-directive -Wmissing-declarations -Wmissing-prototypes -Wno-mi= ssing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wu= ninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-= parameter -W unused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-p= rototypes -Wformat-security -Wimplicit-function-declaration -O2 -pipe -fsta= ck-protector-strong -fno-strict-aliasing -MT lib/libcommon_la-parse-date.lo= -MD -MP -MF lib/.deps/libcommon_la-parse-date.Tpo -c lib/parse-date.c -o lib/libcommon= _la-parse-date.o >/dev/null 2>&1 mv -f lib/.deps/libcommon_la-parse-date.Tpo lib/.deps/libcommon_la-parse-da= te.Plo /bin/sh ./libtool --tag=3DCC --mode=3Dcompile cc -DHAVE_CONFIG_H -I. -i= nclude config.h -I./include -DLOCALEDIR=3D\"/usr/local/share/locale\" -D= _PATH_LOCALSTATEDIR=3D\"/var\" -I/usr/local/include -fsigned-char -fno-comm= on -Wall -Werror=3Dseq uence-point -Wextra -Wextra-semi -Wembedded-directive -Wmissing-declaration= s -Wmissing-prototypes -Wno-missing-field-initializers -Wredundant-decls -W= sign-compare -Wtype-limits -Wuninitialized -Wunused-but-set-parameter -Wunu= sed-but-set- variable -Wunused-parameter -Wunused-result -Wunused-variable -Wnested-exte= rns -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wimplicit-functi= on-declaration -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT= lib/libcomm on_la-path.lo -MD -MP -MF lib/.deps/libcommon_la-path.Tpo -c -o lib/libcomm= on_la-path.lo `test -f 'lib/path.c' || echo './'`lib/path.c libtool: compile: cc -DHAVE_CONFIG_H -I. -include config.h -I./include -DL= OCALEDIR=3D\"/usr/local/share/locale\" -D_PATH_LOCALSTATEDIR=3D\"/var\" -I/= usr/local/include -fsigned-char -fno-common -Wall -Werror=3Dsequence-point = -Wextra -Wextra-se mi -Wembedded-directive -Wmissing-declarations -Wmissing-prototypes -Wno-mi= ssing-field-initializers -Wredundant-decls -Wsign-compare -Wtype-limits -Wu= ninitialized -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-= parameter -W unused-result -Wunused-variable -Wnested-externs -Wpointer-arith -Wstrict-p= rototypes -Wformat-security -Wimplicit-function-declaration -O2 -pipe -fsta= ck-protector-strong -fno-strict-aliasing -MT lib/libcommon_la-path.lo -MD -= MP -MF lib/. deps/libcommon_la-path.Tpo -c lib/path.c -fPIC -DPIC -o lib/.libs/libcommo= n_la-path.o In file included from lib/path.c:31: In file included from ./include/path.h:24: ./include/cpuset.h:80:7: error: expected expression if (CPU_ISSET_S(cpu, setsize, ary[i])) { ^ ./include/cpuset.h:41:25: note: expanded from macro 'CPU_ISSET_S' ? ((((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] = \ ^ ./include/cpuset.h:80:7: error: use of undeclared identifier '__cpu_mask' ./include/cpuset.h:41:13: note: expanded from macro 'CPU_ISSET_S' ? ((((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] = \ ^ ./include/cpuset.h:80:7: warning: implicit declaration of function '__CPUEL= T' is invalid in C99 [-Wimplicit-function-declaration] ./include/cpuset.h:41:48: note: expanded from macro 'CPU_ISSET_S' ? ((((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] = \ ^ ./include/cpuset.h:80:7: warning: implicit declaration of function '__CPUMA= SK' is invalid in C99 [-Wimplicit-function-declaration] ./include/cpuset.h:42:6: note: expanded from macro 'CPU_ISSET_S' & __CPUMASK (__cpu))) !=3D 0 = \ ^ ./include/cpuset.h:80:3: error: statement requires expression of scalar typ= e ('void' invalid) if (CPU_ISSET_S(cpu, setsize, ary[i])) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 3 errors generated. *** Error code 1 Stop. make[2]: stopped in /var/ports/work/usr/ports/sysutils/flock/work/util-linu= x-2.30.1 *** Error code 1 Stop. make[1]: stopped in /var/ports/lpbpkx/sysutils/flock *** Error code 1 Stop. make: stopped in /usr/ports/www/chromium Is there any suggetions ? My package build machine environments are as follows : Ports branch is 7216c1d263e8 and others are : root@kazu:~ # uname -a FreeBSD kazu.tfc 14.0-CURRENT FreeBSD 14.0-CURRENT #0 n251838-90c89dc67099-= dirty: Mon Jan 3 15:41:32 JST 2022 root@tbedfc:/usr/obj/usr/src/arm64.= aarch64/sys/GENERIC-DRM arm64 root@kazu:~ # df -h Filesystem = Size Used Avail Capacity Mounted on /dev/mmcsd0p3 = 105G 889M 96G 1% / devfs = 1.0K 1.0K 0B 100% /dev tmpfs = 11G 52K 11G 0% /tmp linprocfs = 4.0K 4.0K 0B 100% /compat/linux/proc tmpfs = 11G 4.0K 11G 0% /compat/linux/dev/shm linsysfs = 4.0K 4.0K 0B 100% /compat/linux/sys devfs = 1.0K 1.0K 0B 100% /compat/linux/dev fdescfs = 1.0K 1.0K 0B 100% /compat/linux/dev/fd 192.168.1.17:/.dake = 12T 965G 11T 8% /.dake 192.168.1.17:/ds/src/freebsd/current/14.0/90c89dc67099.generic_drm = 11T 70G 11T 1% /usr/src 192.168.1.17:/ds/obj/freebsd/current/14.0/90c89dc67099.generic_drm = 11T 410G 11T 4% /usr/obj 192.168.1.17:/ds/ports/freebsd/7216c1d263e8 = 11T 107G 11T 1% /usr/ports 192.168.1.17:/ds/distfiles = 11T 53G 11T 0% /var/ports/distfiles 192.168.1.17:/ds/packages/freebsd/arm64/aarch64/14.0C/90c89dc67099/7216c1d2= 63e8 11T 114G 11T 1% /var/ports/packages root@kazu:~ # cat /etc/make.conf PORTSDIR=3D /var/ports/lpbpkx INDEXDIR=3D /var/ports/lpbpkx WRKDIRPREFIX=3D /var/ports/work PACKAGES=3D /var/ports/packages DISTDIR=3D /var/ports/distfiles BATCH=3D yes DEFAULT_VERSIONS=3D perl5=3D5.34 ruby=3D2.7 java=3D12 COMPILER_TYPE=3D clang USE_PACKAGE_DEPENDS=3D yes DISABLE_VULNERABILITIES=3Dyes root@kazu:~ #=20 GENERIC-DRM kernel was built by `git subtree add' to 14.0-CURRENT (08ff54dc5b5d) for Panfrost driver [1] : First `git subtree add' to 14.0-CURRENT (08ff54dc5b5d) in src server : root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git checkou= t 08ff54dc5b5d HEAD is now at 08ff54dc5b5d aw_spi: improve I/O stability root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git remote = add drm-subtree https://github.com/jsm222/drm-subtree.git root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git subtree= add --prefix sys/dev/drm/ drm-subtree pinebookpro-test git fetch drm-subtree pinebookpro-test remote: Enumerating objects: 794, done. remote: Counting objects: 100% (794/794), done. remote: Compressing objects: 100% (518/518), done. remote: Total 794 (delta 370), reused 685 (delta 264), pack-reused 0 Receiving objects: 100% (794/794), 1.14 MiB | 5.09 MiB/s, done. Resolving deltas: 100% (370/370), done. =46rom https://github.com/jsm222/drm-subtree * branch pinebookpro-test -> FETCH_HEAD * [new branch] pinebookpro-test -> drm-subtree/pinebookpro-= test Added dir 'sys/dev/drm' root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/extra_patches/0001-Hook-DRM-to-the-build.patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/extra_patches/0002-Add-GENERIC-DRM-for-armv7.patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/extra_patches/0003-drm-Add-rockchip-and-bridges-into-GENERIC-DRM= .patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/pbp-kernel-extra-patches/gicv3_its.c-patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/pbp-kernel-extra-patches/mixer.c.patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/pbp-kernel-extra-patches/sys_dev_iicbus_es8316.c root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/pbp-kernel-extra-patches/GENERIC-DRM.patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/pbp-kernel-extra-patches/sys_modules_dtb_rockchip_Makefile.patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git apply s= ys/dev/drm/pbp-kernel-extra-patches/mmc.c.patch root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # git rev-par= se --verify --short HEAD 90c89dc67099 root@vm:/ds/src/freebsd/current/14.0/08ff54dc5b5d.generic_drm # cd .. root@vm:/ds/src/freebsd/current/14.0 # mv 08ff54dc5b5d.generic_drm 90c89dc6= 7099.generic_drm and then build GENERIC-DRM in PBP : =20 # cd /usr/src # make buildworld TARGET=3Darm64 # make buildkernel TARGET=3Darm64 KERNCONF=3DGENERIC-DRM Best regards [1] https://github.com/jsm222/drm-subtree --- Kazuhiko Kiriyama