2008-01-28 11:53:55     Build Error with Toolchain Checkout 2157 and modified CFLAGS

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-01-28 11:53:55     Build Error with Toolchain Checkout 2157 and modified CFLAGS

Cameron Barfield (UNITED STATES)

Message: 50241    I checked out and built toolchain 2157 so I could use the following compile options:

 

Vendor/User Settings->Blackfin build Options-> User/Lib CFLAGS = -O3 -ffast-math -mfast-fp

 

When building Speex, I now get this error:

 

bfin-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I.. -I../../speex-svn-13013/libspeex -I../../speex-svn-13013/include -I../include -I.. -Ino/include -DEMBED -D__uClinux__ -I/home/cameron/src/blackfin/svn/uClinux-dist -mcpu=bf537-0.2 -pipe -Wall -O3 -ffast-math -mfast-fp -mcpu=bf537-0.2 -c ../../speex-svn-13013/libspeex/quant_lsp.c  -fPIC -DPIC -o .libs/quant_lsp.o

{standard input}: Assembler messages:

{standard input}:684: Error: symbol `lwq1' is already defined

{standard input}:686: Error: symbol `lwq3' is already defined

{standard input}:694: Error: symbol `lwq4' is already defined

{standard input}:698: Error: symbol `lwq2' is already defined

{standard input}:891: Error: symbol `lq1' is already defined

{standard input}:893: Error: symbol `lq3' is already defined

{standard input}:897: Error: symbol `lq4' is already defined

{standard input}:901: Error: symbol `lq2' is already defined

{standard input}:957: Error: symbol `lwq1' is already defined

{standard input}:959: Error: symbol `lwq3' is already defined

{standard input}:967: Error: symbol `lwq4' is already defined

{standard input}:971: Error: symbol `lwq2' is already defined

{standard input}:1052: Error: symbol `lwq1' is already defined

{standard input}:1054: Error: symbol `lwq3' is already defined

{standard input}:1062: Error: symbol `lwq4' is already defined

{standard input}:1066: Error: symbol `lwq2' is already defined

{standard input}:1135: Error: symbol `lwq1' is already defined

{standard input}:1137: Error: symbol `lwq3' is already defined

{standard input}:1145: Error: symbol `lwq4' is already defined

{standard input}:1149: Error: symbol `lwq2' is already defined

{standard input}:1233: Error: symbol `lwq1' is already defined

{standard input}:1235: Error: symbol `lwq3' is already defined

{standard input}:1243: Error: symbol `lwq4' is already defined

{standard input}:1247: Error: symbol `lwq2' is already defined

{standard input}:1445: Error: symbol `lq1' is already defined

{standard input}:1447: Error: symbol `lq3' is already defined

{standard input}:1451: Error: symbol `lq4' is already defined

{standard input}:1455: Error: symbol `lq2' is already defined

{standard input}:1511: Error: symbol `lwq1' is already defined

{standard input}:1513: Error: symbol `lwq3' is already defined

{standard input}:1521: Error: symbol `lwq4' is already defined

{standard input}:1525: Error: symbol `lwq2' is already defined

make[5]: *** [quant_lsp.lo] Error 1

make[4]: *** [install-recursive] Error 1

make[3]: *** [all] Error 2

make[2]: *** [speex] Error 2

make[1]: *** [all] Error 2

make: *** [subdirs] Error 1

cameron@camlinux:~/src/blackfin/svn/uClinux-dist$

 

I'm running uClinux checkout 6068, which I was able to build before upgrading the toolchain and adding the compile options (my old toolchain failed with those options (http://blackfin.uclinux.org/gf/project/toolchain/tracker/?action=TrackerItemEdit&tracker_item_id=3738). I was using the default -g -O2 options previously.

 

I did a 'make clean' with the old toolchain and started a new xterm session after upgrading the toolchain.

QuoteReplyEditDelete

 

 

2008-01-28 13:04:52     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Cameron Barfield (UNITED STATES)

Message: 50243    Build is okay with the default -g -O2 options.

QuoteReplyEditDelete

 

 

2008-01-28 13:31:07     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Robin Getz (UNITED STATES)

Message: 50245    Cameron:

 

Sorry about that - I guess I have not build linphone with the non-IEEE version of the fp lib.

 

Can you confirm that you can build everything with "-O3 -ffast-math"

 

Thanks

QuoteReplyEditDelete

 

 

2008-01-28 13:44:24     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Cameron Barfield (UNITED STATES)

Message: 50248    Robin --

 

It appears it's the "-O3" flag that breaks the build. Either that, or the removal of the "-g" -- which I highly doubt.

QuoteReplyEditDelete

 

 

2008-01-28 19:07:00     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Mike Frysinger (UNITED STATES)

Message: 50258    fixed in svn trunk ... the inline asm was not properly using local labels so when gcc did loop unrolling, the symbols were duplicated which lead to errors

QuoteReplyEditDelete

 

 

2008-01-29 11:37:48     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Cameron Barfield (UNITED STATES)

Message: 50318    Thanks, Mike. I'm re-building now.

QuoteReplyEditDelete

 

 

2008-01-30 11:15:58     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Cameron Barfield (UNITED STATES)

Message: 50379   

I get the same errors with toolchain SVN checkout 2163 (latest available when Mike said it had been fixed).

 

That's with -O3 -ffast-math -mfast-fp

QuoteReplyEditDelete

 

 

2008-01-30 11:56:00     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Mike Frysinger (UNITED STATES)

Message: 50383    sorry, i cant reproduce ... i set my CFLAGS to -O3 -ffast-math -mfast-fp and with current uClinux-dist trunk (fix was committed in r6101), it builds fine:

make lib/speex_clean

make lib/speex_only

QuoteReplyEditDelete

 

 

2008-01-30 12:11:12     Re: Build Error with Toolchain Checkout 2157 and modified CFLAGS

Cameron Barfield (UNITED STATES)

Message: 50385    Ah, ****. I only grabbed the toolchain update and not the distro.

 

Sorry for the confusion.

 

I'm in the middle of building the latest toolchain now since I saw more fixes related to various 'fast' flags.

Attachments

    Outcomes