From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Edwards Date: Thu, 7 Jan 2010 22:30:30 +0000 (UTC) Subject: [Buildroot] MTD build failing: undefined ref's to bcopy, bcmp References: <20100107183709.74ba1341@surf> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 2010-01-07, Grant Edwards wrote: > On 2010-01-07, Thomas Petazzoni wrote: >> Le Thu, 7 Jan 2010 17:02:31 +0000 (UTC), >> Grant Edwards a ??crit : >> >>> I patched the bug in the mtd package so it's now building, but >>> it won't run: >>> >>> # flash_info >>> flash_info: can't load library 'libgcc_s.so.1' >>> >>> libgcc_s.so.1 appears in the staging directory, >>> >>> $ find . -name libgcc_s* >>> ./output/staging/usr/arm-linux-uclibc/lib/libgcc_s.so >>> ./output/staging/usr/arm-linux-uclibc/lib/libgcc_s.so.1 >>> >>> but it's not present in the target filesystem. >> >> Are you using a buildroot-generated toolchain or an external toolchain ? > > Yes. :) > > It's an external toolchain that was generated by buildtoot. The problem is that buildroot expects to find libgcc, libstdc++, et al in $(SYSROOT)/lib That's not where buildroot puts them. Buildroot puts them in $(SYSROOT)/usr/arm-linux-uclibc/lib Apparently, toolchains built by Buildroot aren't suitable for use as external toolchains without some post-build massaging. -- Grant Edwards grante Yow! I brought my BOWLING at BALL -- and some DRUGS!! visi.com