AnsweredAssumed Answered

Inter Core Communications Linking Problem

Question asked by BlairFredericks on Oct 31, 2011
Latest reply on Nov 29, 2011 by StuH

Hi All,

 

I am trying to compile x264 as a bare metal task.

 

The Makefile is attached.

 

GNU ld version 2.17
  Supported emulations:
   elf32bfin
   elf32bfinfd
../../icc_core/icc: In function `__init':
(.init+0x0): multiple definition of `__init'
/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.3.5/crti.o:(.init+0x0): first defined here
../../icc_core/icc: In function `__start':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/libgloss/bfin/basiccrt.S:79: multiple definition of `__start'
/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/lib/basiccrt.o:/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/libgloss/bfin/basiccrt.S:79: first defined here
../../icc_core/icc: In function `__fini':
(.fini+0x0): multiple definition of `__fini'
/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.3.5/crti.o:(.fini+0x0): first defined here
../../icc_core/icc:(.data+0x0): multiple definition of `___dso_handle'
/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.3.5/crtbegin.o:(.data+0x0): first defined here
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(closer.o): In function `_close_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/closer.c:53: warning: _close is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(fstatr.o): In function `_fstat_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/fstatr.c:62: warning: _fstat is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(signalr.o): In function `_getpid_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/signalr.c:96: warning: _getpid is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(sysgettod.o): In function `gettimeofday':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/syscalls/sysgettod.c:18: warning: _gettimeofday is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(makebuf.o): In function `__smakebuf':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/stdio/makebuf.c:96: warning: isatty is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(signalr.o): In function `_kill_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/signalr.c:61: warning: _kill is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(linkr.o): In function `_link_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/linkr.c:61: warning: _link is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(lseekr.o): In function `_lseek_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/lseekr.c:58: warning: _lseek is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(openr.o): In function `_open_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/openr.c:59: warning: _open is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(readr.o): In function `_read_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/readr.c:58: warning: _read is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(unlinkr.o): In function `_unlink_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/unlinkr.c:54: warning: _unlink is not implemented and will always fail
/opt/uClinux/bfin-elf/bfin-elf/lib/libc.a(writer.o): In function `_write_r':
/usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/newlib/libc/reent/writer.c:58: warning: _write is not implemented and will always fail
/opt/uClinux/bfin-elf/lib/gcc/bfin-elf/4.3.5/crtend.o:(.dtors+0x0): multiple definition of `___DTOR_END__'
../../icc_core/icc:(.dtors+0x4): first defined here
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: section .text [03c00000 -> 03ceaa73] overlaps section .init [03c00000 -> 03c00023]
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .text lma 0x3c00000 overlaps previous sections
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .fini lma 0x3ceaa74 overlaps previous sections
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .rodata lma 0x3ceaa90 overlaps previous sections
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .eh_frame lma 0x3d02c88 overlaps previous sections
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .ctors lma 0x3d0316c overlaps previous sections
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .dtors lma 0x3d0317c overlaps previous sections
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .jcr lma 0x3d0318c overlaps previous sections
/opt/uClinux/bfin-elf/bfin-elf/bin/ld.real: x264: section .data lma 0x3d03194 overlaps previous sections
collect2: ld returned 1 exit status
make[5]: *** [x264] Error 1
make[5]: Leaving directory `/home/bfredericks/Desktop/uclinux-dist/user/blkfin-apps/icc_utils/example/h264'
make[4]: *** [icc_example] Error 2
make[4]: Leaving directory `/home/bfredericks/Desktop/uclinux-dist/user/blkfin-apps/icc_utils'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/bfredericks/Desktop/uclinux-dist/user/blkfin-apps'
make[2]: *** [blkfin-apps] Error 2
make[2]: Leaving directory `/home/bfredericks/Desktop/uclinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/bfredericks/Desktop/uclinux-dist/user'
make: *** [subdirs] Error 1

 

Regards,

 

Blair Fredericks

Attachments

Outcomes