<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">It'll likely be a few hours before (if!) the dependency chain for clang-3.8 finishes building, assuming I have sufficient disk space. :-)  But what the heck, the machine is doing most of the work, so I'll try.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 12, 2017, at 19:54, Marius Schamschula <<a href="mailto:lists@schamschula.com" class="">lists@schamschula.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Richard,<div class=""><br class=""></div><div class="">Please look at the discussion on trac:</div><div class=""><br class=""></div><div class=""><a href="https://trac.macports.org/ticket/53295" class="">https://trac.macports.org/ticket/53295</a></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 12, 2017, at 6:49 PM, Richard L. Hamilton <<a href="mailto:rlhamil@smart.net" class="">rlhamil@smart.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">From what I can find  <a href="https://en.wikipedia.org/wiki/Advanced_Vector_Extensions" class="">https://en.wikipedia.org/wiki/Advanced_Vector_Extensions</a></div><div class="">the Core 2 Duo does _not_ support AVX (it's way too old - this machine was 2007).  CPU info (from sysctl):</div><div class="">hw.optional.floatingpoint: 1<br class="">hw.optional.mmx: 1<br class="">hw.optional.sse: 1<br class="">hw.optional.sse2: 1<br class="">hw.optional.sse3: 1<br class="">hw.optional.supplementalsse3: 1<br class="">hw.optional.sse4_1: 0<br class="">hw.optional.sse4_2: 0<br class="">hw.optional.x86_64: 1<br class="">hw.optional.aes: 0<br class="">machdep.cpu.max_basic: 10<br class="">machdep.cpu.max_ext: 2147483656<br class="">machdep.cpu.vendor: GenuineIntel<br class="">machdep.cpu.brand_string: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz<br class="">machdep.cpu.family: 6<br class="">machdep.cpu.model: 15<br class="">machdep.cpu.extmodel: 0<br class="">machdep.cpu.extfamily: 0<br class="">machdep.cpu.stepping: 6<br class="">machdep.cpu.feature_bits: 3219913727 58301<br class="">machdep.cpu.extfeature_bits: 537921536 1<br class="">machdep.cpu.signature: 1782<br class="">machdep.cpu.brand: 0<br class="">machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 DTES64 MON DSCPL VMX EST TM2 SSSE3 CX16 TPR PDCM<br class="">machdep.cpu.extfeatures: SYSCALL XD EM64T LAHF<br class="">machdep.cpu.logical_per_package: 2<br class="">machdep.cpu.cores_per_package: 2<br class="">machdep.cpu.microcode_version: 199<br class="">machdep.cpu.mwait.linesize_min: 64<br class="">machdep.cpu.mwait.linesize_max: 64<br class="">machdep.cpu.mwait.extensions: 3<br class="">machdep.cpu.mwait.sub_Cstates: 139808<br class="">machdep.cpu.thermal.sensor: 1<br class="">machdep.cpu.thermal.dynamic_acceleration: 0<br class="">machdep.cpu.thermal.invariant_APIC_timer: 0<br class="">machdep.cpu.thermal.thresholds: 2<br class="">machdep.cpu.thermal.ACNT_MCNT: 1<br class="">machdep.cpu.thermal.core_power_limits: 0<br class="">machdep.cpu.thermal.fine_grain_clock_mod: 0<br class="">machdep.cpu.thermal.package_thermal_intr: 0<br class="">machdep.cpu.thermal.hardware_feedback: 0<br class="">machdep.cpu.thermal.energy_policy: 0<br class="">machdep.cpu.arch_perf.version: 2<br class="">machdep.cpu.arch_perf.number: 2<br class="">machdep.cpu.arch_perf.width: 40<br class="">machdep.cpu.arch_perf.events_number: 7<br class="">machdep.cpu.arch_perf.events: 0<br class="">machdep.cpu.arch_perf.fixed_number: 0<br class="">machdep.cpu.arch_perf.fixed_width: 0<br class="">machdep.cpu.cache.linesize: 64<br class="">machdep.cpu.cache.L2_associativity: 8<br class="">machdep.cpu.cache.size: 4096<br class="">machdep.cpu.tlb.inst.small: 128<br class="">machdep.cpu.tlb.inst.large: 8<br class="">machdep.cpu.tlb.data.small: 16<br class="">machdep.cpu.tlb.data.small_level1: 256<br class="">machdep.cpu.tlb.data.large: 16<br class="">machdep.cpu.tlb.data.large_level1: 32<br class="">machdep.cpu.address_bits.physical: 36<br class="">machdep.cpu.address_bits.virtual: 48<br class="">machdep.cpu.core_count: 2<br class="">machdep.cpu.thread_count: 2<br class=""><br class=""></div><div class="">It doesn't even have SSE4, so it wouldn't make sense that it had AVX.</div><div class=""><br class=""></div><div class="">So...how do I get it to run configure with the --disable-hardware-acceleration switch; do I have to edit the portfile, or is there something I can do from the command line?  The following does NOT work (looking at the log file shows that the added arg was NOT passed):</div><div class=""><div class="">port upgrade gnutls configure.args-append=--disable-hardware-acceleration</div></div><div class=""><br class=""></div><div class="">Now maybe I could dig the full list of normal args out of the portfile, and pass configure.args="[whole list of args]" on the command line, but that's just as bad as editing the portfile, because I'd have to look at it each time.</div><div class=""><br class=""></div><div class="">I'm guessing that the AVX support in gnutls came in with the big version jump from the previous 3.4.17 to 3.5.8.  I think that for those with older hardware, it would be much friendlier if the portfile supported a variant to disable hardware acceleration.</div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 12, 2017, at 06:56, Marius Schamschula <<a href="mailto:lists@schamschula.com" class="">lists@schamschula.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Richard,<div class=""><br class=""></div><div class="">I checked on my Leopard box, and found that gnutls 3.5.8 properly built there. So, it seems that we have an issue unique to Snow Leopard.</div><div class=""><br class=""></div><div class="">There are two options:</div><div class=""><br class=""></div><div class="">1) try to find a compiler other than Apple’s gcc that will properly deal with the AVX extensions</div><div class=""><br class=""></div><div class="">or</div><div class=""><br class=""></div><div class="">2) use the —disable-hardware-acceleration switch</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 10, 2017, at 8:35 PM, Richard L. Hamilton <<a href="mailto:rlhamil@smart.net" class="">rlhamil@smart.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">sh-3.2# uname -a</div><div class="">Darwin myeye.pri 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386</div><div class="">sh-3.2# /usr/bin/gcc --version</div><div class="">i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)</div><div class="">Copyright (C) 2007 Free Software Foundation, Inc.</div><div class="">This is free software; see the source for copying conditions.  There is NO</div><div class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</div></div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 10, 2017, at 19:53, Marius Schamschula <<a href="mailto:lists@schamschula.com" class="">lists@schamschula.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Richard,<div class=""><br class=""></div><div class="">Unfortunately, I have no way of testing under Snow Leopard, even though I test some builds under Leopard on a G5.</div><div class=""><br class=""></div><div class="">It is clear the build is not finding the AVX extensions on you mini. Given you have a Core2 Duo, the hardware is there.</div><div class=""><br class=""></div><div class="">Can you give me the result of</div><div class=""><br class=""></div><div class="">/usr/bin/gcc —version</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 10, 2017, at 6:17 PM, Richard L. Hamilton <<a href="mailto:rlhamil@smart.net" class="">rlhamil@smart.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hardware Version: Mac mini (Mid 2007)<br class="">Model Identifier: Macmini2,1<br class="">Mac OS X 10.6.8 10K549 (Snow Leopard)<br class="">Xcode 3.2.6 DevToolsSupport-1806.0<br class="">MacPorts Version: 2.3.5<br class=""><br class=""><span id="cid:D0D9A196-F528-4B00-AF91-871F15F1C76A" class=""><main.log-gnutls.txt.gz></span></div></div></blockquote></div><br class=""><div class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Marius</div><div class="">--</div><div class="">Marius Schamschula</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">

</div>
<br class=""></div></div></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""><div class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Marius</div><div class="">--</div><div class="">Marius Schamschula</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">

</div>
<br class=""></div></div></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""><div class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Marius</div><div class="">--</div><div class="">Marius Schamschula</div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">

</div>
<br class=""></div></div></div></blockquote></div><br class=""></body></html>