From owner-freebsd-wireless@freebsd.org Wed Sep 6 21:03:12 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 7EBA3E171EC for ; Wed, 6 Sep 2017 21:03:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (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 7BD9A8390D for ; Wed, 6 Sep 2017 21:03:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw0-x233.google.com with SMTP id q80so594557ywg.2 for ; Wed, 06 Sep 2017 14:03:11 -0700 (PDT) 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=9ItwiSNpS/zE1hZ9kcm8DiF0tncbo1+VWwlNsfTGL8A=; b=cAaLZNOcA8svdVOm4qt4JhjRU/A5szq92+hOsPRIigD5ScFe9gobDnmkwN87Vua95/ ObbfE7zBc14L1QRyBVbA18nj0GdnQaZgIgBZyKhI6jN9IUEopzMVILFLy+UY5HUB+zXx qwUshnwyJREfrB61U5P0QZ80E9rau8eEVfkwSfJGEsLDyhEocJXLeEnD9axt4PtlWLy2 ICiSlm2B/vSyS1XB9tmKBpgQ/BxKnlRS1U6xyCbsUlW+cgQhiVws9XzcGd1N7LnRd44H hrpgyBDHyJHw/fKX5R70kcXtBop9PO+Yd5zfxCHyJbL6H8lscfHVd5+erv21BTsDY5lS X+gw== 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=9ItwiSNpS/zE1hZ9kcm8DiF0tncbo1+VWwlNsfTGL8A=; b=UR1B8Q2sCldNjVSmNMpuB9TvHWWBTV2sV8g/mmiabnHb78+3bvVk91DhACa83fTMpE Ep6gbxztc5NBc0AHOH6AVnmmOhW6a8/+h4+qerPe06JH7fv2Xd4O40Tf/fnirRqIq/YD 1pYitOm16eQN0syUiKj4dwNBOgD6fYNC5RLIbn9TUKNCU7pP/4fve/AeT6hIEPnQquEl abZVZEQ7HCDVaaZ5C7OONdtlUDTO85sd/GoR7pacwOQ54XDEyDE/OtHKJX1BXULNoX/k 8pEjTNG7RHAqlqWOwY9Cs9c6ki1tpt9/A49hnPNelc9ifCde6oX3kSDkiZOzhJuHlCe/ oTMQ== X-Gm-Message-State: AHPjjUjgb6SBj0YgXutrQexdtpWgqNMywihcv5XObZSoytwkMAVmdeQw /bW/ed1No+PYxROMZ8qBKjmoHRX65g== X-Google-Smtp-Source: ADKCNb4opwnfWtppTWGdodd31B0ITWUa+PaKUVumKp8EsOeAupJxEwoAOdERz/44eUHs97kbJFWNmJqwEHXTFKz8+Qo= X-Received: by 10.13.210.6 with SMTP id u6mr363588ywd.271.1504731789962; Wed, 06 Sep 2017 14:03:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.223.78 with HTTP; Wed, 6 Sep 2017 14:03:09 -0700 (PDT) In-Reply-To: References: From: Adrian Chadd Date: Wed, 6 Sep 2017 14:03:09 -0700 Message-ID: Subject: Re: buildkernel fails while compiling ath with -O0 (no optimization) for STABLE-10 To: Aijaz Baig Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" 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: Wed, 06 Sep 2017 21:03:12 -0000 Hi, Weird, are you doing a full kernel build first? -adrian On 4 September 2017 at 01:29, Aijaz Baig wrote: > Hi Adrian > > Here is what it appears to be doing just before it got bust: > > ===> ath (depend) > @ -> /usr/src/sys > machine -> /usr/src/sys/amd64/include > x86 -> /usr/src/sys/x86/include > awk -f @/tools/makeobjops.awk @/kern/device_if.m -h > awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h > awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h > ln -sf /usr/obj/usr/src/sys/AIJAZ-DEBUG/opt_inet.h opt_inet.h > ln -sf /usr/obj/usr/src/sys/AIJAZ-DEBUG/opt_ath.h opt_ath.h > ln -sf /usr/obj/usr/src/sys/AIJAZ-DEBUG/opt_ah.h opt_ah.h > ln -sf /usr/obj/usr/src/sys/AIJAZ-DEBUG/opt_wlan.h opt_wlan.h > rm -f .depend > CC='cc ' mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE > -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq > -I/usr/obj/usr/src/sys/AIJAZ-DEBUG -std=iso9899:1999 -include > /usr/obj/usr/src/sys/AIJAZ-DEBUG/opt_global.h > /usr/src/sys/modules/ath/../../dev/ath/if_ath.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_alq.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_debug.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_keycache.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_sysctl.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx_ht.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_led.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_rx.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tdma.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_beacon.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_rx_edma.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_tx_edma.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_spectral.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_btcoex.c > /usr/src/sys/modules/ath/../../dev/ath/if_ath_lna_div.c > /usr/src/sys/modules/ath/../../dev/ath/ah_osdep.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah_regdomain.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah_eeprom_v3.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah_eeprom_v1.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_beacon.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_interrupts.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_keycache.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_misc.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_phy.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_power.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_recv.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_reset.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5210/ar5210_xmit.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_beacon.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_interrupts.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_keycache.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_misc.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_phy.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_power.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_recv.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_reset.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5211/ar5211_xmit.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_ani.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_beacon.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_eeprom.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_gpio.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_interrupts.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_keycache.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_misc.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_phy.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_power.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_recv.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_reset.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_rfgain.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5212_xmit.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5111.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5112.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar2413.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar2425.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5212/ar5413.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah_eeprom_v14.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah_eeprom_v4k.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_ani.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_beacon.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_btcoex.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_cal.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_cal_iq.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_cal_adcgain.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_cal_adcdc.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_eeprom.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_gpio.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_interrupts.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_keycache.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_misc.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_phy.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_power.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_radar.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_spectral.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_recv.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_reset.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar5416_xmit.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar5416/ar2133.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9001/ar9160_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9001/ar9130_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9001/ar9130_eeprom.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9001/ar9130_phy.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9280.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9280_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9280_olc.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9285.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9285_reset.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9285_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9285_cal.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9285_phy.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9285_diversity.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9285_btcoex.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah_eeprom_9287.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9287.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9287_reset.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9287_attach.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9287_cal.c > /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ar9002/ar9287_olc.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_interrupts.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_radar.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_ani.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_keycache.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_radio.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_xmit.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_attach.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_mci.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_stub.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_xmit_ds.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_beacon.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_misc.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_recv.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_stub_funcs.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_eeprom.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_paprd.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_recv_ds.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_phy.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_reset.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_gpio.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_power.c > /usr/src/sys/modules/ath/../../contrib/dev/ath/ath_hal/ar9300/ar9300_timer.c > /usr/src/sys/modules/ath/../../dev/ath/ath_rate/sample/sample.c > /usr/src/sys/modules/ath/../../dev/ath/ath_dfs/null/dfs_null.c > In file included from /usr/src/sys/modules/ath/../../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" > ^ > 1 error generated. > In file included from > /usr/src/sys/modules/ath/../../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" > > ... > the rest is the same as shown previously > > Keen to hear > > > On Fri, Sep 1, 2017 at 9:02 PM, Adrian Chadd wrote: >> >> Hi, >> >> I'm not sure what's going on. I think I made the driver require the kernel >> be built first so those header files should exist. Is setting CFLAGS right? >> Can you paste the whole command line that was being run by make leading up >> to that failure? >> >> >> >> -a >> >> >> On 1 September 2017 at 02:21, Aijaz Baig wrote: >>> >>> Oh I got what you meant. No I was NOT specifically compiling the ATH >>> module but it was being built as part of the buildkernel process. I was >>> actually trying to build the kernel without optimizations (so I can debug it >>> within gdb) hence the need for that specific src.conf. Apparently as the >>> build runs, it fails at that very moment in the compilation which I >>> mentioned earlier. >>> >>> I hope you got your answer Adrian. >>> >>> On Fri, Sep 1, 2017 at 6:54 AM, Aijaz Baig wrote: >>>> >>>> Hi Adrian >>>> >>>> I did not really get your question. Do you mean if other modules are >>>> getting compiled properly? Won't it build the modules as part of the entire >>>> buildkernel process? >>>> >>>> Do you want more information about the system I am compiling it on? >>>> >>>> On Fri, Sep 1, 2017 at 5:13 AM, Adrian Chadd >>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> Weird, is it building modules without a kernel? >>>>> >>>>> >>>>> >>>>> -adrian >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> Best Regards, >>>> Aijaz Baig >>> >>> >>> >>> >>> -- >>> >>> Best Regards, >>> Aijaz Baig >> >> > > > > -- > > Best Regards, > Aijaz Baig