Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compiling on Raspbian “wheezy” 2012-12-16 #1

Open
quilime opened this issue Feb 9, 2013 · 4 comments
Open

Error when compiling on Raspbian “wheezy” 2012-12-16 #1

quilime opened this issue Feb 9, 2013 · 4 comments

Comments

@quilime
Copy link

quilime commented Feb 9, 2013

When compiling, I get the following error(s):

pi@raspberrypi ~/src/noisebox $ make
g++ -c -O3 -mfloat-abi=softfp -Wall -I./src -I./rtmidi-1.0.15/ -I./rtaudio-4.0.10/ -D__LINUX_ALSASEQ__ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ src/main.cpp -o src/main.o
src/main.cpp: In function ‘int audioCallback(void*, void*, unsigned int, double, RtAudioStreamStatus, void*)’:
src/main.cpp:101:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
g++ -c -O3 -mfloat-abi=softfp -Wall -I./src -I./rtmidi-1.0.15/ -I./rtaudio-4.0.10/ -D__LINUX_ALSASEQ__ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ rtaudio-4.0.10/RtAudio.cpp -o rtaudio-4.0.10/RtAudio.o
g++ -c -O3 -mfloat-abi=softfp -Wall -I./src -I./rtmidi-1.0.15/ -I./rtaudio-4.0.10/ -D__LINUX_ALSASEQ__ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ rtmidi-1.0.15/RtMidi.cpp -o rtmidi-1.0.15/RtMidi.o
g++ -DHAVE_GETTIMEOFDAY -D__LINUX_ALSA__ -lpthread -lasound src/main.o rtaudio-4.0.10/RtAudio.o rtmidi-1.0.15/RtMidi.o -o noisebox
/usr/bin/ld: error: noisebox uses VFP register arguments, src/main.o does not
/usr/bin/ld: failed to merge target specific data of file src/main.o
/usr/bin/ld: error: noisebox uses VFP register arguments, rtaudio-4.0.10/RtAudio.o does not
/usr/bin/ld: failed to merge target specific data of file rtaudio-4.0.10/RtAudio.o
/usr/bin/ld: error: noisebox uses VFP register arguments, rtmidi-1.0.15/RtMidi.o does not
/usr/bin/ld: failed to merge target specific data of file rtmidi-1.0.15/RtMidi.o
collect2: ld returned 1 exit status
make: *** [noisebox] Error 1

Do the "VFP register arguments" mean I'm running a distro that's incompatible with noisebox?

Result of uname -a:

Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

Running on a 512 mb rev-b board.

@themancalledjakob
Copy link

exact same error with result of uname -a

Linux raspberrypi 3.2.25+ #250 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l GNU/Linux

@mazbox
Copy link
Owner

mazbox commented Jan 17, 2014

maybe try removing the "-mfloat-abi=softfp" bit? LEt me know if that works!

@themancalledjakob
Copy link

alright, i removed "-mfloat-abi=softfp" in the makefile, and this is the result
result

it works! thank you marek!

@mazbox
Copy link
Owner

mazbox commented Jan 17, 2014

Excellent... glad to be of service! Keep noising!

Marek

// mazbox.com http://www.mazbox.com/
// isthis.gd
// +44 (0) 7866 141 047
// @mazbox

On Fri, Jan 17, 2014 at 6:38 PM, themancalledjakob <[email protected]

wrote:

alright, i removed "-mfloat-abi=softfp" in the makefile, and this is the
result
[image: result]https://f.cloud.github.com/assets/1830798/1943174/4712668a-7fa6-11e3-8afd-4d54063a3ca2.jpg

it works! thank you marek!


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-32633191
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants