Cannot compile a custom FreeBSD kernel

Ivan Klymenko fidaj at ukr.net
Mon Oct 18 21:19:59 UTC 2010


В Mon, 18 Oct 2010 22:03:54 +0200
Jack Engqvist Johansson <jack at skysel.com> пишет:

> Hi,
> 
> I have a HP tx2020eo laptop with FreeBSD 8.1 installed. I'm trying to
> recompile the kernel to get even better performance.
> The problem is that I get error when I compile. I've tried
> comment/uncomment lines in my kernel config file but I always get some
> of error.
> 
> Could somebody have a look at my configuration?
> 
> Laptop spec:
> http://h10025.www1.hp.com/ewfrf/wc/document?lc=en&cc=us&docname=c01302377&dlc=en
> 
> ------------------------------------------------------------------------------------------
> Compilation:
> ...
> awk -f /usr/src/sys/conf/kmod_syms.awk ahc.ko.debug  export_syms |
> xargs -J% objcopy % ahc.ko.debug
> objcopy --only-keep-debug ahc.ko.debug ahc.ko.symbols
> objcopy --strip-debug --add-gnu-debuglink=ahc.ko.symbols ahc.ko.debug
> ahc.ko ===> aic7xxx/ahc/ahc_eisa (all)
> cc -O3 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE
> -nostdinc
>....

not use -O3 gcc optimisation...


More information about the freebsd-hackers mailing list