[www/chromium] Illegal instruction: 4 on Pentium3

2010-11-12 Thread MIHIRA Sanpei Yoshiro
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?

Best Regards,
---
MIHIRA, Sanpei Yoshiro
Tokyo, Japan.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [www/chromium] Illegal instruction: 4 on Pentium3

2010-11-12 Thread Ruben

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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [www/chromium] Illegal instruction: 4 on Pentium3

2010-11-13 Thread Konstantin Tokarev

> Chromium requires sse2 normally, as detailed in this bug report:
>
> http://crbug.com/9007

This bug report is related to Chromium 2, but I've run Chromium 4 on PIII
on Linux without problems


-- 
Regards,
Konstantin
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [www/chromium] Illegal instruction: 4 on Pentium3

2010-11-13 Thread Ruben

On 11/13/2010 16:58, Konstantin Tokarev wrote:

Chromium requires sse2 normally, as detailed in this bug report:

http://crbug.com/9007


This bug report is related to Chromium 2, but I've run Chromium 4 on PIII
on Linux without problems
That distro was probably manually removing those flags to support older 
hardware, but until the OP confirms that this was the fix, doesn't matter.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [www/chromium] Illegal instruction: 4 on Pentium3

2010-11-13 Thread MIHIRA Sanpei Yoshiro
H.

Finally, I removed -mss3 and -mpentium4(changed to -msse and
-mpentium3). I could compile and execute chromium on Pentium3
without problem.

@@ -884,8 +884,8 @@
 'conditions': [
   ['branding=="Chromium"', {
 'cflags': [
-  '-march=pentium4',
-  '-msse2',
+  '-march=pentium3',
+  '-msse',
   '-mfpmath=sse',
 ],
   }],

  From chromium mailing list archive discussion, some Athlon CPU
does not have SSE2. So I thought default compile option was -msse or
remove -msse( and remove -mfpmath=sse). and could set by CFLAGS value

Best Regards,
---
MIHIRA, Sanpei Yoshiro
Tokyo, Japan.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"