Lazarus on raspberry

Started by johnvantelli, 23 Nov '24 - 11:15

johnvantelli

Hi everybody
I'm trying to create a lazarus project to play music with bass.
I've downloaded all bass zip files for linux but in them I've not found .pas wrappers, so I tryed to use the windows version.

It seems to run correctly for bass.pas but when i use bassmix.pas during compile I get an error:

Error. /usr/bin/ld.bfd: /lib/libbassmix.so: .dynsym local symbol at index 3 (>= sh_info of 3)
Error: /usr/bin/ld.bfd: /lib/libbassmix.so: .dynsym local symbol at index 4 (>= sh_info of 3)
Error: /usr/bin/ld.bfd: /lib/libbassmix.so: .dynsym local symbol at index 5 (>= sh_info of 3)
Error: /usr/bin/ld.bfd: /lib/libbassmix.so: .dynsym local symbol at index 6 (>= sh_info of 3)
Error: /usr/bin/ld.bfd: /lib/libbassmix.so: .dynsym local symbol at index 7 (>= sh_info of 3)
Error: /usr/bin/ld.bfd: /lib/libbassmix.so: .dynsym local symbol at index 8 (>= sh_info of 3)
Error: /usr/bin/ld.bfd: /lib/libbassmix.so: .dynsym local symbol at index 9 (>= sh_info of 3)
Error: Error while linking

Ian @ un4seen

Another user had this issue recently:

   www.un4seen.com/forum/?topic=20524

The messages are actually just warnings from the linker, so building should normally still succeed, but it looks like Lazarus is treating them as errors. Are you able to change the linker options that it uses? If so, adding "-fuse-ld=gold" there should prevent the messages.

The messages are related to the binutils version that's used in building the Linux BASS libraries. That has since been updated to a more recent version, so new releases won't be affected.

johnvantelli

I've added "-fuse-ld=gold" with no results...
other ideas?

Ian @ un4seen

Do you still see "ld.bfd" in the messages? If so, that means the "gold" linker still isn't being used. You could try "-Wl,-fuse-ld=gold" instead.