Status: Accepted
Owner: ----
Labels: Type-Scripts OpSys-FreeBSD
New issue 2009 by pkx1...@gmail.com: Lilypond shell script instaler for
2.14.2-1 install fails on FreeBSD 8.2 virgin system
http://code.google.com/p/lilypond/issues/detail?id=2009
Mike Andrews mi...@mikea.ath.cx via gnu.org
Nov 2 (1 day ago)
to bug-lilypond
I'm having trouble installing lilypond using the shell script, and would
appreciate any assistance you can provide. It appears that the shell
script is incorrectly concluding that this system is not running on an
intel "686"-class CPU. The output of `uname -m` for this system is
: i386
and it appears that that "i386" at the end is misleading the shell
script. The output of `uname -a` is
FreeBSD mikea.ath.cx 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18
02:24:46 UTC 2011
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
I tried to run the lilypond shell-script installer on a virgin FreeBSD
8.2 system (and, as it happens, on a FreeBSD 8.1 system). I include a
typescript of the install failure, running on a Pentium-III/866 CPU/
After that typescript, you will find a copy of the dmesg (the system's
view of its configuration at boot time). You will note that FreeBSD is
of the opinion that the CPU is a 686-class CPU:
: CPU: Intel Pentium III (871.03-MHz 686-class CPU)
You might also wish to be aware that the "read" command in the default
FreeBSD shell does not have the "-s" operand expected by the shell. As a
result, after the "incorrect architecture" message is issued, the line
: "read -sn1 input"
, which should let the installer bypass the problem, also fails, killing
the script.
: read [-p prompt] [-t timeout] [-er] variable ...
: The prompt is printed if the -p option is specified and the
stan-
: dard input is a terminal. Then a line is read from the
standard
: input. The trailing newline is deleted from the line and the
: line is split as described in the section on White Space
: Splitting (Field Splitting) above, and the pieces are
assigned to
: the variables in order. If there are more pieces than
variables,
: the remaining pieces (along with the characters in IFS that
sepa-
: rated them) are assigned to the last variable. If there are
more
: variables than pieces, the remaining variables are assigned
the
: null string.
:
: Backslashes are treated specially, unless the -r option is
speci-
: fied. If a backslash is followed by a newline, the
backslash and
: the newline will be deleted. If a backslash is followed by
any
: other character, the backslash will be deleted and the
following
: character will be treated as though it were not in IFS, even
if
: it is.
:
: If the -t option is specified and the timeout elapses before
a
: complete line of input is supplied, the read command will
return
: an exit status of 1 without assigning any values. The
timeout
: value may optionally be followed by one of `s', `m' or `h' to
: explicitly specify seconds, minutes or hours. If none is
sup-
: plied, `s' is assumed.
:
: The -e option exists only for backward compatibility with
older
: scripts.
The command used to run the install script was
sh -vx ~/lilypond-2.14.2-1.freebsd-x86.sh
and the output is:
: Script started on Wed Nov 2 09:21:53 2011
:
: $ sh -vx lilypond-2.14.2-1.freebsd-x86.sh
: #! /bin/sh
:
: me="$0"
: + me=lilypond-2.14.2-1.freebsd-x86.sh
: root="$HOME"
: + root=/home/mikea
: doc=no
: + doc=no
: extract=no
: + extract=no
: interactive=yes
: + interactive=yes
: arch=$(uname -m)
: + uname -m
: + arch=i386
:
: if test `id -u` = "0"; then
: root=/usr/local
: fi
: + id -u
: + test 1001 = 0
:
: while test -n "$1";
: do
: case "$1" in
: --help)
: cat <<EOF
: $me - install LilyPond tarball
: Options
: --batch no interaction
: --doc [attempt to] download and install documentation
: --prefix PREFIX install into PREFIX/lilypond (default: ${root})
: --help this help
: --tarball extract tar file for archive
: EOF
: exit 0
: ;;
: --tarball)
: extract=yes
: ;;
: --prefix*)
: root=`echo "$1" | sed -e 's/.*=//g' -e 's/--prefix//g'`
: if test -z "${root}"; then
: shift
: root="$1"
: fi
: if test -z "${root}"; then
: echo 'Option --prefix requires argument.'
: exit 1
: fi
: if test ! -d "${root}"; then
: mkdir -p "${root}"
: fi
: root=`cd ${root}; pwd`
: ;;
: --batch)
: interactive=no
: ;;
: --doc*)
: doc=yes
: ;;
: *)
: echo Unknown option: $1
: exit 2
: ;;
: esac
: shift
: done
: + test -n ''
:
:
: cat <<EOF
:
: lilypond installer for version 2.14.2 release 1,
: i686 build.
: For a list of options, abort (^C) then do:
: sh $me --help
:
: EOF
: + cat
:
: lilypond installer for version 2.14.2 release 1,
: i686 build.
: For a list of options, abort (^C) then do:
: sh lilypond-2.14.2-1.freebsd-x86.sh --help
:
:
: if test "$arch" != "i686"; then
: cat <<EOF
:
: Warning: this build is not optimized for your architecture;
: please install a ${arch} build instead.
:
: Press C to install the program anyway (not recommended),
: E to only extract the program files, or any other key to exit.
: EOF
: read -sn1 input
: case "$input" in
: C)
: echo "Ignoring architecture incompatibility."
: ;;
: E)
: extract=yes;
: ;;
: *)
: exit 1
: ;;
: esac
: fi
: + test i386 != i686
: + cat
:
: Warning: this build is not optimized for your architecture;
: please install a i386 build instead.
:
: Press C to install the program anyway (not recommended),
: E to only extract the program files, or any other key to exit.
: + read -sn1 input
: read: Illegal option -s
: + exit 1
: $ ^D
: Script done on Wed Nov 2 09:22:03 2011
The dmesg.boot file:
: Copyright (c) 1992-2011 The FreeBSD Project.
: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
: The Regents of the University of California. All rights reserved.
: FreeBSD is a registered trademark of The FreeBSD Foundation.
: FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011
: r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
: Timecounter "i8254" frequency 1193182 Hz quality 0
: CPU: Intel Pentium III (871.03-MHz 686-class CPU)
: Origin = "GenuineIntel" Id = 0x686 Family = 6 Model = 8 Stepping = 6
:
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
: real memory = 536870912 (512 MB)
: avail memory = 510537728 (486 MB)
: kbd1 at kbdmux0
: acpi0: <ASUS TUSL2-C> on motherboard
: acpi0: [ITHREAD]
: acpi0: Power Button (fixed)
: acpi0: reservation of 0, a0000 (3) failed
: acpi0: reservation of 100000, 1ff00000 (3) failed
: Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
: acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
: cpu0: <ACPI CPU> on acpi0
: acpi_button0: <Power Button> on acpi0
: pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
: pci0: <ACPI PCI bus> on pcib0
: agp0: <Intel 82815 (i815 GMCH) host to PCI bridge> on hostb0
: pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
: pci1: <ACPI PCI bus> on pcib1
: pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
: pci2: <ACPI PCI bus> on pcib2
: atapci0: <SiI 3114 SATA150 controller> port
0xd800-0xd807,0xd400-0xd403,0xd000-0xd007,0xb800-0xb803,0xb400-0xb40f mem
0xf3000000-0xf30003ff irq 9 at device 9.0 on pci2
: atapci0: [ITHREAD]
: ata2: <ATA channel 0> on atapci0
: ata2: [ITHREAD]
: ata3: <ATA channel 1> on atapci0
: ata3: [ITHREAD]
: ata4: <ATA channel 2> on atapci0
: ata4: [ITHREAD]
: ata5: <ATA channel 3> on atapci0
: ata5: [ITHREAD]
: ahc0: <Adaptec 2930CU SCSI adapter> port 0xb000-0xb0ff mem
0xf2800000-0xf2800fff irq 9 at device 10.0 on pci2
: ahc0: [ITHREAD]
: aic7860: Ultra Single Channel A, SCSI Id=7, 3/253 SCBs
: vgapci0: <VGA-compatible display> mem
0xf1000000-0xf1ffffff,0xf4000000-0xf5ffffff irq 9 at device 11.0 on pci2
: rl0: <D-Link DFE-530TX+ 10/100BaseTX> port 0xa800-0xa8ff mem
0xf0800000-0xf08000ff irq 9 at device 12.0 on pci2
: miibus0: <MII bus> on rl0
: rlphy0: <RealTek internal media interface> PHY 0 on miibus0
: rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
: rl0: Ethernet address: 00:50:ba:c7:80:bf
: rl0: [ITHREAD]
: pci2: <multimedia, audio> at device 13.0 (no driver attached)
: ohci0: <NEC uPD 9210 USB controller> mem 0xf0000000-0xf0000fff irq 5 at
device 14.0 on pci2
: ohci0: [ITHREAD]
: usbus0: <NEC uPD 9210 USB controller> on ohci0
: ohci1: <NEC uPD 9210 USB controller> mem 0xef800000-0xef800fff irq 6 at
device 14.1 on pci2
: ohci1: [ITHREAD]
: usbus1: <NEC uPD 9210 USB controller> on ohci1
: ehci0: <NEC uPD 720100 USB 2.0 controller> mem 0xef000000-0xef0000ff irq
11 at device 14.2 on pci2
: ehci0: [ITHREAD]
: usbus2: EHCI version 1.0
: usbus2: <NEC uPD 720100 USB 2.0 controller> on ehci0
: isab0: <PCI-ISA bridge> at device 31.0 on pci0
: isa0: <ISA bus> on isab0
: atapci1: <Intel ICH2 UDMA100 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x9800-0x980f at device 31.1 on pci0
: ata0: <ATA channel 0> on atapci1
: ata0: [ITHREAD]
: ata1: <ATA channel 1> on atapci1
: ata1: [ITHREAD]
: uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0x9400-0x941f
irq 6 at device 31.2 on pci0
: uhci0: [ITHREAD]
: uhci0: LegSup = 0x3000
: usbus3: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
: pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
: uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0x9000-0x901f
irq 9 at device 31.4 on pci0
: uhci1: [ITHREAD]
: usbus4: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1
: atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
: ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0
: ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
: ppc0: FIFO with 16/16/9 bytes threshold
: ppc0: [ITHREAD]
: ppbus0: <Parallel port bus> on ppc0
: plip0: <PLIP network interface> on ppbus0
: plip0: [ITHREAD]
: lpt0: <Printer> on ppbus0
: lpt0: [ITHREAD]
: lpt0: Interrupt-driven port
: ppi0: <Parallel I/O> on ppbus0
: uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
: uart0: [FILTER]
: uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
: uart1: [FILTER]
: atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
: atkbd0: <AT Keyboard> irq 1 on atkbdc0
: kbd0 at atkbd0
: atkbd0: [GIANT-LOCKED]
: atkbd0: [ITHREAD]
: pmtimer0 on isa0
: orm0: <ISA Option ROMs> at iomem
0xc0000-0xca7ff,0xcc000-0xcffff,0xd0000-0xd3fff,0xd4000-0xd47ff pnpid
ORM0000 on isa0
: sc0: <System console> at flags 0x100 on isa0
: sc0: VGA <16 virtual consoles, flags=0x300>
: vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
: fdc0: No FDOUT register!
: acpi_throttle0: <ACPI CPU Throttling> on cpu0
: Timecounter "TSC" frequency 871026957 Hz quality 800
: Timecounters tick every 1.000 msec
: usbus0: 12Mbps Full Speed USB v1.0
: usbus1: 12Mbps Full Speed USB v1.0
: usbus2: 480Mbps High Speed USB v2.0
: usbus3: 12Mbps Full Speed USB v1.0
: usbus4: 12Mbps Full Speed USB v1.0
: ad0: 305245MB <WDC WD3200AAJB-00J3A0 01.03E01> at ata0-master UDMA100
: ugen0.1: <NEC> at usbus0
: uhub0: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
: ugen1.1: <NEC> at usbus1
: uhub1: <NEC OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
: ugen2.1: <NEC> at usbus2
: uhub2: <NEC EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
: ugen3.1: <Intel> at usbus3
: uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
: ugen4.1: <Intel> at usbus4
: uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
: ad1: 190782MB <MAXTOR STM3200820A 3.AAE> at ata0-slave UDMA100
: ad2: 305245MB <WDC WD3200AAJB-00J3A0 01.03E01> at ata1-master UDMA100
: ad3: 305245MB <WDC WD3200AAJB-00J3A0 01.03E01> at ata1-slave UDMA100
: ad8: 953869MB <Seagate ST31000528AS CC46> at ata4-master UDMA100 SATA
1.5Gb/s
: acd0: DVDR <HL-DT-ST DVDRAM GH24LS70/GL00> at ata5-master UDMA100 SATA
1.5Gb/s
: uhub1: 2 ports with 2 removable, self powered
: uhub0: 3 ports with 3 removable, self powered
: uhub3: 2 ports with 2 removable, self powered
: uhub4: 2 ports with 2 removable, self powered
: GEOM: ad2s1: geometry does not match label (255h,63s != 16h,63s).
: GEOM: ad3s1: geometry does not match label (255h,63s != 16h,63s).
: GEOM: ufsid/4bc61904f81cf8fc: geometry does not match label (255h,63s !=
16h,63s).
: GEOM: ufsid/4bc65efd79b96d46: geometry does not match label (255h,63s !=
16h,63s).
: ugen3.2: <Logitech> at usbus3
: ums0: <Logitech USB-PS/2 Trackball, class 0/0, rev 1.00/2.10, addr 2> on
usbus3
: ums0: 2 buttons and [XY] coordinates ID=0
: uhub2: 5 ports with 5 removable, self powered
: (probe2:ahc0:0:2:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
: (probe2:ahc0:0:2:0): CAM status: SCSI Status Error
: (probe2:ahc0:0:2:0): SCSI status: Check Condition
: (probe2:ahc0:0:2:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on,
reset, or bus device reset occurred)
: (probe2:ahc0:0:2:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
: (probe2:ahc0:0:2:0): CAM status: SCSI Status Error
: (probe2:ahc0:0:2:0): SCSI status: Check Condition
: (probe2:ahc0:0:2:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
: cd0 at ahc0 bus 0 scbus0 target 2 lun 0
: cd0: <SONY CD-RW CRX140S 1.0e> Removable CD-ROM SCSI-4 device
: cd0: 10.000MB/s transfers (10.000MHz, offset 15)
: cd0: Attempt to query device size failed: NOT READY, Medium not present
: Trying to mount root from ufs:/dev/ad0s1a
: link_elf: symbol svr4_delete_socket undefined
: KLD svr4.ko: depends on streams - not available or version mismatch
: rl0: link state changed to UP
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond