Re: FreeBSD Port: chromium-98.0.4758.102 Error build on 13-stable
Date: Mon, 21 Feb 2022 21:53:18 UTC
On Mon, 21 Feb 2022 13:14:15 -0600 Stephen Montgomery-Smith <montgomerysmithstephen@gmail.com> wrote: > On 2/21/22 12:17, Craig Leres wrote: > > > > On 2/21/22 09:05, Alex V. Petrov wrote: > >> In file included from ../../third_party/nasm/asm/assemble.c:178: > >> ../../third_party/nasm/include/compiler.h:249:21: error: static > >> declaration of 'mempcpy' follows non-static declaration > >> static inline void *mempcpy(void *dst, const void *src, size_t n) > >> $B".".".".".".".".".".".".".".".".".".".".(B ^ > >> /usr/include/string.h:70:7: note: previous declaration is here > >> void$B".".".(B *mempcpy(void * __restrict, const void * __restrict, size_t); > >> $B".".".".".".".".".(B ^ > >> 1 error generated. > >> ninja: build stopped: subcommand failed. > >> *** Error code 1 > >> > >> Stop. > >> make[1]: stopped in /usr/ports/www/chromium > >> *** Error code 1 > >> > >> Stop. > >> make: stopped in /usr/ports/www/chromium > > > > The build for this version also fails for me on 12.3-RELEASE-p2. > > > > An easy bandaid fix is to delete lines 248 through 254 in > ${WRKSRC}/third_party/nasm/include/compiler.h > Try the latest patch [1] on Bug 258271 [2]. It can be placed into www/chromium/files/ directory as is. It fixes build on stable/13, amd64 git c39ff2415cb9. Not tried, but would be OK for main, too. For 12.3, it can be a different issue, as even stable/12 doesn't have mempcpy() yet. [1] https://bz-attachments.freebsd.org/attachment.cgi?id=231983 [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258271 -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp>