SBo scripts not building on current (read 1st post, pls)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
gnubg does not compile because it can not download the source. The link has probably changed. The following link works and the package compiles fine (after updating VERSION to 1.06.002):
Num library not installed, required for OCaml 4.06 or later
This dependency does not exist in the SBo repo. The maintainer had told me in May that he would submit his ocaml-num package, but maybe he forgot. I'm gonna remind him...
Steghide compile errors traced to "const" instead of "constexpr" in Arguments.h.
Code:
Arguments.h:103:41: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float Arguments::Default_Goal’ of non-integral type
Please add constexpr.patch to steghide.SlackBuild.
=-=-=-=-=-==-=-constexpr.patch=-=-=-=-=-
Code:
--- steghide-0.5.1-orig/src/Arguments.h 2003-10-11 14:23:57.000000000 -0700
+++ steghide-0.5.1/src/Arguments.h 2022-01-16 16:15:28.042468300 -0700
@@ -100,7 +100,7 @@
static const VERBOSITY Default_Verbosity = NORMAL ;
static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats
static const unsigned int Max_Algorithm = 3 ;
- static const float Default_Goal = 100.0 ;
+ static constexpr float Default_Goal = 100.0 ;
static const DEBUGCOMMAND Default_DebugCommand = NONE ;
static const bool Default_Check = false ;
static const unsigned int Default_DebugLevel = 0 ;
gnubg does not compile because it can not download the source. The link has probably changed. The following link works and the package compiles fine (after updating VERSION to 1.06.002):
Steghide compile errors traced to "const" instead of "constexpr" in Arguments.h.
Code:
Arguments.h:103:41: error: ‘constexpr’ needed for in-class initialization of static data member ‘const float Arguments::Default_Goal’ of non-integral type
Please add constexpr.patch to steghide.SlackBuild.
=-=-=-=-=-==-=-constexpr.patch=-=-=-=-=-
Code:
--- steghide-0.5.1-orig/src/Arguments.h 2003-10-11 14:23:57.000000000 -0700
+++ steghide-0.5.1/src/Arguments.h 2022-01-16 16:15:28.042468300 -0700
@@ -100,7 +100,7 @@
static const VERBOSITY Default_Verbosity = NORMAL ;
static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats
static const unsigned int Max_Algorithm = 3 ;
- static const float Default_Goal = 100.0 ;
+ static constexpr float Default_Goal = 100.0 ;
static const DEBUGCOMMAND Default_DebugCommand = NONE ;
static const bool Default_Check = false ;
static const unsigned int Default_DebugLevel = 0 ;
-==-=-=-=-=-=-=-=-=====-=-=-=-==-=-=-=
I have this patch already, but it was not enabled for 14.2. I have it now enabled for 15.0. Thanks for spotting it
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/dsaup2.f:751:39:
449 | call dvout (logfil, 1, rnorm, ndigit,
| 2
......
751 | call dvout (logfil, np, bounds, ndigit,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
error: Command "/usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops -Iscipy/sparse/linalg/eigen/arpack/ARPACK/SRC -I/usr/lib64/python2.7/site-packages/numpy/core/include -c -c scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/dsaup2.f -o build/temp.linux-x86_64-2.7/scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/dsaup2.o" failed with exit status 1
Seems like an incompatibility in Fortran compilation with GCC 10, see here. I was able to fix it using the build option
Code:
FFLAGS="-fallow-argument-mismatch -fPIC"
The second one was necessary to avoid a second error that popped up at a different place after using the first option.
I also suggest bumping version to 1.2.2 (which I successfully tested), the last one to support Python 2.7.
Pybind11.SlackBuild fails to build, something about
package init file 'pybind11/include/pybind11/__init__.py' not found (or not a regular file)
package init file 'pybind11/include/pybind11/detail/__init__.py' not found (or not a regular file)
package init file 'pybind11/include/pybind11/stl/__init__.py' not found (or not a regular file)
package init file 'pybind11/share/cmake/pybind11/__init__.py' not found (or not a regular file)
File "/usr/lib64/python3.9/site-packages/setuptools/command/build_py.py", line 127, in build_package_data
srcfile in self.distribution.convert_2to3_doctests):
AttributeError: 'Distribution' object has no attribute 'convert_2to3_doctests'
I cloned the pybind11 2.9.0 git, which has a CMakeLists.txt. Cmake-GUI created a makefile that compiled no problem.
Pybind11.SlackBuild fails to build, something about
package init file 'pybind11/include/pybind11/__init__.py' not found (or not a regular file)
package init file 'pybind11/include/pybind11/detail/__init__.py' not found (or not a regular file)
package init file 'pybind11/include/pybind11/stl/__init__.py' not found (or not a regular file)
package init file 'pybind11/share/cmake/pybind11/__init__.py' not found (or not a regular file)
File "/usr/lib64/python3.9/site-packages/setuptools/command/build_py.py", line 127, in build_package_data
srcfile in self.distribution.convert_2to3_doctests):
AttributeError: 'Distribution' object has no attribute 'convert_2to3_doctests'
I cloned the pybind11 2.9.0 git, which has a CMakeLists.txt. Cmake-GUI created a makefile that compiled no problem.
I just rebuilt it without issue using the existing SlackBuild in SBo master for version 2.9.0.
Are you perhaps using the 14.2 SlackBuild which uses version 2.5.0?
I'm the maintainer of sbbdep. Someone (Giancarolo Dessi) informed me that the following patch is needed to build it on -current with the latest versions of gcc. I have confirmed the issue and that the patch corrects the build. Could you (Ponce) add this to your repo?
I'm the maintainer of sbbdep. Someone (Giancarolo Dessi) informed me that the following patch is needed to build it on -current with the latest versions of gcc. I have confirmed the issue and that the patch corrects the build. Could you (Ponce) add this to your repo?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.