Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2022 06:53:18 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        Stephen Montgomery-Smith <montgomerysmithstephen@gmail.com>
Cc:        Craig Leres <leres@freebsd.org>, "Alex V. Petrov" <alexvpetrov@gmail.com>, chromium@FreeBSD.org, ports@FreeBSD.org
Subject:   Re: FreeBSD Port: chromium-98.0.4758.102 Error build on 13-stable
Message-ID:  <20220222065318.29e395623073010db2e02961@dec.sakura.ne.jp>
In-Reply-To: <240efd99-514a-3b21-85cf-361e0087aef2@FreeBSD.org>
References:  <f027f938-1b1d-e6c6-2ce4-dec7bc3a3e34@gmail.com> <e0be9b5a-28c9-60a1-74aa-86cc9001149b@freebsd.org> <240efd99-514a-3b21-85cf-361e0087aef2@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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)
> >> 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓 ^
> >> /usr/include/string.h:70:7: note: previous declaration is here
> >> void〓〓〓 *mempcpy(void * __restrict, const void * __restrict, size_t);
> >> 〓〓〓〓〓〓〓〓〓 ^
> >> 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>



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