LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-04-2018, 10:43 AM   #1501
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Rep: Reputation: Disabled

nexengine-libretro is completely broken in current during run-time. I suspect its because of the new gcc, but it can be worked around for now by disabling optimizations.

Code:
[ "${DEBUG:=0}" != 0 ] && DEBUG=1
Can be changed to:

Code:
[ "${DEBUG:=1}" != 0 ] && DEBUG=1
Unfortunately clang is not an option because it will segfault instead of not rendering anything during gameplay.

Edit: Actually this is a better way.

Code:
sed -i 's/-O2/-O1/' Makefile

Last edited by orbea; 11-04-2018 at 11:47 AM.
 
Old 11-05-2018, 05:11 AM   #1502
beriya
LQ Newbie
 
Registered: Jun 2012
Location: Cyprus
Distribution: Slackware-current
Posts: 3

Rep: Reputation: Disabled
remmina

Code:
-- Checking for module 'spice-client-gtk-3.0'
--   Found spice-client-gtk-3.0, version 0.35
-- Finding suggested package Libsecret.
--   Disable this using "-DWITH_LIBSECRET=OFF".
-- Found LIBSECRET: /usr/include/libsecret-1;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include  
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBSSH_THREADS_LIBRARY
    linked by target "remmina" in directory /tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/remmina
    linked by target "remmina-plugin-nx" in directory /tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/plugins/nx

-- Configuring incomplete, errors occurred!
See also "/tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/build/CMakeFiles/CMakeError.log".
 
Old 11-05-2018, 05:26 AM   #1503
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,481

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beriya View Post
Code:
-- Checking for module 'spice-client-gtk-3.0'
--   Found spice-client-gtk-3.0, version 0.35
-- Finding suggested package Libsecret.
--   Disable this using "-DWITH_LIBSECRET=OFF".
-- Found LIBSECRET: /usr/include/libsecret-1;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include  
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBSSH_THREADS_LIBRARY
    linked by target "remmina" in directory /tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/remmina
    linked by target "remmina-plugin-nx" in directory /tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/plugins/nx

-- Configuring incomplete, errors occurred!
See also "/tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/SBo/Remmina-71cb7a156065d65d7b5465596ab9bc5aeb8b84ec/build/CMakeFiles/CMakeError.log".
you have to rebuild all the remmina dependencies too (mandatory and optional, if installed), it seems that something on your system still links against an older libssh.
 
Old 11-05-2018, 05:35 AM   #1504
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,481

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
you have to rebuild all the remmina dependencies too (mandatory and optional, if installed), it seems that something on your system still links against an older libssh.
no, sorry, I got it wrong: apply this patch with "patch -p1 < /path/to/the/patch.patch" from the SlackBuild directory, instead
Code:
diff -Naur remmina.orig/find_libssh.patch remmina/find_libssh.patch
--- remmina.orig/find_libssh.patch      1970-01-01 01:00:00.000000000 +0100
+++ remmina/find_libssh.patch   2018-11-05 11:33:26.408690000 +0100
@@ -0,0 +1,25 @@
+From: "Matteo F. Vescovi" <mfv@debian.org>
+Date: Sun, 12 Aug 2018 14:22:40 +0200
+Subject: Fix_Cmake_rule_for_LibSSH
+
+---
+ cmake/FindLIBSSH.cmake | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/cmake/FindLIBSSH.cmake b/cmake/FindLIBSSH.cmake
+index f003e2d..d1bfe23 100644
+--- a/cmake/FindLIBSSH.cmake
++++ b/cmake/FindLIBSSH.cmake
+@@ -51,7 +51,11 @@ include(FindPackageHandleStandardArgs)
+ 
+ find_package_handle_standard_args(LIBSSH DEFAULT_MSG LIBSSH_LIBRARY LIBSSH_INCLUDE_DIR)
+ 
+-set(LIBSSH_LIBRARIES ${LIBSSH_LIBRARY} ${LIBSSH_THREADS_LIBRARY})
++if (LIBSSH_THREADS_LIBRARY)
++      set(LIBSSH_LIBRARIES ${LIBSSH_LIBRARY} ${LIBSSH_THREADS_LIBRARY})
++else()
++      set(LIBSSH_LIBRARIES ${LIBSSH_LIBRARY})
++endif()
+ set(LIBSSH_INCLUDE_DIRS ${LIBSSH_INCLUDE_DIR})
+ 
+ mark_as_advanced(LIBSSH_INCLUDE_DIR LIBSSH_LIBRARY)
diff -Naur remmina.orig/remmina.SlackBuild remmina/remmina.SlackBuild
--- remmina.orig/remmina.SlackBuild     2018-11-05 11:24:38.291690000 +0100
+++ remmina/remmina.SlackBuild  2018-11-05 11:33:47.440690000 +0100
@@ -77,6 +77,8 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+patch -p1 < $CWD/find_libssh.patch
+
 mkdir -p build
 cd build
   cmake \

Last edited by ponce; 11-05-2018 at 05:38 AM.
 
1 members found this post helpful.
Old 11-05-2018, 07:07 AM   #1505
beriya
LQ Newbie
 
Registered: Jun 2012
Location: Cyprus
Distribution: Slackware-current
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
no, sorry, I got it wrong: apply this patch with "patch -p1 < /path/to/the/patch.patch" from the SlackBuild directory, instead
Code:
diff -Naur remmina.orig/find_libssh.patch remmina/find_libssh.patch
--- remmina.orig/find_libssh.patch      1970-01-01 01:00:00.000000000 +0100
+++ remmina/find_libssh.patch   2018-11-05 11:33:26.408690000 +0100
@@ -0,0 +1,25 @@
+From: "Matteo F. Vescovi" <mfv@debian.org>
+Date: Sun, 12 Aug 2018 14:22:40 +0200
+Subject: Fix_Cmake_rule_for_LibSSH
+
+---
+ cmake/FindLIBSSH.cmake | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/cmake/FindLIBSSH.cmake b/cmake/FindLIBSSH.cmake
+index f003e2d..d1bfe23 100644
+--- a/cmake/FindLIBSSH.cmake
++++ b/cmake/FindLIBSSH.cmake
+@@ -51,7 +51,11 @@ include(FindPackageHandleStandardArgs)
+ 
+ find_package_handle_standard_args(LIBSSH DEFAULT_MSG LIBSSH_LIBRARY LIBSSH_INCLUDE_DIR)
+ 
+-set(LIBSSH_LIBRARIES ${LIBSSH_LIBRARY} ${LIBSSH_THREADS_LIBRARY})
++if (LIBSSH_THREADS_LIBRARY)
++      set(LIBSSH_LIBRARIES ${LIBSSH_LIBRARY} ${LIBSSH_THREADS_LIBRARY})
++else()
++      set(LIBSSH_LIBRARIES ${LIBSSH_LIBRARY})
++endif()
+ set(LIBSSH_INCLUDE_DIRS ${LIBSSH_INCLUDE_DIR})
+ 
+ mark_as_advanced(LIBSSH_INCLUDE_DIR LIBSSH_LIBRARY)
diff -Naur remmina.orig/remmina.SlackBuild remmina/remmina.SlackBuild
--- remmina.orig/remmina.SlackBuild     2018-11-05 11:24:38.291690000 +0100
+++ remmina/remmina.SlackBuild  2018-11-05 11:33:47.440690000 +0100
@@ -77,6 +77,8 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
   -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+patch -p1 < $CWD/find_libssh.patch
+
 mkdir -p build
 cd build
   cmake \
It works now, thank you!
 
Old 11-05-2018, 02:43 PM   #1506
bvandonselaar
LQ Newbie
 
Registered: Oct 2018
Location: The Netherlands
Distribution: Slackware
Posts: 9

Rep: Reputation: Disabled
arm-gcc slackbuild is not working on slackware64 multilib -current. arm-binutils did compile and install so i have set the requirements right.
I tried to build arm-gcc with sbopkg with ponce's git repo. It looks like it's missing a standard library stdio.h,
but i don't know much about compiling a compiler for a different architecture so would someone like to help me? Already thanks for the efforts.

The error:
Code:
In file included from ../../../../gcc-4.9.2/libgcc/libgcc2.c:27:0:
../../../../gcc-4.9.2/libgcc/../gcc/tsystem.h:87:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.
make[4]: *** [Makefile:463: _muldi3.o] Error 1
make[4]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2/arm-none-eabi/thumb/libgcc'
make[3]: *** [Makefile:1136: multi-do] Error 1
make[3]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2/arm-none-eabi/libgcc'
make[2]: *** [Makefile:116: all-multi] Error 2
make[2]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2/arm-none-eabi/libgcc'
make[1]: *** [Makefile:9851: all-target-libgcc] Error 2
make[1]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2'
make: *** [Makefile:840: all] Error 2
 
Old 11-05-2018, 03:58 PM   #1507
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,481

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bvandonselaar View Post
arm-gcc slackbuild is not working on slackware64 multilib -current. arm-binutils did compile and install so i have set the requirements right.
I tried to build arm-gcc with sbopkg with ponce's git repo. It looks like it's missing a standard library stdio.h,
but i don't know much about compiling a compiler for a different architecture so would someone like to help me? Already thanks for the efforts.

The error:
Code:
In file included from ../../../../gcc-4.9.2/libgcc/libgcc2.c:27:0:
../../../../gcc-4.9.2/libgcc/../gcc/tsystem.h:87:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.
make[4]: *** [Makefile:463: _muldi3.o] Error 1
make[4]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2/arm-none-eabi/thumb/libgcc'
make[3]: *** [Makefile:1136: multi-do] Error 1
make[3]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2/arm-none-eabi/libgcc'
make[2]: *** [Makefile:116: all-multi] Error 2
make[2]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2/arm-none-eabi/libgcc'
make[1]: *** [Makefile:9851: all-target-libgcc] Error 2
make[1]: Leaving directory '/tmp/SBo/arm-gcc-build-4.9.2'
make: *** [Makefile:840: all] Error 2
I just tried to build this on stable and it breaks too with exactly the same error: as this happens on stable too you should get in touch with the maintainer so that he will fix it.

BTW, for current I updated it to 8.2.0 and it seems to build (but I haven't tested it)
Code:
diff --git a/development/arm-gcc/README b/development/arm-gcc/README
index 964a9570c2..c40bc6bb12 100644
--- a/development/arm-gcc/README
+++ b/development/arm-gcc/README
@@ -1,2 +1,2 @@
 This package contains cross compiling version of GNU gcc, which can be
-used to compile C and C++ programs for the ARM platform.
+used to compile C programs for the ARM platform.
diff --git a/development/arm-gcc/arm-gcc.SlackBuild b/development/arm-gcc/arm-gcc.SlackBuild
index 782ac73ba1..664f99713f 100644
--- a/development/arm-gcc/arm-gcc.SlackBuild
+++ b/development/arm-gcc/arm-gcc.SlackBuild
@@ -25,7 +25,7 @@
 # Written by Marek Buras <cyfr0n (at) go2 !dot pl>

 PRGNAM=arm-gcc
-VERSION=${VERSION:-4.9.2}
+VERSION=${VERSION:-8.2.0}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}

@@ -62,7 +62,7 @@ rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
 rm -rf gcc-$VERSION arm-gcc-build-$VERSION
-tar xvf $CWD/gcc-$VERSION.tar.bz2
+tar xvf $CWD/gcc-$VERSION.tar.xz
 mkdir arm-gcc-build-$VERSION
 cd arm-gcc-build-$VERSION
 chown -R root:root .
@@ -130,6 +130,9 @@ rm -rf $PKG/usr/share
 rm -rf $PKG/usr/man/man7
 rm -rf $PKG/usr/libexec/gcc/arm/$VERSION/install-tools

+# These files collide with the ones from Slackware's gcc, so we move them
+mv $PKG/usr/lib$LIBDIRSUFFIX/libcc* $PKG/usr/lib$LIBDIRSUFFIX/gcc/arm-none-eabi/$VERSION/
+
 find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

diff --git a/development/arm-gcc/arm-gcc.info b/development/arm-gcc/arm-gcc.info
index 1aa9100d78..45dfc07ff1 100644
--- a/development/arm-gcc/arm-gcc.info
+++ b/development/arm-gcc/arm-gcc.info
@@ -1,8 +1,8 @@
 PRGNAM="arm-gcc"
-VERSION="4.9.2"
+VERSION="8.2.0"
 HOMEPAGE="http://www.gnu.org/software/gcc/"
-DOWNLOAD="ftp://ftp.gnu.org/pub/gnu/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2"
-MD5SUM="4df8ee253b7f3863ad0b86359cd39c43"
+DOWNLOAD="ftp://ftp.gnu.org/pub/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.xz"
+MD5SUM="4ab282f414676496483b3e1793d07862"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
 REQUIRES="arm-binutils"

Last edited by ponce; 11-05-2018 at 04:35 PM.
 
Old 11-06-2018, 04:13 PM   #1508
Dunc.
LQ Newbie
 
Registered: Jul 2012
Location: Cumbria UK
Distribution: Slackware
Posts: 8

Rep: Reputation: Disabled
I have compiled the arm-gcc toolchain. I did start with the slackbuild but felt it was out of date. I looked for the latest version that had been tweaked by arm and found it at https://developer.arm.com/open-sourc...olchain/gnu-rm. It is not the same tarball as before because it has all that you need in one place. It contains binutils, gcc, newlib and gdb. I separated the tarballs out and used tweaked versions of the slackbuild scripts to build. As you might be aware the build order is important with toolchains. From memory I think it is arm-binutils, newlib-headers, arm-gcc, newlib and finally arm-gdb.

Kind regards

Duncan.
 
Old 11-06-2018, 10:26 PM   #1509
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Rep: Reputation: Disabled
Quote:
Originally Posted by orbea View Post
nexengine-libretro is completely broken in current during run-time. I suspect its because of the new gcc, but it can be worked around for now by disabling optimizations.

Code:
[ "${DEBUG:=0}" != 0 ] && DEBUG=1
Can be changed to:

Code:
[ "${DEBUG:=1}" != 0 ] && DEBUG=1
Unfortunately clang is not an option because it will segfault instead of not rendering anything during gameplay.

Edit: Actually this is a better way.

Code:
sed -i 's/-O2/-O1/' Makefile
This was fixed upstream.

https://github.com/libretro/nxengine...05c39010a8d14e

Additionally it was reproducible in Slackware 14.2 if built with clang instead of gcc.

For more information see the following issues.

https://github.com/libretro/nxengine-libretro/issues/45
https://github.com/libretro/nxengine-libretro/issues/51

I've submitted an update to SBo which solves this.
 
Old 11-11-2018, 09:13 AM   #1510
RadicalDreamer
Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 887

Rep: Reputation: 408Reputation: 408Reputation: 408Reputation: 408Reputation: 408
I tried building MuseScore 2.1.0. I think it doesn't like the Qt5 in Plasma 5.
Code:
/tmp/SBo/MuseScore-2.1.0/mscore/preferences.cpp: In member function ‘void Ms::PreferenceDialog::recordButtonClicked(int)’:
/tmp/SBo/MuseScore-2.1.0/mscore/preferences.cpp:786:48: error: invalid use of incomplete type ‘class QButtonGroup’
       foreach(QAbstractButton* b, recordButtons->buttons()) {
                                                ^~
In file included from /usr/include/qt5/QtWidgets/qtoolbutton.h:45,
                 from /usr/include/qt5/QtWidgets/QToolButton:1,
                 from /tmp/SBo/MuseScore-2.1.0/build.release/all.h:104,
                 from <command-line>:
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/tmp/SBo/MuseScore-2.1.0/mscore/preferences.cpp:787:40: error: invalid use of incomplete type ‘class QButtonGroup’
             b->setChecked(recordButtons->id(b) == val);
                                        ^~
In file included from /usr/include/qt5/QtWidgets/qtoolbutton.h:45,
                 from /usr/include/qt5/QtWidgets/QToolButton:1,
                 from /tmp/SBo/MuseScore-2.1.0/build.release/all.h:104,
                 from <command-line>:
/usr/include/qt5/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
make[3]: *** [mscore/CMakeFiles/mscore.dir/build.make:1149: mscore/CMakeFiles/mscore.dir/preferences.cpp.o] Error 1
I tried building MuseScore-2.3.2 but it required portaudio and portmidi. Portmidi has a dependency on jdk so I gave up because I have an aversion to jdk.
 
Old 11-11-2018, 10:08 AM   #1511
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,481

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RadicalDreamer View Post
I tried building MuseScore 2.1.0. I think it doesn't like the Qt5 in Plasma 5.
it may be although I haven't tried building it with that version... but I just tried with SBo's version (5.9.x) and it built fine.

Last edited by ponce; 11-11-2018 at 12:14 PM.
 
1 members found this post helpful.
  


Reply

Tags
current, sbo, sbopkg, slackrepo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error building gst1-plugins-good 1.4.1 from SBO l0rddarkf0rce Slackware 4 10-06-2014 06:58 PM
[SOLVED] Failure building nvidia-kernel Slackbuild from SBo sysfce2 Slackware 7 07-02-2011 02:10 AM
problems building fontforge from SBo gtludwig Slackware 7 05-12-2010 02:52 PM
Pls help me take my 1st step! verysoon Fedora - Installation 2 12-12-2005 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration