Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2002 17:02:43 +0700 (KRAT)
From:      Eugene Grosbein <eugen@www.svzserv.kemerovo.su>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/36417: It's impossible to rebuild GENERIC kernel if world built with NOLIB=true: no libl
Message-ID:  <200203281002.g2SA2hY54081@www.svzserv.kemerovo.su>

next in thread | raw e-mail | index | archive | help

>Number:         36417
>Category:       bin
>Synopsis:       It's impossible to rebuild GENERIC kernel if world built with NOLIB=true: no libl
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 28 02:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Eugene Grosbein
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Svyaz Service
>Environment:
System: FreeBSD www.svzserv.kemerovo.su 4.5-STABLE FreeBSD 4.5-STABLE #2: Wed Mar 20 10:19:40 KRAT 2002 eu@www.svzserv.kemerovo.su:/home3/obj/home3/src/sys/WWW i386

>Description:
	One can build relatively small (<64M) small world using
	many flags like NOSHARED=no, NOLIB=true etc. to use FreeBSD
	with small media (flash, old small hard drive) 
	when PicoBSD is not an option. I built such world and custom kernel,
	all runs find. It was built from recent STABLE sources so 
	I decided to rebuild GENERIC too. This host has small drive
	so it can only handle kernel sources so I used old kernel building
	method: config GENERIC; cd ../../compile/GENERIC; make depend && make

	But it failed because NOLIB=true disabled building of libl:

make -f ../../dev/aic7xxx/aicasm/Makefile MAKESRCPATH=../../dev/aic7xxx/aicasm
Warning: Object directory not changed from original /usr/src/sys/compile/GENERIC
cc -O -pipe -m486 -I/usr/include -I.    -o aicasm aicasm_gram.o aicasm_scan.o aicasm.o aicasm_symbol.o  -ll
/usr/libexec/elf/ld: cannot find -ll
*** Error code 1

Stop in /usr/src/sys/compile/GENERIC.
*** Error code 1

Stop in /usr/src/sys/compile/GENERIC.

>How-To-Repeat:

	Make world with NOLIB=true, install it, run it and try to
	build GENERIC kernel.

>Fix:

	Make building of libl unconditional.
	
--- usr.bin/lex/Makefile.orig	Thu Mar 28 17:00:43 2002
+++ usr.bin/lex/Makefile	Thu Mar 28 17:00:59 2002
@@ -24,9 +24,7 @@
 
 CLEANFILES=	scan.c skel.c
 
-.if !defined(NOLIB)
 SUBDIR=		lib
-.endif
 
 skel.c: mkskel.sh flex.skl
 	sh ${.CURDIR}/mkskel.sh ${.CURDIR}/flex.skl > skel.c
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203281002.g2SA2hY54081>