From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 23 Apr 2021 10:17:52 +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 1lZr0a-0005WJ-AW for lore@lore.pengutronix.de; Fri, 23 Apr 2021 10:17:52 +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 1lZr0a-0001iB-1v; Fri, 23 Apr 2021 10:17:52 +0200 Received: from mail-eopbgr40053.outbound.protection.outlook.com ([40.107.4.53] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZr0F-0001hi-KV for ptxdist@pengutronix.de; Fri, 23 Apr 2021 10:17:32 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gequz3CjtfUFiFId6rEGXiyqXHePxvkilvfHbuEyvEL/LOiIW0UopOzFtYD0KT7U4mXUewx+Ax4UyLCHCBTqsdR9Xl+m/K2gxcNsgCqZZgG8mWFZWf1JH/FHtYSfnBtt1NPN77tjFFbP0E2SJuaYr7otjnpZRAAO54bmSKMvclULz8HEh/cLz0f0XSBz0K84/CN9H4R3SEHnahdX5Q3aZsMeE0Mj5zpH9fBa49e0qiNN+TOQdOoTm5WwfZ2ykO5h0qUBIod+DPD1vcpNBbmtn4DGWJ6DbR3MoN0zffwS82XTKefI1HdqFJ2+3pYAMXNSfq+0yDTLm2g0g4EMAZyG1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UbWVp7IRjfN/cZ7r834JworgDTMohBWgYaFfjhSMbz4=; b=oA9t6DS1uZH5b8oVWK4pXeHPwaZ5vaHKgPdvJtAYHvn11TsQLcNc/e8Jr5ak1hGef+pfWG9Rz5km168rw1fctmxR2BSnvyhZsVhqeX2WOxRn++p78f8FEsT/eloaaWX8L7SHmdgx0vpmmXc9YGe/d++Nd+19Ug17VSN1rPYkD/ffvVMEg6g38w7WLrFYePY+Q9qNMC9ep1CugwS3W4UaXd6XE9LKJEhPICM+3JJXe6S2nNu12EPSn46Ox+91ffIhHKHxyRzWKdTT0D5y3YF1P6pAwVrvEWuuMQQaSLkVNyfQl0K1D+r+9m68Gmv//Gi3BlAO1kbGvwu59IRizwr8Tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UbWVp7IRjfN/cZ7r834JworgDTMohBWgYaFfjhSMbz4=; b=Q/yDKPRHHsM+Z00/FHG1V8dF/xjZyY9ZBOhSnpKzVi5Q1h3taRA8haK7de+/P+D1Jl0o3bCvSudUC1TN7PanNDFji85fKaDsZAFoxa9nj3ADPOe7tVsqHX/JaktOZr0UeOXrzpNoxibQ8lAFJhIfI1awMLFNcVZVA86aUexUexM= Authentication-Results: pengutronix.de; dkim=none (message not signed) header.d=none;pengutronix.de; dmarc=none action=none header.from=t2data.com; Received: from HE1PR0602MB2858.eurprd06.prod.outlook.com (2603:10a6:3:da::10) by HE1PR0601MB2635.eurprd06.prod.outlook.com (2603:10a6:3:4c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.21; Fri, 23 Apr 2021 08:17:28 +0000 Received: from HE1PR0602MB2858.eurprd06.prod.outlook.com ([fe80::409f:a235:de54:364e]) by HE1PR0602MB2858.eurprd06.prod.outlook.com ([fe80::409f:a235:de54:364e%8]) with mapi id 15.20.4065.021; Fri, 23 Apr 2021 08:17:28 +0000 To: ptxdist@pengutronix.de References: <30a9fa38-3276-c5dc-c36b-51f02483ed0f@t2data.com> <20210423073918.GG4162561@pengutronix.de> From: Christian Melki Message-ID: Date: Fri, 23 Apr 2021 10:17:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 In-Reply-To: <20210423073918.GG4162561@pengutronix.de> Content-Language: en-US X-Originating-IP: [81.234.39.46] X-ClientProxiedBy: OL1P279CA0047.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:14::16) To HE1PR0602MB2858.eurprd06.prod.outlook.com (2603:10a6:3:da::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.7.217] (81.234.39.46) by OL1P279CA0047.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:14::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20 via Frontend Transport; Fri, 23 Apr 2021 08:17:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9595b5a-a626-409d-5093-08d906303c31 X-MS-TrafficTypeDiagnostic: HE1PR0601MB2635: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uySQdKOXzmZjO2RHZ1YqgsTufShvPGXiQNnnKwcNO/e5d9iYVqiIEjcAhWDLx2gXGbiic7vQSseAwBZysugS2bGCRN7QrtWXTA1tP4awNE2H5v8UbedRoO6JeLFXEZVM+j1xh1AKlfdjeUPIXtpMKntVkZlGNtwkstzbOM77OPiJjDOHjlIEmCu0o/DzW6j1QeyCwM+R6a3HkllOCFMv8ZRApm8Xz0Lw7D0D8yaEO5ntZkDvk4kDpbm3ZwBm5MnhKwdlUAEzEGZJIg3HevN/+lbgsfB+FKV9Kuf5GW5MQOZ7Cxy6+fG8uiVNK7B3YV/xfjXktLxMBzFoa9eYcC3uijC4wM7COajyS8SOUDCamoju9u8vony0o70ExuG+vy7RynZ+gd/zhnlB+2sUElrvwTAvWaycFhvzZKpxgSfawqDW+jibGMFj/gX+Qn0kQif4qV7Ye/W56Jw3OXbQX44cGi43/4CpqsDBMx951gw5ZZnIYaiAHhzwSbRQZ0nnGTBELx8s3yJb2ehlO8HyzUETGqYj5yBdIiNMOrRL30F4Il5HsGjDIUX5qzFeqf5mt7c6laTcPshC5uXeDnnxN/DIkj6eDK3dz1N1ijnKm0FBnycJg5T/FpUdA0fEUa+YzUD+zn+h8dMyFOCZXYHkTx1XfoK5Pm7lbm1hzaR8Ty1bUgNy5mnxD04TqisnaP3QhL5Akf7Esm0EPc+y9GQhlNr/0giMPWpmvwj0MnGrseGYG+OA8rUP7qjW+12Swr7DIn3Vw8anIWmjZh7dgslLw5FZ956wo+0npzyE+UuO1Zkq5vrsHBgfjnDYOxyhtKe1zfOC X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0602MB2858.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(42606007)(376002)(39830400003)(396003)(136003)(478600001)(53546011)(44832011)(3450700001)(5660300002)(38350700002)(316002)(31696002)(966005)(956004)(6666004)(52116002)(6486002)(31686004)(36756003)(38100700002)(66556008)(6916009)(83380400001)(16526019)(16576012)(186003)(2616005)(66946007)(26005)(2906002)(8676002)(86362001)(8936002)(66476007)(21314003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?UUhhTlFMU2duQXFRZGcrdFVlR1ZkL2hzQk5qOXpwTjd1MHExcnVXV0w5NHdP?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5093-08d906303c31 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0602MB2858.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2021 08:17:28.8847 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QABwt4dgvbqQTFkX3j7zLzn7jVhOEs9sAlxreauIrPTsdE9yBc7YURFjNr0gYvdp1dHNbPqo/MwFj1GT69YInyiJvxuHwnQmwnhChXEZp4M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0601MB2635 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,MSGID_FROM_MTA_HEADER,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] pkg-config-wrapper libdir confusion, ABI dynamic-linker path. 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, christian.melki@t2data.com 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 On 4/23/21 9:39 AM, Michael Olbrich wrote: > On Thu, Apr 22, 2021 at 09:59:06PM +0200, Christian Melki wrote: >> I'm using a crosstool-ng toolchain which adheres to the ld.so ABI path >> for x86_64 (glibc). >> >> Afaiu, ptxdist does not like multilib. >> But it will happily get the dynamic-linker path which contain a multilib >> description or just a regular lib64 path. >> >> https://git.pengutronix.de/cgit/ptxdist/tree/scripts/lib/ptxd_make_00-init.sh#n169 >> >> This might be a symbolic link to the real dynamic linker, because a >> demultilibbed toolchain must still adhere to the ABI specifications. >> For x86_64: 64-bit, hard-float, LE: /lib64/ld-linux-x86-64.so.2 >> >> So ptxdist will use lib64 as it's base for libdirs placing various >> libraries in a lib64 path. > > Right, that was contributed a long time ago. But since I don't have a > test-case for this, the support for this has not been maintained. > > >> But when using the pkg-config-wrapper it looks like all libraries are >> only statically set from a something /lib path. >> >> https://git.pengutronix.de/cgit/ptxdist/tree/scripts/pkg-config-wrapper#n19 > > Right, and here it get's ugly. I don't want to rely on some external > environment variable here. Maybe just search for the paths: > > libdir=( $(find ${prefix} -maxdepth 3 -type d -name pkgconfig ) > > Would care to provide a patch for this? > > Michael > Sounds resonable. I can try that and provide a patch that (if?) works for my case atleast. I'll rebuild a ct-ng toolchain without demultilibbing. Maybe the following is valuable for someone reading this in the future. I tinkered with ct-ng glibc extra params passed to configuration and found these two to be useful to play with in situations like these. # Forcibly try to set a libpath. CT_GLIBC_EXTRA_CONFIG_ARRAY="libc_cv_slibdir=/lib" # Make recognize multiple trusted directories upon start. # Useful when ABI-spec is looking for /lib64 but stuff is elsewhere. # The rest is managed with the regular ld.so path options. CT_GLIBC_CONFIGPARMS="user-defined-trusted-dirs=/lib:/lib64" >> So building a library yields: >> $ ls -la platform-tracker/sysroot-target/usr/lib64/libmnl.so* >> lrwxrwxrwx 2 xxx users 15 Apr 22 21:01 >> platform-tracker/sysroot-target/usr/lib64/libmnl.so -> libmnl.so.0.2.0* >> lrwxrwxrwx 2 xxx users 15 Apr 22 21:01 >> platform-tracker/sysroot-target/usr/lib64/libmnl.so.0 -> libmnl.so.0.2.0* >> -rwxr-xr-x 2 xxx users 77216 Apr 22 21:01 >> platform-tracker/sysroot-target/usr/lib64/libmnl.so.0.2.0* >> >> $ ls -la platform-tracker/sysroot-target/usr/lib64/pkgconfig/libmnl.pc >> -rw-r--r-- 2 xxx users 318 Apr 22 21:01 >> platform-tracker/sysroot-target/usr/lib64/pkgconfig/libmnl.pc >> >> In the search for the library: >> PKG_CONFIG_DEBUG_SPEW variable enabling debug spew >> Adding directory >> '/home/xxx/work/tracker/bin/platform-tracker/sysroot-target/usr/lib/pkgconfig' >> from PKG_CONFIG_PATH >> Adding directory >> '/home/xxx/work/tracker/bin/platform-tracker/sysroot-target/usr/share/pkgconfig' >> from PKG_CONFIG_PATH >> Global variable definition 'pc_sysrootdir' = '/' >> Global variable definition 'pc_top_builddir' = '$(top_builddir)' >> Error printing enabled by default due to use of output options besides >> --exists, --atleast/exact/max-version or --list-all. Value of >> --silence-errors: 0 >> Error printing enabled >> Adding virtual 'pkg-config' package to list of known packages >> Looking for package 'libmnl' >> Looking for package 'libmnl-uninstalled' >> No package 'libmnl' found >> >> _______________________________________________ >> 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 > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de