This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Issue with Linker can't find lib's.
- From: Ghalib Khan <ghalib dot khan at exaleapsemi dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 26 Jun 2019 03:42:34 +0000
- Subject: Re: Issue with Linker can't find lib's.
- Arc-authentication-results: i=1; test.office365.com 1;spf=none;dmarc=none;dkim=none;arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=testarcselector01; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3rJ/h0ApWR6hQSmiJH1d9BkW5dXFz5zMVYnFVyxbCFw=; b=Te+5zFugUZQgC6TZ46PzyVu+LWwG0FLikrFDnctILuvbmyxGeY7UuJ6vpMCAtVDFb/HuO5vwHngb1k2U3knyXMvSv8wOLPqCrF17e7Hl90Y1iiQfIdapWJH+G/8tn83dTPmEg0nG85mnHHuHnlOH2yLjsA+dzMHaGtRVuO94aUA=
- Arc-seal: i=1; a=rsa-sha256; s=testarcselector01; d=microsoft.com; cv=none; b=q7dO3l7BH1YllBshyN9QJHCfEZBbNMpOZstWqiXCBxVDaoY+fD0UrhCT2NiIjyK2n72c4OQOzaYX5hzxeQpmmWw7MUfHcF+n0r1uTnzkCSRyOlrnY47EbhcMONfZc4NMJc8qCEp+m9V3l6g9AZ7u1IexUICKWLOeJvY3mcstvTI=
- References: <MA1PR0101MB1208934552F504991867CD43E8E30@MA1PR0101MB1208.INDPRD01.PROD.OUTLOOK.COM>,<mvmef3ivvn2.fsf@suse.de>
Hi,
We are actually trying to build riscv linux cross compilation tool(build:x86_64, host: x86_64, target:riscv64).
Initially, a custom path was given for prefix instead of /usr. If i mention /usr path it's trying to modify my local machine fille's, what should i do, Here is the Error............
/usr/bin/install: cannot remove '/usr/include/limits.h': Permission denied
make[2]: *** [/usr/include/limits.h] Error 1
make[1]: *** [install-headers] Error 2
Can you send glibc configuration, which means how to build the whole glibc.
Thanks
________________________________
From: Andreas Schwab <schwab@suse.de>
Sent: 25 June 2019 3:23 PM
To: Ghalib Khan
Cc: binutils@sourceware.org
Subject: Re: Issue with Linker can't find lib's.
On Jun 25 2019, Ghalib Khan <ghalib.khan@exaleapsemi.com> wrote:
> build-glibc-linux
> $ ./configure \
> CC="riscv64-unknown-linux-gnu-gcc " \
> CXX="riscv64-unknown-linux-gnu-g++ " \
> CFLAGS=" -mcmodel=medlow -g -O2 " \
> CXXFLAGS=" -mcmodel=medlow -g -O2 " \
> ASFLAGS=" -mcmodel=medlow " \
> --host=riscv64-unknown-linux-gnu \
> --prefix=$(INSTALL_DIR) \
prefix should be /usr, ie. the host path.
> --with-sysroot=$(INSTALL_DIR)/sysroot \
> --disable-werror \
> --enable-shared \
> --enable-obsolete-rpc \
> --with-headers=$(INSTALL_DIR)/include \
> --disable-multilib \
> --enable-add-ons \
> --enable-kernel=$(linux_version) \
> \
> --libdir=$(INSTALL_DIR)/sysroot/usr/lib libc_cv_slibdir=$(INSTALL_DIR)/sysroot/lib libc_cv_rtlddir=$(INSTALL_DIR)/sysroot/lib
Same here, these need to be host paths.
> build-glibc-linux-headers
> ./configure \
> CC="riscv64-unknown-linux-gnu-gcc " \
> --host=riscv64-unknown-linux-gnu \
> --prefix=$(INSTALL_DIR)/sysroot/usr \
Likewise.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."