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

OBS RISCV build failure #403

Open
mstsky115 opened this issue May 14, 2023 · 2 comments
Open

OBS RISCV build failure #403

mstsky115 opened this issue May 14, 2023 · 2 comments
Labels
bug Something isn't working hacktoberfest

Comments

@mstsky115
Copy link

Name: noisetorch
Version: 0.12.2
Release: 0
Summary: Real-time microphone noise suppression on Linux
License: GPL-3.0-or-later
URL: https://github.com/NoiseTorch/NoiseTorch

osc service disabledrun

Source0: NoiseTorch-%{version}.tar.gz

osc service disabledrun

Source1: vendor.tar.gz
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: git-core
BuildRequires: hicolor-icon-theme
BuildRequires: golang(API) = 1.18

%description
NoiseTorch is an easy to use open source application for Linux with PulseAudio.
It creates a virtual microphone that suppresses noise, in any application. Use
whichever conferencing or VOIP application you like and simply select the
NoiseTorch Virtual Microphone as input to torch the sound of your mechanical
keyboard, computer fans, trains and the likes.

%prep
%autosetup -p1 -n NoiseTorch-%{version} -a1

%build
pushd c/ladspa
%make_build
ldd rnnoise_ladspa.so
popd
go generate

-tags release would enable the auto-updater (update.go)

CGO_ENABLED=0 GOOS=linux go build
%ifnarch ppc64
-buildmode=pie
%endif
-a -ldflags '-w -X main.version=%{version} -X main.distribution=rpm' .

%install
install -D -m 644 assets/icon/noisetorch.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/noisetorch.png
install -D -m 644 assets/noisetorch.desktop %{buildroot}/%{_datadir}/applications/noisetorch.desktop
install -D -m 755 noisetorch %{buildroot}/%{_bindir}/noisetorch

%files
%license LICENSE
%doc README.md
%caps(cap_sys_resource+ep) %{_bindir}/noisetorch
%{_datadir}/applications/noisetorch.desktop
%{_datadir}/icons/hicolor/256x256/apps/noisetorch.png

%changelog

It‘s the spec file content

and the build result is
[ 173s] ~/rpmbuild/BUILD/NoiseTorch-0.12.2
[ 173s] + go generate
[ 178s] + CGO_ENABLED=0
[ 178s] + GOOS=linux
[ 178s] + go build -buildmode=pie -a -ldflags '-w -X main.version=0.12.2 -X main.distribution=rpm' .
[ 279s] # golang.org/x/exp/shiny/driver/x11driver
[ 279s] vendor/golang.org/x/exp/shiny/driver/x11driver/buffer.go:111:12: undefined: shmClose
[ 279s] vendor/golang.org/x/exp/shiny/driver/x11driver/screen.go:328:23: undefined: shmOpen
[ 279s] vendor/golang.org/x/exp/shiny/driver/x11driver/screen.go:334:5: undefined: shmClose
[ 292s] error: Bad exit status from /var/tmp/rpm-tmp.WsW8eK (%build)

@mstsky115 mstsky115 added the bug Something isn't working label May 14, 2023
@ZyanKLee
Copy link
Contributor

I'm sorry, but I can't help here as I got no access to RISCV systems. Also this OBS build is not created nor supported by us, afaict.
Can you please format the code and log as markdown code blocks and provide us with a link to the OBS project that you are referencing?

@mstsky115
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants