From owner-freebsd-chromium@FreeBSD.ORG Wed May 30 07:47:12 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 0FECA106566C; Wed, 30 May 2012 07:47:12 +0000 (UTC) (envelope-from geo.liaskos@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id BCE388FC0C; Wed, 30 May 2012 07:47:11 +0000 (UTC) Received: by obcni5 with SMTP id ni5so10657119obc.13 for ; Wed, 30 May 2012 00:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=4SGS0b/un6SfiX5vBe1AzXQlUIO546FSmXFUUfItivo=; b=cmKEAlAQ5khM3EDNStHgHrlUNbmtEj6qqRpaQQuwzXQRQIY89+2Fg0LGGcSCpYrmVA ES+5SnMpQTFvyFf+nX5WmR9lLR0hvOFk6MSdOb1PUyImvPyuQMEXEXkl1OY7G4yrSv84 RVJzCdm4LfUg3TQBd0wvf0lYE36mEkxvkHin7GwCnTk5mCW1nv5IBb7sv/3RNhK6RqJz Fooflf1h7ON1o1rFHbSuHOP3OMRrF++vJ2Fpp17i54yg2IWPcnQqlem2AfjBF+S91I1C fftto/Bmp2jE8+cky2r8hd2/VeXpyMxMk88jY3KpSG0W3JldcrxjhfT3JDRkzdAD0HX6 hSgg== MIME-Version: 1.0 Received: by 10.60.3.40 with SMTP id 8mr14239190oez.31.1338364031213; Wed, 30 May 2012 00:47:11 -0700 (PDT) Received: by 10.182.221.42 with HTTP; Wed, 30 May 2012 00:47:11 -0700 (PDT) In-Reply-To: <4FC47CF8.7020909@FreeBSD.org> References: <4FC47CF8.7020909@FreeBSD.org> Date: Wed, 30 May 2012 10:47:11 +0300 Message-ID: From: George Liaskos To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 07:47:12 -0000 On Tue, May 29, 2012 at 10:38 AM, Andriy Gapon wrote: > =C2=A0CXX(target) > out/Release/obj.target/skia_opts_ssse3/third_party/skia/src/opts/SkBitmap= ProcState_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/tmmintr= in.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: > =C2=A0g++46 '-D_FILE_OFFSET_BITS=3D64' '-DNO_TCMALLOC' '-DDISABLE_NACL' > '-DCHROMIUM_BUILD' '-DUSE_NSS=3D1' '-DTOOLKIT_USES_GTK=3D1' '-DGTK_DISABL= S=3D1' > '-DENABLE_REMOTING=3D1' '-DENABLE_P2P_APIS=3D1' '-DUSE_PROPRIETARY_CODECS= ' > '-DENABLE_CONFIGURATION_POLICY' '-DENABLE_INPUT_SPEECH' '-IONS' '-DENABLE= _GPU=3D1' > '-DENABLE_EGLIMAGE=3D1' '-DUSE_SKIA=3D1' '-DENABLE_REGISTER_PROTOCOL_HAND= LER=3D1' > '-DENABLE_WEB_INTENTS=3D1' '-DENABLE_ON=3D1' '-DENABLE_THEMES=3D1' > '-DENABLE_AUTOMATION=3D1' '-DNDEBUG' '-DNVALGRIND' > '-DDYNAMIC_ANNOTATIONS_ENABLED=3D0' -I. -Iskia/config -Ithirdde/config > -Ithird_party/skia/include/core -Ithird_party/skia/src/core =C2=A0-pthrea= d > -fno-exceptions -fno-strict-aliasing -Wno-unused-param-field-initializers > -fvisibility=3Dhidden -pipe -fPIC -Wno-format -O2 -fno-ident -fdata-secti= ons > -ffunction-sections -fno-rtti -fno-threvisibility-inlines-hidden -Wno-dep= recated > -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=3Dk8-sse3 -Wno-error > -Wl,-rpath=3D/usr/local/lib/gcc46 -march=3Damdfam10aliasing -pipe -march= =3Damdfam10 -c > -o > out/Release/obj.target/skia_opts_ssse3/third_party/skia/src/opts/SkBitmap= ProcState_opts_SSSE3.o > trc/opts/SkBitmapProcState_opts_SSSE3.cp > > According to the wikipedia (I know, I know) SSSE3 [note three S-s] is sup= ported > 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=3Damdfam10 -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) > =C2=A0Origin =3D "AuthenticAMD" =C2=A0Id =3D 0x100f62 =C2=A0Family =3D 10= =C2=A0Model =3D 6 =C2=A0Stepping =3D 2 > > Features=3D0x178bfbff > =C2=A0Features2=3D0x802009 > =C2=A0AMD Features=3D0xee500800 > =C2=A0AMD > Features2=3D0x37ff > -- > 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 Regards, George