From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by sourceware.org (Postfix) with ESMTPS id C9F1A3858416 for ; Fri, 15 Mar 2024 03:09:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9F1A3858416 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C9F1A3858416 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710472152; cv=none; b=i7KmAwxL4YacFE/LetLAgKrzptj45uYYO6VGf7sTqfM8Bi7jeUQl/5aJSaq0837uwKly3iz4axaSOT/30OwC9o6mK5xQNDec6WaxuWjlTnP2QISS8eqKr5J/kf2gsWTd1AMnpqZJf9TAZRm8wklWOcYCMs2A6mBPEpB7bEQDpGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710472152; c=relaxed/simple; bh=ZTSXiHJqfI9lFjJhRM5lOf0EQaV7adZbuEPcKV3Jhqs=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=kxvvAIM6LdfB65HTdEb0+sjT9hIjaHv8GFqPB547+/yTzCAZmGIWTl4Zr2BlBih2rRXuKXt2mGC7RsaMuMiG7w0H3qWaM+8HtwOraXXCtUnvgoEy3fb1PP9ueBffw7N0dLctD1gxyHc/tKQsZbxhZMx2sc/5iI8yST+XbemvVpg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a3fb8b0b7acso170353166b.2 for ; Thu, 14 Mar 2024 20:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710472149; x=1711076949; darn=sourceware.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=RvrG6PcB8O8SGQDL4k2bz32wShdC6MQTdlgSne9JyDE=; b=Pt2x1ex9x32z5hfxaE5wr3kd65BuINI4uglBQ+yVp4NBEWYOZKclELlV6TD+S6nuYO t8GMn0m3YJauL2PtXfiPVmIyGFnp58mg54BLo/ORjmo5EyEomeIYoJy6/kt1xVDn4D4m /mY16vR2SLtvg5GrdcTTeWSmRW6sHyGGLdyV5MsVfnL+SQBPkRJCD6xjbnC37otC2QXt XyY4dGcVXfizpHIPgedrxNkhsqqzLlexoOYQPCVONB2rBA0jOcVZ3teQ6DvMu9fllRon 1o1V26fY4lbfFgO93QYipaKSbCEaxzW6CsZst+hdJDoMXuLTwFeljVADd46ZPEyhdn/l TEBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710472149; x=1711076949; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=RvrG6PcB8O8SGQDL4k2bz32wShdC6MQTdlgSne9JyDE=; b=eXZV4DF0EefS1fsae/e30SkKsXw8iXRexlqnfF4PZcTMPzyolD5RzASPGSPURK7ULM Ce8HZ/G6FYE61VzJWamL1kQ9aikYuDYecRYQeTQV+4Sg/E+DADlxd+hyZlJ9rQEn6WWP XBCXN1wtMb9tkv+kGh4I7XSF1LToEVBY/p0oDVaTvZ5fnZmAjrBnfq4Rvmr0aZ3a1cTa zqSVO38xbLHoiEQztAH7r+AhkReh7LuQ03tx6dXeSG8vOXd6htgN3IC+Mfg0f60MCjHK 8UKdLxLK17djkxexpUBQ9QiUFMPvYsOqQn3MGXLwUAkbmhxBy2A3OvtncX4jvd+tJyUk /7JQ== X-Gm-Message-State: AOJu0YzKerMOrQGyZ62nOjmHCQbhYPfF9s5zD61fMjzWMbSOJistS2s8 p+QOT1qXjZl3K8bZivlcmruBu3DnEuRM5OJa+tBLi07BbxtgBmcLeVIKFeDaWfXnmQ== X-Google-Smtp-Source: AGHT+IHefs9IJpI6seMiwzft3I0hvhTcl/zu5Dmwsi2YCrgrXciEpCbTKZ4aC1AT71C0mzMyx/ClnA== X-Received: by 2002:a17:906:38f:b0:a46:4be4:2aac with SMTP id b15-20020a170906038f00b00a464be42aacmr1992973eja.77.1710472148360; Thu, 14 Mar 2024 20:09:08 -0700 (PDT) Received: from [0.0.0.0] ([94.177.207.80]) by smtp.googlemail.com with ESMTPSA id gx27-20020a1709068a5b00b00a3e5adf11c7sm1257483ejc.157.2024.03.14.20.09.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Mar 2024 20:09:07 -0700 (PDT) Message-ID: Date: Fri, 15 Mar 2024 05:09:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Content-Language: en-US To: libc-help@sourceware.org From: =?UTF-8?B?0JPQvtGA0LHQtdGI0LrQviDQkdC+0LPQtNCw0L0=?= Subject: libstdc++ link errors in support/links-dso-program Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi. I attempt to build glibc 2.31 on Debian GNU/Linux 12 Bookworm. It fails at: gcc -Wl,-rpath-link=/home/bodqhrohro/git/glibc-2.31-build:/home/bodqhrohro/git/glibc-2.31-build/math:/home/bodqhrohro/git/glibc-2.31-build/elf:/home/bodqhrohro/git/glibc-2.31-build/dlfcn:/home/bodqhrohro/git/glibc-2.31-build/nss:/home/bodqhrohro/git/glibc-2.31-build/nis:/home/bodqhrohro/git/glibc-2.31-build/rt:/home/bodqhrohro/git/glibc-2.31-build/resolv:/home/bodqhrohro/git/glibc-2.31-build/mathvec:/home/bodqhrohro/git/glibc-2.31-build/support:/home/bodqhrohro/git/glibc-2.31-build/crypt:/home/bodqhrohro/git/glibc-2.31-build/nptl -pie -Wl,-O1 -nostdlib -nostartfiles -o /home/bodqhrohro/git/glibc-2.31-build/support/links-dso-program -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both /home/bodqhrohro/git/glibc-2.31-build/csu/Scrt1.o /home/bodqhrohro/git/glibc-2.31-build/csu/crti.o `gcc --print-file-name=crtbeginS.o` /home/bodqhrohro/git/glibc-2.31-build/support/links-dso-program.o -lstdc++ -lgcc -lgcc_s -Wl,-dynamic-linker=/home/bodqhrohro/git/glibc-2.31-build/lib/ld-linux-x86-64.so.2 /home/bodqhrohro/git/glibc-2.31-build/libc.so.6 /home/bodqhrohro/git/glibc-2.31-build/libc_nonshared.a -Wl,--as-needed /home/bodqhrohro/git/glibc-2.31-build/elf/ld.so -Wl,--no-as-needed -lgcc  `gcc  --print-file-name=crtendS.o` /home/bodqhrohro/git/glibc-2.31-build/csu/crtn.o /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `fstat64@GLIBC_2.33' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_key_create@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_rwlock_unlock@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_detach@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_setspecific@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libgcc_s.so.1: undefined reference to `_dl_find_object@GLIBC_2.35' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `arc4random@GLIBC_2.36' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `__libc_single_threaded@GLIBC_2.32' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_join@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_rwlock_wrlock@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_getspecific@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_key_delete@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `lstat@GLIBC_2.33' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `stat@GLIBC_2.33' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_once@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_rwlock_rdlock@GLIBC_2.34' /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/libstdc++.so: undefined reference to `pthread_create@GLIBC_2.34' collect2: error: ld returned 1 exit status make[2]: *** [../Rules:215: /home/bodqhrohro/git/glibc-2.31-build/support/links-dso-program] Error 1 Is that because it attempts to link against the system libstdc++, which is too new and requires symbols not present in this glibc version? Do I need to compile it myself? Or maybe even the whole GCC? I attempted to configure it without the SELinux support, but there's still the same problem.