From owner-freebsd-chromium@FreeBSD.ORG Wed May 30 10:11:06 2012 Return-Path: Delivered-To: chromium@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A17931065675 for ; Wed, 30 May 2012 10:11:06 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E973B8FC1F for ; Wed, 30 May 2012 10:11:05 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA14963; Wed, 30 May 2012 13:11:03 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4FC5F236.1020809@FreeBSD.org> Date: Wed, 30 May 2012 13:11:02 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120503 Thunderbird/12.0.1 MIME-Version: 1.0 To: George Liaskos References: <4FC47CF8.7020909@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.5pre Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: chromium@FreeBSD.org Subject: Re: chromium-19.0.1084.52 build failed with gcc 4.6 on amd 10h cpu X-BeenThere: freebsd-chromium@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Chromium issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2012 10:11:06 -0000 on 30/05/2012 10:47 George Liaskos said the following: > On Tue, May 29, 2012 at 10:38 AM, Andriy Gapon wrote: >> CXX(target) >> out/Release/obj.target/skia_opts_ssse3/third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.o >> In file included from >> third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.cpp:8:0: >> /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd10.0/4.6.3/include/tmmintrin.h:31:3: >> error: #error "SSSE3 instruction set not enabled" >> >> A snippet from the tmmintrin.h: >> #ifndef __SSSE3__ >> # error "SSSE3 instruction set not enabled" >> #else >> >> gcc command line during the build: >> g++46 '-D_FILE_OFFSET_BITS=64' '-DNO_TCMALLOC' '-DDISABLE_NACL' >> '-DCHROMIUM_BUILD' '-DUSE_NSS=1' '-DTOOLKIT_USES_GTK=1' '-DGTK_DISABLS=1' >> '-DENABLE_REMOTING=1' '-DENABLE_P2P_APIS=1' '-DUSE_PROPRIETARY_CODECS' >> '-DENABLE_CONFIGURATION_POLICY' '-DENABLE_INPUT_SPEECH' '-IONS' '-DENABLE_GPU=1' >> '-DENABLE_EGLIMAGE=1' '-DUSE_SKIA=1' '-DENABLE_REGISTER_PROTOCOL_HANDLER=1' >> '-DENABLE_WEB_INTENTS=1' '-DENABLE_ON=1' '-DENABLE_THEMES=1' >> '-DENABLE_AUTOMATION=1' '-DNDEBUG' '-DNVALGRIND' >> '-DDYNAMIC_ANNOTATIONS_ENABLED=0' -I. -Iskia/config -Ithirdde/config >> -Ithird_party/skia/include/core -Ithird_party/skia/src/core -pthread >> -fno-exceptions -fno-strict-aliasing -Wno-unused-param-field-initializers >> -fvisibility=hidden -pipe -fPIC -Wno-format -O2 -fno-ident -fdata-sections >> -ffunction-sections -fno-rtti -fno-threvisibility-inlines-hidden -Wno-deprecated >> -MMD -MF >> out/Release/.deps/out/Release/obj.target/skia_opts_ssse3/third_party/skia/src/opts/_opts_SSSE3.o.d.raw >> -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=k8-sse3 -Wno-error >> -Wl,-rpath=/usr/local/lib/gcc46 -march=amdfam10aliasing -pipe -march=amdfam10 -c >> -o >> out/Release/obj.target/skia_opts_ssse3/third_party/skia/src/opts/SkBitmapProcState_opts_SSSE3.o >> trc/opts/SkBitmapProcState_opts_SSSE3.cp >> >> According to the wikipedia (I know, I know) SSSE3 [note three S-s] is supported >> only on newest AMD processors, I have an older generation (Athlon II): >> http://en.wikipedia.org/wiki/SSSE3#CPUs_with_SSSE3 >> (while on Intel it is supported for a far wider range of the CPUs). >> >> Is the SSSE3 support mis-detected or mis-enabled? >> >> Final notes: >> $ g++46 -E -dM -O2 -march=amdfam10 -x c /dev/null | fgrep SSE >> #define __SSE2_MATH__ 1 >> #define __SSE4A__ 1 >> #define __SSE_MATH__ 1 >> #define __SSE2__ 1 >> #define __SSE__ 1 >> #define __SSE3__ 1 >> >> CPU: AMD Athlon(tm) II X2 250 Processor (3013.79-MHz K8-class CPU) >> Origin = "AuthenticAMD" Id = 0x100f62 Family = 10 Model = 6 Stepping = 2 >> >> Features=0x178bfbff >> Features2=0x802009 >> AMD Features=0xee500800 >> AMD >> Features2=0x37ff >> -- >> Andriy Gapon > > Hello, > > I will have time later today to work on the issue; in the meantime you > can probably disable ssse3 from skia/skia.gyp [0]. > Search for -mssse3, remove freebsd and you should be able to compile. > > [0] http://src.chromium.org/svn/trunk/src/skia/skia.gyp Hmm, the problem appears to be the opposite - it doesn't look like -mssse3 was actually passed to the compiler... -- Andriy Gapon