Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link problem in windows with cygwin #168

Open
jjosetrash7 opened this issue Mar 1, 2023 · 1 comment
Open

Link problem in windows with cygwin #168

jjosetrash7 opened this issue Mar 1, 2023 · 1 comment
Assignees
Labels

Comments

@jjosetrash7
Copy link

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???

@lronaldo
Copy link
Owner

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 lronaldo self-assigned this Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants