LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-27-2017, 02:32 PM   #1
tb404
LQ Newbie
 
Registered: May 2016
Distribution: Slackware-14.2
Posts: 18

Rep: Reputation: Disabled
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 ?
 
Old 02-27-2017, 04:17 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,832

Rep: Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889
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.
 
Old 02-27-2017, 04:59 PM   #3
tb404
LQ Newbie
 
Registered: May 2016
Distribution: Slackware-14.2
Posts: 18

Original Poster
Rep: Reputation: Disabled
so do you think the latest versions of MPD will compile ok on Slackware Arm Current hard float?
 
Old 02-28-2017, 05:33 AM   #4
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,832

Rep: Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889Reputation: 1889
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.
Old 02-28-2017, 05:40 AM   #5
tb404
LQ Newbie
 
Registered: May 2016
Distribution: Slackware-14.2
Posts: 18

Original Poster
Rep: Reputation: Disabled
thanks ponce
 
  


Reply


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
Can't compile Slackware ARM x-toolchain on 14.0 32 bit. Linux.tar.gz Slackware 8 05-10-2013 05:01 PM
Error when cross-compile libvpx 0.9.1 for ARM - Contex A9 on QEMU hero132 Linux - Distributions 0 08-27-2010 09:23 AM
Compile mpd without root access eric? Linux - Newbie 3 05-01-2009 07:15 PM
Compile the linux2.6.14.1 for arm must ues the arm-linux-gcc-3.4.4? frankyue Linux - Embedded & Single-board computer 2 12-20-2008 07:28 AM

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

All times are GMT -5. The time now is 01:08 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