public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] No-multilib media-libs/opencv-4.5.0 fails to install
@ 2021-05-06 18:25 Michael
  2021-05-07 14:19 ` Dr Rainer Woitok
  2021-05-10  7:42 ` [gentoo-user] " Michael
  0 siblings, 2 replies; 4+ messages in thread
From: Michael @ 2021-05-06 18:25 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 659 bytes --]

At some point in the install stage emerge tries to remove some python modules 
and fails:

==============
rm: cannot remove 'modules/python3': No such file or directory 
=======================================


Half way it complains about CPU optimisations:
==============================================
RuntimeError: NumPy was built with baseline optimizations: 
(SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your machine doesn't support:
(POPCNT).
=========

I've rebuilt numpy, but it made no difference.

In any case it continues beyond that point, only to fail at the tail end.  Log 
attached.

Any idea what's wrong and how to move beyond this blocker?

[-- Attachment #1.2: opencv-4.5.0.zip --]
[-- Type: application/zip, Size: 40822 bytes --]

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] No-multilib media-libs/opencv-4.5.0 fails to install
  2021-05-06 18:25 [gentoo-user] No-multilib media-libs/opencv-4.5.0 fails to install Michael
@ 2021-05-07 14:19 ` Dr Rainer Woitok
  2021-05-07 14:31   ` Michael
  2021-05-10  7:42 ` [gentoo-user] " Michael
  1 sibling, 1 reply; 4+ messages in thread
From: Dr Rainer Woitok @ 2021-05-07 14:19 UTC (permalink / raw
  To: gentoo-user, Michael

Michael,

On Thursday, 2021-05-06 19:25:11 +0100, you wrote:

> ...
> Half way it complains about CPU optimisations:
> ==============================================
> RuntimeError: NumPy was built with baseline optimizations: 
> (SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your machine doesn't support:
> (POPCNT).
> =========

To avoid this in the future you could once run

   # cd /etc/portage
   # cpuid2cpuflags | sed -Ee 's/_[^_]+: /="/' -e 's/$/"/' >> make.conf

Sincerely,
  Rainer


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] No-multilib media-libs/opencv-4.5.0 fails to install
  2021-05-07 14:19 ` Dr Rainer Woitok
@ 2021-05-07 14:31   ` Michael
  0 siblings, 0 replies; 4+ messages in thread
From: Michael @ 2021-05-07 14:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

Thanks Rainer,

On Friday, 7 May 2021 15:19:45 BST Dr Rainer Woitok wrote:
> Michael,
> 
> On Thursday, 2021-05-06 19:25:11 +0100, you wrote:
> > ...
> > Half way it complains about CPU optimisations:
> > ==============================================
> > RuntimeError: NumPy was built with baseline optimizations:
> > (SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your machine doesn't support:
> > (POPCNT).
> > =========
> 
> To avoid this in the future you could once run
> 
>    # cd /etc/portage
>    # cpuid2cpuflags | sed -Ee 's/_[^_]+: /="/' -e 's/$/"/' >> make.conf
> 
> Sincerely,
>   Rainer

The CPU_FLAGS_X86 on this system were already set to the output of the 
cpuid2cpuflags command.  I'm not sure the baseline optimisations emerge warns 
about are causing the error at the end of the install stage.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user] Re: No-multilib media-libs/opencv-4.5.0 fails to install
  2021-05-06 18:25 [gentoo-user] No-multilib media-libs/opencv-4.5.0 fails to install Michael
  2021-05-07 14:19 ` Dr Rainer Woitok
@ 2021-05-10  7:42 ` Michael
  1 sibling, 0 replies; 4+ messages in thread
From: Michael @ 2021-05-10  7:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

On Thursday, 6 May 2021 19:25:11 BST you wrote:
> At some point in the install stage emerge tries to remove some python
> modules and fails:
> 
> ==============
> rm: cannot remove 'modules/python3': No such file or directory
> =======================================
> 
> 
> Half way it complains about CPU optimisations:
> ==============================================
> RuntimeError: NumPy was built with baseline optimizations:
> (SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42) but your machine doesn't support:
> (POPCNT).
> =========
> 
> I've rebuilt numpy, but it made no difference.
> 
> In any case it continues beyond that point, only to fail at the tail end. 
> Log attached.
> 
> Any idea what's wrong and how to move beyond this blocker?

I decided to apply an ugly hack as a workaround, to allow me to install 
opencv.  Bug report here:

https://bugs.gentoo.org/788712

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-10  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-06 18:25 [gentoo-user] No-multilib media-libs/opencv-4.5.0 fails to install Michael
2021-05-07 14:19 ` Dr Rainer Woitok
2021-05-07 14:31   ` Michael
2021-05-10  7:42 ` [gentoo-user] " Michael

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox