Re: www/chromium faild to build.

From: Jonathan Chen <jonc_at_chen.org.nz>
Date: Wed, 01 Sep 2021 20:04:00 UTC
On Thu, 2 Sept 2021 at 00:18, KIRIYAMA Kazuhiko <kiri@truefc.org> wrote:
>
> Hi, list
>
> I've tried to built www/chromium but faild to build with
> error:
> FAILED: obj/third_party/nasm/nasm/directbl.o
> cc -MMD -MF obj/third_party/nasm/nasm/directbl.o.d -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-13-init-10392-gd3676d4b-2\" -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DHAVE_CONFIG_H -I../.. -Igen -I../../third_party/nasm -I../../third_party/nasm/asm -I../../third_party/nasm/disasm -I../../third_party/nasm/include -I../../third_party/nasm/output -I../../third_party/nasm/x86 -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -flto=thin -fsplit-lto-unit -fwhole-program-vtables -m64 -march=x86-64 -msse3 -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fpro!
>  file-instr-use=../../chrome/build/pgo_profiles/chrome-linux-4515-1627572323-7b80f2d12f40afe6f7872c5528a069e31662276b.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wall -Wno-unused-variable -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-thread-safety-analysis -Wno-thread-safety-attributes -Wno-unused-function -Wno-string-conversion -Wno-macro-redefined -Wno-sign-compare -Wno-nonnull -Wno-uninitialized -std=c11 -c ../../third_party/nasm/asm/directbl.c -o obj/third_party/nasm/nasm/directbl.o
> In file included from ../../third_party/nasm/asm/directbl.c:6:
> In file included from ../../third_party/nasm/asm/directiv.h:9:
> In file included from ../../third_party/nasm/include/perfhash.h:37:
> ../../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.

You need to update your ports tree past commit 9e6695a which has:

  www/chromium: fix build on CURRENT
  ... after mempcpy(3) has been added to base libc.


Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>