构建 info.o 时 Realtek 驱动程序安装在安装时出错

构建 info.o 时 Realtek 驱动程序安装在安装时出错

在 HP Pavillion 17-g121wm 上运行 Ubuntu 15.10

我检查了 Windows 使用的驱动程序:一个是 realtek,另一个是 amd。在 Windows 中,AMD 设备被禁用,因此我尝试安装 realtek 驱动程序。我从 realtek 下载了 0001-LinuxPkg_5.18rc8.tar.bz2。

我跑了

./configure --with-cards=hda-intel 

(我也尝试过./configure

最后我运行 make 并收到以下错误

make[1]: Entering directory '/usr/src/linux-headers-4.2.0-42-generic'
...
  CC [M]  ..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/info.o
..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/info.c: In function ‘snd_info_version_read’:
..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/info.c:1065:22: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
       "Compiled on " __DATE__ " for kernel %s"
                      ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target '..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/info.o' failed
make[3]: *** [..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore/info.o] Error 1
scripts/Makefile.build:403: recipe for target '..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore' failed
make[2]: *** [..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa/acore] Error 2
Makefile:1399: recipe for target '_module_/..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa' failed
make[1]: *** [_module_/..../Rt-Linux-HDaudio-5.18/alsa-driver-RTv5.18/alsa] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-42-generic'
Makefile:167: recipe for target 'compile' failed
make: *** [compile] Error 2

我尝试了一些在网页上看到的命令,认为它可能有助于阐明这个问题:

# lspci -nn | grep -i audio
00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio [1002:9840]
00:09.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Device [1022:157a]
# lsmod | grep ^snd
snd_hda_codec_hdmi     49152  1
snd_hda_intel          36864  2
snd_hda_codec         135168  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core           65536  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
snd                    81920  13 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device

相关内容