Package Details: openrgb-git r2626.f44cd691-1

Git Clone URL: https://aur.archlinux.org/openrgb-git.git (read-only, click to copy)
Package Base: openrgb-git
Description: Configuration utility for RGB lights supporting motherboards, RAM, & peripherals
Upstream URL: https://gitlab.com/CalcProgrammer1/OpenRGB
Keywords: led
Licenses: GPL2
Conflicts: openrgb
Provides: openrgb
Submitter: Myrddin
Maintainer: Myrddin
Last Packager: Myrddin
Votes: 33
Popularity: 0.052135
First Submitted: 2020-02-14 03:47 (UTC)
Last Updated: 2022-09-11 16:22 (UTC)

Dependencies (6)

Required by (4)

Sources (3)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

rjahanbakhshi commented on 2021-09-25 14:12 (UTC) (edited on 2021-09-25 14:14 (UTC) by rjahanbakhshi)

Is there a reason this uses make -j$(($(nproc)+1)) instead of assuming the correct -j option is set in MAKEFLAGS? I often want a core or two free when updating.

I second that. -j shouldn't be set this way in the PKGBUILD. It should be up to user to set the desired value using MAKEFLAGS.

https://wiki.archlinux.org/title/Makepkg#Parallel_compilation

Berengal commented on 2021-09-24 13:29 (UTC)

Is there a reason this uses make -j$(($(nproc)+1)) instead of assuming the correct -j option is set in MAKEFLAGS? I often want a core or two free when updating.

ericputney commented on 2021-08-09 05:04 (UTC)

I'm having similar issues as Neko-san, but their PKGBUILD edits didn't seem to work for me, nor did your suggested LDFLAG edit Myrddin.

This is what I'm seeing when I try to use Neko-san's PKGBUILD:

/usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libstdc++fs.a(ops.o): in function `std::_Deque_base<std::experimental::filesystem::v1::__cxx11::path, std::allocator<std::experimental::filesystem::v1::__cxx11::path> >::_M_initialize_map(unsigned long)':
(.text._ZNSt11_Deque_baseINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_initialize_mapEm[_ZNSt11_Deque_baseINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_initialize_mapEm]+0xf1): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libstdc++fs.a(ops.o): in function `std::deque<std::experimental::filesystem::v1::__cxx11::path, std::allocator<std::experimental::filesystem::v1::__cxx11::path> >::_M_reallocate_map(unsigned long, bool)':
(.text._ZNSt5dequeINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_reallocate_mapEmb[_ZNSt5dequeINSt12experimental10filesystem2v17__cxx114pathESaIS4_EE17_M_reallocate_mapEmb]+0x188): undefined reference to `std::__throw_bad_array_new_length()'
/usr/bin/ld: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libstdc++fs.a(ops.o):(.text._ZNSt6vectorINSt12experimental10filesystem2v17__cxx114path5_CmptESaIS5_EEaSERKS7_.isra.0+0x2bf): more undefined references to `std::__throw_bad_array_new_length()' follow
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:1739: openrgb] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
error making: openrgb-git

I see the same error that Neko-san originally reported if I just try the LDFLAG fix.

I'm new to this, how would I invoke the -v flag for clang to tell me what actually went wrong with that linker error?

Neko-san commented on 2021-08-06 06:36 (UTC) (edited on 2021-08-06 06:43 (UTC) by Neko-san)

I also managed to get it to compile with clang, so this works too

build() {
    cd "$srcdir/openrgb"
    ## Left here commented out as to not forget that GCC needs it for now:
    # LDFLAGS+=' -L/usr/lib'
    CXXFLAGS+=" -minline-all-stringops"
    CFLAGS+=" -minline-all-stringops"
    qmake OpenRGB.pro
    sed -i 's/= gcc/= clang/g' "$srcdir/openrgb/Makefile"
    sed -i 's/= g++/= clang++/g' "$srcdir/openrgb/Makefile"
    sed -i 's/-O1/-O3/g' "$srcdir/openrgb/Makefile"
    sed -i 's/-O2/-O3/g' "$srcdir/openrgb/Makefile"
    sed -i 's/-march=x86-64/-march=native/g' "$srcdir/openrgb/Makefile"
    sed -i 's/-mtune=generic/-mtune=native/g' "$srcdir/openrgb/Makefile"
    make -j$(($(nproc)+1))
}

Myrddin commented on 2021-08-02 08:16 (UTC) (edited on 2021-08-02 08:18 (UTC) by Myrddin)

Hello, Neko-san, my advice is to either edit the PKGBUILD to add LDFLAGS+=' -L/usr/lib' on the line before qmake or temporarily downgrade qt5-base. See more on this issue here.

This seems to be a compatibility issue with GCC 11. I suspect a proper fix will be needed from upstream, & I haven't seen an issue on the creator's gitlab. If anyone knows more, please share. Thank you!

Neko-san commented on 2021-08-02 02:21 (UTC) (edited on 2021-08-02 02:27 (UTC) by Neko-san)

The compilation fails! :v

/usr/bin/ld: /usr/lib/libQt5Core.so: undefined reference to `std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13'
/usr/bin/ld: /usr/lib/libQt5Widgets.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
/usr/bin/ld: /usr/lib/libQt5Core.so: undefined reference to `std::__exception_ptr::exception_ptr::_M_addref()@CXXABI_1.3.13'
collect2: error: ld returned 1 exit status
make: *** [Makefile:1853: openrgb] Error 1
==> ERROR: A failure occurred in build().

Myrddin commented on 2021-07-25 19:55 (UTC)

Just fixed the dependencies. Apologies for the delay; I've added mbedtls & removed all base-devel from dependencies.

harre commented on 2021-06-07 22:42 (UTC)

Indeed, installing mbedtls solved build failure

The999eagle commented on 2021-06-07 22:34 (UTC)

Latest master has a new dependency, mbedtls is now required for building and running.

harre commented on 2021-05-25 22:06 (UTC)

Latest on master breaks build, I have added a MR to fix it.

Refer to this MR until it has been merged: https://gitlab.com/CalcProgrammer1/OpenRGB/-/merge_requests/520