Re: Cannot include header files from sys/contrib directory
On 02/03/16 09:45, Marcin Mazurek wrote: 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. Try to add: -DNO_KERNELDEPEND when building. Does it work then? --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
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 : > On 02/02/16 14:11, Marcin Mazurek wrote: > >> Now my config line looks like: >> >> dev/al_eth/al_eth.coptional 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 > > log Description: Binary data ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
On 02/02/16 14:11, Marcin Mazurek wrote: Now my config line looks like: dev/al_eth/al_eth.coptional 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 ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
Now my config line looks like: dev/al_eth/al_eth.coptional 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: 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 include; use "quotes" instead #include ^ "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 include; use "quotes" instead #include ^ "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 include; use "quotes" instead #include ^ "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 include; use "quotes" instead #include ^ "al_hal_udma_config.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 include; use "quotes" instead #include ^ "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 include; use "quotes" instead #include ^ "al_hal_udma_regs.h" 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 Could you tell me how can I update conf file to set a correct dependencies? 2016-02-02 13:37 GMT+01:00 Hans Petter Selasky : > On 02/02/16 13:29, Marcin Mazurek wrote: > >> I just tested this, but without any result. >> I got the same errors. >> >> > Can you show the errors you got? Try temporarily adding "no-depend" > keyword to the config line before build-with . > > You should also update conf/XXX to have a special depend for your files, > because there is no depend-with option. > > --HPS > > ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
On 02/02/16 13:29, Marcin Mazurek wrote: I just tested this, but without any result. I got the same errors. Can you show the errors you got? Try temporarily adding "no-depend" keyword to the config line before build-with . You should also update conf/XXX to have a special depend for your files, because there is no depend-with option. --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
I just tested this, but without any result. I got the same errors. 2016-02-02 13:21 GMT+01:00 Hans Petter Selasky : > On 02/02/16 13:07, Marcin Mazurek wrote: > >> Thanks for your response. >> >> I saw that and I tried doing it this way: >> >> dev/al_eth/al_eth.coptional al_eth compile-with >> "-I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth" >> >> > Hi, > > Try something like this: > > dev/al_eth/al_eth.coptional al_eth compile-with "${CC} -c -o > ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth > ${PROF} ${.IMPSRC}" > > --HPS > ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
On 02/02/16 13:07, Marcin Mazurek wrote: Thanks for your response. I saw that and I tried doing it this way: dev/al_eth/al_eth.coptional al_eth compile-with "-I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth" Hi, Try something like this: dev/al_eth/al_eth.coptional al_eth compile-with "${CC} -c -o ${.TARGET} ${CFLAGS} -I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth ${PROF} ${.IMPSRC}" --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
Thanks for your response. I saw that and I tried doing it this way: dev/al_eth/al_eth.coptional al_eth compile-with "-I$S/contrib/alpine-hal -I$S/contrib/alpine-hal/eth" Unfortunately it didn't work for me, I got some error messages like: 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/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 include; use "quotes" instead #include ^ "al_hal_common.h" 1 error generated. 2016-02-02 13:01 GMT+01:00 Hans Petter Selasky : > On 02/02/16 12:46, Marcin Mazurek wrote: > >> Hello all, >> >> I'm trying to include header files in the networking driver under >> sys/dev/, >> however the headers are located in sys/contrib directory. >> Does anyone have a clue or an advice on how to do this properly without >> making too much trouble in the build system? >> I would prefer to avoid changing content of the header files. >> >> I tried adding 'compile-with' + '-I' flags in files but that did not work >> as expected. >> >> Thank you in advance for your help. >> > > Hi, > > Are you in the kernel or userspace? This part is a bit troublesome and > Bryan Drewery has some changes pending in this area. See: > > https://svnweb.freebsd.org/changeset/base/294915 > > For example how it is currently done in the kernel. > > --HPS > ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Cannot include header files from sys/contrib directory
On 02/02/16 12:46, Marcin Mazurek wrote: Hello all, I'm trying to include header files in the networking driver under sys/dev/, however the headers are located in sys/contrib directory. Does anyone have a clue or an advice on how to do this properly without making too much trouble in the build system? I would prefer to avoid changing content of the header files. I tried adding 'compile-with' + '-I' flags in files but that did not work as expected. Thank you in advance for your help. Hi, Are you in the kernel or userspace? This part is a bit troublesome and Bryan Drewery has some changes pending in this area. See: https://svnweb.freebsd.org/changeset/base/294915 For example how it is currently done in the kernel. --HPS ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Cannot include header files from sys/contrib directory
Hello all, I'm trying to include header files in the networking driver under sys/dev/, however the headers are located in sys/contrib directory. Does anyone have a clue or an advice on how to do this properly without making too much trouble in the build system? I would prefer to avoid changing content of the header files. I tried adding 'compile-with' + '-I' flags in files but that did not work as expected. Thank you in advance for your help. Marcin Mazurek ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"