building seamonkey - possible clang bug

Tom Uffner tom at uffner.com
Tue Oct 8 02:09:25 UTC 2013


I am trying to build www/seamonkey on an old laptop. I realize that this
is far from an optimal situation to begin with, but all of my fast systems
are amd64 and i need an i386 build for the laptop. i can't just install a
package because i really want to strip out as much of the unused features
& bloat as possible. not ready to tor figuring out amd64 -> i386 cross
build in ports yet.

In any case the build proceeds normally until it gets to
comm-release/mozilla/media/webrtc/trunk/webrtc/modules/audio_processing/ns/ns_core.c

i believe this file exposes a clang bug...

once this source file is reached, clang proceeds to slow to a crawl, use
use up all available memory & swap on the system, and fail because it can't
allocate any more memory.

i tried unloading unnecessary kernel modules, killing unnecessary processes
and adding more swap, but all it did was thrash more and take two days longer
to run out of memory.

details...

FreeBSD kali.uffner.com 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #5: Thu Sep 26 
16:23:22 EDT 2013     tom at kali.uffner.com:/usr/obj/usr/src/sys/KALI  i386

clang: error: unable to execute command: Killed: 9
clang: error: clang frontend command failed due to signal (use -v to see 
invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: i386-unknown-freebsd9.2
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to 
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, 
and associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/ns_core-lkL4Vb.c
clang: note: diagnostic msg: /tmp/ns_core-lkL4Vb.sh
clang: note: diagnostic msg:

********************
gmake[7]: *** [audio_processing/ns/ns_core.o] Error 254
gmake[7]: Leaving directory 
`/usr/ports/www/seamonkey/work/comm-release/obj-i386-portbld-freebsd9.2/mozilla/media/webrtc/trunk/webrtc/modules/modules_audio_processing'
gmake[6]: *** [webrtc/modules/modules_audio_processing_libs] Error 2
gmake[6]: Leaving directory 
`/usr/ports/www/seamonkey/work/comm-release/obj-i386-portbld-freebsd9.2/mozilla/media/webrtc/trunk'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory 
`/usr/ports/www/seamonkey/work/comm-release/obj-i386-portbld-freebsd9.2/mozilla/media/webrtc'
gmake[4]: *** [libs_tier_platform] Error 2
gmake[4]: Leaving directory 
`/usr/ports/www/seamonkey/work/comm-release/obj-i386-portbld-freebsd9.2/mozilla'
gmake[3]: *** [tier_platform] Error 2
gmake[3]: Leaving directory 
`/usr/ports/www/seamonkey/work/comm-release/obj-i386-portbld-freebsd9.2/mozilla'
gmake[2]: *** [default] Error 2
gmake[2]: Leaving directory 
`/usr/ports/www/seamonkey/work/comm-release/obj-i386-portbld-freebsd9.2/mozilla'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory 
`/usr/ports/www/seamonkey/work/comm-release/obj-i386-portbld-freebsd9.2'
gmake: *** [build] Error 2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/www/seamonkey.
*** [build] Error code 1

Stop in /usr/ports/www/seamonkey.

Rebooting...
Copyright (c) 1992-2013 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 9.2-PRERELEASE #5: Thu Sep 26 16:23:22 EDT 2013
     tom at kali.uffner.com:/usr/obj/usr/src/sys/KALI i386
gcc version 4.2.1 20070831 patched [FreeBSD]
CPU: Intel Pentium III (496.32-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x681  Family = 0x6  Model = 0x8  Stepping = 1
 
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 268435456 (256 MB)
avail memory = 248418304 (236 MB)
kbd1 at kbdmux0
acpi0: <SONY A0> on motherboard
acpi0: reservation of 100000, ff00000 (3) failed
acpi0: reservation of 0, a0000 (3) failed
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x9> port 0x62,0x66 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 82443BX (440 BX) host to PCI bridge> on hostb0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem 
0xfd000000-0xfdffffff,0xfe800000-0xfebfffff,0xfec00000-0xfecfffff irq 9 at 
device 0.0 on pci1
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 7.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfcc0-0xfcdf at device 
7.2 on pci0
usbus0 on uhci0
pci0: <bridge> at device 7.3 (no driver attached)
fwohci0: <Sony i.LINK (CXD3222)> mem 
0xfedff000-0xfedff7ff,0xfedffc00-0xfedffdff at device 8.0 on pci0
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 08:00:46:03:00:27:c1:52
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwohci0: Initiate bus reset
fwohci0: fwohci_intr_core: BUS reset
fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER mode
pcm0: <Yamaha DS-1E (YMF744)> port 0xfc40-0xfc7f,0xfcec-0xfcef mem 
0xfedf0000-0xfedf7fff irq 9 at device 9.0 on pci0
pcm0: <Asahi Kasei AK4543 AC97 Codec>
pci0: <simple comms> at device 10.0 (no driver attached)
cbb0: <RF5C478 PCI-CardBus Bridge> at device 12.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <RF5C478 PCI-CardBus Bridge> at device 12.1 on pci0
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff 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
acpi_throttle0: <ACPI CPU Throttling> on cpu0
smist0: GSIC returned cmd 0x80, should be 0x82
smist0: GSIC returned cmd 0x80, should be 0x82
smist0: <SpeedStep SMI> on cpu0
device_attach: smist0 attach returned 6
Timecounters tick every 1.000 msec
firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0)  (me)
firewire0: bus manager 0
fwohci0: txd err= 3 miss Ack err
usbus0: 12Mbps Full Speed USB v1.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <TOSHIBA DVD-ROM SD-C2202 1021> Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
<MERIT021MP0402H YQ200-10> ATA-7 device
ada0: 33.300MB/s transfers (UDMA2, PIO 8192bytes)
ada0: 38204MB (78242976 512 byte sectors: 15H 63S/T 16383C)
ada0: Previously was known as ad0
Timecounter "TSC" frequency 496319292 Hz quality 800
uhub0: 2 ports with 2 removable, self powered
ath0: <Atheros 5212> irq 9 at device 0.0 on cardbus0
ath0: AR5212 mac 5.9 RF2112 phy 4.3
Trying to mount root from ufs:/dev/ada0s1a [rw]...
wlan0: Ethernet address: 00:0f:b5:22:be:69
-------------- next part --------------
/usr/bin/clang -cc1 -triple i386-unknown-freebsd9.2 -emit-obj -disable-free -main-file-name ns_core.c -mrelocation-model pic -pic-level 2 -relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu pentium3 -target-feature +mmx -ffunction-sections -fdata-sections -sys-header-deps -D "MOZ_GLUE_IN_PROGRAM" -D "MOZ_SUITE=1" -D "NO_NSPR_10_SUPPORT" -D "OS_POSIX=1" -D "OS_FREEBSD=1" -D "OS_BSD=1" -D ""WEBRTC_SVNREVISION=\"Unavailable_issue687\""" -D "_FILE_OFFSET_BITS=64" -D "CHROMIUM_BUILD" -D "USE_LIBJPEG_TURBO=1" -D "USE_NSS=1" -D "GTK_DISABLE_SINGLE_INCLUDES=1" -D "ENABLE_REMOTING=1" -D "ENABLE_WEBRTC=1" -D "ENABLE_CONFIGURATION_POLICY" -D "ENABLE_INPUT_SPEECH" -D "ENABLE_NOTIFICATIONS" -D "ENABLE_GPU=1" -D "USE_OPENSSL=1" -D "ENABLE_EGLIMAGE=1" -D "USE_SKIA=1" -D "ENABLE_TASK_MANAGER=1" -D "ENABLE_WEB_INTENTS=1" -D "ENABLE_EXTENSIONS=1" -D "ENABLE_PLUGIN_INSTALLATION=1" -D "ENABLE_PROTECTOR_SERVICE=1" -D "ENABLE_SESSION_SERVICE=1" -D "ENABLE_THEMES=1" -D "ENABLE_BACKGROUND=1" -D "ENABLE_AUTOMATION=1" -D "ENABLE_PRINTING=1" -D "ENABLE_CAPTIVE_PORTAL_DETECTION=1" -D "WEBRTC_LOGGING" -D "WEBRTC_MOZILLA_BUILD" -D "WEBRTC_BSD" -D "WEBRTC_THREAD_RR" -D "WEBRTC_NS_FLOAT" -D "__STDC_FORMAT_MACROS" -D "NDEBUG" -D "NVALGRIND" -D "DYNAMIC_ANNOTATIONS_ENABLED=0" -D "NDEBUG" -D "TRIMMED" -D "MOZILLA_CLIENT" -O3 -Wall -Wpointer-arith -Wdeclaration-after-statement -Werror=return-type -Wtype-limits -Wempty-body -Wsign-compare -Wno-unused -std=gnu99 -ferror-limit 19 -fmessage-length 80 -fvisibility hidden -mstackrealign -fgnu89-inline -fobjc-runtime=gnustep -fobjc-default-synthesize-properties -fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -x c ns_core-lkL4Vb.c


More information about the freebsd-ports mailing list