[Clfs-support] build error '/bin/sh: -g: invalid option' when build uClibc in clfs

湘雪秋 confucian_tju at hotmail.com
Wed Mar 6 19:33:00 PST 2013


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 at 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: berzerkula at cox.net
To: clfs-support at lists.cross-lfs.org
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
Clfs-support at lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20130307/2a05adb9/attachment-0001.htm>


More information about the Clfs-support mailing list