-
Notifications
You must be signed in to change notification settings - Fork 351
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
media-driver 18.3.0 - compilation fails on 32bit #356
Comments
Interesting that Debian did not meet with this issue and managed to package media-driver in both 32- and 64-bit flavors. They applied a custom patch however: https://salsa.debian.org/multimedia-team/intel-media-driver/blob/master/debian/patches/0002-Remove-settings-based-on-ARCH.patch, but I don't think that it relates to the issue you describe. I had no chance to try build myself yet for Fedora/CentOS, but thought it worths to provide the above info right away. |
@kwizart: you could wish to join discussion here: intel/libva#281 |
Also doesn't affect FreeBSD i386 where |
@kwizart how about the status, (void) sizeof(char [1 - 2*!(COND)]) should be possible negative both on 32 and 64 bit, the build check option is different? |
@XinfengZhang I don't know why it fails only on 32bit and not on 64bit. I've resubmitted a build and have hit the same build error. |
@kwizart : the code (starting from)
|
It's interesting that there is mention of LARGE FILE support and on linux x86 32bit there is indeed a need to enable a special CXXFLAGS such as -D_FILE_OFFSET_BITS=64 or by default the value is 32. I confirm that now that this define is set I have a different error (probably unrelated as it might also have failed on x86_64) (1) I've checked with fedora libdrm, and this flag isn't set explicitly in the package, so it might be autodetected as appropriate. But for the libva case, I don't see this flag been set, so I might have to enforce it. (and even maybe to all downstream users of the vaapi strack ?). (1)
|
I also don't see it's set explicitly. Though I always though that's the flag which needs explicit setting. Maybe there is some special meson setting which triggers it's being set implicitly and we miss it in a grep. Anyway, I think it worth to be added permanently to the driver build flags. Yeah, the second issue looks unrelated. |
Compilation has succeeded with current intel-media-driver releases with -D_FILE_OFFSET_BITS=64 explicitly set. I haven't verified if it's set by default nowadays.... |
CLosing the issue |
I'm trying to compile on media-driver 18.0.3 on i686 and I have a compilation error.
For the record, I still consider important to have a 32bit for running steam client on x86_64 OS.
Full compilation log: http://koji.rpmfusion.org/kojifiles/work/tasks/6969/266969/build.log
The text was updated successfully, but these errors were encountered: