[Clfs-dev] coreutils-8.20 failed build
William Harrington
berzerkula at cox.net
Sat Nov 3 09:32:51 PDT 2012
On Nov 3, 2012, at 9:56 AM, William Harrington wrote:
> Yeah 8.19 does fine. 8.20 has some changes where the programs to not
> be installed, but are generated for use with the test suites are
> built using the target compiler and not the host compiler so the
> host system cannot run them when generating lists.
I have a quick fix but it isn't appropriate for a full build:
We can have the host generate the make prime list object file and
binary using the host gcc prior to running make:
=======Begin command snipet===============
sed '/src_make_prime_list/d' -i Makefile
depbase=`echo src/make-prime-list.o | sed 's|[^/]*$|.deps/&|;s|\.o
$||'`;\
gcc -std=gnu99 -I. -I./lib -Ilib -I./lib -Isrc -I./src -
fdiagnostics-show-option -funit-at-a-time -g -O2 -MT src/make-prime-
list.o -MD -MP -MF $depbase.Tpo -c -o src/make-prime-list.o src/make-
prime-list.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc -std=gnu99 -fdiagnostics-show-option -funit-at-a-time -g -O2 -Wl,--
as-needed -o src/make-prime-list src/make-prime-list.o
==========End command snipet=============
What do you guys think?
Sincerely,
William Harrington
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-dev-clfs.org/attachments/20121103/5c6dbac0/attachment-0001.htm>
More information about the Clfs-dev
mailing list