[prev in list] [next in list] [prev in thread] [next in thread] 

List:       musl
Subject:    =?UTF-8?B?UmU6IFJlOiBbbXVzbF3lm57lpI06IGlzc3VlIHdoZW4gcnVubmluZyBsaWJjLXRlc3Q=?=
From:       "Chen Wang" <unicorn_wang () outlook ! com>
Date:       2020-10-23 8:53:14
Message-ID: OSYP286MB0181776B5F19465E1233C99DFE1A0 () OSYP286MB0181 ! JPNP286 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

[Attachment #2 (text/plain)]

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 #3 (text/html)]

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style>body { \
line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: \
0.5em; }body { font-size: 14px; font-family: 微软雅黑; color: rgb(0, 0, 0); \
line-height: 1.5; }</style></head><body> <div><span></span>Yes, I think it should be \
conditional silenced for musl, otherwise it has blocked following builds, such as \
for&nbsp;<span style="line-height: 1.5; background-color: transparent;">main.exe and \
runtest.exe.&nbsp;</span></div><div><span style="line-height: 1.5; background-color: \
transparent;">So I think it is an issue, right?</span><span style="line-height: 1.5; \
background-color: transparent;">&nbsp;</span></div> <div><br></div><hr style="width: \
210px; height: 1px;" color="#b5c4df" size="1" align="left"> <div><span><div \
style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div style="font-size: \
13.3333px;">Best Regards</div><div style="font-size: 13.3333px;"><br></div><div \
style="font-size: 13.3333px;">Wang Chen</div></div></span></div> <blockquote \
style="margin-Top: 0px; margin-Bottom: 0px; margin-Left: 0.5em; margin-Right: \
inherit"><div>&nbsp;</div><div style="border:none;border-top:solid #B5C4DF \
1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; \
FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; \
PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>发件人:</b>&nbsp;<a \
href="mailto:nsz@port70.net">Szabolcs \
Nagy</a></div><div><b>发送时间:</b>&nbsp;2020-10-23&nbsp;16:48</div><div><b>收件人:</b>&nbsp;<a \
href="mailto:unicorn_wang@outlook.com">Chen \
Wang</a></div><div><b>抄送:</b>&nbsp;<a \
href="mailto:musl@lists.openwall.com">musl</a></div><div><b>主题:</b>&nbsp;Re: \
[musl]回复: issue when running libc-test</div></div></div><div><div>* Chen Wang \
&lt;unicorn_wang@outlook.com&gt; [2020-10-23 15:19:05 +0800]:</div> <div>&gt; 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:</div> <div>&gt; </div>
<div>&gt; ../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&nbsp; -c -o src/api/unistd.o src/api/unistd.c \
2&gt;src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat \
src/api/unistd.o.err</div> <div>&gt; BUILDERROR src/api/unistd.o</div>
<div>&gt; src/api/unistd.c: In function ‘f':</div>
<div>&gt; src/api/unistd.c:87:3: error: ‘_CS_POSIX_V7_THREADS_CFLAGS' undeclared \
(first use in this function)</div> <div>&gt;&nbsp;&nbsp;&nbsp; 87 | \
C(_CS_POSIX_V7_THREADS_CFLAGS)</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~~~~</div> <div>&gt; src/api/unistd.c:5:21: \
note: in definition of macro ‘C'</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 5 | \
#define C(n) switch(n){case n:;}</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^</div> <div>&gt; src/api/unistd.c:87:3: note: each undeclared identifier is reported \
only once for each function it appears in</div> <div>&gt;&nbsp;&nbsp;&nbsp; 87 | \
C(_CS_POSIX_V7_THREADS_CFLAGS)</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~~~~</div> <div>&gt; src/api/unistd.c:5:21: \
note: in definition of macro ‘C'</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 5 | \
#define C(n) switch(n){case n:;}</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^</div> <div>&gt; src/api/unistd.c:88:3: error: ‘_CS_POSIX_V7_THREADS_LDFLAGS' \
undeclared (first use in this function)</div> <div>&gt;&nbsp;&nbsp;&nbsp; 88 | \
C(_CS_POSIX_V7_THREADS_LDFLAGS)</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~</div> <div>&gt; src/api/unistd.c:5:21: \
note: in definition of macro ‘C'</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 5 | \
#define C(n) switch(n){case n:;}</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^</div> <div>&gt; src/api/unistd.c:117:3: error: ‘_PC_TIMESTAMP_RESOLUTION' \
undeclared (first use in this function)</div> <div>&gt;&nbsp;&nbsp; 117 | \
C(_PC_TIMESTAMP_RESOLUTION)</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp; ^~~~~~~~~~~~~~~~~~~~~~~~</div> <div>&gt; src/api/unistd.c:5:21: note: \
in definition of macro ‘C'</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 5 | #define C(n) \
switch(n){case n:;}</div> <div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^</div> <div>&gt; src/api/unistd.c:238:3: error: ‘_SC_XOPEN_UUCP' undeclared (first \
use in this function)</div> <div>&gt;&nbsp;&nbsp; 238 | C(_SC_XOPEN_UUCP)</div>
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; ^~~~~~~~~~~~~~</div>
<div>&gt; src/api/unistd.c:5:21: note: in definition of macro ‘C'</div>
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 5 | #define C(n) switch(n){case n:;}</div>
<div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
^</div> <div>&gt; </div>
<div>&gt; and this would cause the following main.exe and runtest.exe failed to be \
built.</div> <div>&nbsp;</div>
<div>this is expected:</div>
<div>&nbsp;</div>
<div>posix requires these macros but musl does not define them.</div>
<div>in practice they are unlikely to be needed so i guess</div>
<div>these should be silenced in some way.</div>
</div></blockquote>
</body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic