Opened 5 months ago

Closed 5 months ago

#18918 closed bug (no change required)

Buildtools broken (R1B4 64bit)?

Reported by: begasus Owned by: nobody
Priority: high Milestone: Unscheduled
Component: Build System Version: R1/beta4
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description

Running configure on an uptodate source for the buildtools and Haiku results in multiple definitions error on htab_size. Cleaned generated directory and started a fresh build after failed update earlier. Pulled latest changes from upstream, ran ../configure --cross-tools-source ../../buildtools --build-cross-tools x86_64 --distro-compatibility official from the generated.x86_64 directory fails with:

make[5]: Leaving directory '/Opslag/Haiku/haiku/generated.x86_64/cross-tools-x86_64-build/binutils/ld'
  CC       ei386pep.o
  CC       ldelf.o
  CC       ldelfgen.o
  CC       deffilep.o
  CC       pdb.o
  CC       pe-dll.o
  CC       pep-dll-x86_64.o
  CCLD     ld-new
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_size':
hashtab.c:(.text+0x330): multiple definition of `htab_size'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:229: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_elements':
hashtab.c:(.text+0x340): multiple definition of `htab_elements'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:238: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_create_alloc_ex':
hashtab.c:(.text+0x350): multiple definition of `htab_create_alloc_ex'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:346: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_create_alloc':
hashtab.c:(.text+0x4e0): multiple definition of `htab_create_alloc'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:306: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_set_functions_ex':
hashtab.c:(.text+0x500): multiple definition of `htab_set_functions_ex'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:385: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_create':
hashtab.c:(.text+0x530): multiple definition of `htab_create'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:404: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_try_create':
hashtab.c:(.text+0x550): multiple definition of `htab_try_create'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:414: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_delete':
hashtab.c:(.text+0x570): multiple definition of `htab_delete'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:423: first defined here
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/13.3.0/../../../../x86_64-unknown-haiku/bin/ld: ../libiberty/libiberty.a(hashtab.o): in function `htab_empty':
hashtab.c:(.text+0x620): multiple definition of `htab_empty'; /packages/zstd-1.5.6-1/.self/develop/lib/libiberty.a(hashtab.o):/sources/gdb-6.3/libiberty/./hashtab.c:450: first defined here
...

Change History (4)

comment:1 by madmax, 5 months ago

It would seem an installed static libiberty interfering? Probably from gdb package, check /system/develop/lib/libiberty.a and if you can try again without it.

comment:2 by begasus, 5 months ago

Thanks madmax! Seems the installed gdb package got in the way.

Maybe we can re-package our current one to provide a seperate devel package?

comment:3 by begasus, 5 months ago

Can be closed, removing the gdb package fixed it.

comment:4 by madmax, 5 months ago

Resolution: no change required
Status: newclosed
Note: See TracTickets for help on using tickets.