cpctelera icon indicating copy to clipboard operation
cpctelera copied to clipboard

Link problem in windows with cygwin

Open jjosetrash7 opened this issue 2 years ago • 1 comments

setup.sh finish with error due to "ld problem":

/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.data+0x8): multiple definition of Pad_Byte'; obj/hex2bin.o:hex2bin.c:(.bss+0x78): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x78): multiple definition of Filin'; obj/hex2bin.o:hex2bin.c:(.bss+0x88): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x70): multiple definition of Filout'; obj/hex2bin.o:hex2bin.c:(.bss+0x80): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x64): multiple definition of Checksum'; obj/hex2bin.o:hex2bin.c:(.bss+0x6c): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x6c): multiple definition of Enable_Checksum_Error'; obj/hex2bin.o:hex2bin.c:(.bss+0x74): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x60): multiple definition of Record_Nb'; obj/hex2bin.o:hex2bin.c:(.bss+0x68): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x68): multiple definition of Status_Checksum_Error'; obj/hex2bin.o:hex2bin.c:(.bss+0x70): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x2c): multiple definition of Cks_Type'; obj/hex2bin.o:hex2bin.c:(.bss+0x30): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.data+0x0): multiple definition of Crc_Poly'; obj/hex2bin.o:hex2bin.c:(.bss+0x10): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0xc): multiple definition of Crc_Init'; obj/hex2bin.o:hex2bin.c:(.bss+0xc): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x8): multiple definition of Crc_XorOut'; obj/hex2bin.o:hex2bin.c:(.bss+0x8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x30): multiple definition of Endian'; obj/hex2bin.o:hex2bin.c:(.bss+0x34): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x58): multiple definition of Memory_Block'; obj/hex2bin.o:hex2bin.c:(.bss+0x60): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x20): multiple definition of Cks_Addr'; obj/hex2bin.o:hex2bin.c:(.bss+0x24): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x54): multiple definition of Lowest_Address'; obj/hex2bin.o:hex2bin.c:(.bss+0x5c): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x50): multiple definition of Highest_Address'; obj/hex2bin.o:hex2bin.c:(.bss+0x58): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x10): multiple definition of Force_Value'; obj/hex2bin.o:hex2bin.c:(.bss+0x14): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x48): multiple definition of Max_Length'; obj/hex2bin.o:hex2bin.c:(.bss+0x50): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x40): multiple definition of Minimum_Block_Size_Setted'; obj/hex2bin.o:hex2bin.c:(.bss+0x44): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x14): multiple definition of Cks_Addr_set'; obj/hex2bin.o:hex2bin.c:(.bss+0x18): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x18): multiple definition of Cks_range_set'; obj/hex2bin.o:hex2bin.c:(.bss+0x1c): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x28): multiple definition of Cks_Start'; obj/hex2bin.o:hex2bin.c:(.bss+0x2c): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x24): multiple definition of Cks_End'; obj/hex2bin.o:hex2bin.c:(.bss+0x28): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.data+0x4): multiple definition of Minimum_Block_Size'; obj/hex2bin.o:hex2bin.c:(.bss+0x4c): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x44): multiple definition of Module'; obj/hex2bin.o:hex2bin.c:(.bss+0x48): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x38): multiple definition of Max_Length_Setted'; obj/hex2bin.o:hex2bin.c:(.bss+0x3c): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0xf8): multiple definition of crc_table'; obj/hex2bin.o:hex2bin.c:(.bss+0xf8): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x1c): multiple definition of Cks_Value'; obj/hex2bin.o:hex2bin.c:(.bss+0x20): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x4): multiple definition of Crc_RefIn'; obj/hex2bin.o:hex2bin.c:(.bss+0x4): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x0): multiple definition of Crc_RefOut'; obj/hex2bin.o:hex2bin.c:(.bss+0x0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x34): multiple definition of Swap_Wordwise'; obj/hex2bin.o:hex2bin.c:(.bss+0x38): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x3c): multiple definition of Starting_Address_Setted'; obj/hex2bin.o:hex2bin.c:(.bss+0x40): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x4c): multiple definition of Starting_Address'; obj/hex2bin.o:hex2bin.c:(.bss+0x54): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0x80): multiple definition of Extension'; obj/hex2bin.o:hex2bin.c:(.bss+0x90): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/common.o:common.c:(.bss+0xa0): multiple definition of Filename'; obj/hex2bin.o:hex2bin.c:(.bss+0xa0): first defined here /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: obj/libcrc.o:libcrc.c:(.bss+0x0): multiple definition of crc_table'; obj/hex2bin.o:hex2bin.c:(.bss+0xf8): first defined here

I can't continue with the instalation process, some idea about how I could fix the problem???

jjosetrash7 avatar Mar 01 '23 11:03 jjosetrash7

In order to know where this problem comes from, you need to give us some context.

  • What were you doing exactly?
  • How? What system?
  • What did you do previously?

Seems that you were trying to install CPCtelera but in some non-standard way. These multiple linking errors seem to come from the linker trying to link the same object several times. This does not happen on a regular installation proccess, unless something had previously been done or modified. So, we need to know what happened to cause this problem.

Anyway, please, try to install CPCtelera 1.5 (development branch) instead of CPCtelera master (1.4) if that was what you were doing. That's very important before proceeding.

lronaldo avatar Aug 26 '23 14:08 lronaldo