From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id AA9F03858D32 for ; Sun, 20 Nov 2022 17:18:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AA9F03858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oi1-x236.google.com with SMTP id c129so10515881oia.0 for ; Sun, 20 Nov 2022 09:18:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=he30tDCc32sLtabqs4ALOczxWERRh6NMAzXEBA8FFGo=; b=U1GDnWUS0uYxq9dffQYN8ASiRfDlGtGxUytidi2a/QD28/2dgJPnb8nS30Jwr2XuIB Vx0BG01kS7z9aUl887ehe5VaT/W3bQLpgIrvX+Oexb84wvGS4CVt4XaVNXYp37SXA9A8 q1RoViCgHmbomCh6n8Dx60N8N1S5n1h5yt3S7sb9jsQp3Wh7WlTuF81kN3vQ0Zb1DkUG iJe0YnUgmqWRWsYmqCPjIcDb7R5JYnXUJvMxICYJRjncn3asbg0Ko7zu8dTtiawwM+Ma Yi2W6mTpYBPclYc2Cb9fizz21FU9fqHjSnnzBofpTDfP0VZzv0Auj4CtjanP82zDQS6N bDZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=he30tDCc32sLtabqs4ALOczxWERRh6NMAzXEBA8FFGo=; b=OeYJugn8Svhv3jbT/d/0oeK86+50EYnREoKdYODyon2reJY80NyXHGv4ic4kXcO/+1 JMxHz0dZx4b5kQZhbRcz3maLG2HGok0TP4WtEG2k6DwFTA/p9LwCQ8OqZsDFD6MVZXHk mD2wUrvY//g+HhTV5ot46Vd3QOX94osgSmD25lI9bIBeZhEFAu2tgZkqgAV5rE3/7cT6 ldD3h24kCRO8cH0M0pnHgJkj5ftL4c16RRGdETLZHewa2481cN0WcwRuFOeuFZ+bHC3l 3RLUtqtB85JHGa87ijbCCuANREFek8Pzkt5oYhey4yYYzLe/jo1jVM19EW0ntDb4A4Z6 /bfA== X-Gm-Message-State: ANoB5plLFxFwA8ipgXG5Rqg9Z5mXDMKJ5sGApFZgageAmAAfwqCG+JwD B5wZ708Mp1dxckw731mfD+jSZ8ozfWk1ZxEVhr17sg== X-Google-Smtp-Source: AA0mqf5fxbtbdQWClAQ2ZQnZbQeQjdMTVZP8pyUMIeg/CgdVJZXdax8dYuqSL2fwOCIPDYu9TTvN8b8iGnUSmkj81HQ= X-Received: by 2002:a05:6808:8cd:b0:359:ee8a:26d5 with SMTP id k13-20020a05680808cd00b00359ee8a26d5mr9880623oij.285.1668964705794; Sun, 20 Nov 2022 09:18:25 -0800 (PST) MIME-Version: 1.0 References: <20221120135532.10506.qmail@s411.sureserver.com> In-Reply-To: <20221120135532.10506.qmail@s411.sureserver.com> From: Adhemerval Zanella Date: Sun, 20 Nov 2022 14:18:14 -0300 Message-ID: Subject: =?UTF-8?B?UmU6IGVycm9yOiDigJhfX2xpYmNfc2luZ2xlX3RocmVhZGVkX2ludGVybmFs4oCZIHVuZA==?= =?UTF-8?B?ZWNsYXJlZA==?= To: Saifi Khan Cc: libc-help@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Sun, Nov 20, 2022 at 10:55 AM Saifi Khan wrote: > > Hi: > > Trying to perform a 'out-of-source-tree' build glibc 'main' on K: 6.0.0-= 4-amd64, L: (Debian GLIBC 2.36-5), C: gcc 12.2.0. > > The following error is encountered. > > gcc-12 ../sysdeps/unix/sysv/linux/sigsuspend.c -c -std=3Dgnu11 -fgnu89-in= line -O2 -pipe -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants= -frounding-math -fno-stack-protector -fno-common -Wstrict-prototypes -Wold= -style-definition -fmath-errno -fPIC -fexceptions -fasynchronous-unwind-= tables -ftls-model=3Dinitial-exec -I../include -I/opt/work/linux/glib= c/build/signal -I/opt/work/linux/glibc/build -I../sysdeps/unix/sysv/linux= /x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/lin= ux/x86/include -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/x86/nptl -I.= ./sysdeps/unix/sysv/linux/wordsize-64 -I../sysdeps/x86_64/nptl -I../sysde= ps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl = -I../sysdeps/pthread -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysde= ps/unix/sysv -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/pos= ix -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch -I../sysdeps= /x86_64/fpu -I../sysdeps/x86 > /fpu -I../sysdeps/x86_64/multiarch -I../sysdeps/x86_64 -I../sysdeps/x= 86/include -I../sysdeps/x86 -I../sysdeps/ieee754/float128 -I../sysdeps/ie= ee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/db= l-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/i= eee754 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -inclu= de /opt/work/linux/glibc/build/libc-modules.h -DMODULE_NAME=3Dlibc -include= ../include/libc-symbols.h -DPIC -DSHARED -DTOP_NAMESPACE=3Dglibc -o /= opt/work/linux/glibc/build/signal/sigsuspend.os -MD -MP -MF /opt/work/linux= /glibc/build/signal/sigsuspend.os.dt -MT /opt/work/linux/glibc/build/signal= /sigsuspend.os > In file included from ../sysdeps/unix/sysv/linux/x86_64/single-thread.h:2= , > from ../sysdeps/unix/sysdep.h:19, > from ../sysdeps/unix/x86_64/sysdep.h:18, > from ../sysdeps/unix/sysv/linux/x86_64/sysdep.h:23, > from ../sysdeps/unix/sysv/linux/sysdep-cancel.h:23, > from ../sysdeps/unix/sysv/linux/sigsuspend.c:19: > ../sysdeps/unix/sysv/linux/sigsuspend.c: In function =E2=80=98__sigsuspen= d=E2=80=99: > ../sysdeps/unix/sysv/linux/single-thread.h:38:27: error: =E2=80=98__libc_= single_threaded_internal=E2=80=99 undeclared (first use in this function); = did you mean =E2=80=98__libc_single_threaded=E2=80=99? > > 38 | # define SINGLE_THREAD_P (__libc_single_threaded_internal !=3D 0) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../sysdeps/unix/sysdep.h:115:37: note: in expansion of macro =E2=80=98SIN= GLE_THREAD_P=E2=80=99 > 115 | # define NO_SYSCALL_CANCEL_CHECKING SINGLE_THREAD_P > | ^~~~~~~~~~~~~~~ > ../sysdeps/unix/sysdep.h:121:9: note: in expansion of macro =E2=80=98NO_S= YSCALL_CANCEL_CHECKING=E2=80=99 > 121 | if (NO_SYSCALL_CANCEL_CHECKING) = \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > ../sysdeps/unix/sysv/linux/sigsuspend.c:26:10: note: in expansion of macr= o =E2=80=98SYSCALL_CANCEL=E2=80=99 > 26 | return SYSCALL_CANCEL (rt_sigsuspend, set, __NSIG_BYTES); > | ^~~~~~~~~~~~~~ > ../sysdeps/unix/sysv/linux/single-thread.h:38:27: note: each undeclared i= dentifier is reported only once for each function it appears in > 38 | # define SINGLE_THREAD_P (__libc_single_threaded_internal !=3D 0) > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../sysdeps/unix/sysdep.h:115:37: note: in expansion of macro =E2=80=98SIN= GLE_THREAD_P=E2=80=99 > 115 | # define NO_SYSCALL_CANCEL_CHECKING SINGLE_THREAD_P > | ^~~~~~~~~~~~~~~ > ../sysdeps/unix/sysdep.h:121:9: note: in expansion of macro =E2=80=98NO_S= YSCALL_CANCEL_CHECKING=E2=80=99 > 121 | if (NO_SYSCALL_CANCEL_CHECKING) = \ > | ^~~~~~~~~~~~~~~~~~~~~~~~~~ > ../sysdeps/unix/sysv/linux/sigsuspend.c:26:10: note: in expansion of macr= o =E2=80=98SYSCALL_CANCEL=E2=80=99 > 26 | return SYSCALL_CANCEL (rt_sigsuspend, set, __NSIG_BYTES); > | ^~~~~~~~~~~~~~ > make[2]: *** [/opt/work/linux/glibc/build/sysd-rules:229: /opt/work/linux= /glibc/build/signal/sigsuspend.os] Error 1 > make[2]: Leaving directory '/opt/work/linux/glibc/src/signal' > make[1]: *** [Makefile:484: signal/subdir_lib] Error 2 > make[1]: Leaving directory '/opt/work/linux/glibc/src' > make: *** [Makefile:9: all] Error 2 > > Has anybody encountered this before ? Any pointers ? > > warm regards > Saifi. Do you mean by 'out-of-source-tree' that you are just trying to compile the source without all the internal files and definitions? If so you will need to copy and/or add any required definition (requires either by compiler or by the linker).