From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 15 Oct 2021 16:25:35 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mbO9P-00010f-MA for lore@lore.pengutronix.de; Fri, 15 Oct 2021 16:25:35 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mbO9P-0006uR-9S; Fri, 15 Oct 2021 16:25:35 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbO9F-0006u3-5W; Fri, 15 Oct 2021 16:25:25 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mbO9E-0001BD-2q; Fri, 15 Oct 2021 16:25:24 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mbO9D-009lDl-W3; Fri, 15 Oct 2021 16:25:24 +0200 Date: Fri, 15 Oct 2021 16:25:23 +0200 From: Michael Olbrich To: Christian Melki Message-ID: <20211015142523.GL2239952@pengutronix.de> Mail-Followup-To: Christian Melki , ptxdist@pengutronix.de References: <20211015081333.GC2239952@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] FYI glibc-2.34. X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hi, On Fri, Oct 15, 2021 at 10:25:45AM +0200, Christian Melki wrote: > I did rollback my new toolchain to 2.33 and I didn't keep the 2.34 one. :\. > I think it was rather simple, it didn't find the library and I didn't dig > much deeper. I'm not in dire need of 2.34, it was just a maintenance bump. > > Maybe something to do with the platform PTXCONF_GLIBC_VERSION? > > "Specify the glibc version this BSP shall be built with. This information is > used to guess the toolchain path if you use "ptxdist toolchain" without an > argument, and to install the glibc into the target file" > > I can redo the toolchain. Do you have any suggestions? My guess is, that the heuristics in scripts/install_copy_toolchain.sh cannot handle the changes in 2.34, but I'm not sure. Michael > > Regards, > Christian > > On 10/15/21 10:13 AM, Michael Olbrich wrote: > > On Mon, Oct 11, 2021 at 01:08:01PM +0200, Christian Melki wrote: > > > Quote from changelog: > > > > > > * Previously, glibc installed its various shared objects under versioned > > > file names such as libc-2.33.so. The ABI sonames (e.g., libc.so.6) > > > were provided as symbolic links. Starting with glibc 2.34, the shared > > > objects are installed under their ABI sonames directly, without > > > symbolic links. This increases compatibility with distribution > > > package managers that delete removed files late during the package > > > upgrade or downgrade process. > > > > > > Seems like glibc decided to be a trainwreck from one version to another with > > > no apparent mean of restoring old behavior for a smoother transition period? > > > Ptxdist glibc installation fails with this naming scheme. If anyone knows > > > any better here, please enlighten me. > > > > Right, so PTXdist first tries to find the specified file, e.g. libc.so.6, > > and should then follow symlinks and deal with ld.so scripts. I'm not sure > > why that fails but it should be possible to fix it to handle new and old > > glibc versions. > > What's the error that you get? > > > > Michael > > > > > (glibc-2.33 sysroot) > > > ls -Gga ~/x-tools/x86_64-secplatform-linux-gnu/x86_64-secplatform-linux-gnu/sysroot/lib64 > > > total 58684 > > > dr-xr-xr-x 2 4096 okt 11 10:31 . > > > dr-xr-xr-x 8 4096 okt 11 10:31 .. > > > -r-xr-xr-x 1 1111208 okt 11 10:31 ld-2.33.so > > > lrwxrwxrwx 1 10 okt 11 10:31 ld-linux-x86-64.so.2 -> ld-2.33.so > > > -r-xr-xr-x 1 65912 okt 11 10:31 libanl-2.33.so > > > lrwxrwxrwx 1 14 okt 11 10:31 libanl.so.1 -> libanl-2.33.so > > > -r--r--r-- 1 312428 okt 11 10:31 libatomic.a > > > lrwxrwxrwx 1 18 okt 11 10:31 libatomic.so -> libatomic.so.1.2.0 > > > lrwxrwxrwx 1 18 okt 11 10:31 libatomic.so.1 -> libatomic.so.1.2.0 > > > -r-xr-xr-x 1 109680 okt 11 10:31 libatomic.so.1.2.0 > > > -r-xr-xr-x 1 31672 okt 11 10:31 libBrokenLocale-2.33.so > > > lrwxrwxrwx 1 23 okt 11 10:31 libBrokenLocale.so.1 -> > > > libBrokenLocale-2.33.so > > > -r-xr-xr-x 1 11319128 okt 11 10:31 libc-2.33.so > > > -r-xr-xr-x 1 129808 okt 11 10:31 libcrypt-2.33.so > > > lrwxrwxrwx 1 16 okt 11 10:31 libcrypt.so.1 -> libcrypt-2.33.so > > > lrwxrwxrwx 1 12 okt 11 10:31 libc.so.6 -> libc-2.33.so > > > -r-xr-xr-x 1 135648 okt 11 10:31 libdl-2.33.so > > > lrwxrwxrwx 1 13 okt 11 10:31 libdl.so.2 -> libdl-2.33.so > > > -r--r--r-- 1 132 okt 11 10:31 libgcc_s.so > > > -r--r--r-- 1 401048 okt 11 10:31 libgcc_s.so.1 > > > -r--r--r-- 1 1202376 okt 11 10:31 libitm.a > > > lrwxrwxrwx 1 15 okt 11 10:31 libitm.so -> libitm.so.1.0.0 > > > lrwxrwxrwx 1 15 okt 11 10:31 libitm.so.1 -> libitm.so.1.0.0 > > > -r-xr-xr-x 1 774416 okt 11 10:31 libitm.so.1.0.0 > > > -r--r--r-- 1 162 okt 11 10:31 libitm.spec > > > -r-xr-xr-x 1 4455824 okt 11 10:31 libm-2.33.so > > > -r-xr-xr-x 1 52016 okt 11 10:31 libmemusage.so > > > lrwxrwxrwx 1 12 okt 11 10:31 libm.so.6 -> libm-2.33.so > > > -r-xr-xr-x 1 549816 okt 11 10:31 libmvec-2.33.so > > > lrwxrwxrwx 1 15 okt 11 10:31 libmvec.so.1 -> libmvec-2.33.so > > > -r-xr-xr-x 1 510080 okt 11 10:31 libnsl-2.33.so > > > lrwxrwxrwx 1 14 okt 11 10:31 libnsl.so.1 -> libnsl-2.33.so > > > -r-xr-xr-x 1 163800 okt 11 10:31 libnss_compat-2.33.so > > > lrwxrwxrwx 1 21 okt 11 10:31 libnss_compat.so.2 -> > > > libnss_compat-2.33.so > > > -r-xr-xr-x 1 144840 okt 11 10:31 libnss_db-2.33.so > > > lrwxrwxrwx 1 17 okt 11 10:31 libnss_db.so.2 -> libnss_db-2.33.so > > > -r-xr-xr-x 1 91024 okt 11 10:31 libnss_dns-2.33.so > > > lrwxrwxrwx 1 18 okt 11 10:31 libnss_dns.so.2 -> libnss_dns-2.33.so > > > -r-xr-xr-x 1 233784 okt 11 10:31 libnss_files-2.33.so > > > lrwxrwxrwx 1 20 okt 11 10:31 libnss_files.so.2 -> libnss_files-2.33.so > > > -r-xr-xr-x 1 81408 okt 11 10:31 libnss_hesiod-2.33.so > > > lrwxrwxrwx 1 21 okt 11 10:31 libnss_hesiod.so.2 -> > > > libnss_hesiod-2.33.so > > > -r-xr-xr-x 1 22896 okt 11 10:31 libpcprofile.so > > > -r-xr-xr-x 1 1148240 okt 11 10:31 libpthread-2.33.so > > > lrwxrwxrwx 1 18 okt 11 10:31 libpthread.so.0 -> libpthread-2.33.so > > > -r-xr-xr-x 1 356952 okt 11 10:31 libresolv-2.33.so > > > lrwxrwxrwx 1 17 okt 11 10:31 libresolv.so.2 -> libresolv-2.33.so > > > -r-xr-xr-x 1 203832 okt 11 10:31 librt-2.33.so > > > lrwxrwxrwx 1 13 okt 11 10:31 librt.so.1 -> librt-2.33.so > > > -r-xr-xr-x 1 69136 okt 11 10:31 libSegFault.so > > > -r--r--r-- 1 19645422 okt 11 10:31 libstdc++.a > > > -r--r--r-- 1 3393060 okt 11 10:31 libstdc++fs.a > > > lrwxrwxrwx 1 19 okt 11 10:31 libstdc++.so -> libstdc++.so.6.0.29 > > > lrwxrwxrwx 1 19 okt 11 10:31 libstdc++.so.6 -> libstdc++.so.6.0.29 > > > -r-xr-xr-x 1 12057360 okt 11 10:31 libstdc++.so.6.0.29 > > > -r--r--r-- 1 2513 okt 11 10:31 libstdc++.so.6.0.29-gdb.py > > > -r--r--r-- 1 928248 okt 11 10:31 libsupc++.a > > > -r-xr-xr-x 1 268792 okt 11 10:31 libthread_db-1.0.so > > > lrwxrwxrwx 1 19 okt 11 10:31 libthread_db.so.1 -> libthread_db-1.0.so > > > -r-xr-xr-x 1 36944 okt 11 10:31 libutil-2.33.so > > > lrwxrwxrwx 1 15 okt 11 10:31 libutil.so.1 -> libutil-2.33.so > > > > > > (glibc-2.34 sysroot): > > > $ ls -Gga ~/x-tools/x86_64-secplatform-linux-gnu/x86_64-secplatform-linux-gnu/sysroot/lib64 > > > total 57276 > > > dr-xr-xr-x 2 4096 okt 11 12:37 . > > > dr-xr-xr-x 8 4096 okt 11 12:35 .. > > > -r-xr-xr-x 1 1223232 okt 11 12:35 ld-linux-x86-64.so.2 > > > -r-xr-xr-x 1 20144 okt 11 12:35 libanl.so.1 > > > -r--r--r-- 1 312428 okt 11 12:37 libatomic.a > > > lrwxrwxrwx 1 18 okt 11 12:37 libatomic.so -> libatomic.so.1.2.0 > > > lrwxrwxrwx 1 18 okt 11 12:37 libatomic.so.1 -> libatomic.so.1.2.0 > > > -r-xr-xr-x 1 109680 okt 11 12:37 libatomic.so.1.2.0 > > > -r-xr-xr-x 1 31696 okt 11 12:35 libBrokenLocale.so.1 > > > -r-xr-xr-x 1 185680 okt 11 12:35 libc_malloc_debug.so.0 > > > -r-xr-xr-x 1 129656 okt 11 12:35 libcrypt.so.1 > > > -r-xr-xr-x 1 12496192 okt 11 12:35 libc.so.6 > > > -r-xr-xr-x 1 21496 okt 11 12:35 libdl.so.2 > > > -r--r--r-- 1 132 okt 11 12:37 libgcc_s.so > > > -r--r--r-- 1 401096 okt 11 12:37 libgcc_s.so.1 > > > -r--r--r-- 1 1202416 okt 11 12:37 libitm.a > > > lrwxrwxrwx 1 15 okt 11 12:37 libitm.so -> libitm.so.1.0.0 > > > lrwxrwxrwx 1 15 okt 11 12:37 libitm.so.1 -> libitm.so.1.0.0 > > > -r-xr-xr-x 1 774408 okt 11 12:37 libitm.so.1.0.0 > > > -r--r--r-- 1 162 okt 11 12:37 libitm.spec > > > -r-xr-xr-x 1 52048 okt 11 12:35 libmemusage.so > > > -r-xr-xr-x 1 3366704 okt 11 12:35 libm.so.6 > > > -r-xr-xr-x 1 582480 okt 11 12:35 libmvec.so.1 > > > -r-xr-xr-x 1 512040 okt 11 12:35 libnsl.so.1 > > > -r-xr-xr-x 1 171968 okt 11 12:35 libnss_compat.so.2 > > > -r-xr-xr-x 1 155232 okt 11 12:35 libnss_db.so.2 > > > -r-xr-xr-x 1 19312 okt 11 12:35 libnss_dns.so.2 > > > -r-xr-xr-x 1 19312 okt 11 12:35 libnss_files.so.2 > > > -r-xr-xr-x 1 81416 okt 11 12:35 libnss_hesiod.so.2 > > > -r-xr-xr-x 1 22920 okt 11 12:35 libpcprofile.so > > > -r-xr-xr-x 1 21200 okt 11 12:35 libpthread.so.0 > > > -r-xr-xr-x 1 252296 okt 11 12:35 libresolv.so.2 > > > -r-xr-xr-x 1 26624 okt 11 12:35 librt.so.1 > > > -r-xr-xr-x 1 69720 okt 11 12:35 libSegFault.so > > > -r--r--r-- 1 19645502 okt 11 12:37 libstdc++.a > > > -r--r--r-- 1 3393124 okt 11 12:37 libstdc++fs.a > > > lrwxrwxrwx 1 19 okt 11 12:37 libstdc++.so -> libstdc++.so.6.0.29 > > > lrwxrwxrwx 1 19 okt 11 12:37 libstdc++.so.6 -> libstdc++.so.6.0.29 > > > -r-xr-xr-x 1 12057664 okt 11 12:37 libstdc++.so.6.0.29 > > > -r--r--r-- 1 2513 okt 11 12:37 libstdc++.so.6.0.29-gdb.py > > > -r--r--r-- 1 928248 okt 11 12:37 libsupc++.a > > > -r-xr-xr-x 1 268904 okt 11 12:35 libthread_db.so.1 > > > -r-xr-xr-x 1 20152 okt 11 12:35 libutil.so.1 > > > > > > _______________________________________________ > > > ptxdist mailing list > > > ptxdist@pengutronix.de > > > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de > > > > > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de