Linux-csky Archive on lore.kernel.org
 help / color / Atom feed
From: Thomas De Schampheleire <patrickdepinguin@gmail.com>
To: Mao Han <han_mao@c-sky.com>
Cc: xianmiao_qu@c-sky.com, buildroot <buildroot@buildroot.org>,
	ren_guo@c-sky.com, linux-csky@vger.kernel.org,
	hongdeng_chen@c-sky.com, thomas.petazzoni@bootlin.com
Subject: Re: [Buildroot] [PATCH 1/2] package/toolchain-external: ensure ARCH_LIB_DIR exist
Date: Fri, 24 Jan 2020 16:00:04 +0100
Message-ID: <CAAXf6LV-f9o_9oY4+Me4qHRJeQhCWA75H1GOEYMoRPu5j4m-Jg@mail.gmail.com> (raw)
In-Reply-To: <20200117023547.GA12999@vmh-VirtualBox>

Hi Mao Han,

El vie., 17 ene. 2020 a las 3:35, Mao Han (<han_mao@c-sky.com>) escribió:
[..]
> >
> > I compiled the riscv toolchain as instructed, and applied your config
> > (note: it was a full config, not a defconfig). The defconfig is:
> >
> > BR2_riscv=y
> > BR2_TOOLCHAIN_EXTERNAL=y
> > BR2_TOOLCHAIN_EXTERNAL_PATH="/opt/riscv"
> > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="$(ARCH)-unknown-linux-gnu"
> > BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_0=y
> > BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
> > BR2_TOOLCHAIN_EXTERNAL_CXX=y
> > BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
> > BR2_SYSTEM_DHCP="eth0"
> > BR2_LINUX_KERNEL=y
> > BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> > BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.1.12"
> > BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
> > BR2_TARGET_ROOTFS_EXT2=y
> > BR2_TARGET_OPENSBI=y
> > BR2_TARGET_OPENSBI_PLAT="qemu/virt"
> > BR2_PACKAGE_HOST_QEMU=y
> > BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
> >
> > Using this config, I do not see the same error as you. The toolchain
> > seems to install correctly (note: later we will notice it does not;
> > see below), but I do get an error later when busybox is compiled:
> >
>
> The problem is originally occurs on a non-public released toolchain
> with a sysroot folder structure like:
> sysroot/lib64xthead/lp64d
> and I tried to reproduce with a public RISC-V toolchain, and got
> similar error weeks ago.
> I retried with the toolchains yesterday, the error is only reproduced
> with the internal one. There might be something wrong with my
> previous operation.
>
[..]
> > I'm not yet sure how this should be solved...
>
> There is another patch in the same thread:
> [PATCH 2/2] toolchain: Get ld.so name if available
> http://buildroot-busybox.2317881.n4.nabble.com/PATCH-1-2-package-toolchain-external-ensure-ARCH-LIB-DIR-exist-td243604.html#a244193
> Tried to get the corresponding ld.so name with certain configuration.
>

Thanks. Using this patch '[PATCH 2/2] toolchain: Get ld.so name if
available' I actually can compile correctly.
So, PATCH 1/2 is not actually needed.

Do you agree that only PATCH 2/2 is required?
If so I will perform a more thorough review of that patch.

Thanks,
Thomas

  reply index

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-02  3:57 Mao Han
2020-01-02  3:57 ` [PATCH 2/2] toolchain: Get ld.so name if available Mao Han
2020-01-26 15:31   ` [Buildroot] " Yann E. MORIN
2020-02-05 10:30   ` Thomas De Schampheleire
2020-01-10 10:57 ` [Buildroot] [PATCH 1/2] package/toolchain-external: ensure ARCH_LIB_DIR exist Thomas De Schampheleire
2020-01-10 11:15   ` Thomas Petazzoni
2020-01-13  3:34   ` Mao Han
2020-01-16  9:36     ` Thomas De Schampheleire
2020-01-17  2:35       ` Mao Han
2020-01-24 15:00         ` Thomas De Schampheleire [this message]
2020-01-26 15:34           ` Yann E. MORIN

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAXf6LV-f9o_9oY4+Me4qHRJeQhCWA75H1GOEYMoRPu5j4m-Jg@mail.gmail.com \
    --to=patrickdepinguin@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=han_mao@c-sky.com \
    --cc=hongdeng_chen@c-sky.com \
    --cc=linux-csky@vger.kernel.org \
    --cc=ren_guo@c-sky.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=xianmiao_qu@c-sky.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-csky Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-csky/0 linux-csky/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-csky linux-csky/ https://lore.kernel.org/linux-csky \
		linux-csky@vger.kernel.org
	public-inbox-index linux-csky

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-csky


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git