Public bug reported: Hi Folks!
I’ll admit to being somewhat of an ‘advanced neophyte’ so please pardon the errors in my reporting. Creating a brand-new system: Motherboard: Gigabyte 970A-DS3p CPU AMD FX-8320 eight-core Memory: 32 GB What I am trying to do is remove the ‘bad’ r8169 driver for the Realtec NIC and replace it with the ‘good’ r8168 one from the Realtec site, following Googled instructions https://ubuntuforums.org/showthread.php?t=2346164 . Also have only Ubuntu 16.04 installed, not a dual boot. Reason is the wired communications do not work even though appears to be connected. Backing up a bit, I attempted to install 18.04 but it failed – several times. Failure might be because I have a solid state drive (plus a HDD) and didn’t know had to manually create a /boot/efi partition. I did notice the option to do updates during the installation was grayed out. Eventually gave up and installed 16.04, eventually getting/seeing/deciding to do something about the efi partition. (All my previous installs on other machines just work, so you guys do a great job!) Oh: I also don’t have working USB 2.0. Some of the installs it worked – keyboard and mouse active. Last few seemed to be dead. Fortunately the USB 3.0 portion is working. I haven’t checked that issue out yet, figuring easier to get the Ethernet working. OK, try to give a semi-knowledgeable report…. Please include in your bug report all of the following items, the first three of which can be obtained from the output of gcc -v: * the exact version of GCC; * the system type; * the options given when GCC was configured/built; barry@NZXT:~/Downloads/r8168-8.045.08$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.3.1-14ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) barry@NZXT:~/Downloads/r8168-8.045.08$ (Hope that means something to you folks!) * the complete command line that triggers the bug; Well, that detail seems to make more sense with the ‘compiler output’ section (next). “r8168-8.045.08” is the extracted driver from Realtek: http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false ==> LINUX driver for kernel up to 4.7 8.045 2017/9/15 101k Global * the compiler output (error messages, warnings, etc.); and I attempted a few different ways to get things going. Here are the results: barry@NZXT:~$ cd '/home/barry/Downloads/r8168-8.045.08' barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ ls autorun.sh Makefile README src barry@NZXT:~/Downloads/r8168-8.045.08$ sudo ./autorun.sh [sudo] password for barry: Check old driver and unload it. rmmod r8169 Build the module and install /home/barry/Downloads/r8168-8.045.08/src/r8168_n.c: In function ‘rtl8168_set_phy_mcu_8168evl_1’: /home/barry/Downloads/r8168-8.045.08/src/r8168_n.c:16282:1: internal compiler error: Bus error } ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. make[3]: *** [/home/barry/Downloads/r8168-8.045.08/src/r8168_n.o] Error 1 make[2]: *** [_module_/home/barry/Downloads/r8168-8.045.08/src] Error 2 make[1]: *** [modules] Error 2 make: *** [modules] Error 2 barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ lsmod | grep r8168 barry@NZXT:~/Downloads/r8168-8.045.08$ lsmod | grep r8169 barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ ./configure bash: ./configure: No such file or directory barry@NZXT:~/Downloads/r8168-8.045.08$ sudo ./configure sudo: ./configure: command not found barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ ls autorun.sh log.txt Makefile README src barry@NZXT:~/Downloads/r8168-8.045.08$ checkinstall The program 'checkinstall' is currently not installed. You can install it by typing: sudo apt install checkinstall barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ make make -C src/ clean make[1]: Entering directory '/home/barry/Downloads/r8168-8.045.08/src' make -C /lib/modules/4.4.0-21-generic/build SUBDIRS=/home/barry/Downloads/r8168-8.045.08/src clean make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' CLEAN /home/barry/Downloads/r8168-8.045.08/src/.tmp_versions make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' make[1]: Leaving directory '/home/barry/Downloads/r8168-8.045.08/src' make -C src/ modules make[1]: Entering directory '/home/barry/Downloads/r8168-8.045.08/src' make -C /lib/modules/4.4.0-21-generic/build SUBDIRS=/home/barry/Downloads/r8168-8.045.08/src modules make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' CC [M] /home/barry/Downloads/r8168-8.045.08/src/r8168_n.o /home/barry/Downloads/r8168-8.045.08/src/r8168_n.c: In function ‘rtl8168_set_phy_mcu_8168evl_1’: /home/barry/Downloads/r8168-8.045.08/src/r8168_n.c:16282:1: internal compiler error: Segmentation fault } ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. scripts/Makefile.build:258: recipe for target '/home/barry/Downloads/r8168-8.045.08/src/r8168_n.o' failed make[3]: *** [/home/barry/Downloads/r8168-8.045.08/src/r8168_n.o] Error 1 Makefile:1396: recipe for target '_module_/home/barry/Downloads/r8168-8.045.08/src' failed make[2]: *** [_module_/home/barry/Downloads/r8168-8.045.08/src] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' Makefile:104: recipe for target 'modules' failed make[1]: *** [modules] Error 2 make[1]: Leaving directory '/home/barry/Downloads/r8168-8.045.08/src' Makefile:40: recipe for target 'modules' failed make: *** [modules] Error 2 barry@NZXT:~/Downloads/r8168-8.045.08$ sudo make install make -C src/ install make[1]: Entering directory '/home/barry/Downloads/r8168-8.045.08/src' make -C /lib/modules/4.4.0-21-generic/build SUBDIRS=/home/barry/Downloads/r8168-8.045.08/src INSTALL_MOD_DIR=kernel/drivers/net/ethernet/realtek modules_install make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' DEPMOD 4.4.0-21-generic make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' make[1]: Leaving directory '/home/barry/Downloads/r8168-8.045.08/src' barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ lsmod | grep r8169 barry@NZXT:~/Downloads/r8168-8.045.08$ lsmod | grep r8168 barry@NZXT:~/Downloads/r8168-8.045.08$ barry@NZXT:~/Downloads/r8168-8.045.08$ ./autorun.sh Check old driver and unload it. Build the module and install ./autorun.sh: 28: ./autorun.sh: cannot create log.txt: Permission denied ./autorun.sh: 29: ./autorun.sh: cannot create log.txt: Permission denied ./autorun.sh: 30: ./autorun.sh: cannot create log.txt: Permission denied barry@NZXT:~/Downloads/r8168-8.045.08$ sudo ./autorun.sh Check old driver and unload it. Build the module and install /home/barry/Downloads/r8168-8.045.08/src/r8168_n.c: In function ‘rtl8168_set_phy_mcu_8168e_2’: /home/barry/Downloads/r8168-8.045.08/src/r8168_n.c:13749:1: internal compiler error: Segmentation fault } ^ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. make[3]: *** [/home/barry/Downloads/r8168-8.045.08/src/r8168_n.o] Error 1 make[2]: *** [_module_/home/barry/Downloads/r8168-8.045.08/src] Error 2 make[1]: *** [modules] Error 2 make: *** [modules] Error 2 * the preprocessed file (*.i*) that triggers the bug, generated by adding -save-temps to the complete compilation command, or, in the case of a bug report for the GNAT front end, a complete set of source files (see below). I don’t see anything like that; if something is needed please request at barry_marti...@q.com. There is a log file of potential interest: ------------------------------- Mon Jun 11 09:24:53 CDT 2018 make -C src/ clean make[1]: Entering directory '/home/barry/Downloads/r8168-8.045.08/src' make -C /lib/modules/4.4.0-21-generic/build SUBDIRS=/home/barry/Downloads/r8168-8.045.08/src clean make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' make[1]: Leaving directory '/home/barry/Downloads/r8168-8.045.08/src' make -C src/ modules make[1]: Entering directory '/home/barry/Downloads/r8168-8.045.08/src' make -C /lib/modules/4.4.0-21-generic/build SUBDIRS=/home/barry/Downloads/r8168-8.045.08/src modules make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' CC [M] /home/barry/Downloads/r8168-8.045.08/src/r8168_n.o scripts/Makefile.build:258: recipe for target '/home/barry/Downloads/r8168-8.045.08/src/r8168_n.o' failed Makefile:1396: recipe for target '_module_/home/barry/Downloads/r8168-8.045.08/src' failed make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' Makefile:104: recipe for target 'modules' failed make[1]: Leaving directory '/home/barry/Downloads/r8168-8.045.08/src' Makefile:40: recipe for target 'modules' failed ------------------------------- Mon Jun 11 09:31:38 CDT 2018 make -C src/ clean make[1]: Entering directory '/home/barry/Downloads/r8168-8.045.08/src' make -C /lib/modules/4.4.0-21-generic/build SUBDIRS=/home/barry/Downloads/r8168-8.045.08/src clean make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' CLEAN /home/barry/Downloads/r8168-8.045.08/src/.tmp_versions make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' make[1]: Leaving directory '/home/barry/Downloads/r8168-8.045.08/src' make -C src/ modules make[1]: Entering directory '/home/barry/Downloads/r8168-8.045.08/src' make -C /lib/modules/4.4.0-21-generic/build SUBDIRS=/home/barry/Downloads/r8168-8.045.08/src modules make[2]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic' CC [M] /home/barry/Downloads/r8168-8.045.08/src/r8168_n.o scripts/Makefile.build:258: recipe for target '/home/barry/Downloads/r8168-8.045.08/src/r8168_n.o' failed Makefile:1396: recipe for target '_module_/home/barry/Downloads/r8168-8.045.08/src' failed make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic' Makefile:104: recipe for target 'modules' failed make[1]: Leaving directory '/home/barry/Downloads/r8168-8.045.08/src' Makefile:40: recipe for target 'modules' failed OK, thanks, and hope this can fix something. I’m going to continue to try to get something working here. Barry ** Affects: make (Ubuntu) Importance: Undecided Status: New ** Tags: r8168 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1776250 Title: r8168 driver won't install on 16.04 basic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/make/+bug/1776250/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs