on purpose or forgotten ? hardcoded compiler in basesystem-makefiles
a quick search revealed following usages: FreeBSD abaton.Haakh.de 9.0-STABLE FreeBSD 9.0-STABLE #0: Wed Feb 29 13:49:36 CET 2012 t...@abaton.haakh.de:/usr/obj/usr/src/sys/ABATON i386 ah@abaton:~$ find /usr/src/ -name Makefile\* -exec egrep '^[[:blank:]]+[gc+]{2,3}[[:blank:]]+..' {} \; -print cc -D__dead2= -D__unused= -Darc4random=random -D__FBSDID=static const char *id= -DDEFSHELLNAME=\sh\ -I. -c *.c cc *.o -o pmake /usr/src/usr.bin/make/Makefile.dist gcc -M $(CFLAGS) $(SRC) Makefile.tmp /usr/src/crypto/openssl/demos/engines/cluster_labs/Makefile gcc -M $(CFLAGS) $(SRC) Makefile.tmp /usr/src/crypto/openssl/demos/engines/zencod/Makefile gcc -M $(CFLAGS) $(SRC) Makefile.tmp /usr/src/crypto/openssl/demos/engines/ibmca/Makefile cc -I../../include divtest.c -o divtest ../../libcrypto.a cc -g -I../../include bnbug.c -o bnbug ../../libcrypto.a gcc -I../../include -g2 -ggdb -o exptest exptest.c ../../libcrypto.a gcc -I.. -g div.c ../../libcrypto.a /usr/src/crypto/openssl/crypto/bn/Makefile cc -g -I../../include -c test.c cc -g -I../../include -o test test.o -L../.. -lcrypto cc -g -I../../include -c pk.c cc -g -I../../include -o pk pk.o -L../.. -lcrypto /usr/src/crypto/openssl/crypto/asn1/Makefile gcc -o ${.TARGET} ${_f} -lrt /usr/src/tools/test/dtrace/Makefile c++ -o $@ $ -lpthread /usr/src/tools/regression/pthread/unwind/Makefile gcc -c -o elftls.o ${.CURDIR}/elftls.S gcc -c -o tls-test.o ${.CURDIR}/tls-test-lib.c gcc $(CFLAGS) -rdynamic -o ttls3 ${.CURDIR}/tls-test.c /usr/src/tools/regression/tls/ttls3/Makefile gcc -Wall -o accf_data_attach accf_data_attach.c /usr/src/tools/regression/sockets/accf_data_attach/Makefile gcc $(LDFLAGS) $(DLL_LN_OPTS) ./lib/$*$(DLL_TAG).lib \ gcc $(LDFLAGS) $(DLL_LN_OPTS) ./lib/$*$(DLL_TAG).lib \ /usr/src/contrib/ncurses/Makefile.os2 g++ -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $ $(OUTPUT_OPTION) g++ -o $@ paranoia.o real.o $(LIBIBERTY) /usr/src/contrib/gcc/Makefile.in gcc -o asyncwatch asyncwatch.c ${CFLAGS} gcc -o devinfo devinfo.c ${CFLAGS} gcc -o device_list device_list.c ${CFLAGS} gcc -o rc_pingpong rc_pingpong.c pingpong.c ${CFLAGS} gcc -o srq_pingpong srq_pingpong.c pingpong.c ${CFLAGS} gcc -o uc_pingpong uc_pingpong.c pingpong.c ${CFLAGS} gcc -o ud_pingpong ud_pingpong.c pingpong.c ${CFLAGS} /usr/src/contrib/ofed/libibverbs/examples/Makefile cc -E $$i |\ /usr/src/contrib/libreadline/examples/rlfe/Makefile.in cc -o test ${.CURDIR}/test.c -lrpcsvc /usr/src/usr.sbin/rpc.lockd/Makefile cc -o test test.c -lrpcsvc /usr/src/usr.sbin/rpc.statd/Makefile gcc -g -DSPARC_XXX ${MUL} -o ${.TARGET} gcc -g -DSPARC_XXX ${DIVREM} -o ${.TARGET} /usr/src/lib/libc/quad/TESTS/Makefile cc ${CFLAGS} -static tst01.o -o tst01 libdisk.a /usr/src/lib/libdisk/Makefile gcc -g3 msgring.lex.c msgring.yacc.c -o msgring /usr/src/sys/mips/rmi/Makefile.msgring ah@abaton:~$ find /usr/src/ -name Makefile\* -exec egrep '^[[:blank:]]+cpp[[:blank:]]+..' {} \; -print cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s /usr/src/contrib/binutils/ld/Makefile.in cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s /usr/src/contrib/binutils/ld/Makefile.am ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fubar'ed it good this time...
Kurt Buff schrieb: On Thu, Jun 30, 2011 at 17:31, Kurt Buffkurt.b...@gmail.com wrote: On Tue, Jun 28, 2011 at 06:50, Dr. A. Haakhbugrepor...@haakh.de wrote: Polytropon schrieb: On Mon, 27 Jun 2011 06:40:27 -0700, Kurt Buff wrote: Your advice sounds reasonable, but that site seems devoted to zfs bootables. I wonder if an 8.1 livefs iso will do the trick... Check if you can download FreeSBIE somewhere. It's a live system using the 5.x and 6.x kernel which should be fine. Next to two GUI modes (light, heavy) it also has a versatile maintenance mode for such operations. I have already successfully used this system for solving similar situations, for diagnostics, and for data recovery preparation. The loader obviously knows how to deal with the filesystem because he loads the failing new kernel. So the easiest solution would be to boot an older kernel if available. I don't know how freebsd-update deals with older kernels, he should still be around. First guess is /boot/kernel.old/kernel. So get the loader-prompt, unload kernel and try load /boot/kernel.old/kernel. Andreas OK - to continue, while I have a few free minutes. I have been able to load the old kernel by going to the loader prompt from the boot menu, and doing unload kernel load /boot/kernel.old/kernel That barked about linproc in fstab, so I edited that out. Then, the next go-round: It complained about mismatches on daemon_saver.ko - a version mismatch, so I've commented that out of /etc/rc.conf. It also complained about linux.ko, so that's been commented out in /etc/rc.conf as well. I'm now able to reboot cleanly with the old kernel. After doing 'freebsd-update install' for the second time, I still can't get 8.2 to boot - same issue, only acd0 is recognized. However, I'm logged in as root under the old kernel, though I haven't start XFCE4, and don't have wireless running. This one is getting to be fun... Kurt So, I tried booting from the old kernel again, and then did a 'freebsd-update rollback', and that worked just fine. I thought I'd try again, but first did a 'freebsd-update fetch' and 'freebsd-update install' to get the latest 8.1 updates. That worked just fine, so I did a 'freebsd-update -r 8.2-RELEASE fetch' again, then a 'freebsd-update install', which went just fine, and after that rebooted as directed to attempt the second 'freebsd-update install'. That's when the same thing happened - i got dumped into the mountroot prompt again. And, again, rebooting and escaping to the loader prompt allows me to unload the kernel, load /boot/kernel.old/kernel then autoboot, and boot up. Same as before. Any thoughts? Redo the rollback to 8.1 and install the 8.2-STABLE source-tree. You can install the 8.1-sources from cd and update them to 8.2-STABLE using csup. Put the following lines in /etc/make.conf SUP_UPDATE= YES SUP=/usr/bin/csup SUPHOST=cvsup2.de.freebsd.org SUPFILE=/usr/share/examples/cvsup/stable-supfile Make sure that stable-supfile contains the right tag *default release=cvs tag=RELENG_8 Then goto /usr/src and make update |tee _Update.log Once the source-tree is up-to-date: Have a look at the FreeBSD Handbook: Chapter 8 - Configuring the FreeBSD Kernel. Copy GENERIC to e.g. MYKERNEL, edit MYKERNEL and add some debug-flags. See /sys/conf/NOTES for additional debug-options. You may as well try GENERIC - maybe your problem is gone... Then go to /usr/src and do s.th. like make buildkernel KERNCONF=MYKERNEL and if the kernel built fine install it: make KERNCONF=YOURKERNEL installkernel. You can also add KERNCONF=MYKERNEL to /etc/make.conf instead of adding it to the make command. Installing the new kernels moves /boot/kernel to /boot/kernel.old and installs the new one in /boot/kernel. If the new kernel fails again, you can delete it: rm -rf /boot/kernel mv /boot/kernel.old /boot/kernel thus putting the previous kernel in the right place. If the new kernel fails again, then press the Scroll-key and navigate to the disk-probe usind page-up-key. Write down the messages or take a photo and post it to this list. If the STABLE kernel boots fine you will probably want to remove all the debugging stuff and rebuild it. If you intend to keep the 8.1-kernel move it to e.g /boot/kernel-8.1 so it will not be deleted, when you install new ones and you can always load /boot/kernel-8.1/kernel from the loader Once the new kernel boots fine, cd /usr/src and follow the instructions in Makefile how to build and install a new kernel and a new world. At this point there is no more need for kernel-8.1: delete it. Andreas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: fubar'ed it good this time...
Polytropon schrieb: On Mon, 27 Jun 2011 06:40:27 -0700, Kurt Buff wrote: Your advice sounds reasonable, but that site seems devoted to zfs bootables. I wonder if an 8.1 livefs iso will do the trick... Check if you can download FreeSBIE somewhere. It's a live system using the 5.x and 6.x kernel which should be fine. Next to two GUI modes (light, heavy) it also has a versatile maintenance mode for such operations. I have already successfully used this system for solving similar situations, for diagnostics, and for data recovery preparation. The loader obviously knows how to deal with the filesystem because he loads the failing new kernel. So the easiest solution would be to boot an older kernel if available. I don't know how freebsd-update deals with older kernels, he should still be around. First guess is /boot/kernel.old/kernel. So get the loader-prompt, unload kernel and try load /boot/kernel.old/kernel. Andreas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Extracting a variable listing
Jack L. Stone schrieb: Sorry to return to the trough again for script help, but find excellent answers here when all else fails, and I am not very good at it. Trying to develop a script (non-bash) that will extract a variable list of content on a daily basis so I can add it to a master list. Once I have this, I can do the rest of the scripting needed. Here's an example of the need. The content I need will always fall beneath a row of pound signs, and there is content above that row I don't want, like this: bunch of rows I don't need here ### --- the top of stuff needed row1 row2 row3 row4 etc, etc So, I need a way to pull out the rows (which vary daily) beneath the pound row and place it in a new temp file that I can cat into a master file. Appreciate your kind help once again (beers on me!) All the best! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-america awk is your friend .-) this script does exactly what you need extract.awk --- /^#+$/ { print $0; getline; print ,$0 while (match($0, ^[[:print:]]+$)) { print $0; getline; } } --- You can still adjust the pattern in match to suit your need. invoke it with awk -f extract.awk yourfile Andreas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Extracting a variable listing
Dr. A. Haakh schrieb: Jack L. Stone schrieb: Sorry to return to the trough again for script help, but find excellent answers here when all else fails, and I am not very good at it. Trying to develop a script (non-bash) that will extract a variable list of content on a daily basis so I can add it to a master list. Once I have this, I can do the rest of the scripting needed. Here's an example of the need. The content I need will always fall beneath a row of pound signs, and there is content above that row I don't want, like this: bunch of rows I don't need here ### --- the top of stuff needed row1 row2 row3 row4 etc, etc So, I need a way to pull out the rows (which vary daily) beneath the pound row and place it in a new temp file that I can cat into a master file. Appreciate your kind help once again (beers on me!) All the best! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-america awk is your friend .-) this script does exactly what you need extract.awk --- /^#+$/ { getline; while (match($0, ^[[:print:]]+$)) { print $0; getline; } } --- You can still adjust the pattern in match to suit your need. invoke it with awk -f extract.awk yourfile Andreas I forgot to remove some extra output :-) -- Dr.-Ing. Andreas Haakh Schwanengasse 13 * 64380 Roßdorf * andr...@haakh.de Tel. 06154-694822 Fax. 06154-694821 Mobil 0173-361.6884 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
FreeBSD/amd: boot/loader ignores usb-keyboard
Hello, when i switched to an usb-keyboard some month ago, i realized, that boot/loader ignores input from this device. The bootmanager accepts input, loader not. Is there any configuration-parameter to fix this? Andreas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ZFS not usable on FreeBSD-8.1
Dick Hoogendijk schrieb: On 16-8-2010 20:14, Roland Smith wrote: It could be that newfs is overwriting the partition table. Can you post the output of 'gpart showdevice' and 'bsdlabeldevices1'? westmark# gpart show ad8 = 63 976773105 ad8 MBR (466G) 63 9767731051 freebsd [active] (466G) westmark# bsdlabel ad8s1 # /dev/ad8s1: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 209715204.2BSD0 0 0 b: 12582912 2097152 swap c: 9767731050unused0 0 # raw part, don't edit d: 16777216 146800644.2BSD0 0 0 e: 41943040 314572804.2BSD0 0 0 f: 903372785 734003204.2BSD0 0 0 westmark# I dumped/restored the system to ad8 yesterday and booted from it. The system *did* boot but (alas) the /dev/ads1a(f) slices were mounted. So, the system loaded the *old* root partitions (from the first drive). After googling and reading I think I need *boot0cfg* but I'm a bit scary to ruin my new boot (ad8) drive. So, what is the exact syntax to make my system not only boot from ad8, but also mount the /deb/ad8s1 slice as root slice? After that I can remove my old ata drive and hopefully my zfs errors are gone too then. ;-) Did you adjust /etc/fstab on ad8s1? Andreas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org