ASM Compile error in svn version.

4 replies [Last post]
deva
User offline. Last seen 1 year 6 weeks ago. Offline
Joined: 2006-12-14
Posts:

I am one of those people who just can't wait...

But unfortunately, my latest svn checkout didn't want to compile on my machine (Gentoo linux 32 bit, GCC 3.4.6).

this is what I get:

libs/ardour/globals.cc: In function `void setup_hardware_optimization(bool)':
libs/ardour/globals.cc:215: error: impossible constraint in `asm'
scons: *** [libs/ardour/globals.os] Error 1

I know this probably belongs in the bug section, but I can't think of versio number to attach it to, so here it is! ;)

I'm not much of an asm programmer, so I wont try to debug it futher.

jimduchek
User offline. Last seen 5 years 38 weeks ago. Offline
Joined: 2006-06-17
Posts:

I don't believe 'l' is a valid constraint. Try changing that line to use '=r'. If that doesn't work, switch the 'popl' and 'movl' lines and use '=m'.

deva
User offline. Last seen 1 year 6 weeks ago. Offline
Joined: 2006-12-14
Posts:

That worked. Thanks.

I changed '=l' into '=r'. Didn't try the other one.

What does this code do by the way?

It seems to me that it detects the architecture, is that correct?

Someone should commit the change to svn ;)

sampo
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 2006-03-16
Posts:

Thanks for noticing the issue. Fixed in SVN.

jimduchek
User offline. Last seen 5 years 38 weeks ago. Offline
Joined: 2006-06-17
Posts:

It checks to see if the current processor has SSE instructions.