Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: errors when trying to build opencv



On Thu, 24 Jun 2021 at 23:12:56 -0400, Adam Russell wrote:

> David H. Gutteridge wrote:
> 
>     Thu, 10 Jun 2021 17:47:12 -0400, Adam Russell wrote:
> 
>         There appears to be something wrong in the opencv configs.
> 
>         The tests will try to compile cmake/checks/atomic_check.cpp as
> a test
>         for libatomic and will fail.
> 
>         I can manually get the same test to compile without issues,
> however.
> 
>         g++ -L/usr/pkg/lib -latomic ./work/opencv-
> 3.4.9/cmake/checks/atomic_check.cpp 
> 
> 
>     This suggests you already have libatomic installed?
> 
>         I think this should build OK on this platform but requires a
> bit more
>         effort than I presently have time for. For now I am going to
> pause this
>         effort but if anyone searches the mailing lists with the same
> error
>         perhaps this might help!
> 
> 
>     Does the following (untested) patch fix things for you? If so,
> I'll
>     commit it.
> 
>     --- Makefile    4 Dec 2020 20:45:23 -0000    1.96
>     +++ Makefile    12 Jun 2021 16:39:35 -0000
>     @@ -40,4 +40,5 @@
>       .include "../../lang/python/extension.mk"
>       .include "../../math/py-numpy/buildlink3.mk"
>       .include "../../mk/jpeg.buildlink3.mk"
>     +.include "../../mk/atomic64.mk"
>       .include "../../mk/bsd.pkg.mk"
> 
> 
> Thank you for the suggestion, my apologies for the delay in
> responding! I use gmane for these lists and it seems my earlier
> response did not send properly through the gmane system.

No worries.

> I tried that and get any error stating atomic64.mk cannot be found.
> 
> I searched and nothing turns up. i.e. find /usr/pkgsrc/mk -name
> '*atom*' returns nothing

mk/atomic64.mk was added on December 31st. Are you using an outdated
pkgsrc branch? I.e. one older than 2021Q1? If so, you should update.

> libatomic is absolutely installed, I am certain
> 
> bash-5.0# ls -l /usr/pkg/lib/libatomic*
> -rw-r--r--  1 root  wheel  80058 Jun  3 20:02 /usr/pkg/lib/libatomic.a
> -rwxr-xr-x  1 root  wheel    966 Jun  3 20:02
> /usr/pkg/lib/libatomic.la
> 
> lrwxr-xr-x 1 root wheel 16 Jun 3 20:02 /usr/pkg/lib/libatomic.so ->
> libatomic.so.3.0 lrwxr-xr-x 1 root wheel 16 Jun 3 20:02
> /usr/pkg/lib/libatomic.so.3 -> libatomic.so.3.0
> 
> -rwxr-xr-x  1 root  wheel  40896 Jun  3 20:02
> /usr/pkg/lib/libatomic.so.3.0

Right, that's why it's linking when you intervene to force it.

I'm not sure what I've suggested will solve all of the challenge of
getting the package to build (I see there are problems with it on
other platforms, too), but it may get you further, at least.

Dave




Home | Main Index | Thread Index | Old Index