Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731094 - media-video/luvcview-0.2.6-r1 fails to compile: v4l2uvc.c:197:30: error: function definition is not allowed here
Summary: media-video/luvcview-0.2.6-r1 fails to compile: v4l2uvc.c:197:30: error: func...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
Depends on:
Reported: 2020-07-06 14:20 UTC by Agostino Sarubbo
Modified: 2022-01-15 11:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,14.14 KB, text/plain)
2020-07-06 14:20 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-06 14:20:46 UTC

Issue: media-video/luvcview fails to compile.
Discovered on: amd64

This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-06 14:20:52 UTC
Created attachment 647992 [details]

build log and emerge --info
Comment 2 Thomas Raschbacher gentoo-dev 2021-09-02 19:56:41 UTC
compiles fine with gcc 10.3.0.
looking at the build log I'd say it is clang, but to be honest I never used clang/llvm toolchain .. @ago am I correct here? if so i'll look through the rest of those similar bugs in the next few days and block the clang/llvm or lld bugs accordingly [just don't want to get something wrong here]
Comment 3 Joonas Niilola gentoo-dev 2021-09-12 06:27:46 UTC
The first comment says: 
This machine uses a clang/LLVM toolchain.

Can you try and find what other distros / OSs, especially those that mainly use clang, use to build this? You can often find good working patches from there. 

Also time to update the metadata.xml's upstream section, since they seemed to have switched to Github instead SF. You might also find some clang support from their issue tracker.
Comment 4 Agostino Sarubbo gentoo-dev 2022-01-15 11:03:19 UTC
tinderbox has reproduced this issue with version 0.2.6-r1 - Updating summary.