lyang0@lyang0:~/downloads/uClibc-0.9.30.3/test$ make compile
TEST_LINK args/ arg_test
arg_test.c:9:19: error: stdio.h: No such file or directory
arg_test.c:10:20: error: stdlib.h: No such file or directory
arg_test.c:11:20: error: unistd.h: No such file or directory
arg_test.c: In function 'main':
arg_test.c:16: error: '__environ' undeclared (first use in this function)
arg_test.c:16: error: (Each undeclared identifier is reported only once
arg_test.c:16: error: for each function it appears in.)
arg_test.c:28: warning: incompatible implicit declaration of built-in
function 'printf'
arg_test.c:39: warning: incompatible implicit declaration of built-in
function 'exit'
make[1]: *** [arg_test] Error 1
make: *** [_dircompile_args] Error 2
我的系统上肯定有这些头文件,因为:
lyang0@lyang0:~/downloads/uClibc-0.9.30.3/test/args$ gcc arg_test.c -o xx
lyang0@lyang0:~/downloads/uClibc-0.9.30.3/test/args$ file xx
xx: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux
2.6.8, dynamically linked (uses shared libs), not stripped
有哪为仁兄,下载个uclibc试下看 谢谢先
--
"We learn from failure, not from success!"
_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.org
http://zh-kernel.org/mailman/listinfo/linux-kernel
Linux 内核开发中文社区: http://zh-kernel.org
将下面这个命令的结果贴上来
# gcc -Wp,-v
看看你Makefile的CC变量,INCLUDE_PATH都是那些变量,是不是的确给了正确的变
量?此外,这个邮件列表是内核相关讨论,关于uclibc的问题应该发到嵌入式相关
,或者uclibc-dev去比较合适。
你可以看看,
http://groups.google.com/group/embedded-linux-zh-CN
和,
/大头阿当
仁兄 我之前给 ucl...@uclibc.org 发过信 没人理我,我自己也 export C_INCLUE_PATH 过,不管用
你要是有兴趣 你可以下个这个包试下嘿嘿
.
Thanks in advance
Lei
> 看看你Makefile的CC变量,INCLUDE_PATH都是那些变量,是不是的确给了正确的变
> 量?此外,这个邮件列表是内核相关讨论,关于uclibc的问题应该发到嵌入式相关
> ,或者uclibc-dev去比哦较合适。
>
> 你可以看看,
>
> http://groups.google.com/group/embedded-linux-zh-CN
>
> 和,
>
> ucl...@uclibc.org
>
> /大头阿当
>
> _______________________________________________
> Linux 内核开发中文邮件列表
> Linux-...@zh-kernel.org
> http://zh-kernel.org/mailman/listinfo/linux-kernel
> Linux 内核开发中文社区: http://zh-kernel.org
--
"We learn from failure, not from success!"
Hi,
uclibc我编译过不下50遍,你若是真的想解决问题,就应该把
INCLUDE PATH搞清楚。
# echo "int main() {}" > test.c
# gcc -Wp,-v test.c
把输出结果贴上了。
如果是在不行,你可以试试buildroot,但实际上没必要,
你的错误消息一看就知道是环境配置不正确。
/大头阿当
--
Adam Jiang
-----------------------------------
e-mail:jiang...@gmail.com
http://www.adamjiang.com
-----------------------------------
> 2010/5/31 lei yang <yangle...@gmail.com>:
> >>
> >> 将下面这个命令的结果贴上来
> >>
> >> # gcc -Wp,-v
> >>
> >>
> > 仁兄 我之前给 ucl...@uclibc.org 发过信 没人理我,我自己也 export C_INCLUE_PATH 过,不管用
> > 你要是有兴趣 你可以下个这个包试下嘿嘿
> >
>
> Hi,
>
> uclibc我编译过不下50遍,你若是真的想解决问题,就应该把
> INCLUDE PATH搞清楚。
>
> # echo "int main() {}" > test.c
> # gcc -Wp,-v test.c
>
>
谢谢仁兄的耐心。
lyang0@lyang0:~/downloads/uClibc-0.9.30.3/test/args$ gcc -Wp,-v arg_test.c
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/gcc/i486-linux-gnu/4.2.3/include
/usr/include
End of search list.
lyang0@lyang0:~/downloads/uClibc-0.9.30.3/test/args$ ls /usr/include
aio.h cups expat_external.h getopt.h
krb5 malloc.h nl_types.h regexp.h sysexits.h
wait.h
aliases.h curl expat.h gettext-po.h
krb5.h math.h nss.h resolv.h syslog.h
wchar.h
alloca.h cursesapp.h fcntl.h gio-unix-2.0
langinfo.h mcheck.h obstack.h rpc tar.h
wctype.h
a.out.h cursesf.h features.h glib-2.0
lastlog.h memory.h opencdk.h rpcsvc termcap.h
wordexp.h
argp.h curses.h fenv.h glob.h
lber.h menu.h openssl sched.h term_entry.h X11
argz.h cursesm.h flask.h gnu
lber_types.h mntent.h panel.h scsi term.h xcb
ar.h cursesp.h FlexLexer.h gnutls
ldap_cdefs.h monetary.h pango-1.0 search.h termio.h xen
arpa cursesw.h fmtmsg.h gnu-versions.h
ldap_features.h mqueue.h paths.h semaphore.h termios.h
xenctrl.h
asm cursslk.h fnmatch.h gpg-error.h
ldap.h nc_tparm.h pixman-1 setjmp.h tgmath.h
xenguest.h
asm-generic dbus-1.0 fontconfig gpilotd
ldap_schema.h ncurses_dll.h pngconf.h sgtty.h thread_db.h
xlocale.h
assert.h dirent.h form.h grp.h
ldap_utf8.h ncurses.h png.h shadow.h tic.h xs.h
atk-1.0 dlfcn.h fpu_control.h gssapi
libgen.h ncursesw poll.h signal.h time.h
xs_lib.h
autosprintf.h elf.h freetype2 gssapi.h
libgpilotdCM net pr29.h spawn.h tld.h
zconf.h
bits endian.h fsimage_grub.h gssrpc
libintl.h netash printf.h stab.h tls.h
zlibdefs.h
blktaplib.h envz.h fsimage.h gtk-2.0
libio.h netatalk profile.h stdint.h ttyent.h
zlib.h
byteswap.h err.h fsimage_plugin.h gtk-unix-print-2.0
libpng netax25 protocols stdio_ext.h ucontext.h
c++ errno.h fstab.h iconv.h
libpng12 netdb.h pthread.h stdio.h ulimit.h
cairo error.h ft2build.h idna.h
libtasn1.h neteconet pty.h stdlib.h unctrl.h
com_err.h et fts.h idn-free.h
libxml2 netinet punycode.h string.h unistd.h
compiz eti.h ftw.h idn-int.h
limits.h netipx pwd.h stringprep.h ustat.h
complex.h etip.h _G_config.h ieee754.h
link.h netpacket python2.4 strings.h utime.h
cpio.h evince-2.20 gconv.h ifaddrs.h
linux netrom python2.5 stropts.h utmp.h
crypt.h execinfo.h gcrypt.h inttypes.h
locale.h netrose re_comp.h sys utmpx.h
ctype.h expat_config.h gcrypt-module.h kerberosIV
lzo nfs regex.h syscall.h values.h
注:单独用gcc 来编这单个文件是没问题的 没出现头文件找不到
Lei
> 把输出结果贴上了。
>
> 如果是在不行,你可以试试buildroot,但实际上没必要,
> 你的错误消息一看就知道是环境配置不正确。
>
> /大头阿当
> --
> Adam Jiang
> -----------------------------------
> e-mail:jiang...@gmail.com <e-mail%3Ajian...@gmail.com>
> http://www.adamjiang.com
> -----------------------------------
>
--
"We learn from failure, not from success!"
从这个结果来看,至少可以肯定你机器上的某一个gcc是没有问题的,应该是host的toolchain.
你在配置uclibc的时候有没有开启交叉编译选项?编译用的命令是
# make
还是
# make CROSS=xxx-linux-
如果你使用的是交叉编译方式的,用同样的参数确认一下gcc的include path.
如果你搞不清楚究竟用的哪个,可以用下面的命令看看到底在哪里出错了
# make UCLIBC_EXTRA_CFLAGS="-Wp,-v"
/大头阿当
--
Adam Jiang
-----------------------------------
e-mail:jiang...@gmail.com
http://www.adamjiang.com
-----------------------------------
工作目的和性质:
负责全新芯片上面Android,Linux移植、驱动开发以及相关问题的定位解决。
主要职责:
1. 熟悉相关芯片文档,结合具体情况,分析Android移植需要实现的功能和要求。
2. Android BSP包移植,实现UART,LCD, USB,FLASH等驱动。
3. 相关移植文档编写, 指导客户进行二次开发。
4. 完成相关工作详细设计以及测试规范。
所需资历:
1. 学历/所受培训:电子技术相关专业本科以上学历;
2. 3年以上Linux开发经验;
3. 有过在芯片裸板上面进行从零开始的Linux(Android)移植工作经验更佳。
4. 熟悉驱动开发流程, 有过重要驱动(UART, LCD, USB, FLASH等)的开发调试经验;
5. 熟悉ARM体系;
6. 熟悉下载工具开发流程,并有手机终端上面NOR & NAND下载开发经验者更佳。
7. 熟练使用各种硬件简单仪器仪表;
8. 具备分析、定位和解决常见软硬件问题的能力,有一定的疑难问题分析能力,能够构建完整的测试流程追查问题的根源,寻求解决方案;
9. 其它要求:学习能力强;有很强的理解分析能力,富于创新;良好的英语读、写能力;具有团队合作精神,敬业精神和良好的沟通能力。
lyang0@lyang0:~/downloads/uClibc-0.9.30.3/test$ make
UCLIBC_EXTRA_CFLAGS="-Wp,-v"
TEST_LINK args/ arg_test
arg_test.c:9:19: error: stdio.h: No such file or directory
arg_test.c:10:20: error: stdlib.h: No such file or directory
arg_test.c:11:20: error: unistd.h: No such file or directory
arg_test.c: In function 'main':
arg_test.c:16: error: '__environ' undeclared (first use in this function)
arg_test.c:16: error: (Each undeclared identifier is reported only once
arg_test.c:16: error: for each function it appears in.)
arg_test.c:28: warning: incompatible implicit declaration of built-in
function 'printf'
arg_test.c:39: warning: incompatible implicit declaration of built-in
function 'exit'
make[1]: *** [arg_test] Error 1
make: *** [_dirrun_args] Error 2
Thanks
Lei
2010/6/1 Adam Jiang <jiang...@gmail.com>
> e-mail:jiang...@gmail.com <e-mail%3Ajian...@gmail.com>
> http://www.adamjiang.com
> -----------------------------------
>
--
"We learn from failure, not from success!"
/tmp/uClibc-0.9.30.1/test $ make -n | head
make -C args run
echo " "TEST_LINK args/ arg_test
gcc -Wstrict-prototypes -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -Os -D_GNU_SOURCE -I../../test -nostdinc -I../../install_dir/usr/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.4.2//include-fixed -I/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include -c arg_test.c -o arg_test.o
gcc -s -static -B../../lib -Wl,-rpath,../../lib -Wl,-rpath-link,../../lib arg_test.o -o arg_test
echo " "TEST_LINK args/ arg_test_glibc
gcc -Wstrict-prototypes -Os -funit-at-a-time -fno-tree-loop-optimize -fno-tree-dominator-opts -fno-strength-reduce -Os -D_GNU_SOURCE -I../../test -c arg_test.c -o arg_test_glibc.o
gcc -s -static arg_test_glibc.o -o arg_test_glibc
echo " "TEST_EXEC args/ arg_test
env -i ENVVAR=123 SOMETHING=sldajfasdf BLAHBLAH=" hi hi " ./arg_test a b c d e f g h > "arg_test.out" 2>&1 ; ret=$? ; expected_ret="" ; test -z "$expected_ret" && export expected_ret=0 ; if ! test $ret -eq $expected_ret ; then echo "ret == $ret ; expected_ret == $expected_ret" ; exit 1 ; fi
true "arg_test.out"
make: *** [_dirrun_args] 断开的管道
注意看 -I 以及 -nostdinc
兄弟你太强大了!为什吗不直接在topdir做
make test
而要直接跑到test里面去make?
/大头阿当
两个问题:
1. make -n 是啥意思,我的make -n 没问题 怎么make -n |head 跟你遇到的一样
2..那我该怎么解决这个问题呢
>
> 注意看 -I 以及 -nostdinc
>
> _______________________________________________
> Linux 内核开发中文邮件列表
> Linux-...@zh-kernel.org
> http://zh-kernel.org/mailman/listinfo/linux-kernel
> Linux 内核开发中文社区: http://zh-kernel.org
>
--
"We learn from failure, not from success!"
你是要说 make -C test 吧?其实没什么区别。
......抱歉,这个讨论我不能再跟下去了,两位似乎根本不知道自己在干啥。
make test
没有-C,自己less topdir/Makefile看看吧。test/Makefile里面没有include顶层
目录中的makefile.in,缺少环境设置,这是你们都出错的原因。不要直接跑到
test下面去make,而要在顶层目录make test做对于uclibc的测试。
看uclibc的指南,google一下找找编译的步骤,稍微用心点就不会犯这样的低级错
误。而这个错误竟然被挂在这里好几天,我是服了。
/大头阿当
-n 就是 make 并不真正执行命令,但是打印出要执行的命令及参数。
> 2..那我该怎么解决这个问题呢
>
我猜你没有编译 uClibc. test/Makefile 是 build against uClibc 的,从参数
-I../../install_dir/usr/include 可以知道 uClibc 是安装至
$(TOP_DIR)/install_dir 的。
如果你要用 host toolchain 编译 test, 可以修改 Makefile.
uClibc的test做的就是对编译好的C library进行测试,这里“应该”没有理由build
agains host c lib。
/大头阿当
据我所知,你们现在使用的uClibc-0.9.30.3的test是稍有问题的,一个是在没有
配置DO_C99_MATH的时候,make test却会去测试MATH;另一个是,链接时缺少符号
__isnaxxx。这两个都是uClibc自身Makefile的问题,如果仅有这两个错,基本上
可以uClibc就是编译成功了。
推荐使用uClibc-0.9.29或者uClibc-0.9.31;uClibc-0.9.30基本就是残次品。如
果不是超小型设备,还是选用裁剪好的glibc,选择uClibc在开发后期会遇到一些
问题。特别是移植一些软件的时候,会非常烦人。
/大头阿当
好吧,我承认我没有编译 uClibc. 不过我想这正是 lei yang 出问题的原因。
当然如果我想编译 uClibc 的话早就编成功了。
sorry, hu. 刚才说话有点着急。我相信你一定能搞得定。
/大头阿当
没事 :)
Lei
2010/6/2 Adam Jiang <jiang...@gmail.com>
--
"We learn from failure, not from success!"
说老实话,make test没做过几遍,但有编译通过的时候,需要修改工具连和
uclibc的测试代码。除非你确认问题是工具链带来的,那么必须调整工具链,如果
是测试代码本身,我一般选择睁一只眼闭一只眼。
/Adam
在我们团队里,可以从一个新的芯片开始做起,从u-boot到kernel,再到andriod的middleware。如果你想对linux kernel和linux driver有深入研究或者很感兴趣,请发简历给我们; 如果你对android手机开发感兴趣,请加入我们;
团队成员工作气氛积极向上,不少人在linux内核社区也是活跃分子,为内核开发做贡献。如果你在寻找一个工作环境好而且能得到锻炼和发展的平 台,别犹豫,请加入我们!
请发简历到:figo...@gmail.com
在2010-06-01 13:53:17,"figo.zhang" <figur...@126.com> 写道:
TD手机芯片公司,大唐联芯 诚邀linux/android开发人员,负责全新芯片上面Android,Linux移植、驱动开发以及相关问题的定位解决。 机会难得阿。
联系:figo...@gmail.com或者zhangt...@leadcoretech.com
公司网址:www.leadcoretech.com
工作地点: 上海
工作性质: 全职
工作目的和性质:
负责全新芯片上面Android,Linux移植、驱动开发以及相关问题的定位解决。
主要职责:
1. 熟悉相关芯片文档,结合具体情况,分析Android移植需要实现的功能和要求。
2. Android BSP包移植,实现UART,LCD, USB,FLASH等驱动。
3. 相关移植文档编写, 指导客户进行二次开发。
4. 完成相关工作详细设计以及测试规范。
所需资历:
1. 学历/所受培训:电子技术相关专业本科以上学历;
2. 3年以上Linux开发经验;
3. 有过在芯片裸板上面进行从零开始的Linux(Android)移植工作经验更佳。
4. 熟悉驱动开发流程, 有过重要驱动(UART, LCD, USB, FLASH等)的开发调试经验;
5. 熟悉ARM体系;
6. 熟悉下载工具开发流程,并有手机终端上面NOR & NAND下载开发经验者更佳。
7. 熟练使用各种硬件简单仪器仪表;
8. 具备分析、定位和解决常见软硬件问题的能力,有一定的疑难问题分析能力,能够构建完整的测试流程追查问题的根源,寻求解决方案;
9. 其它要求:学习能力强;有很强的理解分析能力,富于创新;良好的英语读、写能力;具有团队合作精神,敬业精神和良好的沟通能力。
网易为中小企业免费提供企业邮箱(自主域名)
> Date: Mon, 7 Jun 2010 09:51:39 +0800
> From: figur...@126.com
> To: figur...@126.com
> Subject: Re:TD手机芯片公司- 大唐联芯 招聘LINUX/Android开发人员
> CC: linux-...@zh-kernel.org
_________________________________________________________________
MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
http://kaba.msn.com.cn/?k=1
使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载!
在2010-06-07 10:01:52,lzsh0428 <lzsh...@gmail.com> 写道: