Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Still compiling after 12 minutes #24535

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR24536
Status NEW
Importance P normal
Reported by llvm@pki2.com (llvm@pki2.com)
Reported on 2015-08-21 12:11:08 -0700
Last modified on 2020-01-12 15:44:16 -0800
Version trunk
Hardware Other FreeBSD
CC chandlerc@gmail.com, dgregor@apple.com, dimitry@andric.com, florian_hahn@apple.com, hfinkel@anl.gov, llvm-bugs@lists.llvm.org, yuanfang.chen@sony.com
Fixed by commit(s)
Attachments PulseTable.cc (70085 bytes, text/x-c++src)
PulseTable.bc (789808 bytes, application/octet-stream)
Blocks
Blocked by
See also PR41240
Created attachment 14757
Pulse Table .cc

I have a file that doesn't seem to complete compilation under clang++/FreeBSD-
10.2 -- certainly doesn't compiler against 3.8 but I've had trouble with
earlier versions. The file does compile under g++ 4.8, 4.9, and 5.2 in the same
environment. After twelve minutes, I ctl-C.

The compiler line:

clang++-devel   -Dgnuradio_adsb_EXPORTS -UNDEBUG -g -Wall -finline -O -
march=bdver1 -fopenmp -std=c++11 -pthread   -O3 -DNDEBUG -fPIC -I/root/gr-
adsb/lib -I/root/gr-adsb/include -I/usr/local/include    -UNDEBUG -g -Wall -
finline -O -march=bdver1 -fopenmp -std=c++11 -pthread -o CMakeFiles/gnuradio-
adsb.dir/PulseTable.cc.o -c /root/gr-adsb/lib/PulseTable.cc

The compiler identifies itself as:

root@mc# clang++-devel -v
clang version 3.8.0
Target: x86_64-unknown-freebsd10.2
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin

There are two files. I attached the .cc but I can only add one attachment. The
.h content is:

#include <map>
#include <vector>

extern "C" {

#include <ctype.h>
#include <unistd.h>

}

// Pulse positions translation table.
//
// This is really the Gillham code. See:
//
//  https://en.wikipedia.org/wiki/Gillham_code
//  http://www.airsport-corp.com/modecascii.txt
//
// Here's the structure:
//  { pulse positions }, { altitude }
//
// Pulse positions are:
//  { D2, D4, A1, A2, A4, B1, B2, B4, C1, C2, C4 }
//

extern const std::map<std::vector<bool>,int32_t> pulse_table;

My system is:

root@mc# cat /var/run/dmesg.boot
Copyright (c) 1992-2015 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 10.2-STABLE #0 r286965: Thu Aug 20 11:49:26 PDT 2015
    root@mc:/disk-2/obj/disk-1/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: AMD Opteron(TM) Processor 6274                  (2200.07-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x600f12  Family=0x15  Model=0x1  Stepping=2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x1e98220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x1c9bfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,NodeId,Topology,PCXC,PNXC>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=65536
  TSC: P-state invariant, performance statistics
real memory  = 137438953472 (131072 MB)
avail memory = 133560291328 (127373 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <012913 APIC1648>
FreeBSD/SMP: Multiprocessor System Detected: 64 CPUs
FreeBSD/SMP: 4 package(s) x 16 core(s)
 cpu0 (BSP): APIC ID: 32
 cpu1 (AP): APIC ID: 33
 cpu2 (AP): APIC ID: 34
 cpu3 (AP): APIC ID: 35
 cpu4 (AP): APIC ID: 36
 cpu5 (AP): APIC ID: 37
 cpu6 (AP): APIC ID: 38
 cpu7 (AP): APIC ID: 39
 cpu8 (AP): APIC ID: 40
 cpu9 (AP): APIC ID: 41
 cpu10 (AP): APIC ID: 42
 cpu11 (AP): APIC ID: 43
 cpu12 (AP): APIC ID: 44
 cpu13 (AP): APIC ID: 45
 cpu14 (AP): APIC ID: 46
 cpu15 (AP): APIC ID: 47
 cpu16 (AP): APIC ID: 64
 cpu17 (AP): APIC ID: 65
 cpu18 (AP): APIC ID: 66
 cpu19 (AP): APIC ID: 67
 cpu20 (AP): APIC ID: 68
 cpu21 (AP): APIC ID: 69
 cpu22 (AP): APIC ID: 70
 cpu23 (AP): APIC ID: 71
 cpu24 (AP): APIC ID: 72
 cpu25 (AP): APIC ID: 73
 cpu26 (AP): APIC ID: 74
 cpu27 (AP): APIC ID: 75
 cpu28 (AP): APIC ID: 76
 cpu29 (AP): APIC ID: 77
 cpu30 (AP): APIC ID: 78
 cpu31 (AP): APIC ID: 79
 cpu32 (AP): APIC ID: 96
 cpu33 (AP): APIC ID: 97
 cpu34 (AP): APIC ID: 98
 cpu35 (AP): APIC ID: 99
 cpu36 (AP): APIC ID: 100
 cpu37 (AP): APIC ID: 101
 cpu38 (AP): APIC ID: 102
 cpu39 (AP): APIC ID: 103
 cpu40 (AP): APIC ID: 104
 cpu41 (AP): APIC ID: 105
 cpu42 (AP): APIC ID: 106
 cpu43 (AP): APIC ID: 107
 cpu44 (AP): APIC ID: 108
 cpu45 (AP): APIC ID: 109
 cpu46 (AP): APIC ID: 110
 cpu47 (AP): APIC ID: 111
 cpu48 (AP): APIC ID: 128
 cpu49 (AP): APIC ID: 129
 cpu50 (AP): APIC ID: 130
 cpu51 (AP): APIC ID: 131
 cpu52 (AP): APIC ID: 132
 cpu53 (AP): APIC ID: 133
 cpu54 (AP): APIC ID: 134
 cpu55 (AP): APIC ID: 135
 cpu56 (AP): APIC ID: 136
 cpu57 (AP): APIC ID: 137
 cpu58 (AP): APIC ID: 138
 cpu59 (AP): APIC ID: 139
 cpu60 (AP): APIC ID: 140
 cpu61 (AP): APIC ID: 141
 cpu62 (AP): APIC ID: 142
 cpu63 (AP): APIC ID: 143
ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has zero address
or length: 0x0000000000000000/0x1 (20150515/tbfadt-673)
ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32
(20150515/tbfadt-644)
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
random: <Software, Yarrow> initialized
module_register_init: MOD_LOAD (vesa, 0xffffffff80db92e0, 0) error 19
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS> on motherboard
acpi0: <012913 XSDT1648> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
cpu4: <ACPI CPU> on acpi0
cpu5: <ACPI CPU> on acpi0
cpu6: <ACPI CPU> on acpi0
cpu7: <ACPI CPU> on acpi0
cpu8: <ACPI CPU> on acpi0
cpu9: <ACPI CPU> on acpi0
cpu10: <ACPI CPU> on acpi0
cpu11: <ACPI CPU> on acpi0
cpu12: <ACPI CPU> on acpi0
cpu13: <ACPI CPU> on acpi0
cpu14: <ACPI CPU> on acpi0
cpu15: <ACPI CPU> on acpi0
cpu16: <ACPI CPU> on acpi0
cpu17: <ACPI CPU> on acpi0
cpu18: <ACPI CPU> on acpi0
cpu19: <ACPI CPU> on acpi0
cpu20: <ACPI CPU> on acpi0
cpu21: <ACPI CPU> on acpi0
cpu22: <ACPI CPU> on acpi0
cpu23: <ACPI CPU> on acpi0
cpu24: <ACPI CPU> on acpi0
cpu25: <ACPI CPU> on acpi0
cpu26: <ACPI CPU> on acpi0
cpu27: <ACPI CPU> on acpi0
cpu28: <ACPI CPU> on acpi0
cpu29: <ACPI CPU> on acpi0
cpu30: <ACPI CPU> on acpi0
cpu31: <ACPI CPU> on acpi0
cpu32: <ACPI CPU> on acpi0
cpu33: <ACPI CPU> on acpi0
cpu34: <ACPI CPU> on acpi0
cpu35: <ACPI CPU> on acpi0
cpu36: <ACPI CPU> on acpi0
cpu37: <ACPI CPU> on acpi0
cpu38: <ACPI CPU> on acpi0
cpu39: <ACPI CPU> on acpi0
cpu40: <ACPI CPU> on acpi0
cpu41: <ACPI CPU> on acpi0
cpu42: <ACPI CPU> on acpi0
cpu43: <ACPI CPU> on acpi0
cpu44: <ACPI CPU> on acpi0
cpu45: <ACPI CPU> on acpi0
cpu46: <ACPI CPU> on acpi0
cpu47: <ACPI CPU> on acpi0
cpu48: <ACPI CPU> on acpi0
cpu49: <ACPI CPU> on acpi0
cpu50: <ACPI CPU> on acpi0
cpu51: <ACPI CPU> on acpi0
cpu52: <ACPI CPU> on acpi0
cpu53: <ACPI CPU> on acpi0
cpu54: <ACPI CPU> on acpi0
cpu55: <ACPI CPU> on acpi0
cpu56: <ACPI CPU> on acpi0
cpu57: <ACPI CPU> on acpi0
cpu58: <ACPI CPU> on acpi0
cpu59: <ACPI CPU> on acpi0
cpu60: <ACPI CPU> on acpi0
cpu61: <ACPI CPU> on acpi0
cpu62: <ACPI CPU> on acpi0
cpu63: <ACPI CPU> on acpi0
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
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 52 at device 4.0 on pci0
pci5: <ACPI PCI bus> on pcib1
igb0: <Intel(R) PRO/1000 Network Connection version - 2.4.0> port 0xe400-0xe41f
mem 0xfeb60000-0xfeb7ffff,0xfeb40000-0xfeb5ffff,0xfeb1c000-0xfeb1ffff irq 44 at
device 0.0 on pci5
igb0: Using MSIX interrupts with 9 vectors
igb0: Ethernet address: 00:e0:81:c8:ee:8a
igb0: Bound queue 0 to cpu 0
igb0: Bound queue 1 to cpu 1
igb0: Bound queue 2 to cpu 2
igb0: Bound queue 3 to cpu 3
igb0: Bound queue 4 to cpu 4
igb0: Bound queue 5 to cpu 5
igb0: Bound queue 6 to cpu 6
igb0: Bound queue 7 to cpu 7
igb1: <Intel(R) PRO/1000 Network Connection version - 2.4.0> port 0xe800-0xe81f
mem 0xfebe0000-0xfebfffff,0xfebc0000-0xfebdffff,0xfeb9c000-0xfeb9ffff irq 45 at
device 0.1 on pci5
igb1: Using MSIX interrupts with 9 vectors
igb1: Ethernet address: 00:e0:81:c8:ee:8b
igb1: Bound queue 0 to cpu 8
igb1: Bound queue 1 to cpu 9
igb1: Bound queue 2 to cpu 10
igb1: Bound queue 3 to cpu 11
igb1: Bound queue 4 to cpu 12
igb1: Bound queue 5 to cpu 13
igb1: Bound queue 6 to cpu 14
igb1: Bound queue 7 to cpu 15
pcib2: <ACPI PCI-PCI bridge> irq 53 at device 9.0 on pci0
pci4: <ACPI PCI bus> on pcib2
em0: <Intel(R) PRO/1000 Network Connection 7.4.2> port 0xd800-0xd81f mem
0xfeae0000-0xfeafffff,0xfeadc000-0xfeadffff irq 48 at device 0.0 on pci4
em0: Using MSIX interrupts with 3 vectors
em0: Ethernet address: 00:e0:81:c8:ee:ff
pcib3: <ACPI PCI-PCI bridge> irq 54 at device 11.0 on pci0
pci3: <ACPI PCI bus> on pcib3
mps0: <Avago Technologies (LSI) SAS2008> port 0xc000-0xc0ff mem 0xfe93c000-
0xfe93ffff,0xfe940000-0xfe97ffff irq 32 at device 0.0 on pci3
mps0: Firmware: 19.00.00.00, Driver: 20.00.00.00-fbsd
mps0: IOCCapabilities:
1285c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,EventReplay,HostDisc>
pcib4: <ACPI PCI-PCI bridge> irq 54 at device 13.0 on pci0
pci2: <ACPI PCI bus> on pcib4
mps1: <Avago Technologies (LSI) SAS2008> port 0xb000-0xb0ff mem 0xfe83c000-
0xfe83ffff,0xfe840000-0xfe87ffff irq 40 at device 0.0 on pci2
mps1: Firmware: 19.00.00.00, Driver: 20.00.00.00-fbsd
mps1: IOCCapabilities: 185c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,IR>
ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0x9000-0x9007,0x8000-
0x8003,0x7000-0x7007,0x6000-0x6003,0x5000-0x500f mem 0xfdefe400-0xfdefe7ff irq
22 at device 17.0 on pci0
ahci0: AHCI v1.10 with 4 3Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfdefa000-0xfdefafff irq 16
at device 18.0 on pci0
usbus0 on ohci0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfdefb000-0xfdefbfff irq 16
at device 18.1 on pci0
usbus1 on ohci1
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfdefe800-0xfdefe8ff irq
17 at device 18.2 on pci0
usbus2: EHCI version 1.0
usbus2 on ehci0
ohci2: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfdefc000-0xfdefcfff irq 18
at device 19.0 on pci0
usbus3 on ohci2
ohci3: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfdefd000-0xfdefdfff irq 18
at device 19.1 on pci0
usbus4 on ohci3
ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xfdefec00-0xfdefecff irq
19 at device 19.2 on pci0
usbus5: EHCI version 1.0
usbus5 on ehci1
atapci0: <ATI IXP700/800 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-
0x177,0x376,0xff00-0xff0f at device 20.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib5: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci1: <ACPI PCI bus> on pcib5
vgapci0: <VGA-compatible display> port 0xa800-0xa87f mem 0xfe000000-
0xfe7fffff,0xfdfe0000-0xfdffffff irq 23 at device 9.0 on pci1
vgapci0: Boot video device
ohci4: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xfdeff000-0xfdefffff irq 18
at device 20.5 on pci0
usbus6 on ohci4
amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb4
amdtemp1: <AMD CPU On-Die Thermal Sensors> on hostb10
amdtemp2: <AMD CPU On-Die Thermal Sensors> on hostb16
amdtemp3: <AMD CPU On-Die Thermal Sensors> on hostb22
amdtemp4: <AMD CPU On-Die Thermal Sensors> on hostb28
amdtemp5: <AMD CPU On-Die Thermal Sensors> on hostb34
amdtemp6: <AMD CPU On-Die Thermal Sensors> on hostb40
amdtemp7: <AMD CPU On-Die Thermal Sensors> on hostb46
acpi_button0: <Power Button> on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <Non-standard ns8250 class UART with FIFOs> port 0x2f8-0x2ff irq 3 on
acpi0
orm0: <ISA Option ROM> at iomem 0xc0000-0xc7fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: CGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3d0-0x3db iomem 0xb8000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
random: unblocking device.
usbus0: 12Mbps Full Speed USB v1.0
Timecounters tick every 1.000 msec
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
usbus5: 480Mbps High Speed USB v2.0
usbus6: 12Mbps Full Speed USB v1.0
ugen0.1: <ATI> at usbus0
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <ATI> at usbus1
uhub1: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <ATI> at usbus2
uhub2: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen4.1: <ATI> at usbus4
uhub3: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen3.1: <ATI> at usbus3
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen5.1: <ATI> at usbus5
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5
ugen6.1: <ATI> at usbus6
uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus6
uhub6: 2 ports with 2 removable, self powered
uhub0: 3 ports with 3 removable, self powered
uhub1: 3 ports with 3 removable, self powered
uhub3: 3 ports with 3 removable, self powered
uhub4: 3 ports with 3 removable, self powered
uhub2: 6 ports with 6 removable, self powered
uhub5: 6 ports with 6 removable, self powered
mps1: SAS Address for SATA device = a6a73545c5b28764
mps1: SAS Address from SATA device = a6a73545c5b28764
mps1: SAS Address for SATA device = a6993646c9cfa55c
ugen5.2: <American Megatrends Inc.> at usbus5
mps1: SAS Address from SATA device = a6993646c9cfa55c
uhub7: <Hub Interface> on usbus5
mps1: SAS Address for SATA device = 3825533090854936
mps0: SAS Address for SATA device = d82e16208c6273a2
mps1: SAS Address from SATA device = 3825533090854936
mps1: SAS Address for SATA device = 3825533090863656
mps0: SAS Address from SATA device = d82e16208c6273a2
mps1: SAS Address from SATA device = 3825533090863656
uhub7: 3 ports with 3 removable, self powered
ugen5.3: <American Megatrends Inc.> at usbus5
ukbd0: <Keyboard Interface> on usbus5
kbd2 at ukbd0
mps0: SAS Address for SATA device = 83953824a4b79494
mps0: SAS Address from SATA device = 83953824a4b79494
mps0: SAS Address for SATA device = a6a83546b6cf8363
mps0: SAS Address from SATA device = a6a83546b6cf8363
mps0: SAS Address for SATA device = 433b59306c945148
mps0: SAS Address from SATA device = 433b59306c945148
mps0: SAS Address for SATA device = 403b592f91895b30
mps0: SAS Address from SATA device = 403b592f91895b30
mps0: SAS Address for SATA device = 433b59306d853851
mps0: SAS Address from SATA device = 433b59306d853851
mps0: SAS Address for SATA device = 403b592f917e5736
mps0: SAS Address from SATA device = 403b592f917e5736
mps0: SAS Address for SATA device = 3b25533070855b4f
mps0: SAS Address from SATA device = 3b25533070855b4f
da0 at mps0 bus 0 scbus0 target 3 lun 0
da0: <ATA M4-CT256M4SSD2 000F> Fixed Direct Access SPC-4 SCSI device
da0: Serial Number 0000000012170909171D
da0: 600.000MB/s transfers
da0: Command Queueing enabled
da0: 244198MB (500118192 512 byte sectors: 255H 63S/T 31130C)
da0: quirks=0x8<4K>
da1 at mps0 bus 0 scbus0 target 5 lun 0
da1: <ATA WDC WD2500HHTZ-0 6A00> Fixed Direct Access SPC-4 SCSI device
da1: Serial Number      WD-WX31EB1SDT28
da1: 600.000MB/s transfers
da1: Command Queueing enabled
da1: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C)
da2 at mps0 bus 0 scbus0 target 6 lun 0
da2: <ATA ST3000DM001-9YN1 CC4H> Fixed Direct Access SPC-4 SCSI device
da3 at mps0 bus 0 scbus0 target 7 lun 0
da3: <ATA ST3000DM001-9YN1 CC4H> Fixed Direct Access SPC-4 SCSI device
da2: Serial Number             W1F0XCR8
da3: Serial Number             Z1F13YLJ
da3: 600.000MB/s transfers
da3: Command Queueing enabled
da3: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)
da3: quirks=0x8<4K>
cd0 at ahcich0 bus 0 scbus2 target 0 lun 0
cd0: <HL-DT-ST BD-RE  BH10LS30 1.00> Removable CD-ROM SCSI device
cd0: Serial Number K94A9RH1009
cd0: 150.000MB/s transfers (SATA 1.x, UDMA6, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray
closed
da2: 600.000MB/s transfers
da2: Command Queueing enabled
da2: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)
da2: quirks=0x8<4K>
da4 at mps0 bus 0 scbus0 target 8 lun 0
da4: <ATA ST3000DM001-9YN1 CC4H> Fixed Direct Access SPC-4 SCSI device
da4: Serial Number             W1F0XNV2
da4: 600.000MB/s transfers
da4: Command Queueing enabled
da4: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)
da4: quirks=0x8<4K>
da5 at mps0 bus 0 scbus0 target 11 lun 0
da5: <ATA ST3000DM001-1CH1 CC43> Fixed Direct Access SPC-4 SCSI device
da5: Serial Number             Z1F17JVQ
da5: 600.000MB/s transfers
da5: Command Queueing enabled
da5: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)
da5: quirks=0x8<4K>
da6 at mps0 bus 0 scbus0 target 12 lun 0
da6: <ATA ST3000DM001-9YN1 CC4H> Fixed Direct Access SPC-4 SCSI device
da6: Serial Number             Z1F14J3S
da6: 600.000MB/s transfers
da6: Command Queueing enabled
da6: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)
da7 at mps0 bus 0 scbus0 target 13 lun 0
da7: <ATA WDC WD4003FZEX-0 1A01> Fixed Direct Access SPC-4 SCSI device
da7: Serial Number      WD-WMC1F1266835
da7: 600.000MB/s transfers
da6: quirks=0x8<4K>
da7: Command Queueing enabled
da7: 3815447MB (7814037168 512 byte sectors: 255H 63S/T 486401C)
da8 at mps1 bus 0 scbus1 target 0 lun 0
da8: <LSI Logical Volume 3000> Fixed Direct Access SPC-4 SCSI device
da8: Serial Number    44955438353640019
da8: 150.000MB/s transfers
da9 at mps1 bus 0 scbus1 target 12 lun 0
da9: <ATA ST3000DM001-1CH1 CC24> Fixed Direct Access SPC-4 SCSI device
da9: Serial Number             W1F1WK1X
da9: 600.000MB/s transfers
da9: Command Queueing enabled
da9: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)
da9: quirks=0x8<4K>
da8: Command Queueing enabled
da8: 237464MB (486326272 512 byte sectors: 255H 63S/T 30272C)
da10 at mps1 bus 0 scbus1 target 13 lun 0
da10: <ATA ST3000DM001-1CH1 CC24> Fixed Direct Access SPC-4 SCSI device
da10: Serial Number             W1F1WJD8
da10: 600.000MB/s transfers
da10: Command Queueing enabled
da10: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)
da10: quirks=0x8<4K>
SMP: AP CPU #1 Launched!
SMP: AP CPU #63 Launched!
SMP: AP CPU #48 Launched!
SMP: AP CPU #49 Launched!
SMP: AP CPU #60 Launched!
SMP: AP CPU #50 Launched!
SMP: AP CPU #51 Launched!
SMP: AP CPU #18 Launched!
SMP: AP CPU #19 Launched!
SMP: AP CPU #59 Launched!
SMP: AP CPU #55 Launched!
SMP: AP CPU #54 Launched!
SMP: AP CPU #56 Launched!
SMP: AP CPU #52 Launched!
SMP: AP CPU #53 Launched!
SMP: AP CPU #22 Launched!
SMP: AP CPU #23 Launched!
SMP: AP CPU #20 Launched!
SMP: AP CPU #57 Launched!
SMP: AP CPU #16 Launched!
SMP: AP CPU #42 Launched!
SMP: AP CPU #47 Launched!
SMP: AP CPU #44 Launched!
SMP: AP CPU #21 Launched!
SMP: AP CPU #46 Launched!
SMP: AP CPU #45 Launched!
SMP: AP CPU #17 Launched!
SMP: AP CPU #40 Launched!
SMP: AP CPU #43 Launched!
SMP: AP CPU #41 Launched!
SMP: AP CPU #33 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #38 Launched!
SMP: AP CPU #34 Launched!
SMP: AP CPU #31 Launched!
SMP: AP CPU #36 Launched!
SMP: AP CPU #27 Launched!
SMP: AP CPU #28 Launched!
SMP: AP CPU #30 Launched!
SMP: AP CPU #24 Launched!
SMP: AP CPU #26 Launched!
SMP: AP CPU #39 Launched!
SMP: AP CPU #25 Launched!
SMP: AP CPU #32 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #29 Launched!
SMP: AP CPU #37 Launched!
SMP: AP CPU #35 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #11 Launched!
SMP: AP CPU #15 Launched!
SMP: AP CPU #8 Launched!
SMP: AP CPU #12 Launched!
SMP: AP CPU #10 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #9 Launched!
SMP: AP CPU #14 Launched!
SMP: AP CPU #13 Launched!
SMP: AP CPU #58 Launched!
SMP: AP CPU #61 Launched!
SMP: AP CPU #62 Launched!
Timecounter "TSC-low" frequency 1100037274 Hz quality 800
Trying to mount root from ufs:/dev/gpt/disk0 [rw]...
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
ums0: <Mouse Interface> on usbus5
ums0: 3 buttons and [Z] coordinates ID=0
Quuxplusone commented 9 years ago

Attached PulseTable.cc (70085 bytes, text/x-c++src): Pulse Table .cc

Quuxplusone commented 9 years ago
I can confirm this file DOES compile under 3.4.1/FreeBSD (see "3.4.1" below).
It takes roughly 8 minutes. The prior 3.8.0 case is still working after 123
minutes but appears appears to be related to optimization (see "3.8.0" below).
Specifically, without -O the file compiles quickly under 3.8.0.

I have also run 3.5.2 and 3.6.2 but on a different host (Junker). Both
optimization and no optimization compile (see "3.5.2" and "3.6.2" below for
optimization cases).

3.4.1 WITH optimization:

root@mc# time clang++ -UNDEBUG -march=bdver1 -fopenmp -fPIC -std=c++11 -pthread
-I/usr/local/include -I. -O -o foo.o PulseTable.cc -c -v
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd10.2
Thread model: posix
Selected GCC installation:
clang++: warning: argument unused during compilation: '-fopenmp'
 "/usr/bin/clang++" -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name PulseTable.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu bdver1 -v -coverage-file /root/gr-adsb/lib/foo.o -resource-dir /usr/bin/../lib/clang/3.4.1 -U NDEBUG -I /usr/local/include -I . -internal-isystem /usr/include/c++/v1 -O2 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /root/gr-adsb/lib -ferror-limit 19 -fmessage-length 80 -pthread -mstackrealign -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o foo.o -x c++ PulseTable.cc
clang -cc1 version 3.4.1 based upon LLVM 3.4.1 default target x86_64-unknown-
freebsd10.2
ignoring nonexistent directory "/usr/bin/../lib/clang/3.4.1/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 .
 /usr/include/c++/v1
 /usr/include/clang/3.4.1
 /usr/include
End of search list.
419.077u 3.417s 7:02.50 99.9%   35210+609k 0+3io 0pf+0w

3.5.2 -- WITH optimization:

root@Junker# time clang++35 -UNDEBUG -march=bdver1 -fopenmp -fPIC -std=c++11 -
pthread -I/usr/local/include -I. -O -o bar.o -c PulseTable.cc -c -v
clang version 3.5.2 (tags/RELEASE_352/final)
Target: x86_64-portbld-freebsd10.2
Thread model: posix
 "/usr/local/llvm35/bin/clang" -cc1 -triple x86_64-portbld-freebsd10.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name PulseTable.cc -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu bdver1 -target-linker-version 2.17.50 -v -dwarf-column-info -coverage-file /tmp/bar.o -resource-dir /usr/local/llvm35/bin/../lib/clang/3.5.2 -U NDEBUG -I /usr/local/include -I . -internal-isystem /usr/include/c++/v1 -O2 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 129 -pthread -mstackrealign -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o bar.o -x c++ PulseTable.cc
clang -cc1 version 3.5.2 based upon LLVM 3.5.2 default target x86_64-portbld-
freebsd10.2
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 .
 /usr/include/c++/v1
 /usr/local/llvm35/bin/../lib/clang/3.5.2/include
 /usr/include
End of search list.
104.472u 1.455s 1:45.98 99.9%   20644+1041k 0+4io 0pf+0w
root@Junker#

3.6.2 -- WITH optimization:

root@Junker# time clang++36 -UNDEBUG -march=bdver1 -fopenmp -fPIC -std=c++11 -
pthread -I/usr/local/include -I. -O -o bar.o -c PulseTable.cc -c -v
clang version 3.6.2 (tags/RELEASE_362/final)
Target: x86_64-portbld-freebsd10.2
Thread model: posix
 "/usr/local/llvm36/bin/clang" -cc1 -triple x86_64-portbld-freebsd10.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name PulseTable.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu bdver1 -target-linker-version 2.17.50 -v -dwarf-column-info -coverage-file /tmp/bar.o -resource-dir /usr/local/llvm36/bin/../lib/clang/3.6.2 -U NDEBUG -I /usr/local/include -I . -internal-isystem /usr/include/c++/v1 -O2 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 129 -pthread -mstackrealign -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o bar.o -x c++ PulseTable.cc
clang -cc1 version 3.6.2 based upon LLVM 3.6.2 default target x86_64-portbld-
freebsd10.2
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 .
 /usr/include/c++/v1
 /usr/local/llvm36/bin/../lib/clang/3.6.2/include
 /usr/include
End of search list.
151.564u 0.542s 2:32.21 99.9%   21765+1082k 0+3io 0pf+0w
root@Junker#

3.8.0 -- NO optimization:

root@mc# time clang++-devel -UNDEBUG -march=bdver1 -fopenmp -fPIC -std=c++11 -
pthread -I/usr/local/include -I. -o foobar.o PulseTable.cc -c -v
clang version 3.8.0
Target: x86_64-unknown-freebsd10.2
Thread model: posix
InstalledDir: /usr/local/llvm-devel/bin
 "/usr/local/llvm-devel/bin/clang-3.8" -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj -mrelax-all -disable-free -main-file-name PulseTable.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu bdver1 -v -dwarf-column-info -coverage-file /root/gr-adsb/lib/foobar.o -resource-dir /usr/local/llvm-devel/bin/../lib/clang/3.8.0 -U NDEBUG -I /usr/local/include -I . -internal-isystem /usr/include/c++/v1 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /root/gr-adsb/lib -ferror-limit 19 -fmessage-length 80 -fopenmp -fnoopenmp-use-tls -pthread -mstackrealign -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o foobar.o -x c++ PulseTable.cc
clang -cc1 version 3.8.0 based upon LLVM 3.8.0svn default target x86_64-unknown-
freebsd10.2
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 .
 /usr/include/c++/v1
 /usr/local/llvm-devel/bin/../lib/clang/3.8.0/include
 /usr/include
End of search list.
2.722u 0.110s 0:02.84 99.6% 116+287k 0+3io 0pf+0w

MC:

root@mc# uname -a
FreeBSD mc 10.2-STABLE FreeBSD 10.2-STABLE #0 r286965: Thu Aug 20 11:49:26 PDT
2015     root@mc:/disk-2/obj/disk-1/src/sys/GENERIC  amd64

Junker:

root@Junker# uname -a
FreeBSD Junker 10.2-STABLE FreeBSD 10.2-STABLE #0 r286923: Wed Aug 19 12:06:04
PDT 2015     root@Junker:/usr/obj/usr/src/sys/GENERIC  amd64
Quuxplusone commented 9 years ago
It works for me on FreeBSD 11; with trunk r242221:

$ /usr/bin/time -l clang++ -O2 -std=c++11 -I. -c PulseTable.cc
       71.35 real        70.03 user         1.69 sys
    897312  maximum resident set size
     43525  average shared memory size
       210  average unshared data size
       127  average unshared stack size
    361213  page reclaims
         0  page faults
         0  swaps
         0  block input operations
         3  block output operations
         0  messages sent
         0  messages received
         0  signals received
         7  voluntary context switches
      1086  involuntary context switches

With trunk r245199 it does take a lot longer, though:

$ /usr/bin/time -l /share/dim/llvm/245199-trunk-freebsd11-i386-aconf-rel-
1/bin/clang++ -O2 -std=c++11 -I. -c PulseTable.cc
      189.45 real       188.07 user         1.67 sys
    912552  maximum resident set size
     46887  average shared memory size
      1889  average unshared data size
       127  average unshared stack size
    361966  page reclaims
       641  page faults
         0  swaps
         7  block input operations
         3  block output operations
         0  messages sent
         0  messages received
         0  signals received
       656  voluntary context switches
      2940  involuntary context switches
Quuxplusone commented 9 years ago
It looks like SROA is *really* slow on this.
Quuxplusone commented 9 years ago
(In reply to comment #2)
> It works for me on FreeBSD 11; with trunk r242221:
>
> $ /usr/bin/time -l clang++ -O2 -std=c++11 -I. -c PulseTable.cc
>        71.35 real        70.03 user         1.69 sys
>     897312  maximum resident set size
>      43525  average shared memory size
>        210  average unshared data size
>        127  average unshared stack size
>     361213  page reclaims
>          0  page faults
>          0  swaps
>          0  block input operations
>          3  block output operations
>          0  messages sent
>          0  messages received
>          0  signals received
>          7  voluntary context switches
>       1086  involuntary context switches
>
> With trunk r245199 it does take a lot longer, though:
>
> $ /usr/bin/time -l
> /share/dim/llvm/245199-trunk-freebsd11-i386-aconf-rel-1/bin/clang++ -O2
> -std=c++11 -I. -c PulseTable.cc
>       189.45 real       188.07 user         1.67 sys
>     912552  maximum resident set size
>      46887  average shared memory size
>       1889  average unshared data size
>        127  average unshared stack size
>     361966  page reclaims
>        641  page faults
>          0  swaps
>          7  block input operations
>          3  block output operations
>          0  messages sent
>          0  messages received
>          0  signals received
>        656  voluntary context switches
>       2940  involuntary context switches

I haven't tried compiling on FreeBSD 11. I have FreBSD 11 r286926 in a virtual
instance however clang++ on r286926 identifies itself as:

  root@Head:~ # clang++ -fopenmp -v foo.cc
  FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525

In a follow-on Bugzilla note I wrote 3.6 works however my problem is 3.8 where
I /require/ OpenMP (I also require FORTRAN (numpy) but GCC/clang seems to have
issues with the many libraries GNURadio requires).

I haven't tried 3.7rc2 because I was looking for devel/clang* and not
devel/llvm*, which is compiling now. :)
Quuxplusone commented 9 years ago
3.7rc2 also has the problem. Still running after more than an hour:

root@Junker# time clang++37 -UNDEBUG -fopenmp -fPIC -std=c++11 -pthread -
I/usr/local/include -I. -O -o bar.o -c PulseTable.cc -c -v
clang version 3.7.0 (tags/RELEASE_370/rc2)
Target: x86_64-unknown-freebsd10.2
Thread model: posix
 "/usr/local/llvm37/bin/clang-3.7" -cc1 -triple x86_64-unknown-freebsd10.2 -emit-obj -disable-free -main-file-name PulseTable.cc -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -dwarf-column-info -coverage-file /root/bar.o -resource-dir /usr/local/llvm37/bin/../lib/clang/3.7.0 -U NDEBUG -I /usr/local/include -I . -internal-isystem /usr/include/c++/v1 -O2 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir /root -ferror-limit 19 -fmessage-length 128 -fopenmp -fnoopenmp-use-tls -pthread -mstackrealign -fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o bar.o -x c++ PulseTable.cc
clang -cc1 version 3.7.0 based upon LLVM 3.7.0 default target x86_64-unknown-
freebsd10.2
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 .
 /usr/include/c++/v1
 /usr/local/llvm37/bin/../lib/clang/3.7.0/include
 /usr/include
End of search list.
Quuxplusone commented 9 years ago
Hm, I just don't see it here.  With r245248 from the release_37 branch (which
corresponds more or less with rc2/rc3):

$ /usr/bin/time -l /share/dim/llvm/245248-rel37-freebsd11-i386-aconf-rel-
1/bin/clang++ -fopenmp -fPIC -std=c++11 -pthread -O -I. -c PulseTable.cc
       84.62 real        76.63 user         4.43 sys
    913864  maximum resident set size
     46416  average shared memory size
      1818  average unshared data size
       127  average unshared stack size
    364986  page reclaims
       658  page faults
         0  swaps
         3  block input operations
         8  block output operations
       698  messages sent
         0  messages received
         0  signals received
       780  voluntary context switches
      1191  involuntary context switches

Even the -fopenmp flag does not matter.

How exactly are you building your clang executables?  Manually, or via ports?
Quuxplusone commented 9 years ago

Ports.

Quuxplusone commented 9 years ago
(In reply to comment #7)
> Ports.

Sorry. Should have been more explicit:

 3.7: ports/devel/llvm37
 3.5: ports/lang/clang35
 3.6: ports/lang/clang36
Quuxplusone commented 5 years ago

Attached PulseTable.bc (789808 bytes, application/octet-stream): Bitcode without LLVM optimizations of PulseTable.cc