Forum

Problem while compiling with bundled blackfin-buildroot

Sina
21 March 2013, 10:15
There is a buildroot Linux System available for ADI Blackfin series blackfin-buildroot-2012R2-RC5.tar.bz2 (2013-02-03)
Available on http://blackfin.uclinux.org/gf/project/buildroot site.
When I want to build the configuration for bfin-537 FLAT (not FDPIC) it seems that the Hiawathia compilation fails since it gets confused on how to link and which polarssl library to use with Hiawathia compiled code.
Thanks

The problem is that for the bfin-flat configuration the library should be attached as static (no shared library is allowed) and the compilation ends with following problem
[ 1%] Building C object CMakeFiles/cgi-wrapper.dir/src/alternative.c.o
[ 2%] Building C object CMakeFiles/cgi-wrapper.dir/src/cgi-wrapper.c.o
[ 3%] Building C object CMakeFiles/cgi-wrapper.dir/src/userconfig.c.o
[ 4%] Building C object CMakeFiles/cgi-wrapper.dir/src/libfs.c.o
[ 5%] Building C object CMakeFiles/cgi-wrapper.dir/src/libstr.c.o
Linking C executable cgi-wrapper
[....
[ 48%] Building C object polarssl/library/CMakeFiles/polarssl.dir/xtea.c.o
Linking C shared library libpolarssl.so
/home/sina/Desktop/blackfin-buildroot/output/host/usr/bfin-uclinux/sysroot/usr/lib/crt1.o: In function `__start':
(.text+0x36): undefined reference to `_main'
/home/sina/Desktop/blackfin-buildroot/output/host/usr/bfin-uclinux/sysroot/usr/lib/crt1.o: In function `__start':
(.text+0x3a): undefined reference to `_main'
collect2: ld returned 1 exit status
make[2]: *** [polarssl/library/libpolarssl.so.1.1.3] Error 1

How and what should be modified to make the compilation runs smoothly
I have posted the same issue and topic to ADI forum and they recommend me to ask the software authors.
Hiawatha version: 8.4
Operating System: bfin-buildroot (embedded Linux)
Hugo Leisink
21 March 2013, 10:44
If you download the PolarSSL source from its website [polarssl.org] and compile it as a shared library, does that work without any error?
This topic has been closed.