Date: Wed, 3 Feb 2016 09:45:20 +0100 From: Marcin Mazurek <mma@semihalf.com> To: Hans Petter Selasky <hps@selasky.org> Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org, Bryan Drewery <bdrewery@freebsd.org> Subject: Re: Cannot include header files from sys/contrib directory Message-ID: <CAF-BqKpYY2ZPyfKY-JfmphZZvSxGpHbnswL3pzB_MrxH1F%2BRzg@mail.gmail.com> In-Reply-To: <56B0D420.10609@selasky.org> References: <CAF-BqKpa56OB9rfvAkukMOE39j22xPb3Oj4U9UMkjhWrO0n5ag@mail.gmail.com> <56B09AAE.9000909@selasky.org> <CAF-BqKpvNKwZ9VamATP2L0j9PKoNR-ErTCkNks=QCKRpbJWBrQ@mail.gmail.com> <56B09F3A.1080409@selasky.org> <CAF-BqKpgjnLXKH1nLtYk5cG7HK7W45YWr1e192eh31FaUw5imA@mail.gmail.com> <56B0A2F3.6080100@selasky.org> <CAF-BqKqiqC54PWFfO5djRuCLRu4rhxsDT0pWfieZpBFakqjLww@mail.gmail.com> <56B0D420.10609@selasky.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Hi,
Actually, I have got the same 'compile-with' and 'no-depend' options for my
all files.
I run to build kernel with command:
env MAKEOBJDIRPREFIX=/root/mma/anpa-build make buildkernel TARGET=arm
TARGET_ARCH=armv6 KERNCONF=ALPINE -j6 -DNO_CLEAN
I tried to do this without -DNO_CLEAN option too, but the output was the
same.
Files that I need to include are located in sys/contrib/alpine-hal and
sys/contrib/alpine-hal/eth. I attach the entire error log.
2016-02-02 17:06 GMT+01:00 Hans Petter Selasky <hps@selasky.org>:
> On 02/02/16 14:11, Marcin Mazurek wrote:
>
>> Now my config line looks like:
>>
>> dev/al_eth/al_eth.c optional al_eth \
>> no-depend \
>> compile-with "${CC} -c -o ${.TARGET} ${CFLAGS}
>> -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${PROF} ${.IMPSRC}"
>>
>>
>> Unfortunately I still get the same errors as before:
>>
>>
> Hi,
>
> mkdep: compile failed
>>
>
> ^^^ The depend will fail, this is expected. Maybe you need to clean the
> build directory after applying the config above. Note, the compile-with and
> no-depend must be the same for all files you compile.
>
> Can you show the command you are running to build?
>
> Can you show the full path for the .c and .h files in question?
>
> --HPS
>
>
[-- Attachment #2 --]
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_iofic.c:45:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_iofic.h:52:10: error: 'al_hal_common.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_common.h>
^~~~~~~~~~~~~~~~~
"al_hal_common.h"
1 error generated.
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_config.c:44:10: error: 'al_hal_common.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_common.h>
^~~~~~~~~~~~~~~~~
"al_hal_common.h"
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_config.c:45:10: error: 'al_hal_udma_regs.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma_regs.h>
^~~~~~~~~~~~~~~~~~~~
"al_hal_udma_regs.h"
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_config.c:46:10: error: 'al_hal_udma_config.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma_config.h>
^~~~~~~~~~~~~~~~~~~~~~
"al_hal_udma_config.h"
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_config.c:46:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_config.h:51:10: error: 'al_hal_udma.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma.h>
^~~~~~~~~~~~~~~
"al_hal_udma.h"
4 errors generated.
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_debug.c:46:10: error: 'al_hal_common.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_common.h>
^~~~~~~~~~~~~~~~~
"al_hal_common.h"
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_debug.c:47:10: error: 'al_hal_udma_regs.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma_regs.h>
^~~~~~~~~~~~~~~~~~~~
"al_hal_udma_regs.h"
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_debug.c:48:10: error: 'al_hal_udma_debug.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma_debug.h>
^~~~~~~~~~~~~~~~~~~~~
"al_hal_udma_debug.h"
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_debug.c:48:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_debug.h:51:10: error: 'al_hal_udma.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma.h>
^~~~~~~~~~~~~~~
"al_hal_udma.h"
4 errors generated.
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_iofic.c:45:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_iofic.h:52:10: error: 'al_hal_common.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_common.h>
^~~~~~~~~~~~~~~~~
"al_hal_common.h"
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_iofic.h:53:10: error: 'al_hal_iofic.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_iofic.h>
^~~~~~~~~~~~~~~~
"al_hal_iofic.h"
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_iofic.c:45:
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_iofic.h:53:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_iofic.h:52:10: error: 'al_hal_common.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_common.h>
^~~~~~~~~~~~~~~~~
"al_hal_common.h"
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_iofic.c:45:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_iofic.h:54:10: error: 'al_hal_udma_regs.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma_regs.h>
^~~~~~~~~~~~~~~~~~~~
"al_hal_udma_regs.h"
4 errors generated.
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_main.c:45:10: error: 'al_hal_udma.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma.h>
^~~~~~~~~~~~~~~
"al_hal_udma.h"
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_main.c:46:10: error: 'al_hal_udma_config.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma_config.h>
^~~~~~~~~~~~~~~~~~~~~~
"al_hal_udma_config.h"
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_main.c:46:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/al_hal_udma_config.h:51:10: error: 'al_hal_udma.h' file not found with <angled> include; use "quotes" instead
#include <al_hal_udma.h>
^~~~~~~~~~~~~~~
"al_hal_udma.h"
3 errors generated.
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/eth/al_hal_eth_kr.c:45:
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/eth/al_hal_eth_kr.h:51:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/eth/al_hal_eth.h:53:10: fatal error: 'al_hal_common.h' file not found
#include "al_hal_common.h"
^
1 error generated.
In file included from /root/mma/anpa-fbsd/sys/contrib/alpine-hal/eth/al_hal_eth_main.c:45:
/root/mma/anpa-fbsd/sys/contrib/alpine-hal/eth/al_hal_eth.h:53:10: fatal error: 'al_hal_common.h' file not found
#include "al_hal_common.h"
^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1
make[2]: stopped in /root/mma/anpa-build/arm.armv6/root/mma/anpa-fbsd/sys/ALPINE
1 error
make[2]: stopped in /root/mma/anpa-build/arm.armv6/root/mma/anpa-fbsd/sys/ALPINE
*** [buildkernel] Error code 2
make[1]: stopped in /root/mma/anpa-fbsd
1 error
make[1]: stopped in /root/mma/anpa-fbsd
*** [buildkernel] Error code 2
make: stopped in /root/mma/anpa-fbsd
1 error
make: stopped in /root/mma/anpa-fbsd
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF-BqKpYY2ZPyfKY-JfmphZZvSxGpHbnswL3pzB_MrxH1F%2BRzg>
