Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Compile failure in nand.c
Hi, Jared,
Thanks, I suspected it was the obj tree, which I hadn't cleaned
recently, I usually build incrementally. cleaning the obj tree
whenever something similar pops out. I was about to start another
build, but for some reason I can't get any cvs update from
anoncvs.netbsd.org at the moment.
Regards,
Chavdar
On 15 November 2017 at 00:19, Jared McNeill <jmcneill%invisible.ca@localhost> wrote:
> Hi Chavdar --
>
> This define is generated by config in locators.h (kernel obj directory).
> Make sure you have sys/dev/flash/files.flash rev 1.4 and that you've run
> config on your kernel since updating.
>
> Cheers,
> Jared
>
>
> On Tue, 14 Nov 2017, Chavdar Ivanov wrote:
>
>> Hi,
>>
>> I am getting:
>> ...
>> # compile nand/nand.o
>> /home/sysbuild/amd64/tools/bin/x86_64--netbsd-gcc -O2 -g -std=gnu99
>> -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
>> -Wno-sign-
>> compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings
>> -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra
>> -Wno-unus
>> ed-parameter -Wno-sign-compare -Werror -ffreestanding
>> -fno-strict-aliasing -Wno-pointer-sign -mno-red-zone -mno-mmx -mno-sse
>> -mno-avx -msoft-fl
>> oat -mcmodel=kernel -fno-omit-frame-pointer
>> -I/home/sysbuild/src/common/include
>> --sysroot=/home/sysbuild/amd64/destdir -I/home/sysbuild/src/commo
>> n/include -nostdinc -I. -I/home/sysbuild/src/sys/modules/nand
>> -isystem /home/sysbuild/src/sys -isystem /home/sysbuild/src/sys/arch
>> -isystem /home
>> /sysbuild/src/sys/../common/include -D_KERNEL -D_LKM -D_MODULE
>> -DSYSCTL_INCLUDE_DESCR -c /home/sysbuild/src/sys/dev/nand/nand.c
>> /home/sysbuild/src/sys/dev/nand/nand.c: In function 'nand_search':
>> /home/sysbuild/src/sys/dev/nand/nand.c:191:17: error:
>> 'FLASHBUSCF_DYNAMIC' undeclared (first use in this function)
>> if (cf->cf_loc[FLASHBUSCF_DYNAMIC] != 0)
>> ^
>> /home/sysbuild/src/sys/dev/nand/nand.c:191:17: note: each undeclared
>> identifier is reported only once for each function it appears in
>> *** [nand.o] Error code 1
>> ...
>>
>> in my last few builds; I couldn't locate the missing symbol elsewhere.
>>
>> I am building now with the offending line #if-ed out.
>>
>> Chavdar Ivanov
>>
>> --
>> ----
>>
>>
>
--
----
Home |
Main Index |
Thread Index |
Old Index