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

Build failed for bootlin-sparc-uclibc #278

Open
javad123javad opened this issue Jul 17, 2024 · 2 comments
Open

Build failed for bootlin-sparc-uclibc #278

javad123javad opened this issue Jul 17, 2024 · 2 comments

Comments

@javad123javad
Copy link

Hello,

When trying to build for bootlin-sparc-uclibc the following linker error is reported:

bootlin-sparc-uclibc/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: src/libplacebo.so.349.p/vulkan_swapchain.c.o: in function `present_cb_cb':
swapchain.c:(.text+0x8f0): undefined reference to `__atomic_fetch_sub_4'
collect2: error: ld returned 1 exit status
[73/74] Compiling C object demos/libnuklear.a.p/ui.c.o
@haasn
Copy link
Owner

haasn commented Jul 17, 2024

It seems like uclibc either doesn't implement atomic_uint_fast32_t, or doesn't implement atomic_fetch_sub_explicit(..., 1, memory_order_release).

That would make it a non-standards-compliant libc, in which case I don't think there's anything we can/should do.

@javad123javad
Copy link
Author

We are porting libplacebo to Buildroot. It seems for other toolchains that are based on ulibc it works. Just for this toolchain it doesn't works. Anyway thanks.

                             arm-aarch64 [ 1/41]: OK
                   bootlin-aarch64-glibc [ 2/41]: OK
               bootlin-arcle-hs38-uclibc [ 3/41]: OK
                    bootlin-armv5-uclibc [ 4/41]: OK
                     bootlin-armv7-glibc [ 5/41]: OK
                   bootlin-armv7m-uclibc [ 6/41]: SKIPPED
                      bootlin-armv7-musl [ 7/41]: OK
                bootlin-m68k-5208-uclibc [ 8/41]: SKIPPED
               bootlin-m68k-68040-uclibc [ 9/41]: OK
             bootlin-microblazeel-uclibc [10/41]: OK
                bootlin-mipsel32r6-glibc [11/41]: OK
                   bootlin-mipsel-uclibc [12/41]: OK
                     bootlin-nios2-glibc [13/41]: OK
                 bootlin-openrisc-uclibc [14/41]: OK
        bootlin-powerpc64le-power8-glibc [15/41]: OK
           bootlin-powerpc-e500mc-uclibc [16/41]: OK
                   bootlin-riscv32-glibc [17/41]: OK
                   bootlin-riscv64-glibc [18/41]: OK
                    bootlin-riscv64-musl [19/41]: OK
                 bootlin-s390x-z13-glibc [20/41]: OK
                      bootlin-sh4-uclibc [21/41]: OK
                   bootlin-sparc64-glibc [22/41]: OK
                    bootlin-sparc-uclibc [23/41]: FAILED
                    bootlin-x86-64-glibc [24/41]: OK
                     bootlin-x86-64-musl [25/41]: OK
                   bootlin-x86-64-uclibc [26/41]: OK
                   bootlin-x86-i686-musl [27/41]: OK
                   bootlin-xtensa-uclibc [28/41]: OK
                            br-arm-basic [29/41]: SKIPPED
                    br-arm-full-nothread [30/41]: SKIPPED
                      br-arm-full-static [31/41]: SKIPPED
                   br-i386-pentium4-full [32/41]: SKIPPED
                      br-mips64-n64-full [33/41]: SKIPPED
                 br-mips64r6-el-hf-glibc [34/41]: SKIPPED
               br-powerpc-603e-basic-cpp [35/41]: SKIPPED
               br-powerpc64-power7-glibc [36/41]: SKIPPED
                       linaro-aarch64-be [37/41]: SKIPPED
                          linaro-aarch64 [38/41]: SKIPPED
                              linaro-arm [39/41]: SKIPPED
                         sourcery-mips64 [40/41]: SKIPPED
                           sourcery-mips [41/41]: SKIPPED

javad123javad pushed a commit to javad123javad/libplacebo that referenced this issue Jul 19, 2024
This PR fixes the problem related to not finding the libatomic during the
build. The problem happens in Builroot, when building libplacebo with
bootlin-sparc-uclibc toolchain.

Fixes:
 - haasn#278

Signed-off-by: Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants