From nobody Fri Aug 11 05:29:50 2023 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 4RMXRn5Hjlz4mGFW for ; Fri, 11 Aug 2023 05:29:57 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Received: from nmtao201.oxsus-vadesecure.net (mta-231a.oxsus-vadesecure.net [15.204.3.4]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RMXRl0rj5z4bLk for ; Fri, 11 Aug 2023 05:29:55 +0000 (UTC) (envelope-from fred@thegalacticzoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=webcom.xion.oxcs.net header.s=mail1 header.b="W/lvJilz"; spf=pass (mx1.freebsd.org: domain of fred@thegalacticzoo.com designates 15.204.3.4 as permitted sender) smtp.mailfrom=fred@thegalacticzoo.com; dmarc=pass (policy=quarantine) header.from=thegalacticzoo.com DKIM-Signature: v=1; a=rsa-sha256; bh=gEcEM/5xb+LL0cwyYY7iR/d7VaW5mmxytaXsFz neFKQ=; c=relaxed/relaxed; d=webcom.xion.oxcs.net; h=from:reply-to: subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc: in-reply-to:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; q=dns/txt; s=mail1; t=1691731793; x=1692336593; b=W/lvJilzBa8X6OWfv/NZW0yUwOnDg1PQ3Ev2MqDfw 1okIboBo2TmXyKHUq6MyeWbL3+DEfTm/WSTmdEi2A8WCrrZ8K09NfsGXxPudZyMvKRYXxes kaTT7yYQR/7BQbv7gVUCK5oaElYfHdrsRFvDiLqWv+5fvbd/fyzPYpU/rjP8NorzVVDt8Wq qC7ZcQ4MFfLHGElmMIgKlfwFXvXaaz1Lva/yIoZvQeNHiQ7ZKMbBkp58hXos6B36ZRt8jMX YhzKZ9jJUKCcnhTVKhPf5APeRR5PQosiF/CED4I1jxDALjPPOcaGq4VwIxpTztPAnYISh8Q XI+LoZ8/DJnYHyZrQ== Received: from proxy-6.proxy.cloudus.ewr.xion.oxcs.net ([76.14.239.229]) by oxsus2nmtao01p.internal.vadesecure.com with ngmta id 864d8608-177a3d1a358ef994; Fri, 11 Aug 2023 05:29:53 +0000 Message-ID: Date: Thu, 10 Aug 2023 22:29:50 -0700 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: freebsd-arm@freebsd.org Cc: fredfinster58@gmail.com From: Fred Finster Subject: VCHIQ patch and contrib code. Compiling with newer version LLVM / CLANG, and find errors in VCHIQ code Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.89 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[thegalacticzoo.com,quarantine]; R_DKIM_ALLOW(-0.20)[webcom.xion.oxcs.net:s=mail1]; R_SPF_ALLOW(-0.20)[+ip4:15.204.3.4/30]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ASN(0.00)[asn:16276, ipnet:15.204.0.0/17, country:FR]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[15.204.3.4:from]; RCVD_IN_DNSWL_NONE(0.00)[15.204.3.4:from]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[webcom.xion.oxcs.net:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RMXRl0rj5z4bLk Hello fellow  Rpi4B users Is VCHIQ compiling and installing for your use on your Raspberry Pi 4B? https://reviews.freebsd.org/D37878 The /usr/src  compile is breaking for me with -wunsigned_interger  cast being used (unsigned int) for a 32 bit result . Try substituting  (unsigned long)  for a 64 bit result /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.c:1711:7: error: cast to smaller integer type 'unsigned int' from 'VCHIQ_HEADER_T *' (aka 'struct vchiq_header_struct *') [-Werror,-Wpointer-to-int-cast]                                                 (unsigned int)header, ^~~~~~~~~~~~~~~~~~~~ --- vchiq_kern_lib.o --- /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_kern_lib.c:156:6: error: cast to smaller integer type 'unsigned int' from 'struct bulk_waiter_node *' [-Werror,-Wpointer-to-int-cast]                                         (unsigned int)waiter, waiter->pid);                                         ^~~~~~~~~~~~~~~~~~~~ /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.h:68:39: note: expanded from macro 'vchiq_log_info'                 printf(VCHIQ_LOG_PREFIX fmt "\n", ##__VA_ARGS__); } while (0)                                                     ^~~~~~~~~~~ --- vchiq_core.o --- /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.h:63:40: note: expanded from macro 'vchiq_log_warning'                  printf(VCHIQ_LOG_PREFIX fmt "\n", ##__VA_ARGS__); } while (0)                                                      ^~~~~~~~~~~ /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.c:1721:6: error: cast to smaller integer type 'unsigned int' from 'VCHIQ_HEADER_T *' (aka 'struct vchiq_header_struct *') [-Werror,-Wpointer-to-int-cast]                                         (unsigned int)header,                                         ^~~~~~~~~~~~~~~~~~~~ /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.h:58:39: note: expanded from macro 'vchiq_log_error'                 printf(VCHIQ_LOG_PREFIX fmt "\n", ##__VA_ARGS__); } while (0)                                                     ^~~~~~~~~~~ fatal error: too many errors emitted, stopping now [-ferror-limit=] --- vchiq_kern_lib.o --- /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_kern_lib.c:458:5: error: cast to smaller integer type 'unsigned int' from 'struct bulk_waiter_node *' [-Werror,-Wpointer-to-int-cast]                                 (unsigned int)waiter, current->p_pid);                                 ^~~~~~~~~~~~~~~~~~~~ /usr/src/sys/contrib/vchiq/interface/vchiq_arm/vchiq_core.h:68:39: note: expanded from macro 'vchiq_log_info'                 printf(VCHIQ_LOG_PREFIX fmt "\n", ##__VA_ARGS__); } while (0)                                                     ^~~~~~~~~~~ 2 errors generated. *** [vchiq_kern_lib.o] Error code 1 make[2]: stopped in /usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ --- vchiq_core.o --- 20 errors generated. *** [vchiq_core.o] Error code 1 make[2]: stopped in /usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ --- vchiq_kmod.o --- ctfconvert -L VERSION -g vchiq_kmod.o --- vchiq_arm.o --- ctfconvert -L VERSION -g vchiq_arm.o 2 errors make[2]: stopped in /usr/obj/usr/src/arm64.aarch64/sys/GENERIC-VCHIQ      3279.77 real     11285.89 user      1322.10 sys make[1]: stopped in /usr/src make: stopped in /usr/src root@generic-arm64:/usr/src # Fred Finster ps.  Does the  make -j4 buildkernel buildworld TARGET_ARCH=aarch64  KERNCONF=GENERIC-VCHIQ work, finish, & complete for other users? root@generic-arm64:/usr/src # make -j4 buildworld buildkernel TARGET_ARCH=aarch64  KERNCONF=GENERIC-VCHIQ Look forward to hearing your results.