bd58
![]() |
|
|
|
|
|||||||
| FreeBSD Development Kernel development, writing drivers, coding, and questions regarding FreeBSD internals. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all!
I started to write test kernel module, but when compiling I get error: Code:
# make
"/sys/conf/kmod.mk", line 116: Malformed conditional (${MK_CLANG_IS_CC} == "no" && ${CC:T:Mclang} != "clang")
"/sys/conf/kmod.mk", line 120: if-less endif
"/sys/conf/kern.mk", line 18: Malformed conditional (${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang")
"/sys/conf/kern.mk", line 32: if-less endif "/sys/conf/kern.mk", line 102: Malformed conditional (${MK_CLANG_IS_CC} != "no" || ${CC:T:Mclang} == "clang")
"/sys/conf/kern.mk", line 108: if-less endif
make: fatal errors encountered -- cannot continue
Code:
MK_CLANG_IS_CC=no Code:
# kldload ./fclst.ko kldload: can't load ./fclst.ko: Exec format error Code:
# uname -a FreeBSD vagner-wrk.bsdway.ru 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Sun Jul 29 18:34:18 MSK 2012 root@vagner-wrk.bsdway.ru:/usr/obj/usr/src/sys/GENERIC amd64 Code:
# file -s ./fclst.ko ./fclst.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (FreeBSD), not stripped Code:
# grep -v ^# /etc/make.conf WITH_NEW_XORG=true WITH_KMS=true PERL_VERSION=5.14.2 MK_CLANG_IS_CC=no Code:
# grep -v ^# Makefile | grep -v ^$
KMOD = fclst
SRCS = fclst.c
KO = ${KMOD}.ko
.include <bsd.kmod.mk>
fclst.c Last edited by SirDice; August 14th, 2012 at 09:35. Reason: Proper use of [cmd] tags: http://forums.freebsd.org/showthread.php?t=8816#cmd ; Proper use of [code] tags: http://forums.free |
|
#2
|
|||
|
|||
|
It works just fine for me when I build your code on my system and load it. I even used your make options in make.conf and still no errors.
Code:
FreeBSD strata.xxxxxxxx.org 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #9: Wed Aug 1 15:34:14 PDT 2012 root@strata:/usr/obj/usr/src/sys/STRATA i386
__________________
You can't learn by watching. You gotta get out there and do it. |
|
#3
|
|||
|
|||
|
Thanks, for your reply. Probably, it is because of the version PRERELEASE
|
|
#4
|
|||
|
|||
|
Furthermore, I went and looked on my system for those files that make flagged errors in and the contents of those lines are very different. Furthermore, I went into the code repository and looked they they are different there as well. So the only thing that I can conclude from this is that someone else identified the problem and corrected it.
__________________
You can't learn by watching. You gotta get out there and do it. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Yuck - Fatal trap 12 on FreeBSD 8.1-PRERELEASE | Rudy | Installing & Upgrading | 7 | January 12th, 2011 10:33 |
| [Solved] FreeBSD 8.2-PRERELEASE ? | ahavatar | Installing & Upgrading | 17 | December 24th, 2010 01:51 |
| FreeBSD 8RC2 and ZFS - slow writing | freelsd | General | 20 | November 23rd, 2010 16:50 |
| no audio with Realtek ALC260 freebsd 8.1 prerelease | unsobill | Multimedia | 11 | July 10th, 2010 17:17 |
| FreeBSD 7.2-PRERELEASE | alie | Installing & Upgrading | 3 | March 22nd, 2009 11:34 |