From owner-freebsd-wireless@freebsd.org Thu Aug 31 06:04:53 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5422E16BD9 for ; Thu, 31 Aug 2017 06:04:53 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (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 7DCC66AC1A for ; Thu, 31 Aug 2017 06:04:53 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-io0-x22d.google.com with SMTP id f99so8554137ioi.3 for ; Wed, 30 Aug 2017 23:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=48R6Lu/cpm2IPjluQ1qArOwi7bPMg0k1obpN7mYTQhg=; b=NO76xWfpNdAQ/Pe3zop9lrZS1+1IRJdXu2iOD7cxBP4tYWSqKwhQ3zAGJSHAAs0uRC ylm0pJumsXj1z2zXqYitTVUxqCdQwEvKQLP4kMTOYySLtCseHifclzPYH0RIwovXXkJF sqfDdY9ajXvCuyIwxFz32+tre3VjxspUegz03pv3vMSIJyHCqxholz8yJ85GCOU66Y5+ mNeDYKeDaKM87t30ION/KpS3tTHxApouKd5fZk56NSPaJ5NvipuoIqHTx1GdYTEQLtSr 7r+wSVV26K6ZFksQLZYZC4Z1gRfhNlprcRnWPpd4JguSYLW3GZtmodG2V6cufz6ZMvRQ wLCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=48R6Lu/cpm2IPjluQ1qArOwi7bPMg0k1obpN7mYTQhg=; b=XGby6RDGo6BewBsAnVmX679LmzaV45jwrnRoO0XRHYJOkkQ6eU1Oh+pP82EDcWZfDb O1hwmP9woMGKeiYcbYVbfPxwy4pJvrI4T2hh/OgP+WbNEKtqsoIMh1SD2kNW/HCBLRFM JvKQ2Z5k2TB6ELFw4lwBPH0mbb3nw/Bq7JgkIjPww0bHobHvn3gtHGxEfy4pf5fjmWHa cQm4zOWpDkXUHR/WvgbUzyxeyoW5t50Tl3+2HZn2sCVcrJ/dtvjWNm/2hxyjjSy4sBDl vPJSNzesZYoBrJPKvobB5WltYohxeCogo6F7vtx9a+eRG8PJJZRiRBc9tYHcXafrwxt3 qaJw== X-Gm-Message-State: AHPjjUiT2AlCO/EX3gW/6JJUo6jLczi5XkoHB2MKyYJ2C86VQtD+v12v E8g1pguzzSaJoHbK47e0+0NSHgOHQhQb X-Received: by 10.107.59.23 with SMTP id i23mr3743131ioa.345.1504159492311; Wed, 30 Aug 2017 23:04:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.22.66 with HTTP; Wed, 30 Aug 2017 23:04:51 -0700 (PDT) From: Aijaz Baig Date: Thu, 31 Aug 2017 11:34:51 +0530 Message-ID: Subject: buildkernel fails while compiling ath with -O0 (no optimization) for STABLE-10 To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2017 06:04:53 -0000 Hi checked out latest version of stable (10.3) via 'svn co https://svn.FreeBSD.org/base/stable/10 .' after that, created src.conf like so: root@BSD10Server:/usr/src # cat /etc/src.conf CFLAGS= -O0 -pipe COPTFLAGS= -O0 -pipe and it then fails with the following error: make[4]: stopped in /usr/src/sys/modules/ath_pci 1 error make[4]: stopped in /usr/src/sys/modules/ath_pci *** [depend_subdir_ath_pci] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_bce --- A failure has been detected in another branch of the parallel make make[4]: stopped in /usr/src/sys/modules/bce *** [depend_subdir_bce] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_ata --- A failure has been detected in another branch of the parallel make make[7]: stopped in /usr/src/sys/modules/ata/atapci/chipsets/ataacerlabs *** [depend_subdir_ataacerlabs] Error code 2 make[6]: stopped in /usr/src/sys/modules/ata/atapci/chipsets 1 error make[6]: stopped in /usr/src/sys/modules/ata/atapci/chipsets *** [depend_subdir_chipsets] Error code 2 make[5]: stopped in /usr/src/sys/modules/ata/atapci 1 error make[5]: stopped in /usr/src/sys/modules/ata/atapci *** [depend_subdir_atapci] Error code 2 make[4]: stopped in /usr/src/sys/modules/ata 1 error make[4]: stopped in /usr/src/sys/modules/ata *** [depend_subdir_ata] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_ath --- In file included from /usr/src/sys/dev/ath/if_ath.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ --- depend_subdir_autofs --- A failure has been detected in another branch of the parallel make make[4]: stopped in /usr/src/sys/modules/autofs *** [depend_subdir_autofs] Error code 2 make[3]: stopped in /usr/src/sys/modules --- depend_subdir_ath --- 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_debug.c:81: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_keycache.c:76: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_sysctl.c:88: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tx.c:90: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tx_ht.c:81: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_led.c:96: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_rx.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tdma.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_beacon.c:96: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_rx_edma.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_tx_edma.c:99: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_spectral.c:69: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_btcoex.c:70: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/if_ath_lna_div.c:70: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ah_osdep.c:49: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_regdomain.c:22: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v3.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v1.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_reset.c:25:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_ani.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_eeprom.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_gpio.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_rfgain.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5111.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5112.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar2413.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar2425.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5212/ar5413.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v14.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_v4k.c:22: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_ani.c:25:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c:23:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal_iq.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal_adcgain.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_cal_adcdc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_eeprom.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_gpio.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_interrupts.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_keycache.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_misc.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_power.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_radar.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_spectral.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_xmit.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar5416/ar2133.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9001/ar9160_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9001/ar9130_attach.c:22:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9001/ar9130_phy.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9280.c:24:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9280_olc.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_reset.c:27:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_cal.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_phy.c:30:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_diversity.c:30:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9285_btcoex.c:23:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_hal/ah_eeprom_9287.c:21: /usr/src/sys/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287.c:24:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_reset.c:22:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_cal.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/dev/ath/ath_hal/ar9002/ar9287_olc.c:29:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_interrupts.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radar.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_keycache.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_xmit.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_mci.c:20:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_stub.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_xmit_ds.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_beacon.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_stub_funcs.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_eeprom.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c:18:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_recv_ds.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_phy.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c:21:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_power.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. /usr/src/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_timer.c:19:10: fatal error: 'ah.h' file not found #include "ah.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_rate/sample/sample.c:77: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. In file included from /usr/src/sys/dev/ath/ath_dfs/null/dfs_null.c:69: In file included from @/dev/ath/if_athvar.h:40: @/dev/ath/ath_hal/ah.h:31:10: fatal error: 'ah_osdep.h' file not found #include "ah_osdep.h" ^ 1 error generated. mkdep: compile failed *** [.depend] Error code 1 make[4]: stopped in /usr/src/sys/modules/ath 1 error make[4]: stopped in /usr/src/sys/modules/ath *** [depend_subdir_ath] Error code 2 make[3]: stopped in /usr/src/sys/modules 5 errors make[3]: stopped in /usr/src/sys/modules *** [modules-depend] Error code 2 make[2]: stopped in /usr/obj/usr/src/sys/AIJAZ-DEBUG 1 error make[2]: stopped in /usr/obj/usr/src/sys/AIJAZ-DEBUG *** [buildkernel] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src 1 error *** [buildkernel] Error code 2 make: stopped in /usr/src make: stopped in /usr/src I have confirmed it without using those flags and it compiles without issues. Is there something in ath and dependent modules that require it to be built with optimizations ON? I have even tried it with the following src.conf so as to avoid building wifi and wireless altogether but it still does try to build them anyways. I'm a little lost here Here's my revised src.conf which still fails nonetheless: root@BSDVM:/usr/src # cat /etc/src.conf CFLAGS= -O0 -pipe COPTFLAGS= -O0 -pipe WITHOUT_JAIL="yes" WITHOUT_WIRELESS="yes" WITHOUT_WIRELESS_SUPPORT="yes" WITHOUT_WPA_SUPPLICANT_EAPOL="yes" WITHOUT_CDDL="yes" Keen to hear from folks -- Best Regards, Aijaz Baig