From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 22 Apr 2021 21:59:27 +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 1lZfTz-0004iF-LA for lore@lore.pengutronix.de; Thu, 22 Apr 2021 21:59:27 +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 1lZfTz-0000TL-7s; Thu, 22 Apr 2021 21:59:27 +0200 Received: from mail-db8eur05on2074.outbound.protection.outlook.com ([40.107.20.74] helo=EUR05-DB8-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 1lZfTb-0000TD-FE for ptxdist@pengutronix.de; Thu, 22 Apr 2021 21:59:04 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KsGEFquWoyO+YqPbEIwdjEDXJH01iNmBxrVOoKaGpMHpRhpJ21xzl6I0nAu9I+d1Y+xuHJVdOUtRrniiinL8DlPvlYblT6FANMFMe40WXQhTIGfAfTyXjncULojz00UhOOg4RKtr0/LO6+GTxxnUcE3M/Pkcd1FIe+fzTqTEBL+M17A4eEz+eZzc566RNtGzA1ud1mR1KcUf3l3MkufXvGUt3+AedabRzH7OHqUeNvA5aiArMqwmlQz44TOasGnglQdh+Bm38m54fycE18EW+H+bsFhok2h7GsupraokPMJBFo1s15l5eVsGE23qzgZTOWsqtBXLRrvbz1ThypVERA== 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=MbWujuXRjK/BSxYfZy4A9INWMGbFxH6rZCQKeDHl8OE=; b=eg4Rifj1SOVukEdIecpd/47m0PMzED5c5UPDzYU2uictFL+aXqvzMKHpxYsmNQqNEhlzvxUH7zDG5kdTg7BKmdPJEt27xZBrxqHEkhk0qwH7+V1T1+RPRMXMzChF9NdRfgXh7+zGh3UsmRfJ3yII7fX+0gJ6+qh05A1xC3IMU7PYIqRDgbhKhAwPq2cULPa1cutxpc9Prap7Bx7PPxFRdUU6ApN9lEUnYUv/syjsfCAK7v2gofc8btiP8nua2Wbdhp+GSHS4ob//yU4V8FKyQ1pyDFmAacvaKbS8nGqpIgyPYXGWApcujTBGdFdnpaywSwch3/MafvMV5KTEVPmDyA== 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=MbWujuXRjK/BSxYfZy4A9INWMGbFxH6rZCQKeDHl8OE=; b=M7BaUIphsNEs8HxwV8mzXbULBdh9ihlEYROxBsecXAkyqALp/u1PCaoTNHnlPT6ZUZNNE5UXzN5dGF3UsEGSaRyIuk/umDZE6o+ut4XMbVQ+SHWQVC9sLOEvU2nbpxOUD4Ybwwc+ruhYHfLlu3rdLwtHBJLj1rchzsMuVTjQpco= 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 HE1PR06MB4137.eurprd06.prod.outlook.com (2603:10a6:7:9d::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Thu, 22 Apr 2021 19:58:59 +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; Thu, 22 Apr 2021 19:58:59 +0000 To: ptxdist@pengutronix.de From: Christian Melki Message-ID: <30a9fa38-3276-c5dc-c36b-51f02483ed0f@t2data.com> Date: Thu, 22 Apr 2021 21:59:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 Content-Language: en-US X-Originating-IP: [81.234.39.46] X-ClientProxiedBy: OL1P279CA0051.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:14::20) 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 OL1P279CA0051.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:14::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Thu, 22 Apr 2021 19:58:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 006bef95-5373-48a9-01c8-08d905c911c1 X-MS-TrafficTypeDiagnostic: HE1PR06MB4137: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ETZznoTXXubkH1o2nHQnVq3pzw7QQRq7R+jNaLrYCdDqA1jO8MCDvVrF7+DxR9ItWt/LIzUtGgsu+TcXDdWip4Dzkv1ay76MzySGbfuhi+jk0xTt1G/faTrYzEEI7Ug+QHc3rHpebXfX1lrWt1UVMUuhVoM4IVnwVtF+rHFnjwkQ8Nu5d9ue6Qyn8PNYUNKnt3dXCZYuibJAxplouAiyd2QTLPP8Bgy3ig8edeoIOim9R6U5dAq0v1JHRQjK78rYBV5YX0hCYf7Gpq+Y8DTWT1lih3nHAvGLHZaDY03Gcdid9z59TrlZLZcSl8weO2R8p3Mx2ImXcY2JQgvr/FbJl363wkFF4y75uJpm1ukHwxb3219P6XeXDcc23xNAn/EZcSrUSUd4gGzCLpTuQ2R7gb+uAN1stGfqB+W+dpHLxRqu8lgpH65lmmea6K93JU8nqfEw5icEiIimVtW0wUHimv0Br00Vs5L7vhO1QM/t/kjPDSFs7MAXJDE/sydPKMz1oCce2ZOExxCFSBLzxOkrOyeYWBdKtlG4+Ylfgkh00UWnYeOLxU1mDW2EQn1ep5tcPKSDNBeJbP+3EIgzagJBxEsPVsylOsNQHBxfK/K7Z9KvWRGtS545DTbUhXiIzB9b23JY0N7rh9kXsDjLCn2++TnzJWoUOHTpWRuWsMSxfe5cH7yNaYlA/09TOxDwgvbeIouwjVcFzyHCHaYCi3giV6JU5X5mym+DD/TAzqJ6nZanBGwb+O6KEHEo7bDPFQ8fAYqPoS73gLgIG3OiPi7sfzYAE8zJ3PPfE3h8tjV39VezVugwSYp/uf6+Xp2VQngY 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:(396003)(376002)(39830400003)(136003)(346002)(42606007)(366004)(8936002)(26005)(966005)(186003)(86362001)(6916009)(38350700002)(38100700002)(6486002)(316002)(31696002)(478600001)(36756003)(16526019)(6666004)(956004)(44832011)(5660300002)(66476007)(66556008)(3450700001)(66946007)(52116002)(16576012)(8676002)(2906002)(31686004)(2616005)(21314003)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?TXROVEFZZDdkRGxZbFR3K3VDb1c3blVjNW5VQzFYZVVEbndxRUlvcVdydmVU?= =?utf-8?B?RGNaZEJFU2xtZFcrY0lETTBJZDlGUCtRQ1orclNHWVlqcHI4NUVCZU9zbHh5?= =?utf-8?B?Z3dE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?utf-8?B?YStRckNwcFVZalEwT3d1Nk1MNEZaZDFUVUs3NHlCSkVRKzFOM3VKUU93OGhT?= =?utf-8?B?eDlXSDZtRTI1S3JiNy83NG5kVXM5YjNKV2JzbElXSkVDd0s0WHBWMm1KSU9H?= =?utf-8?B?NURtNXBjcVJ6VWRLSVcrSHlOcStLWG10bGI1aU1jSFZ1aTMwb211Tm16Qzl4?= =?utf-8?B?aUMvQmoveEdLQnR1NUNPUlpkS0xtZWJFamZkMlRuT2dYUWE5RlBjTmVVZ2c2?= =?utf-8?B?OG9LTW43WGR0OGxqblBrSGFuQWdMWUt2bG9HakRNODBwdTRrRXoxWmV5NkE1?= =?utf-8?B?MDN4R0tmK2NuSGFGV3REU09ralJndyt2empaZC9oTnFDNWdSSVhTT2ZpMFg2?= =?utf-8?B?d0R3a0VLRDl6TVEybjNFajZPWFIxejFZQUQ2S2ZaazcyNjVGZjhGNGUyMXNi?= =?utf-8?B?ZU5RUDNxNDNmS3ZRUlhnSXBPZXVUWkhidVNCZjVRdFVmekdVMnBkTXJ0ZTlR?= =?utf-8?B?ak83TGVJRkR1SkJoWFhuM1FUajFoU0ZDanAxQnlFNUlyL3hvYjc5SDA3UmdC?= =?utf-8?B?VlplRXd4VytZWjgxRGlnd3g4Zi95ZU1KVlJJd3pEcW15aTFkbWRvdWVaTVVW?= =?utf-8?B?Umw0YWFJZ0tTd29aMjhKOGxjRnV4QlgrZ0RJcFNtUkdncUE4ZS9UdHU5UzJn?= =?utf-8?B?a0hvTkMwUVNOVzNEUHJiMlJuZlRvNW95UWtjOW5qV09RTzFjejY3YmZiKzBP?= =?utf-8?Q?Ty0OKZqwwvXPWXRUxER7q9XQr7VGz9Rte23swfP?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: 006bef95-5373-48a9-01c8-08d905c911c1 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0602MB2858.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2021 19:58:59.6351 (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: XyIR9QCkFfI8ICD5aAFYBlcYLAGr4tTKcPrzA9DDBdN321zlsCc9hNAYypY/ms1mWiWOy+evdwD2WHHi56eiYwayD0rMto5TiURNeTmK1Po= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR06MB4137 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.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [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 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. 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 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