[-- Attachment #1: Type: text/plain, Size: 1399 bytes --] Hi, I'm not sure it's ok to post issue report about libc-test to this maillist, if it is not ok, please let me know. I downloaded the latest libc-test and run make, commit id of latest master is 287fe555a8279fab14e89e7cd64787d234a30ebf $ git clone git://repo.or.cz/libc-test $ cd libc-test $ CC=../install/bin/musl-gcc make I checked the output and see following error report: ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err BUILDERROR src/api/unistd.o src/api/unistd.c: In function ‘f’: src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function) 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ I double checked and found it is due to lacking of "src/common/options.h", I found this file is not created successfully, and there is only src/common/options.h.in, that's make the build failed. Best Regards Wang Chen [-- Attachment #2: Type: text/html, Size: 2234 bytes --]
[-- Attachment #1: Type: text/plain, Size: 3942 bytes --] Correct some comments in last email. The issue is not due to lacking of header file, it should be due to some constants are lost, I paste the whole error report here FYR: ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err BUILDERROR src/api/unistd.o src/api/unistd.c: In function ‘f’: src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function) 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/api/unistd.c:5:21: note: in definition of macro ‘C’ 5 | #define C(n) switch(n){case n:;} | ^ src/api/unistd.c:87:3: note: each undeclared identifier is reported only once for each function it appears in 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/api/unistd.c:5:21: note: in definition of macro ‘C’ 5 | #define C(n) switch(n){case n:;} | ^ src/api/unistd.c:88:3: error: ‘_CS_POSIX_V7_THREADS_LDFLAGS’ undeclared (first use in this function) 88 | C(_CS_POSIX_V7_THREADS_LDFLAGS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/api/unistd.c:5:21: note: in definition of macro ‘C’ 5 | #define C(n) switch(n){case n:;} | ^ src/api/unistd.c:117:3: error: ‘_PC_TIMESTAMP_RESOLUTION’ undeclared (first use in this function) 117 | C(_PC_TIMESTAMP_RESOLUTION) | ^~~~~~~~~~~~~~~~~~~~~~~~ src/api/unistd.c:5:21: note: in definition of macro ‘C’ 5 | #define C(n) switch(n){case n:;} | ^ src/api/unistd.c:238:3: error: ‘_SC_XOPEN_UUCP’ undeclared (first use in this function) 238 | C(_SC_XOPEN_UUCP) | ^~~~~~~~~~~~~~ src/api/unistd.c:5:21: note: in definition of macro ‘C’ 5 | #define C(n) switch(n){case n:;} | ^ and this would cause the following main.exe and runtest.exe failed to be built. Best Regards Wang Chen 发件人: Chen Wang 发送时间: 2020-10-23 15:08 收件人: musl 抄送: unicorn_wang 主题: issue when running libc-test Hi, I'm not sure it's ok to post issue report about libc-test to this maillist, if it is not ok, please let me know. I downloaded the latest libc-test and run make, commit id of latest master is 287fe555a8279fab14e89e7cd64787d234a30ebf $ git clone git://repo.or.cz/libc-test $ cd libc-test $ CC=../install/bin/musl-gcc make I checked the output and see following error report: ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err BUILDERROR src/api/unistd.o src/api/unistd.c: In function ‘f’: src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function) 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ I double checked and found it is due to lacking of "src/common/options.h", I found this file is not created successfully, and there is only src/common/options.h.in, that's make the build failed. Best Regards Wang Chen [-- Attachment #2: Type: text/html, Size: 6767 bytes --]
* Chen Wang <unicorn_wang@outlook.com> [2020-10-23 15:19:05 +0800]:
> Correct some comments in last email. The issue is not due to lacking of header file, it should be due to some constants are lost, I paste the whole error report here FYR:
>
> ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err
> BUILDERROR src/api/unistd.o
> src/api/unistd.c: In function ‘f’:
> src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function)
> 87 | C(_CS_POSIX_V7_THREADS_CFLAGS)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> src/api/unistd.c:5:21: note: in definition of macro ‘C’
> 5 | #define C(n) switch(n){case n:;}
> | ^
> src/api/unistd.c:87:3: note: each undeclared identifier is reported only once for each function it appears in
> 87 | C(_CS_POSIX_V7_THREADS_CFLAGS)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
> src/api/unistd.c:5:21: note: in definition of macro ‘C’
> 5 | #define C(n) switch(n){case n:;}
> | ^
> src/api/unistd.c:88:3: error: ‘_CS_POSIX_V7_THREADS_LDFLAGS’ undeclared (first use in this function)
> 88 | C(_CS_POSIX_V7_THREADS_LDFLAGS)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> src/api/unistd.c:5:21: note: in definition of macro ‘C’
> 5 | #define C(n) switch(n){case n:;}
> | ^
> src/api/unistd.c:117:3: error: ‘_PC_TIMESTAMP_RESOLUTION’ undeclared (first use in this function)
> 117 | C(_PC_TIMESTAMP_RESOLUTION)
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> src/api/unistd.c:5:21: note: in definition of macro ‘C’
> 5 | #define C(n) switch(n){case n:;}
> | ^
> src/api/unistd.c:238:3: error: ‘_SC_XOPEN_UUCP’ undeclared (first use in this function)
> 238 | C(_SC_XOPEN_UUCP)
> | ^~~~~~~~~~~~~~
> src/api/unistd.c:5:21: note: in definition of macro ‘C’
> 5 | #define C(n) switch(n){case n:;}
> | ^
>
> and this would cause the following main.exe and runtest.exe failed to be built.
this is expected:
posix requires these macros but musl does not define them.
in practice they are unlikely to be needed so i guess
these should be silenced in some way.
[-- Attachment #1: Type: text/plain, Size: 3099 bytes --] Yes, I think it should be conditional silenced for musl, otherwise it has blocked following builds, such as for main.exe and runtest.exe. So I think it is an issue, right? Best Regards Wang Chen 发件人: Szabolcs Nagy 发送时间: 2020-10-23 16:48 收件人: Chen Wang 抄送: musl 主题: Re: [musl]回复: issue when running libc-test * Chen Wang <unicorn_wang@outlook.com> [2020-10-23 15:19:05 +0800]: > Correct some comments in last email. The issue is not due to lacking of header file, it should be due to some constants are lost, I paste the whole error report here FYR: > > ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err > BUILDERROR src/api/unistd.o > src/api/unistd.c: In function ‘f’: > src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function) > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > 5 | #define C(n) switch(n){case n:;} > | ^ > src/api/unistd.c:87:3: note: each undeclared identifier is reported only once for each function it appears in > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > 5 | #define C(n) switch(n){case n:;} > | ^ > src/api/unistd.c:88:3: error: ‘_CS_POSIX_V7_THREADS_LDFLAGS’ undeclared (first use in this function) > 88 | C(_CS_POSIX_V7_THREADS_LDFLAGS) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > 5 | #define C(n) switch(n){case n:;} > | ^ > src/api/unistd.c:117:3: error: ‘_PC_TIMESTAMP_RESOLUTION’ undeclared (first use in this function) > 117 | C(_PC_TIMESTAMP_RESOLUTION) > | ^~~~~~~~~~~~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > 5 | #define C(n) switch(n){case n:;} > | ^ > src/api/unistd.c:238:3: error: ‘_SC_XOPEN_UUCP’ undeclared (first use in this function) > 238 | C(_SC_XOPEN_UUCP) > | ^~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > 5 | #define C(n) switch(n){case n:;} > | ^ > > and this would cause the following main.exe and runtest.exe failed to be built. this is expected: posix requires these macros but musl does not define them. in practice they are unlikely to be needed so i guess these should be silenced in some way. [-- Attachment #2: Type: text/html, Size: 6241 bytes --]
* Chen Wang <unicorn_wang@outlook.com> [2020-10-23 16:53:14 +0800]: > Yes, I think it should be conditional silenced for musl, otherwise it has blocked following builds, such as for main.exe and runtest.exe. > So I think it is an issue, right? oh for me it does ot break the entire test build, just src/api/main.exe. > 发件人: Szabolcs Nagy > 发送时间: 2020-10-23 16:48 > 收件人: Chen Wang > 抄送: musl > 主题: Re: [musl]回复: issue when running libc-test > * Chen Wang <unicorn_wang@outlook.com> [2020-10-23 15:19:05 +0800]: > > Correct some comments in last email. The issue is not due to lacking of header file, it should be due to some constants are lost, I paste the whole error report here FYR: > > > > ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err > > BUILDERROR src/api/unistd.o > > src/api/unistd.c: In function ‘f’: > > src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function) > > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:87:3: note: each undeclared identifier is reported only once for each function it appears in > > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:88:3: error: ‘_CS_POSIX_V7_THREADS_LDFLAGS’ undeclared (first use in this function) > > 88 | C(_CS_POSIX_V7_THREADS_LDFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:117:3: error: ‘_PC_TIMESTAMP_RESOLUTION’ undeclared (first use in this function) > > 117 | C(_PC_TIMESTAMP_RESOLUTION) > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:238:3: error: ‘_SC_XOPEN_UUCP’ undeclared (first use in this function) > > 238 | C(_SC_XOPEN_UUCP) > > | ^~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > > > and this would cause the following main.exe and runtest.exe failed to be built. > > this is expected: > > posix requires these macros but musl does not define them. > in practice they are unlikely to be needed so i guess > these should be silenced in some way.
[-- Attachment #1: Type: text/plain, Size: 3816 bytes --] I see tons of error indications in build output, such as below: ``` src/common/runtest.exe -w '' src/functional/ungetc-static.exe >src/functional/ungetc-static.err || true /bin/sh: 1: src/common/runtest.exe: not found ``` I'm afraid this tell us some testcases will not be run fully. Best Regards 汪辰(Wang Chen) 发件人: Szabolcs Nagy 发送时间: 2020-10-23 17:11 收件人: Chen Wang 抄送: musl 主题: Re: Re:[musl]回复: issue when running libc-test * Chen Wang <unicorn_wang@outlook.com> [2020-10-23 16:53:14 +0800]: > Yes, I think it should be conditional silenced for musl, otherwise it has blocked following builds, such as for main.exe and runtest.exe. > So I think it is an issue, right? oh for me it does ot break the entire test build, just src/api/main.exe. > 发件人: Szabolcs Nagy > 发送时间: 2020-10-23 16:48 > 收件人: Chen Wang > 抄送: musl > 主题: Re: [musl]回复: issue when running libc-test > * Chen Wang <unicorn_wang@outlook.com> [2020-10-23 15:19:05 +0800]: > > Correct some comments in last email. The issue is not due to lacking of header file, it should be due to some constants are lost, I paste the whole error report here FYR: > > > > ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err > > BUILDERROR src/api/unistd.o > > src/api/unistd.c: In function ‘f’: > > src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function) > > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:87:3: note: each undeclared identifier is reported only once for each function it appears in > > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:88:3: error: ‘_CS_POSIX_V7_THREADS_LDFLAGS’ undeclared (first use in this function) > > 88 | C(_CS_POSIX_V7_THREADS_LDFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:117:3: error: ‘_PC_TIMESTAMP_RESOLUTION’ undeclared (first use in this function) > > 117 | C(_PC_TIMESTAMP_RESOLUTION) > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:238:3: error: ‘_SC_XOPEN_UUCP’ undeclared (first use in this function) > > 238 | C(_SC_XOPEN_UUCP) > > | ^~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > > > and this would cause the following main.exe and runtest.exe failed to be built. > > this is expected: > > posix requires these macros but musl does not define them. > in practice they are unlikely to be needed so i guess > these should be silenced in some way. [-- Attachment #2: Type: text/html, Size: 7110 bytes --]
* Chen Wang <unicorn_wang@outlook.com> [2020-10-23 17:16:18 +0800]:
> I see tons of error indications in build output, such as below:
>
> ```
> src/common/runtest.exe -w '' src/functional/ungetc-static.exe >src/functional/ungetc-static.err || true
> /bin/sh: 1: src/common/runtest.exe: not found
> ```
i think that is unrelated.
can you look at src/common/runtest*.err ?
On Fri, Oct 23, 2020 at 04:53:14PM +0800, Chen Wang wrote: > Yes, I think it should be conditional silenced for musl, otherwise > it has blocked following builds, such as for main.exe and > runtest.exe. > So I think it is an issue, right? If this is happening, you probably did something with CFLAGS or such that broke the build. As written, the libc-test build system is supposed to treat errors as successful runs of the make target that just produce the error report as their output; they should not stop the build. Rich > 发件人: Szabolcs Nagy > 发送时间: 2020-10-23 16:48 > 收件人: Chen Wang > 抄送: musl > 主题: Re: [musl]回复: issue when running libc-test > * Chen Wang <unicorn_wang@outlook.com> [2020-10-23 15:19:05 +0800]: > > Correct some comments in last email. The issue is not due to lacking of header file, it should be due to some constants are lost, I paste the whole error report here FYR: > > > > ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=c99 -D_POSIX_C_SOURCE=200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -g -D_FILE_OFFSET_BITS=64 -pedantic-errors -Werror -Wno-unused -D_XOPEN_SOURCE=700 -c -o src/api/unistd.o src/api/unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat src/api/unistd.o.err > > BUILDERROR src/api/unistd.o > > src/api/unistd.c: In function ‘f’: > > src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS’ undeclared (first use in this function) > > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:87:3: note: each undeclared identifier is reported only once for each function it appears in > > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:88:3: error: ‘_CS_POSIX_V7_THREADS_LDFLAGS’ undeclared (first use in this function) > > 88 | C(_CS_POSIX_V7_THREADS_LDFLAGS) > > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:117:3: error: ‘_PC_TIMESTAMP_RESOLUTION’ undeclared (first use in this function) > > 117 | C(_PC_TIMESTAMP_RESOLUTION) > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > src/api/unistd.c:238:3: error: ‘_SC_XOPEN_UUCP’ undeclared (first use in this function) > > 238 | C(_SC_XOPEN_UUCP) > > | ^~~~~~~~~~~~~~ > > src/api/unistd.c:5:21: note: in definition of macro ‘C’ > > 5 | #define C(n) switch(n){case n:;} > > | ^ > > > > and this would cause the following main.exe and runtest.exe failed to be built. > > this is expected: > > posix requires these macros but musl does not define them. > in practice they are unlikely to be needed so i guess > these should be silenced in some way.