Re: madplayer cross-compile on ARM11 compilation error "impossible constraint in 'asm'"

Jianfeng Li <[email protected]> Wed, 21 May 2008 21:05:11 +0800
Newsgroups gmane.comp.audio.mad.devel
Message-ID <[email protected]>
--_52df6d56-c1ce-458a-8fd4-016882b05e87_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit

Thank you so much for your help, Rob!
 
Regards,
Jeff



> From: [email protected]> To: [email protected]> Date: Sun, 18 May 2008 19:40:12 -0700> Subject: Re: [mad-dev] madplayer cross-compile on ARM11 compilation error "impossible constraint in 'asm'"> > On May 18, 2008, at 12:33 AM, Jianfeng Li wrote:> > I am now trying to cross-compile the madplayer on an arm11 based > > embedded system. The compiler I am using is from montavista > > mobilinux 5.0.> >> > When I tried to build the madplay, for the file resample.c, I got 2 > > errors on line 89 and 104. The error information is "impossible > > constraint in 'asm'. When I tried to build the libmad, I also met > > the same error. But it seems that during compilation if "FPM-ARM" > > option is enabled then the error is solved. But here I checked the > > Makefile, there is no such option of "FPM" a
 s in the Makefile of > > libmad.> >> > So can anybody help to tell me why this error happens, it is due to > > the compiler's constraint/requirement? How should I try to solve > > this erro!
 r? Is "trying to enable the FPM" a good option to try?> > Running the libmad `configure' script is the usual way to cause an > appropriate FPM macro to be defined. You can force the selection using > the --enable-fpm option (e.g. --enable-fpm=arm) in case the > automatically chosen default is inappropriate for some reason.> > Note that the FPM selection is carried into the mad.h header file > which is used by madplay et al. When cross-compiling, the resulting > mad.h could be different from the build system's mad.h so it's > important to check your include paths.> > -- > Rob Leslie> [email protected]> 
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
--_52df6d56-c1ce-458a-8fd4-016882b05e87_
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: 8bit

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Thank you so much for your help, Rob!<BR>
&nbsp;<BR>
Regards,<BR>
Jeff<BR><BR><BR><BR><BR>

<HR id=stopSpelling>
<BR>
&gt; From: [email protected]<BR>&gt; To: [email protected]<BR>&gt; Date: Sun, 18 May 2008 19:40:12 -0700<BR>&gt; Subject: Re: [mad-dev] madplayer cross-compile on ARM11 compilation error "impossible constraint in 'asm'"<BR>&gt; <BR>&gt; On May 18, 2008, at 12:33 AM, Jianfeng Li wrote:<BR>&gt; &gt; I am now trying to cross-compile the madplayer on an arm11 based <BR>&gt; &gt; embedded system. The compiler I am using is from montavista <BR>&gt; &gt; mobilinux 5.0.<BR>&gt; &gt;<BR>&gt; &gt; When I tried to build the madplay, for the file resample.c, I got 2 <BR>&gt; &gt; errors on line 89 and 104. The error information is "impossible <BR>&gt; &gt; constraint in 'asm'. When I tried to build the libmad, I also met <BR>&gt; &gt; the same error. But it seems that during compilation if "FPM-ARM" <
 BR>&gt; &gt; option is enabled then the error is solved. But here I checked the <BR>&gt; &gt; Makefile, there is no such option of "FPM" as in the Makefile of <BR>&gt; &gt; libmad.<BR>&gt; !
 &gt;<BR>&gt; &gt; So can anybody help to tell me why this error happens, it is due to <BR>&gt; &gt; the compiler's constraint/requirement? How should I try to solve <BR>&gt; &gt; this error? Is "trying to enable the FPM" a good option to try?<BR>&gt; <BR>&gt; Running the libmad `configure' script is the usual way to cause an <BR>&gt; appropriate FPM macro to be defined. You can force the selection using <BR>&gt; the --enable-fpm option (e.g. --enable-fpm=arm) in case the <BR>&gt; automatically chosen default is inappropriate for some reason.<BR>&gt; <BR>&gt; Note that the FPM selection is carried into the mad.h header file <BR>&gt; which is used by madplay et al. When cross-compiling, the resulting <BR>&gt; mad.h could be different from the build system's mad.h so it's <BR>&gt; important 
 to check your include paths.<BR>&gt; <BR>&gt; -- <BR>&gt; Rob Leslie<BR>&gt; [email protected]<BR>&gt; <BR><BR><br /><hr />Invite your mail contacts to join your friends list with Windows Live S!
 paces. It's easy! <a href='http://spaces.live.com/spacesapi.aspx?wx_ac

tion=create&wx_url=/friends.aspx&mkt=en-us' target='_new'>Try it!</a></body>
</html>
--_52df6d56-c1ce-458a-8fd4-016882b05e87_--