• Makefile syntax error?!


    Hey,

    I own a mainboard from asus.
    The Linux kernel does not support the lan driver from the mainboard. [So I want to install it manually.](lhttps://downloadcenter.intel.com/download/22283/Ethernet-Intel-Ethernet-Adapters-Connections-CD?product=82186

    I did the same on a ubuntu system and it worked without problems. But on my antergos system I got these syntax errors:

    [[email protected] src]# make install
    make -C /lib/modules/4.10.1-1-ARCH/build CC=gcc SUBDIRS=/home/sambp/asus_lan_driver/src modules
    make[1]: Entering directory '/usr/lib/modules/4.10.1-1-ARCH/build'
      CC [M]  /home/sambp/asus_lan_driver/src/netdev.o
    /home/sambp/asus_lan_driver/src/netdev.c:4842:8: error: unknown type name ‘cycle_t’
     static cycle_t e1000e_sanitize_systim(struct e1000_hw *hw, cycle_t systim)
            ^~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c:4842:60: error: unknown type name ‘cycle_t’
     static cycle_t e1000e_sanitize_systim(struct e1000_hw *hw, cycle_t systim)
                                                                ^~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c:4875:8: error: unknown type name ‘cycle_t’
     static cycle_t e1000e_cyclecounter_read(const struct cyclecounter *cc)
            ^~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c: In function ‘e1000e_cyclecounter_read’:
    /home/sambp/asus_lan_driver/src/netdev.c:4881:2: error: unknown type name ‘cycle_t’
      cycle_t systim;
      ^~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c:4902:12: error: ‘cycle_t’ undeclared (first use in this function)
      systim = (cycle_t)systimel;
                ^~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c:4902:12: note: each undeclared identifier is reported only once for each function it appears in
    /home/sambp/asus_lan_driver/src/netdev.c:4902:20: error: expected ‘;’ before ‘systimel’
      systim = (cycle_t)systimel;
                        ^~~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c:4903:21: error: expected ‘;’ before ‘systimeh’
      systim |= (cycle_t)systimeh << 32;
                         ^~~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c:4906:12: error: implicit declaration of function ‘e1000e_sanitize_systim’ [-Werror=implicit-function-declaration]
       systim = e1000e_sanitize_systim(hw, systim);
                ^~~~~~~~~~~~~~~~~~~~~~
    /home/sambp/asus_lan_driver/src/netdev.c: In function ‘e1000_sw_init’:
    /home/sambp/asus_lan_driver/src/netdev.c:4946:20: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
       adapter->cc.read = e1000e_cyclecounter_read;
                        ^
    /home/sambp/asus_lan_driver/src/netdev.c: In function ‘e1000_probe’:
    /home/sambp/asus_lan_driver/src/netdev.c:8006:6: warning: unused variable ‘i’ [-Wunused-variable]
      int i, err, pci_using_dac;
          ^
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:295: /home/sambp/asus_lan_driver/src/netdev.o] Error 1
    make[1]: *** [Makefile:1490: _module_/home/sambp/asus_lan_driver/src] Error 2
    make[1]: Leaving directory '/usr/lib/modules/4.10.1-1-ARCH/build'
    make: *** [Makefile:255: default] Error 2
    
    

    Have you any idea how I could fix this?

  • what is about this?
    https://aur.archlinux.org/packages/e1000e-dkms/

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • Thanks for the answer!

    I tried to install it with:

    makepkg -s
    sudo pacman -U pack.pkg.tar
    

    but I end up with:

    make -j8 KERNELRELEASE=4.10.1-1-ARCH KVERSION=4.10.1-1-ARCH BUILD_KERNEL=4.10.1-1-ARCH...(bad exit status: 2)
    Error! Bad return status for module build on kernel: 4.10.1-1-ARCH (x86_64)
    Consult /var/lib/dkms/e1000e/3.3.5.3/build/make.log for more information.
    error: command failed to execute correctly
    :: Running post-transaction hooks...
    (1/2) Install DKMS modules
    ==> dkms install e1000e/3.3.5.3 -k 4.10.1-1-ARCH
    Error! Bad return status for module build on kernel: 4.10.1-1-ARCH (x86_64)
    Consult /var/lib/dkms/e1000e/3.3.5.3/build/make.log for more information.
    (2/2) Arming ConditionNeedsUpdate...
    

    make.log:

    DKMS make.log for e1000e-3.3.5.3 for kernel 4.10.1-1-ARCH (x86_64)
    Sun 12 Mar 17:38:23 CET 2017
    make -C /lib/modules/4.10.1-1-ARCH/build CC=gcc SUBDIRS=/var/lib/dkms/e1000e/3.3.5.3/build modules
    make[1]: Entering directory '/usr/lib/modules/4.10.1-1-ARCH/build'
      CC [M]  /var/lib/dkms/e1000e/3.3.5.3/build/netdev.o
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4842:8: error: unknown type name ‘cycle_t’
     static cycle_t e1000e_sanitize_systim(struct e1000_hw *hw, cycle_t systim)
            ^~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4842:60: error: unknown type name ‘cycle_t’
     static cycle_t e1000e_sanitize_systim(struct e1000_hw *hw, cycle_t systim)
                                                                ^~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4875:8: error: unknown type name ‘cycle_t’
     static cycle_t e1000e_cyclecounter_read(const struct cyclecounter *cc)
            ^~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c: In function ‘e1000e_cyclecounter_read’:
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4881:2: error: unknown type name ‘cycle_t’
      cycle_t systim;
      ^~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4902:12: error: ‘cycle_t’ undeclared (first use in this function)
      systim = (cycle_t)systimel;
                ^~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4902:12: note: each undeclared identifier is reported only once for each function it appears in
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4902:20: error: expected ‘;’ before ‘systimel’
      systim = (cycle_t)systimel;
                        ^~~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4903:21: error: expected ‘;’ before ‘systimeh’
      systim |= (cycle_t)systimeh << 32;
                         ^~~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4906:12: error: implicit declaration of function ‘e1000e_sanitize_systim’ [-Werror=implicit-function-declaration]
       systim = e1000e_sanitize_systim(hw, systim);
                ^~~~~~~~~~~~~~~~~~~~~~
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c: In function ‘e1000_sw_init’:
    /var/lib/dkms/e1000e/3.3.5.3/build/netdev.c:4946:20: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
       adapter->cc.read = e1000e_cyclecounter_read;
                        ^
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:295: /var/lib/dkms/e1000e/3.3.5.3/build/netdev.o] Error 1
    make[1]: *** [Makefile:1490: _module_/var/lib/dkms/e1000e/3.3.5.3/build] Error 2
    make[1]: Leaving directory '/usr/lib/modules/4.10.1-1-ARCH/build'
    make: *** [Makefile:255: default] Error 2
    

    It is the same error. I think the problem is my system/configuration.

  • No need to compile by hand, and not common under ArchLinux…

    There is a PKGBUILD in AUR:

    yaourt -S e1000e-dkms
    

    will do the job…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • I try it:

    [[email protected] ~]$ yaourt -S e1000e-dkms
    
    ==> Downloading e1000e-dkms PKGBUILD from AUR...
    x .SRCINFO
    x PKGBUILD
    x dkms.conf.in
    x e1000e-dkms.install
    rains commented on 2015-12-19 04:51			 
    == Building and installing package
    == Making package: e1000e-dkms 3.2.7.1-1 (Sat Dec 19 12:49:29 CST 2015)
    == Checking runtime dependencies...
    == Checking buildtime dependencies...
    == Retrieving sources...
    - Found e1000e-3.2.7.1.tar.gz
    - Found dkms.conf.in
    == Validating source files with md5sums...
    e1000e-3.2.7.1.tar.gz ... Passed
    dkms.conf.in ... FAILED
    == ERROR: One or more files did not pass the validity check!
    == ERROR: Makepkg was unable to build e1000e-dkms.
    
    hrast commented on 2016-02-04 04:12			 
    3.3.3 was released on 2016-01-26
    
    http://sourceforge.net/projects/e1000/files/e1000e%20stable/3.3.3/
    
    Eremiell commented on 2016-08-12 08:26			 
    diff --git a/PKGBUILD b/PKGBUILD
    index b8571a2..fd61efb 100644
    --- a/PKGBUILD
    +++ b/PKGBUILD
    @@ -3,7 +3,7 @@
    # adapted from package "e1000e-dkms"
    pkgname=e1000e-dkms
    _modname=e1000e
    -pkgver=3.3.4
    +pkgver=3.3.5
    pkgrel=1
    pkgdesc="Intel e1000e Ethernet adapter driver (latest version from Intel) (DKMS version)"
    license=('GPL')
    @@ -16,7 +16,7 @@ install=e1000e-dkms.install
    url='http://sourceforge.net/projects/e1000/'
    source=("http://downloads.sourceforge.net/project/e1000/${_modname}%20stable/${pkgver}/${_modname}-${pkgver}.tar.gz"
    'dkms.conf.in')
    -md5sums=('5c6d010341868f753cf983cbe4467db5'
    +md5sums=('b9de7f9be86984d91a3de851781fab4e'
    '8d22eb5c82a641e0b83da3caaa425eef')
    
    package() {
    
    shoober420 commented on 2017-03-06 00:16			 
    The e1000e module does not install on the new 4.10.1 kernel.
    
    e1000e-dkms 3.3.5.3-1  (2017-02-03 09:29)
    ( Unsupported package: Potentially dangerous ! )
    ==> Edit PKGBUILD ? [Y/n] ("A" to abort)
    ==> ------------------------------------
    ==> n
    
    ==> e1000e-dkms dependencies:
     - dkms (already installed)
    
    
    ==> Edit e1000e-dkms.install ? [Y/n] ("A" to abort)
    ==> -----------------------------------------------
    ==> n
    
    ==> Continue building e1000e-dkms ? [Y/n]
    ==> -------------------------------------
    ==> y
    
    ==> Building and installing package
    ==> Making package: e1000e-dkms 3.3.5.3-1 (Sun 12 Mar 23:38:15 CET 2017)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
      -> Downloading e1000e-3.3.5.3.tar.gz...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0   377    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    100  287k  100  287k    0     0  35242      0  0:00:08  0:00:08 --:--:-- 55020
      -> Found dkms.conf.in
    ==> Validating source files with sha256sums...
        e1000e-3.3.5.3.tar.gz ... Passed
        dkms.conf.in ... Passed
    ==> Extracting sources...
      -> Extracting e1000e-3.3.5.3.tar.gz with bsdtar
    ==> Entering fakeroot environment...
    ==> Starting package()...
    ==> Tidying install...
      -> Removing libtool files...
      -> Purging unwanted files...
      -> Removing static library files...
      -> Stripping unneeded symbols from binaries and libraries...
      -> Compressing man and info pages...
    ==> Checking for packaging issue...
    ==> Creating package "e1000e-dkms"...
      -> Generating .PKGINFO file...
      -> Generating .BUILDINFO file...
      -> Adding install file...
      -> Generating .MTREE file...
      -> Compressing package...
    ==> Leaving fakeroot environment.
    ==> Finished making: e1000e-dkms 3.3.5.3-1 (Sun 12 Mar 23:38:24 CET 2017)
    ==> Cleaning up...
    
    ==> Continue installing e1000e-dkms ? [Y/n]
    ==> [v]iew package contents [c]heck package with namcap
    ==> ---------------------------------------------------
    ==> y
    
    loading packages...
    warning: e1000e-dkms-3.3.5.3-1 is up to date -- reinstalling
    resolving dependencies...
    looking for conflicting packages...
    
    Packages (1) e1000e-dkms-3.3.5.3-1
    
    Total Installed Size:  1.09 MiB
    Net Upgrade Size:      0.00 MiB
    
    :: Proceed with installation? [Y/n] y
    (1/1) checking keys in keyring                                                                                                  [#############################################################################] 100%
    (1/1) checking package integrity                                                                                                [#############################################################################] 100%
    (1/1) loading package files                                                                                                     [#############################################################################] 100%
    (1/1) checking for file conflicts                                                                                               [#############################################################################] 100%
    (1/1) checking available disk space                                                                                             [#############################################################################] 100%
    :: Running pre-transaction hooks...
    (1/1) Remove DKMS modules
    ==> dkms remove e1000e/3.3.5.3 -k 4.10.1-1-ARCH
    Error! There is no instance of e1000e 3.3.5.3
    for kernel 4.10.1-1-ARCH (x86_64) located in the DKMS tree.
    :: Processing package changes...
    
    ------------------------------
    Deleting module version: 3.3.5.3
    completely from the DKMS tree.
    ------------------------------
    Done.
    (1/1) reinstalling e1000e-dkms                                                                                                  [#############################################################################] 100%
    
    Creating symlink /var/lib/dkms/e1000e/3.3.5.3/source ->
                     /usr/src/e1000e-3.3.5.3
    
    DKMS: add completed.
    
    Kernel preparation unnecessary for this kernel.  Skipping...
    
    Building module:
    cleaning build area...
    make -j8 KERNELRELEASE=4.10.1-1-ARCH KVERSION=4.10.1-1-ARCH BUILD_KERNEL=4.10.1-1-ARCH...(bad exit status: 2)
    Error! Bad return status for module build on kernel: 4.10.1-1-ARCH (x86_64)
    Consult /var/lib/dkms/e1000e/3.3.5.3/build/make.log for more information.
    error: command failed to execute correctly
    :: Running post-transaction hooks...
    (1/2) Install DKMS modules
    ==> dkms install e1000e/3.3.5.3 -k 4.10.1-1-ARCH
    Error! Bad return status for module build on kernel: 4.10.1-1-ARCH (x86_64)
    Consult /var/lib/dkms/e1000e/3.3.5.3/build/make.log for more information.
    (2/2) Arming ConditionNeedsUpdate...
    

    It is the same error :(

  • read first at the Sources!

    https://aur.archlinux.org/packages/e1000e-dkms/?comments=all
    https://sourceforge.net/projects/e1000/

    May you try LTS Kernel if you do not need the “brandnewlatestkernel” because Kernel updates are more slow on other Distro maintainer of your Driver is may not ready for 4.10 Kernel?

    And what says:

    cat /var/lib/dkms/e1000e/3.3.5.3/build/make.log
    

    ???

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • The e1000e module does not install on the new 4.10.1 kernel.
    

    So I have to downgrade to run the intel chip?
    How is it possible to downgrade the kernel? Reinstall?

    https://sourceforge.net/projects/e1000/
    I try this in the evening.

  • As i say: May you try LTS Kernel not downgrade… LTS is now:

    core/linux-lts 4.9.14-1
        The Linux-lts kernel and modules
    

    You can install this aside with your current Kernel… and choose on startup…
    Then running systen under this kernel you may can build the needed e1000e module…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • @joekamprad said in Makefile syntax error?!:

    And what says:
    cat /var/lib/dkms/e1000e/3.3.5.3/build/make.log

    The same error as every time.

    https://sourceforge.net/projects/e1000/
    I can install this without problems but the lan is not working.

    It is not possible for my to downgrade, because of the nvidia dependencies >= 4.10.

    How can I tell Grub to boot from the LTS Kernel? I try this:

    pacman -S linux-lts
    remove the standard kernel pacman -R linux
    update the grub config grub-mkconfig -o /boot/grub/grub.cfg
    reboot
    
  • As i say no need to uninstall standard kernel…

    install linux-lts and nvidia-lts

    On Bootup choose “Advanced options for Antergos”

    Bild Text
    Bild Text

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • Thanks for the tutorial!

    I tried it, but i get the same error :(
    Should I have to downgrade the Kernel now?

    (1/2) Install DKMS modules
    ==> dkms install e1000e/3.3.5.3 -k 4.9.14-1-lts
    ==> dkms install e1000e/3.3.5.3 -k 4.10.1-1-ARCH
    Error! Bad return status for module build on kernel: 4.10.1-1-ARCH (x86_64)
    Consult /var/lib/dkms/e1000e/3.3.5.3/build/make.log for more information.
    (2/2) Arming ConditionNeedsUpdate...
    

    make.log is the same as above

  • Error! Bad return status for module build on kernel: 4.10.1-1-ARCH (x86_64)

    You need to uninstall e1000e-dkms builded against standard kernel 4.10 before.
    and rebuild newone agains the LTS Kernel…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • Write this before error line:

    typedef u64 cycle_t;
    
  • @den054 : where why what ???

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

  • @den054
    This does not work. Thank for the idea.

    @joekamprad
    Great thanks, for your help! It worked! I could install the driver over the LTS Kernel. Great support!

  • The make the LTS Kernel the default on Bootup…
    I recoment grub-customizer a graphical tool to handle grub …
    Only take attention if you are using it first save your settings then install to mbr, it gives automaticly /dev/sda as the place for installing may yours differ from that…
    Bild Text

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    http://kamprad.net/howto-installing-antergos/
    https://forum.antergos.com/topic/1883/how-to-include-system-logs-when-asking-for-help

syntax1 makefile1 error166 Posts 16Views 687
Log in to reply