From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3469 invoked from network); 23 Oct 2020 08:49:09 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2020 08:49:09 -0000 Received: (qmail 18279 invoked by uid 550); 23 Oct 2020 08:49:06 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 18247 invoked from network); 23 Oct 2020 08:49:05 -0000 Date: Fri, 23 Oct 2020 10:48:53 +0200 From: Szabolcs Nagy To: Chen Wang Cc: musl Message-ID: <20201023084853.GV2947641@port70.net> Mail-Followup-To: Chen Wang , musl References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Subject: Re: [musl] =?utf-8?B?5Zue5aSN?= =?utf-8?Q?=3A?= issue when running libc-test * Chen Wang [2020-10-23 15:19:05 +0800]: > Correct some comments in last email. The issue is not due to lacking of h= eader file, it should be due to some constants are lost, I paste the whole = error report here FYR: >=20 > ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=3Dc99 -D_POS= IX_C_SOURCE=3D200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno-u= nused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -Werr= or=3Dimplicit-function-declaration -Werror=3Dimplicit-int -Werror=3Dpointer= -sign -Werror=3Dpointer-arith -g -D_FILE_OFFSET_BITS=3D64 -pedantic-errors = -Werror -Wno-unused -D_XOPEN_SOURCE=3D700 -c -o src/api/unistd.o src/api/u= nistd.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 =E2=80=98f=E2=80=99: > src/api/unistd.c:87:3: error: =E2=80=98_CS_POSIX_V7_THREADS_CFLAGS=E2=80= =99 undeclared (first use in this function) > 87 | C(_CS_POSIX_V7_THREADS_CFLAGS) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro =E2=80=98C=E2=80=99 > 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 =E2=80=98C=E2=80=99 > 5 | #define C(n) switch(n){case n:;} > | ^ > src/api/unistd.c:88:3: error: =E2=80=98_CS_POSIX_V7_THREADS_LDFLAGS=E2=80= =99 undeclared (first use in this function) > 88 | C(_CS_POSIX_V7_THREADS_LDFLAGS) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro =E2=80=98C=E2=80=99 > 5 | #define C(n) switch(n){case n:;} > | ^ > src/api/unistd.c:117:3: error: =E2=80=98_PC_TIMESTAMP_RESOLUTION=E2=80=99= undeclared (first use in this function) > 117 | C(_PC_TIMESTAMP_RESOLUTION) > | ^~~~~~~~~~~~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro =E2=80=98C=E2=80=99 > 5 | #define C(n) switch(n){case n:;} > | ^ > src/api/unistd.c:238:3: error: =E2=80=98_SC_XOPEN_UUCP=E2=80=99 undeclare= d (first use in this function) > 238 | C(_SC_XOPEN_UUCP) > | ^~~~~~~~~~~~~~ > src/api/unistd.c:5:21: note: in definition of macro =E2=80=98C=E2=80=99 > 5 | #define C(n) switch(n){case n:;} > | ^ >=20 > 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.