From owner-freebsd-current@freebsd.org Fri Jan 26 10:37:47 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77191ECEC68 for ; Fri, 26 Jan 2018 10:37:47 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: from mail-pg0-x231.google.com (mail-pg0-x231.google.com [IPv6:2607:f8b0:400e:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFFCD6D63D for ; Fri, 26 Jan 2018 10:37:46 +0000 (UTC) (envelope-from maurizio1018@gmail.com) Received: by mail-pg0-x231.google.com with SMTP id u1so47582pgr.0 for ; Fri, 26 Jan 2018 02:37:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TNEz1xcqAZvgVwxtVme+cRaSs7Auw074o0WgOXLZ1hk=; b=BfMKHcRQ+Z3i+vUFLPv9oMwAVBndxGUb637DjA+YDw1VDkPZuFN2fgRxQmPL877ef6 enNI7ikKA/xy/hvLeta8NxroyMX4+nYecJG8gaAohVCMk1uorfQhqsMqeJ4T0a49Xk5n U1e+Lccpx5ikKhwF2dQNzt0Ho5Fx3zllSHzqCdxXnZoYyKdptHVuOJBxEwsijK4BCr7V 9KDXprSOcmecN8SA+VU3J5umFR1vAzLx9Xw8i/3alPqwYFldbEY5L/85QpxHcueiHwdU gWumaVctbGRY1secXdA/FCEFolgVbPsdDggcj5NspOt8Y6zSJD1iIS6ymH8XO9eMsYaG AzbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TNEz1xcqAZvgVwxtVme+cRaSs7Auw074o0WgOXLZ1hk=; b=itv5NYHzk7bYqzwJUi+pbnKMYVt5dssk/jJBW4msvc8YjPTI1VWTOVOk9iW696zzUQ rdlNY4n1SrnXxdE7XW4dKjK4Ov3gqEouqgVLl3LWRkhrpjd1BMYQeDMlQtd34frtqVsS 8Wu3OgtOOPgzE9fhJpaPzjRwcaZE03ZpuCfnUY5KAr+BXUEcE8ZKstpFyhM1I55OGWgl 44btZAEt9AVPbcNrgGjwnEUHvONz4Iq4269uLsb3Hr8tCxxuMr6mgJ+ibljGKoNUZfAD p80gzKBoQQy+QslYE6S7kn4ArhGaqRoQzTZpBXcpEYc7ZffNaL5fuI7LNly3L5G1jwlI 0nfQ== X-Gm-Message-State: AKwxytfG2SoJikJXBKIM6XCkIPMdWBy2gf3hyWohj2AXPz9uEFpHWabd u90QEo3IXHlb1SshTnN3/8ebe32NI6M1mL08UOg= X-Google-Smtp-Source: AH8x226vd3UK+FosxdvgKFidzZo6/Or6J1f8kJi2Jx3dcP2NXDKnV6kN/Dig8BAjO0Vf+exPqgOingsoWIIUjZj7dqc= X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr13920245plu.40.1516963065718; Fri, 26 Jan 2018 02:37:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.138.144 with HTTP; Fri, 26 Jan 2018 02:37:45 -0800 (PST) In-Reply-To: References: From: Maurizio Vairani Date: Fri, 26 Jan 2018 11:37:45 +0100 Message-ID: Subject: Re: Error compiling isboot-kmod To: Warner Losh Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2018 10:37:47 -0000 2018-01-24 17:19 GMT+01:00 Warner Losh : > > > On Wed, Jan 24, 2018 at 3:12 AM, Maurizio Vairani > wrote: > >> On this CURRENT snapshot >> # uname -a >> FreeBSD freebsd12 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r327788: Wed Jan 10 >> 22:55:40 UTC 2018 >> root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC >> amd64 >> >> I can't compile the kernel module isboot-kmod: >> # cd /usr/ports/net/isboot-kmod && make >> ===> License BSD2CLAUSE accepted by the >> user >> >> ===> isboot-kmod-0.2.13_1 depends on file: /usr/local/sbin/pkg - found >> ===> Fetching all distfiles required by isboot-kmod-0.2.13_1 for building >> ===> Extracting for isboot-kmod-0.2.13_1 >> => SHA256 Checksum OK for isboot-0.2.13.tar.gz. >> ===> Patching for isboot-kmod-0.2.13_1 >> ===> Applying FreeBSD patches for isboot-kmod-0.2.13_1 >> ===> Configuring for isboot-kmod-0.2.13_1 >> ===> Building for isboot-kmod-0.2.13_1 >> --- machine --- >> --- x86 --- >> --- machine --- >> machine -> /usr/src/sys/amd64/include >> --- x86 --- >> x86 -> /usr/src/sys/x86/include >> --- objwarn --- >> --- opt_cam.h --- >> --- objwarn --- >> Warning: Object directory not changed from original >> /usr/ports/net/isboot-kmod/work/isboot-0.2.13/src >> --- opt_cam.h --- >> :> opt_cam.h >> --- isboot.o --- >> --- ibft.o --- >> --- isboot.o --- >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE >> -nostdinc -I. -I/usr/src/sys -fno-common -fno-omit-frame-pointer >> -mno-omit-leaf-frame-pointer -MD -MF.depe$ >> d.isboot.o -MTisboot.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv >> -fstack-protector -Wall -Wredundant-dec$ >> s -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes >> -Wpointer-arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign >> -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs $ >> fdiagnostics-show-option -Wno-unknown-pragmas >> -Wno-error-tautological-compare -Wno-error-empty-body >> -Wno-error-parentheses-equality -Wno-error-unused-function >> -Wno-error-pointer-s$ >> gn -Wno-error-shift-negative-value -Wno-error-address-of-packed-member >> -mno-aes -mno-avx -std=iso9899:1999 -c isboot.c -o isboot.o >> --- ibft.o --- >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE >> -nostdinc -I. -I/usr/src/sys -fno-common -fno-omit-frame-pointer >> -mno-omit-leaf-frame-pointer -MD -MF.depe$ >> d.ibft.o -MTibft.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv >> -fstack-protector -Wall -Wredundant-decls -$ >> nested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign >> -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdi$ >> gnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare >> -Wno-error-empty-body -Wno-error-parentheses-equality >> -Wno-error-unused-function -Wno-error-pointer-sign $ >> Wno-error-shift-negative-value -Wno-error-address-of-packed-member >> -mno-aes -mno-avx -std=iso9899:1999 -c ibft.c -o ibft.o >> --- iscsi.o --- >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE >> -nostdinc -I. -I/usr/src/sys -fno-common -fno-omit-frame-pointer >> -mno-omit-leaf-frame-pointer -MD -MF.depe$ >> d.iscsi.o -MTiscsi.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse >> -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv >> -fstack-protector -Wall -Wredundant-decls >> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign >> -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -f$ >> iagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compar >> e >> -Wno-error-empty-body -Wno-error-parentheses-equality >> -Wno-error-unused-function -Wno-error-pointer-sig$ >> -Wno-error-shift-negative-value -Wno-error-address-of-packed-member >> -mno-aes -mno-avx -std=iso9899:1999 -c iscsi.c -o iscsi.o >> In file included from iscsi.c:62: >> In file included from /usr/src/sys/cam/cam_ccb.h:1035: >> In file included from /usr/src/sys/cam/mmc/mmc_bus.h:5: >> In file included from /usr/src/sys/dev/mmc/bridge.h:59: >> /usr/src/sys/sys/bus.h:726:10: fatal error: 'device_if.h' file not found >> #include "device_if.h" >> ^~~~~~~~~~~~~ >> > > I think this was fixed in a newer -current. > > Warner > Thanks Warner, but I have the same error in : # uname -a FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r328383: Thu Jan 25 04:48:52 UTC 2018 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 # MAKE_JOBS_UNSAFE=yes make ===> License BSD2CLAUSE accepted by the user ===> isboot-kmod-0.2.13_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by isboot-kmod-0.2.13_1 for building ===> Extracting for isboot-kmod-0.2.13_1 => SHA256 Checksum OK for isboot-0.2.13.tar.gz. ===> Patching for isboot-kmod-0.2.13_1 ===> Applying FreeBSD patches for isboot-kmod-0.2.13_1 ===> Configuring for isboot-kmod-0.2.13_1 ===> Building for isboot-kmod-0.2.13_1 machine -> /usr/src/sys/amd64/include x86 -> /usr/src/sys/x86/include :> opt_cam.h Warning: Object directory not changed from original /usr/ports/net/isboot-kmod/work/isboot-0.2.13/src cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/usr/src/sys -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.isboot.o -MTisboot.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c isboot.c -o isboot.o cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/usr/src/sys -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.ibft.o -MTibft.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c ibft.c -o ibft.o cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/usr/src/sys -fno-common -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.iscsi.o -MTiscsi.o -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-error-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -c iscsi.c -o iscsi.o In file included from iscsi.c:62: In file included from /usr/src/sys/cam/cam_ccb.h:1035: In file included from /usr/src/sys/cam/mmc/mmc_bus.h:5: In file included from /usr/src/sys/dev/mmc/bridge.h:59: /usr/src/sys/sys/bus.h:726:10: fatal error: 'device_if.h' file not found #include "device_if.h" ^~~~~~~~~~~~~ 1 error generated. *** Error code 1 Stop. make[2]: stopped in /usr/ports/net/isboot-kmod/work/isboot-0.2.13/src *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/isboot-kmod *** Error code 1 Stop. make: stopped in /usr/ports/net/isboot-kmod -- Maurizio