Error when trying to build MoSync under Fedora 15

3 posts / 0 new
Last post
red1
red1's picture
Offline
Joined: 8 Aug 2011
Posts:
Error when trying to build MoSync under Fedora 15

I trying to build MoSync for Fredora 15 (x86_64, gcc (GCC) 4.6.0 20110530 (Red Hat 4.6.0-9)). I am using this guide: http://www.mosync.com/documentation/manualpages/building-mosync-source-linux

But getting this error:

./workfile.rb CONFIG=debug
Set constant "CONFIG"="debug"
Error: null path
/home/red1/rpmbuild/BUILD/mosync-2.5/rules/error.rb:19:in `error': null path (RuntimeError)
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/mosync_util.rb:21:in `switchPathSlashes'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/mosync_util.rb:33:in `mosyncdir'
    from ./workfile.rb:49:in `setup'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/task.rb:66:in `invoke'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:33:in `invoke'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:33:in `each'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:33:in `invoke'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:33:in `invoke'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:33:in `each'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:33:in `invoke'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:122:in `invoke'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:118:in `each'
    from /home/red1/rpmbuild/BUILD/mosync-2.5/rules/targets.rb:118:in `invoke'
    from ./workfile.rb:115

Using CONFIG="" has same effect.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
red1
red1's picture
Offline
Joined: 8 Aug 2011
Posts:

"export MOSYNCDIR" solves problem.

But compilation ends with errors:

Execute: build/debug/discovery.o
gcc -o build/debug/discovery.o -std=gnu++0x -DHAVE_TR1 -fno-rtti -g -O0 -fvisibility=hidden -I ../../runtimes/cpp/base -I ../../runtimes/cpp/platforms/sdl -I /builddir/build/BUILD/mosync-2.5/intlibs -I /builddir/build/BUILD/mosync-2.5/libs -Wall -Werror -Wextra -Wno-unused-parameter -Wwrite-strings -Wshadow -Wpointer-arith -Wundef -Wfloat-equal -Winit-self -Wmissing-noreturn -Wmissing-format-attribute -Wvariadic-macros -Wmissing-include-dirs -Wmissing-declarations -Wvla -Wlogical-op -DLINUX -fPIC -MMD -MF build/debug/discovery.mft -c /builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp
cc1plus: warnings being treated as errors
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp: In function 'int Bluetooth::maBtDiscoveryState()':
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp:584:5: error: function might be possible candidate for attribute 'noreturn'
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp: In function 'int Bluetooth::maBtStartDeviceDiscovery(void (*)(), bool)':
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp:588:5: error: function might be possible candidate for attribute 'noreturn'
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp: In function 'int Bluetooth::maBtGetNewDevice(MABtDevice*)':
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp:592:5: error: function might be possible candidate for attribute 'noreturn'
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp: In function 'int Bluetooth::maBtStartServiceDiscovery(const MABtAddr*, const MAUUID*, void (*)())':
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp:596:5: error: function might be possible candidate for attribute 'noreturn'
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp: In function 'int Bluetooth::maBtGetNewService(MABtService*)':
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp:602:5: error: function might be possible candidate for attribute 'noreturn'
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp: In function 'int Bluetooth::maBtGetNextServiceSize(MABtServiceSize*)':
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp:606:5: error: function might be possible candidate for attribute 'noreturn'
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp: In function 'int Bluetooth::maBtCancelDiscovery()':
/builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/discovery.cpp:610:5: error: function might be possible candidate for attribute 'noreturn'
Error: Command failed: '256'
/builddir/build/BUILD/mosync-2.5/rules/error.rb:19:in `error': Command failed: '256' (RuntimeError)
	from /builddir/build/BUILD/mosync-2.5/rules/util.rb:80:in `sh'
	from /builddir/build/BUILD/mosync-2.5/rules/gcc.rb:79:in `execute'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:181:in `invoke'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:178:in `invoke'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:178:in `each'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:178:in `invoke'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:82:in `invoke'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:82:in `each'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:82:in `invoke'
	from /builddir/build/BUILD/mosync-2.5/intlibs/bluetooth/workfile.rb:44
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:125:in `load'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:125:in `invoke_subdir'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:131:in `invoke_subdirs'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:131:in `each'
	from /builddir/build/BUILD/mosync-2.5/rules/task.rb:131:in `invoke_subdirs'
	from ./workfile.rb:66
	from /builddir/build/BUILD/mosync-2.5/rules/targets.rb:35:in `call'
	from /builddir/build/BUILD/mosync-2.5/rules/targets.rb:35:in `invoke'
	from /builddir/build/BUILD/mosync-2.5/rules/targets.rb:122:in `invoke'
	from /builddir/build/BUILD/mosync-2.5/rules/targets.rb:118:in `each'
	from /builddir/build/BUILD/mosync-2.5/rules/targets.rb:118:in `invoke'
	from ./workfile.rb:115

red1
red1's picture
Offline
Joined: 8 Aug 2011
Posts:

I has build rpm-package for Fedora 14 i686. Example is compile and run. But moemu is not respond to any keys.