Slackware - ARM This forum is for the discussion of Slackware ARM.
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
02-27-2017, 02:32 PM
#1
LQ Newbie
Registered: May 2016
Distribution: Slackware-14.2
Posts: 25
Rep:
slackware arm 14.2 + mpd 0.20.5 compile error
I cannot get MPD to compile on versions above 0.19.9.
This is what happens when i compile MPD 0.20.5 on Slackware ARM - 14.2:
Quote:
g++ -std=c++14 -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -I/usr/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"' -D_GNU_SOURCE -pthread -O2 -fvisibility=hidden -fno-threadsafe-statics -fmerge-all-constants -ffast-math -ftree-vectorize -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -c -o src/libmpd_a-Idle.o `test -f 'src/Idle.cxx' || echo './'`src/Idle.cxx
g++ -std=c++14 -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -I/usr/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"' -D_GNU_SOURCE -pthread -O2 -fvisibility=hidden -fno-threadsafe-statics -fmerge-all-constants -ffast-math -ftree-vectorize -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -c -o src/libmpd_a-IdleFlags.o `test -f 'src/IdleFlags.cxx' || echo './'`src/IdleFlags.cxx
g++ -std=c++14 -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -I/usr/include -DSYSTEM_CONFIG_FILE_LOCATION='"/etc/mpd.conf"' -D_GNU_SOURCE -pthread -O2 -fvisibility=hidden -fno-threadsafe-statics -fmerge-all-constants -ffast-math -ftree-vectorize -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -c -o src/libmpd_a-Listen.o `test -f 'src/Listen.cxx' || echo './'`src/Listen.cxx
In file included from ./src/event/FullyBufferedSocket.hxx:24:0,
from src/client/Client.hxx:26,
from src/Listen.cxx:22:
./src/event/BufferedSocket.hxx:113:34: error: 'std::exception_ptr' has not been declared
virtual void OnSocketError(std::exception_ptr ep) = 0;
^
In file included from src/Listen.cxx:22:0:
src/client/Client.hxx:203:26: error: 'std::exception_ptr' has not been declared
void OnSocketError(std::exception_ptr ep) override;
^
In file included from src/Listen.cxx:32:0:
src/Log.hxx:94:21: error: 'exception_ptr' in namespace 'std' does not name a type
LogError(const std::exception_ptr &ep);
^
src/Log.hxx:97:21: error: 'exception_ptr' in namespace 'std' does not name a type
LogError(const std::exception_ptr &ep, const char *msg);
^
src/Log.hxx:101:24: error: 'exception_ptr' in namespace 'std' does not name a type
FormatError(const std::exception_ptr &ep, const char *fmt, ...);
^
src/Listen.cxx: In function 'void listen_global_init(EventLoop&, Partition&)':
src/Listen.cxx:123:5: error: 'throw_with_nested' is not a member of 'std'
std::throw_with_nested(FormatRuntimeError("Failed to listen on %s (line %i)",
^
src/Listen.cxx:136:4: error: 'throw_with_nested' is not a member of 'std'
std::throw_with_nested(FormatRuntimeError("Failed to listen on *:%d: ", port));
^
Makefile:10475: recipe for target 'src/libmpd_a-Listen.o' failed
make[1]: *** [src/libmpd_a-Listen.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/SBo/mpd-0.20.5'
Makefile:4681: recipe for target 'all' failed
make: *** [all] Error 2
Could it be something to do with soft float 14.2 ?
02-27-2017, 04:17 PM
#2
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097
it seems something similar happens also elsewhere...
https://archlinuxarm.org/builder/in-...v5.log.html.gz
looking at their
packages (search for mpd) they actually keep the soft-float version to 0.19.x...
Last edited by ponce; 02-27-2017 at 04:24 PM .
02-27-2017, 04:59 PM
#3
LQ Newbie
Registered: May 2016
Distribution: Slackware-14.2
Posts: 25
Original Poster
Rep:
so do you think the latest versions of MPD will compile ok on Slackware Arm Current hard float?
02-28-2017, 05:33 AM
#4
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097
yes, I just tried and it built fine on slackwarearm-current with just these modifications to the SlackBuild on SBo
Code:
--- ./mpd.SlackBuild.orig 2017-02-27 20:43:31.722250007 +0100
+++ ./mpd.SlackBuild 2017-02-28 07:42:32.967268862 +0100
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mpd
-VERSION=${VERSION:-0.20.4}
+VERSION=${VERSION:-0.20.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,6 +50,9 @@
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "arm" ]; then
+ SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
+ LIBDIRSUFFIX=""
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
2 members found this post helpful.
02-28-2017, 05:40 AM
#5
LQ Newbie
Registered: May 2016
Distribution: Slackware-14.2
Posts: 25
Original Poster
Rep:
thanks ponce
All times are GMT -5. The time now is 03:38 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News