Bug 258829 - devel/electron12: Fails to build: third_party/nasm/include/compiler.h:249:21: error: static declaration of 'mempcpy' follows non-static declaration
Summary: devel/electron12: Fails to build: third_party/nasm/include/compiler.h:249:21:...
Status: Closed DUPLICATE of bug 257378
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-01 05:15 UTC by Jonas Lopes
Modified: 2021-10-01 05:53 UTC (History)
0 users

See Also:


Attachments
pkg version -v output (105.22 KB, text/plain)
2021-10-01 05:49 UTC, Jonas Lopes
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Lopes 2021-10-01 05:15:08 UTC
Dear,

VSCode is broken! 

I can't find it port (pkg install) and when I try to build it generates an error:


-------------------------------------

FAILED: obj/third_party/nasm/nasm/assemble.o 
cc -MMD -MF obj/third_party/nasm/nasm/assemble.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-12-init-16296-g5e476061-1\" -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-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -m64 -march=x86-64 -msse3 -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -Xclang -debug-info-kind=constructor -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/assemble.c -o obj/third_party/nasm/nasm/assemble.o
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/devel/electron12
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/vscode
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-01 05:18:26 UTC
Thank you for the report Jonas.

Could you please add:

- uname -a output
- pkg version -v output (as an attachment)
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-01 05:19:15 UTC
Actually, this is a duplicate of bug 257378

*** This bug has been marked as a duplicate of bug 257378 ***
Comment 3 Jonas Lopes 2021-10-01 05:49:52 UTC
Created attachment 228302 [details]
pkg version -v output
Comment 4 Jonas Lopes 2021-10-01 05:53:04 UTC
(In reply to Kubilay Kocak from comment #1)

Hi Kubilay,

Sorry, Kubilay, I forgot to point out that I'm using 14.0-CURRENT.

Below is the output of the requested commands: 

```
❯ uname -a      
FreeBSD freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #2 main-n249620-c8077ccd70c: Sat Sep 25 08:00:51 -03 2021     root@freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64
```

pkg version -v output attached!!!