主题 : cygwin下为mini2440编译 glibc 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 3777
精华: 0
发帖: 7
金钱: 70 两
威望: 70 点
综合积分: 14 分
注册时间: 2009-02-08
最后登录: 2017-09-13
楼主  发表于: 2009-02-16 00:35

 cygwin下为mini2440编译 glibc

你门有谁在cygwin下为mini2440编译过glibc?
版本glibc2.7
port包也打了,没有用linuxthreads

$ CC=arm-linux-gcc ../glibc-2.7/configure --host=arm-linux --prefix="/usr"  --with-headers=${TARGET_PREFIX}/include
输出:

checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... no
configure: error: compiler support for visibility attribute is required

如何解决?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-02-16 16:27
checking whether __attribute__((visibility())) is supported... no

arm-linux-gcc不支持__attribute__((visibility())) , 恐怕你得换一个高版本的gcc, 或者用低一点版本的glibc
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 3777
精华: 0
发帖: 7
金钱: 70 两
威望: 70 点
综合积分: 14 分
注册时间: 2009-02-08
最后登录: 2017-09-13
2楼  发表于: 2009-02-17 00:37
我用的是arm-linux-gcc 4.3.3
级别: 新手上路
UID: 3777
精华: 0
发帖: 7
金钱: 70 两
威望: 70 点
综合积分: 14 分
注册时间: 2009-02-08
最后登录: 2017-09-13
3楼  发表于: 2009-02-17 20:50
换了4.3.1 输出;
running configure fragment for nptl/sysdeps/pthread
checking for forced unwind support... no
configure: error: forced unwind support is required
如何解决?
级别: 新手上路
UID: 3777
精华: 0
发帖: 7
金钱: 70 两
威望: 70 点
综合积分: 14 分
注册时间: 2009-02-08
最后登录: 2017-09-13
4楼  发表于: 2009-02-18 14:23
还是用crosstool吧,太闹心了。