From owner-freebsd-ports@FreeBSD.ORG Fri Nov 12 23:53:50 2010 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2799106566C for ; Fri, 12 Nov 2010 23:53:49 +0000 (UTC) (envelope-from chromium@hybridsource.org) Received: from smtp2.joyent.net (smtp2.joyent.net [8.12.32.84]) by mx1.freebsd.org (Postfix) with ESMTP id BE90E8FC0C for ; Fri, 12 Nov 2010 23:53:49 +0000 (UTC) Received: from [192.168.0.101] (bigip_float [10.12.32.12]) by smtp2.joyent.net (Postfix) with ESMTP id EAD4A4F58; Fri, 12 Nov 2010 15:31:47 -0800 (PST) Message-ID: <4CDD6C06.1060307@hybridsource.org> Date: Fri, 12 Nov 2010 16:32:06 +0000 From: Ruben User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.15) Gecko/20101103 Thunderbird/3.0.10 MIME-Version: 1.0 To: MIHIRA Sanpei Yoshiro References: <20101113.080831.949267780715453933.sanpei@sanpei.org> In-Reply-To: <20101113.080831.949267780715453933.sanpei@sanpei.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, =?UTF-8?B?UmVuw6kgTGFkYW4=?= Subject: Re: [www/chromium] Illegal instruction: 4 on Pentium3 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 23:53:50 -0000 On 11/12/2010 23:08, MIHIRA Sanpei Yoshiro wrote: > Dear folks and chromium maintainer, > > I tried to compile www/chromium on Pentium3/FreeBSD-9-current box. > > But I could not compile it with below error message. > > ===> Building for chromium-5.0.375.127 > > RULE sync_proto_genproto_0 out/Release/obj/gen/protoc_out/chrome/browser/sync/protocol/sync.pb.h > gmake: *** [out/Release/obj/gen/protoc_out/chrome/browser/sync/protocol/sync.pb.h] Illegal instruction: 4 (core dumped) > *** Error code 1 > > So I tried to install package(chromium-5.0.375.127.tbz) from /pub/FreeBSD/ports/i386/packages-9-current/All. But I could not execute chromium. > > % chrome > Illegal instruction (core dumped) > > If I install chromium on AMD athlon, I could use chromium. > > So is chromium not supported for Pentium3 CPU, only for Pentium 4 and later CPU? > > Or I could compile and execute with some setting for Pentium3 CPU? Chromium requires sse2 normally, as detailed in this bug report: http://crbug.com/9007 I don't have PIII hardware to test: what you can do is 'make patch', then go into work/chromium-courgette-redacted-5.0.375.127/build/common.gypi and find these lines '-march=pentium4', '-msse2', '-mfpmath=sse', and comment them out, then build as normal. I think that should work. I don't know what ports normally does to support older hardware like this, but we can consider adding a patch for the 6.0 update if necessary: http://www.freebsd.org/cgi/query-pr.cgi?pr=152166