thanks for help. i follow the makefile, find clue like below:
in .config:
CROSS_COMPILER_PREFIX="${CLFS_TARGET}-"
then Rules.mak:
CROSS = $(call
qstrip,$(CROSS_COMPILER_PREFIX))
then ***.sh:
CC = $(CROSS)gcc
and i have predefine 'CLFS_TARGET'
as "i686-pc-linux-uclibc"
so why this happen?
and is this the main
problem?
after I call make, invalid
option will show like below, are these errors no problem?
clfs@ryang-desktop:/mnt/clfs/source/embedded-0.0.1/uClibc-0.9.31$
sudo make
/bin/sh:
-g: invalid option
Usage: /bin/sh [GNU long option]
[option] ...
/bin/sh [GNU long option] [option]
script-file ...
From: [email protected]
To: [email protected]
Date: Wed, 6 Mar 2013 21:01:53 -0600
Subject: Re: [Clfs-support] build error '/bin/sh: -g: invalid option' when
build uClibc in clfs
On Mar 6, 2013, at 8:36 PM, 湘雪秋 wrote:make: -gcc: Command not foundmake: -gcc:
Command not found MKDIR include/bits GEN
include/bits/sysnum.hextra/scripts/gen_bits_syscall_h.sh: line 31: -gcc:
command not foundextra/scripts/gen_bits_syscall_h.sh: line 27: -gcc: command
not found
A variable isn't set.
Should have something similar i686-pc-linux-uclibc-gcc if the variable isn't
set then you get -gcc
Sincerely,
William Harrington
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org