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 6151 invoked from network); 23 Oct 2020 09:11:56 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 23 Oct 2020 09:11:56 -0000 Received: (qmail 32195 invoked by uid 550); 23 Oct 2020 09:11:52 -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 32150 invoked from network); 23 Oct 2020 09:11:51 -0000 Date: Fri, 23 Oct 2020 11:11:39 +0200 From: Szabolcs Nagy To: Chen Wang Cc: musl Message-ID: <20201023091139.GW2947641@port70.net> Mail-Followup-To: Chen Wang , musl References: <20201023084853.GV2947641@port70.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Subject: Re: Re: =?utf-8?B?W211c2xd5Zue5aSN?= =?utf-8?Q?=3A?= issue when running libc-test * Chen Wang [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.=20 > So I think it is an issue, right?=20 oh for me it does ot break the entire test build, just src/api/main.exe. > =E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Szabolcs Nagy > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4=EF=BC=9A 2020-10-23 16:48 > =E6=94=B6=E4=BB=B6=E4=BA=BA=EF=BC=9A Chen Wang > =E6=8A=84=E9=80=81=EF=BC=9A musl > =E4=B8=BB=E9=A2=98=EF=BC=9A Re: [musl]=E5=9B=9E=E5=A4=8D: issue when runn= ing 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= header file, it should be due to some constants are lost, I paste the whol= e error report here FYR: > >=20 > > ../install/bin/musl-gcc -Isrc/common -Isrc/common -pipe -std=3Dc99 -D_P= OSIX_C_SOURCE=3D200809L -Wall -Wno-unused-function -Wno-missing-braces -Wno= -unused -Wno-overflow -Wno-unknown-pragmas -fno-builtin -frounding-math -We= rror=3Dimplicit-function-declaration -Werror=3Dimplicit-int -Werror=3Dpoint= er-sign -Werror=3Dpointer-arith -g -D_FILE_OFFSET_BITS=3D64 -pedantic-error= s -Werror -Wno-unused -D_XOPEN_SOURCE=3D700 -c -o src/api/unistd.o src/api= /unistd.c 2>src/api/unistd.o.err || echo BUILDERROR src/api/unistd.o; cat s= rc/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 onl= y 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 undecla= red (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 b= e built. > =20 > this is expected: > =20 > 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.