pkgsrc-Users archive

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

Re: Trying to build exiv2-0.82.0nb3 on aarch64



widupmm%proton.me@localhost (Matthew Widup) writes:

>I installed NetBSD-9.3 and pkgsrc 2023Q3, and get the same results.
>I found that libstdc++.so.7 is in /usr/pkg/GCC10/lib/=20
>GCC10 is required by exiv2
>It also exists on another machine (amd64) which builds exiv2-0.82.0nb3 also=
> from pkgsrc 2023Q3 without a hitch.  It may warn about libstdc++.so.7, I'm=
> not sure.
>Is libstdc++.so.7 even the real problem?  (I ask because I don't know)  Tha=
>t warning comes quite some time before compilation stops.  (about ten minut=
>es on my PBP yesterday)



exiv2 didn't build for netbsd-9/aarch64:

[100%] Linking CXX executable ../bin/exiv2
/usr/bin/ld: warning: libstdc++.so.9, needed by /usr/pkg/lib/libINIReader.so.0, may conflict with libstdc++.so.7
/usr/bin/ld: ../bin/exiv2: hidden symbol `__aarch64_ldadd4_acq_rel' in /usr/pkg/gcc10/lib/gcc/aarch64--netbsd/10.5.0/libgcc.a(ldadd_4_4.o) is referenced by DSO
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
--- bin/exiv2 ---
*** [bin/exiv2] Error code 1


netbsd-9 uses libstdc++.so.9, but you can see that pkgsrc tries to build
exiv2 using the pkgsrc gcc10 package. And that uses incompatible library
versions:

lib/libstdc++.a
lib/libstdc++.la
lib/libstdc++.so
lib/libstdc++.so.7
lib/libstdc++.so.7.28
lib/libstdc++.so.7.28-gdb.py
lib/libstdc++fs.a
lib/libstdc++fs.la
share/gcc-10.5.0/python/libstdcxx

I would consider the gcc10 package broken.


netbsd-10 builds exiv2 with the native compiler, so there is no such
conflict.



Home | Main Index | Thread Index | Old Index