Bug 101069 - Fail when build Linux 4.9.xx on SLES 11
Summary: Fail when build Linux 4.9.xx on SLES 11
Status: CLOSED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-17 08:41 UTC by Zenitur
Modified: 2017-06-27 14:24 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Full build log (83.17 KB, application/x-gzip)
2017-05-17 08:41 UTC, Zenitur
no flags Details

Description Zenitur 2017-05-17 08:41:31 UTC
Created attachment 131383 [details]
Full build log

I'm using OBS service for building Linux kernel. There is a repository: https://build.opensuse.org/package/show/home:linux4humans:pf-kernel/kernel-pf You can see building success with openSUSE 42 and SLES 12 build farms, hovewer it fail with SLES 11 build farm.

../drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen6_ggtt_insert_entries':
../drivers/gpu/drm/i915/i915_gem_gtt.c:2438: error: 'gtt_entry' may be used uninitialized in this function
../drivers/gpu/drm/i915/i915_gem_gtt.c: In function 'gen8_ggtt_insert_entries':
../drivers/gpu/drm/i915/i915_gem_gtt.c:2341: error: 'gtt_entry' may be used uninitialized in this function
make[6]: *** [drivers/gpu/drm/i915/i915_gem_gtt.o] Error 1

I hope that you didn't dropped GCC 4.3. Anyway, I have a suspicion that an error will be present on newer GCC versions with harder build requirements.
Comment 1 Chris Wilson 2017-05-17 08:56:20 UTC
gcc is being dumb, later versions are not so stupid.
Comment 2 Chris Wilson 2017-05-17 09:17:25 UTC
Also why inflict -Werror upon a project you do not control? Or if you are using our -Werror option, you are expected to be using a recent version of the kernel as well.
Comment 3 Zenitur 2017-05-17 09:29:57 UTC
I didn't use -Werror. I use the default openSUSE config file. Fresh openSUSE version is successfully builds, however LTS openSUSE version have this bug.
Comment 4 Zenitur 2017-05-17 09:51:17 UTC
Is any workaround for SLES 11? I can use this construction in an RPM SPEC file:

%if 0%{?sles_version} && 0%{?suse_version} == 1110
Patch1:    intel-dri-sles-11-workaround.patch
%endif
Comment 5 Zenitur 2017-05-28 06:49:36 UTC
May I speak russian?

Хватит лениться. Линус правильно сказал про DRI в феврале этого года. Даже LTS-релиз ядра отладить не можете! Мне ваш драйвер вообще не нужен, у меня NVIDIA. Мне лишь надо обновить ядро с 3.1 до 4.9, чтобы избавиться от 12309. И только ваша ошибка при сборке останавливает.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.