2011-01-18 23:05:17 linephone compile failed
david wang (CHINA)
Message: 97525
Hi, all
First of all, My kernel version is 2009R1.1-RC4, toolchain is 2009R1.1-2。
When I tried to compile the linephone project, I met below errors
make[6]: Entering directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/readline/build-readline-6.0/shlib'
/bin/sh ../../readline-6.0/support/mkdirs /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/staging/usr/lib
/bin/sh ../../readline-6.0/support/shlib-install -O linux-uclibc -d /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/staging/usr/lib -b /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/staging/usr/bin -i "/usr/bin/install -c -m 644" libhistory.so.6.0
/bin/sh ../../readline-6.0/support/shlib-install -O linux-uclibc -d /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/staging/usr/lib -b /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/staging/usr/bin -i "/usr/bin/install -c -m 644" libreadline.so.6.0
../../libeXosip2-3.2.0/src/jevents.c: In function ‘eXosip_event_wait’:
../../libeXosip2-3.2.0/src/jevents.c:499: warning: unused variable ‘c’
../../libeXosip2-3.2.0/src/jevents.c:529: warning: unused variable ‘c’
../../libeXosip2-3.2.0/src/jevents.c:496: error: impossible constraint in ‘asm’
../../libeXosip2-3.2.0/src/jevents.c:526: error: impossible constraint in ‘asm’
install: you may need to run ldconfig
make[6]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/readline/build-readline-6.0/shlib'
make[5]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/readline/build-readline-6.0'
rm -f /home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/staging/usr/lib/*.old
make[4]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/readline'
/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/tools/cross-fix-root
{standard input}: Assembler messages:
{standard input}:1846: Error: syntax error. Input text was cld.
{standard input}:1846: Error:
{standard input}:1846: Error: syntax error. Input text was rep.
{standard input}:1846: Error:
{standard input}:1846: Error: syntax error. Input text was stosl.
{standard input}:1846: Error:
{standard input}:1876: Error: syntax error. Input text was btsl.
{standard input}:1876: Error:
{standard input}:1978: Error: syntax error. Input text was cld.
{standard input}:1978: Error:
{standard input}:1978: Error: syntax error. Input text was rep.
{standard input}:1978: Error:
{standard input}:1978: Error: syntax error. Input text was stosl.
{standard input}:1978: Error:
{standard input}:2008: Error: syntax error. Input text was btsl.
{standard input}:2008: Error:
make[5]: *** [jevents.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
../../libeXosip2-3.2.0/src/jauth.c:440: warning: ‘base64_encode_string’ defined but not used
../../libeXosip2-3.2.0/src/udp.c: In function ‘eXosip_read_message’:
../../libeXosip2-3.2.0/src/udp.c:1720: error: impossible constraint in ‘asm’
bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../../libeXosip2-3.2.0/src -I.. -I../../libeXosip2-3.2.0 -I../../libeXosip2-3.2.0/include -I/usr/include -I/usr/include -DEMBED -D__uClinux__ -I/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4 -mcpu=bf527-0.1 -Wall -Wcast-align -Wchar-subscripts -Wformat -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -DOSIP_MT -DENABLE_DEBUG -g -DENABLE_TRACE -pipe -Wall -g -mcpu=bf527-0.1 -pthread -pipe -Wall -g -mcpu=bf527-0.1 -c ../../libeXosip2-3.2.0/src/jauth.c -o jauth.o >/dev/null 2>&1
{standard input}: Assembler messages:
{standard input}:6087: Error: syntax error. Input text was cld.
{standard input}:6087: Error:
{standard input}:6087: Error: syntax error. Input text was rep.
{standard input}:6087: Error:
{standard input}:6087: Error: syntax error. Input text was stosl.
{standard input}:6087: Error:
{standard input}:6134: Error: syntax error. Input text was btsl.
{standard input}:6134: Error:
make[5]: *** [udp.lo] Error 1
make[3]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/readline'
make[5]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/libeXosip/build-libeXosip2-3.2.0/src'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/libeXosip/build-libeXosip2-3.2.0'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib/libeXosip'
make[2]: *** [libeXosip] Error 2
make[2]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/wangyixin/working/uclinux/trunk/uClinux-dist-2009R1.1-RC4/lib'
make: *** [subdirs] Error 1
Does anyone else met the error? How to fix it , thanks!
QuoteReplyEditDelete
2011-01-19 00:01:56 Re: linephone compile failed
Aaron Wu (CHINA)
Message: 97527
First better update to the latest release, second inphone need to be built as FDPIC format
QuoteReplyEditDelete
2011-01-19 00:18:36 Re: linephone compile failed
david wang (CHINA)
Message: 97528
Hi, Aaron
Thanks for your reply. I just enable the linephone project in uClinux-dist/config in make menuconfig, whithout any change to its default setting. Does it need any extra config?
QuoteReplyEditDelete
2011-01-19 00:30:54 Re: linephone compile failed
Aaron Wu (CHINA)
Message: 97529
Yes, you need to compile it as FDPIC , customize application/lib option -->blackfin build options-->binary format
QuoteReplyEditDelete
2011-01-19 01:09:14 Re: linephone compile failed
david wang (CHINA)
Message: 97531
Hi, Aaron
I just checked the blackfin build option, it has been set as FDPIC already.
qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x Binary format (FDPIC) ---> x x
x x --- Install ELF shared libraries x x
x x [ ] Cull unused ELF shared libraries x x
x x [*] Install FLAT shared libraries x x
x x (-g -O2) User/Lib CFLAGS x x
x x [ ] build with stack overflow checking x x
x x [ ] build with mudflap pointer checking x x
x x [ ] install uClinux-dist .config into /root x x
x x
QuoteReplyEditDelete
2011-01-19 01:16:35 Re: linephone compile failed
Aaron Wu (CHINA)
Message: 97532
have you make clean before making again after change the binary format?
QuoteReplyEditDelete
2011-01-19 01:22:27 Re: linephone compile failed
david wang (CHINA)
Message: 97533
Hi, Aaron,
I think it's not the issue of make clean,because I've set the app/lib as FDPIC from the beginning. For confirm, I make clean and make it again. the error is the same.
QuoteReplyEditDelete
2011-01-19 03:00:01 Re: linephone compile failed
Aaron Wu (CHINA)
Message: 97539
I used to try the linphone on 2010 R1 and toolchain release days ago, did not meet compile problem.
QuoteReplyEditDelete
2011-01-21 03:21:31 Re: linephone compile failed
david wang (CHINA)
Message: 97598
Hi, Aaron,
I downloaded the 2010R1 and toolchain, but still failed when compie the linephone. the make output was save in the attached file. pls check it for us, thanks!
d400.log
QuoteReplyEditDelete
2011-01-21 03:23:41 Re: linephone compile failed
david wang (CHINA)
Message: 97599
sorry, the attached file is update here, pls look at this one!
d400.log
QuoteReplyEditDelete
2011-01-21 09:47:55 Re: linephone compile failed
Mike Frysinger (UNITED STATES)
Message: 97603
/home/luotong/working/workspace/blackfin/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: cannot find /lib//libc.so.0
collect2: ld returned 1 exit status
make[5]: *** [libusbpp.la] Error 1
this error indicates your toolchain is not installed correctly. are you sure you're PATH is pointing to the right place and your toolchain is installed properly ?