make lib linking error on Mac OS/X 10.6.8

2013-03-10
2013-03-11
  • Bert Copying
    Bert Copying
    2013-03-10

    Has anyone else encountered a linking error when running 'make lib' on skyeye 1.3.5_rc1?

    --- clip ---
    asm.o .libs/xc16x-desc.o .libs/xc16x-dis.o .libs/xc16x-ibld.o .libs/xc16x-opc.o .libs/xstormy16-asm.o .libs/xstormy16-desc.o .libs/xstormy16-dis.o .libs/xstormy16-ibld.o .libs/xstormy16-opc.o .libs/xtensa-dis.o .libs/z80-dis.o .libs/z8k-dis.o -install_name /tmp/j/local/lib/libopcodes-2.18.50.20070907.dylib
    ld: duplicate symbol _instruction in .libs/crx-dis.o and .libs/cr16-dis.ocollect2: ld returned 1 exit status
    make[3]: [libopcodes.la] Error 1
    make[2]:
    [all-recursive] Error 1make[1]: [all] Error 2
    make:
    [lib] Error 2
    --- clip ---

    I know I could just make a quick patch to makefile and skip either crx-dis.c or cr16-dis.c, but maybe someone has fixed this on the upstream already?

     
  • kangsh
    kangsh
    2013-03-11

    We have not test on the Mac. But I think probably you can have a quick workaround to your issues. You can modify the following line in Makefile.am:

    109 third-party/opcodes/.libs/libopcodes.so:
    110 mkdir -p third-party/opcodes/ && cd third-party/opcodes/ && ./../../$(top_srcdir)/third-party/opcodes/configure --p refix=$(prefix) --disable-werror --enable-shared --enable-targets=all;$(MAKE);

    The default configure for opcode is "--enable-targets=all". You also can adapt it , such as "--enable-targets=arm"