From owner-freebsd-questions@FreeBSD.ORG Sat Jul 30 08:54:05 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AD8616A41F for ; Sat, 30 Jul 2005 08:54:05 +0000 (GMT) (envelope-from subhro.kar@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id B165A43D45 for ; Sat, 30 Jul 2005 08:54:04 +0000 (GMT) (envelope-from subhro.kar@gmail.com) Received: by zproxy.gmail.com with SMTP id z6so509480nzd for ; Sat, 30 Jul 2005 01:54:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:disposition-notification-to:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=dPEo2bAorfdp4i1qQBH+JDrY61BiqbBzBhi2JBrvWFN6tlSaWaGvVsFh7b7jkIpOFESowUWyz2/8VrePAHVVDqMTGjHYzsi5PwEU8vad4c9MpHu4H6s9A8peA/kP+d2BoHjA89UlZ4fLhLKZmV2U8PB/JRzBgGsNQRqbpaaAHCo= Received: by 10.36.81.19 with SMTP id e19mr1248413nzb; Sat, 30 Jul 2005 01:54:03 -0700 (PDT) Received: from ?59.93.163.75? ([59.93.163.75]) by mx.gmail.com with ESMTP id 18sm5434224nzo.2005.07.30.01.54.01; Sat, 30 Jul 2005 01:54:03 -0700 (PDT) Message-ID: <42EB4022.1070502@gmail.com> Date: Sat, 30 Jul 2005 14:23:54 +0530 From: Subhro User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikolas Britton References: <20050728194329.GB12017@xor.obsecurity.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD - Questions , Kris Kennaway Subject: Re: FreeBSD 6 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jul 2005 08:54:05 -0000 Nikolas Britton wrote: >On 7/28/05, Kris Kennaway wrote: > > >>On Tue, Jul 26, 2005 at 03:00:49PM -0500, Nikolas Britton wrote: >> >> >>>The kernel build failed when it tired to compile the r128drm device. >>> >>> >>Show us the error. >> >> >> > >cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls >-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes >-Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 >-nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica >-I../../../contrib/altq -I../../../contrib/ipfilter >-I../../../contrib/pf -I../../../contrib/dev/ath >-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm >-I../../../dev/twa -D_KERNEL -include opt_global.h -fno-common >-finline-limit=8000 --param inline-unit-growth=100 --param >large-function-growth=1000 -mno-align-long-strings >-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 >-ffreestanding -Werror vnode_if.c >touch hack.c >cc -shared -nostdlib hack.c -o hack.So >rm -f hack.c >MAKE=make sh ../../../conf/newvers.sh GENERIC >cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls >-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes >-Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 >-nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica >-I../../../contrib/altq -I../../../contrib/ipfilter >-I../../../contrib/pf -I../../../contrib/dev/ath >-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm >-I../../../dev/twa -D_KERNEL -include opt_global.h -fno-common >-finline-limit=8000 --param inline-unit-growth=100 --param >large-function-growth=1000 -mno-align-long-strings >-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 >-ffreestanding -Werror vers.c >linking kernel >r128_cce.o(.text+0x354): In function `r128_do_cleanup_cce': >: undefined reference to `drm_free' >r128_cce.o(.text+0x372): In function `r128_do_cleanup_cce': >: undefined reference to `drm_irq_uninstall' >r128_cce.o(.text+0x394): In function `r128_do_cleanup_cce': >: undefined reference to `drm_ioremapfree' >r128_cce.o(.text+0x3a8): In function `r128_do_cleanup_cce': >: undefined reference to `drm_ati_pcigart_cleanup' >r128_cce.o(.text+0x3d7): In function `r128_do_cleanup_cce': >: undefined reference to `drm_ioremapfree' >r128_cce.o(.text+0x3e3): In function `r128_do_cleanup_cce': >: undefined reference to `drm_ioremapfree' >r128_cce.o(.text+0x400): In function `r128_cce_init': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0x4ab): In function `r128_cce_init': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0x4bb): In function `r128_cce_init': >: undefined reference to `drm_alloc' >r128_cce.o(.text+0x504): In function `r128_cce_init': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0x575): In function `r128_cce_init': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0x7e2): In function `r128_cce_init': >: undefined reference to `drm_order' >r128_cce.o(.text+0x851): In function `r128_cce_init': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0x8e0): In function `r128_cce_init': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0xa1d): In function `r128_cce_init': >: undefined reference to `drm_ioremap' >r128_cce.o(.text+0xa2f): In function `r128_cce_init': >: undefined reference to `drm_ioremap' >r128_cce.o(.text+0xa41): In function `r128_cce_init': >: undefined reference to `drm_ioremap' >r128_cce.o(.text+0xab3): In function `r128_cce_init': >: undefined reference to `drm_ati_pcigart_init' >r128_cce.o(.text+0xc08): In function `r128_cce_start': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0xc87): In function `r128_cce_start': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0xd13): In function `r128_cce_stop': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0xe14): In function `r128_cce_reset': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0xea1): In function `r128_cce_reset': >: undefined reference to `drm_debug_flag' >r128_cce.o(.text+0xedd): more undefined references to `drm_debug_flag' follow >r128_drv.o(.text+0xc): In function `r128_probe': >: undefined reference to `drm_probe' >r128_drv.o(.text+0xca): In function `r128_attach': >: undefined reference to `drm_attach' >r128_drv.o(.data+0x48): undefined reference to `drm_devclass' >r128_drv.o(.data+0x94): undefined reference to `drm_detach' >r128_irq.o(.text+0x48): In function `r128_driver_irq_handler': >: undefined reference to `drm_vbl_send_signals' >r128_state.o(.text+0xb): In function `r128_emit_clip_rects': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0x2d0): In function `r128_cce_dispatch_flip': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0x523): In function `r128_cce_dispatch_indirect': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0x7e4): In function `r128_cce_clear': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0x906): In function `r128_cce_clear': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0xc0f): more undefined references to `drm_debug_flag' follow >r128_state.o(.text+0x39d3): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x39f5): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x3bc8): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x3bde): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x3d85): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x3d9c): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x3def): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x3f1c): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x3f32): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x3fb3): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x3fc3): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x3fde): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x4052): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x41bd): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x41cd): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x41dd): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x42ac): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x441f): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x442f): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x4444): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x4454): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x4467): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x447f): In function `r128_cce_depth': >: undefined reference to `drm_alloc' >r128_state.o(.text+0x4588): In function `r128_cce_depth': >: undefined reference to `drm_free' >r128_state.o(.text+0x46d4): In function `r128_cce_stipple': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0x4907): In function `r128_cce_indirect': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0x4b92): In function `r128_getparam': >: undefined reference to `drm_debug_flag' >r128_state.o(.text+0x4c5b): In function `r128_driver_prerelease': >: undefined reference to `drm_debug_flag' >*** Error code 1 > >Stop in /usr/src/sys/i386/compile/GENERIC. >spectra# > > >------------------------------------------------ >spectra# diff GENERIC.old GENERIC >30c30 >< makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols >--- > > >>#makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols >> >> >67,73c67,73 >< options KDB # Enable kernel debugger support. >< options DDB # Support DDB. >< options GDB # Support remote GDB. >< options INVARIANTS # Enable calls of extra sanity checking >< options INVARIANT_SUPPORT # Extra sanity checks of >internal structures, required by INVARIANTS >< options WITNESS # Enable checks to detect >deadlocks and cycles >< options WITNESS_SKIPSPIN # Don't run witness on >spinlocks for speed >--- > > >>#options KDB # Enable kernel debugger support. >>#options DDB # Support DDB. >>#options GDB # Support remote GDB. >>#options INVARIANTS # Enable calls of extra sanity checking >>#options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS >>#options WITNESS # Enable checks to detect deadlocks and cycles >>#options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed >> >> >152,154c152,160 >< device vga # VGA video card driver >< >< device splash # Splash screen and screen saver support >--- > > >># Video support >>device agp # AGP GART, support several AGP chipsets >>device "r128drm" # ATI Rage 128 Direct Rendering Module >>#options DRM_DEBUG # Debugging support for Direct Rendering Modules >>device vga # VGA video card driver >>options VESA # VESA BIOS support >>#options VESA_DEBUG # VESA Debugging Support >>options SC_PIXEL_MODE # Console raster text mode (VESA graphic modes) >>device splash # Splash screen and screen saver support >> >> >163,164d168 >< >< device agp # support several AGP chipsets >spectra# > > >------------------------------------------------ >spectra# more /etc/make.conf >#CPUTYPE=p2 >#KERNCONF=SPECTRA >#COPTFLAGS= -Os -pipe >BATCH=yes >#MAKE_IDEA=yes > >PERL_VER=5.8.7 >PERL_VERSION=5.8.7 >PERL_ARCH=mach >NOPERL=yo >NO_PERL=yo >NO_PERL_WRAPPER=yo >spectra# >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > -O2 is known to create broken binaries. Reduce it to -O and recompile. Report back if it still does not work. Thanks S.