pkgsrc-Bugs archive

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

Re: pkg/58145: libreoffice gcc dependency is too new



The following reply was made to PR pkg/58145; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: pkg/58145: libreoffice gcc dependency is too new
Date: Mon, 15 Apr 2024 19:39:00 +0900

 Explicitly using clang may work around?
 (at least builds on NetBSD/amd64 10.0)
 
 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/misc/libreoffice/Makefile,v
 retrieving revision 1.326
 diff -u -p -r1.326 Makefile
 --- Makefile	11 Mar 2024 15:05:04 -0000	1.326
 +++ Makefile	15 Apr 2024 10:32:23 -0000
 @@ -16,7 +16,10 @@ LICENSE=	gnu-lgpl-v3
  UNLIMIT_RESOURCES+=	cputime
  
  # configure script checks the version of GCC.
 -GCC_REQD+=	12
 +#GCC_REQD+=	12
 +PKGSRC_COMPILER=        clang
 +PKG_CC=                 clang
 +PKG_CXX=                clang++
  
  # Mixture of C++11, C++20 and so on. Do not override standards in Makefiles.
  # Do not define gnu++20. It breaks the build.
 @@ -389,6 +392,7 @@ BUILDLINK_API_DEPENDS.libetonyek+=	libet
  .include "../../graphics/zxing-cpp/buildlink3.mk"
  #.include "../../graphics/sane-backends/buildlink3.mk"
  #.include "../../graphics/vigra/buildlink3.mk"
 +.include "../../lang/clang/buildlink3.mk"
  .include "../../lang/python/batteries-included.mk"
  .include "../../lang/python/application.mk"
  # workaround for dtoa.h conflict with python and dtoa:
 
 
 ---
 
 ..and fails with native gcc 10.5.0:
 
 ---
 [build LNK] Executable/propex
 [build PKG] Dictionary/dict-eo
 /usr/bin/ld: /s/obj.x86_64/pkgsrc/misc/libreoffice/work.x86_64/libreoffice-24.2.1.2/instdir/sdk/lib/libuno_sal.so: undefined reference to `std::condition_variable::wait(std::unique_lock<std::mutex>&)@GLIBCXX_3.4.30'
 /usr/bin/ld: /s/obj.x86_64/pkgsrc/misc/libreoffice/work.x86_64/libreoffice-24.2.1.2/instdir/sdk/lib/libuno_sal.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
 [build PKG] Dictionary/dict-es
 collect2: error: ld returned 1 exit status
 [build PKG] Dictionary/dict-et
 gmake[1]: *** [/s/obj.x86_64/pkgsrc/misc/libreoffice/work.x86_64/libreoffice-24.2.1.2/desktop/Executable_oosplash.mk:10: /s/obj.x86_64/pkgsrc/misc/libreoffice/work.x86_64/libreoffice-24.2.1.2/instdir/program/oosplash] Error 1
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index