Skip to contentSkip to conversation

New: fluidsynths refers to missing libgomp.so.1

Buildroot [email protected] 1 participant 7 messages Jun 18, 2023 – Aug 31, 2023

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=15634

            Bug ID: 15634
           Summary: fluidsynths refers to missing libgomp.so.1
           Product: buildroot
           Version: 2023.05
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Target Milestone: ---

$ ldd /lib64/libfluidsynth.so
libgomp.so.1 => not found
<list of other deps that are not missing>
Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

[Buildroot] [Bug 15634] fluidsynths refers to missing libgomp.so.1

https://bugs.busybox.net/show_bug.cgi?id=15634

Yann E. MORIN <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Yann E. MORIN <[email protected]> --- stsp, All,

Can you provide your Buildroot defconfig file, please?

Regards,
Yann E. MORIN.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

[Buildroot] [Bug 15634] fluidsynths refers to missing libgomp.so.1

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=15634

--- Comment #2 from stsp <[email protected]> ---
Created attachment 9610
--> https://bugs.busybox.net/attachment.cgi?id=9610&action=edit
defconfig

Sure thing, here it is.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

[Buildroot] [Bug 15634] fluidsynths refers to missing libgomp.so.1

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=15634

--- Comment #3 from Vincent Fazio <[email protected]> --- When I make olddefconfig with your defconfig, it looks like it's using bootlin's bleeding edge toolchain.

Bootlin recently (last year) enabled OpenMP support in the toolchain:
https://github.com/bootlin/toolchains-builder/commit/93f88ed30a4fd13ada7e2debf0d035855a690585

FluidSynth _tests_ for OpenMP support:

https://github.com/FluidSynth/fluidsynth/blob/master/CMakeLists.txt#L734

Unfortunately, the default configured Bootlin external toolchains to not accurately reflect that OpenMP is supported due to a small issue with generating the fragments:

https://github.com/bootlin/toolchains-builder/issues/60

Those fragments are used by a parser to add the external toolchain entries to BR, but since they're not accurate, the selected toolchain features are also not accurate. Most importantly here is they're missing BR2_TOOLCHAIN_EXTERNAL_OPENMP=y.

This flag drives whether or not OpenMP libraries will be copied into the resulting rootfs.

So the library tests for support (and it is supported by the toolchain), but since BR doesn't think it's enabled, the dependent libraries aren't copied in.

The quickest short term solutions are to:

1. Update your defconfig to use a "Custom Toolchain" and to manually point it to the bootlin toolchain and flag OpenMP support

2. Update your defconfig to use a Buildroot generated toolchain and decide if it should have OpenMP support.

This has actually been a recent discussion in IRC and we're contemplating a more resilient check here.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

[Buildroot] [Bug 15634] fluidsynths refers to missing libgomp.so.1

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=15634

--- Comment #4 from stsp <[email protected]> --- Thanks for all the investigations!
I subscribed to the toolchain bug
you opened, and I am not in a rush about fluidsynth. I can wait.
#15637 is what actually bothers me...

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

[Buildroot] [Bug 15634] fluidsynths refers to missing libgomp.so.1

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=15634

Vincent Fazio <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           Assignee|[email protected] |[email protected]
                   |.org                        |
             Status|NEW                         |ASSIGNED

--- Comment #5 from Vincent Fazio <[email protected]> ---
I lied, the "easiest" option is probably to use BR2_TOOLCHAIN_EXTRA_LIBS to copy in libgomp.

I've pushed a PR to bootlin to fix one of the root causes:
https://github.com/bootlin/toolchains-builder/pull/61

I'm also working on a series of patches on
https://gitlab.com/vfazio/buildroot/-/commits/vfazio-openmp-packages that will:

1: update known packages that use OpenMP to be sensitive to this issue
2. fix the flags for the bootlin toolchains
3. make our toolchain "supported libraries" check a bit more robust to catch the reverse condition of "support available but not flagged"

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

[Buildroot] [Bug 15634] fluidsynths refers to missing libgomp.so.1

In reply to [email protected]

https://bugs.busybox.net/show_bug.cgi?id=15634

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Peter Korsgaard <[email protected]> --- Fixed by
https://gitlab.com/buildroot.org/buildroot/-/commit/746ac56850664aa3e21902723f2e05570088ea26
(in 2023.08-rc1) and backported to (the upcoming) 2023.05.2 and 2023.02.4.

Signature · 6 lines
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot