Failed to Compile lib-mad from source
Anshul <[email protected]> Tue, 23 Jul 2013 17:37:48 +0530
| Newsgroups | gmane.comp.audio.mad.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------020701070902010904090102 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Transfer-Encoding: 7bit -------- Original Message -------- Subject: Failed to Compile lib-mad from source Date: Tue, 23 Jul 2013 14:47:44 +0530 From: Anshul <[email protected]> To: [email protected] -------- Original Message -------- Subject: Failed to Compile lib-mad from source Date: Tue, 23 Jul 2013 14:39:32 +0530 From: Anshul <[email protected]> To: [email protected] HI I was trying to compile libmad-0.15.0b or libmad-0.15.1b, both of them failed on my computer. Actually -fforce-mem was deprecated option to gcc and has been removed, so I feel There is need to update configure.ac error was (sed -e '1s|.*|/*|' -e '1b' -e '$s|.*| */|' -e '$b' \ -e 's/^.*/ *&/' ./COPYRIGHT; echo; \ echo "# ifdef __cplusplus"; \ echo 'extern "C" {'; \ echo "# endif"; echo; \ if [ ".-DFPM_INTEL" != "." ]; then \ echo ".-DFPM_INTEL" | sed -e 's|^\.-D|# define |'; echo; \ fi; \ sed -ne 's/^# *define *\(HAVE_.*_ASM\).*/# define \1/p' \ config.h; echo; \ sed -ne 's/^# *define *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p' \ config.h; echo; \ sed -ne 's/^# *define *\(SIZEOF_.*\)/# define \1/p' \ config.h; echo; \ for header in version.h fixed.h bit.h timer.h stream.h frame.h synth.h decoder.h; do \ echo; \ sed -n -f ./mad.h.sed ./$header; \ done; echo; \ echo "# ifdef __cplusplus"; \ echo '}'; \ echo "# endif") >mad.h make all-recursive make[1]: Entering directory `/home/anshul/work/libmad-0.15.0b' make[2]: Entering directory `/home/anshul/work/libmad-0.15.0b' if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF ".deps/version.Tpo" \ -c -o version.lo `test -f 'version.c' || echo './'`version.c; \ then mv -f ".deps/version.Tpo" ".deps/version.Plo"; \ else rm -f ".deps/version.Tpo"; exit 1; \ fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -fPIC -DPIC -o .libs/version.lo gcc: error: *unrecognized command line option '-fforce-mem'* make[2]: *** [version.lo] Error 1 make[2]: Leaving directory `/home/anshul/work/libmad-0.15.0b' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/anshul/work/libmad-0.15.0b' make: *** [all] Error 2 I am trying to compile by removing -fforce-mem from configure.ac any better idea are welcomed. Thanks Anshul "Sorry if my sentence look arrogant, my english is bad" HI I tried to remove *-fforce-mem* and apply autoreconf but by that my bash itself crash. I am using OpenSuse 12.3 linux 3.7.10-1.16-pae proccessor Intel thanks Anshul HI I was able to compile source code after removing *-fforce-mem *I have to to some additional steps other than just removing *-fforce-mem *I had to run libtoolize before i could complile, because only autoreconf does not update libtool, I dont Know what version You people use but for me i required macro directory * confure.ac Change *32c32 < --- > AC_CONFIG_MACRO_DIR([m4]) 143d142 < optimize="$optimize -fforce-mem" * Makefile.am Change *23a24 > ACLOCAL_AMFLAGS = -I m4 * Please help me if there is any other way than this work around. *Thanks Anshul --------------------------------------------------------------------------------------------- Notice: This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean --------------------------------------------------------------------------------------------- --------------020701070902010904090102 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <br> <div class="moz-forward-container"><br> <br> -------- Original Message -------- <table class="moz-email-headers-table" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th> <td>Failed to Compile lib-mad from source</td> </tr> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th> <td>Tue, 23 Jul 2013 14:47:44 +0530</td> </tr> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th> <td>Anshul <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a></td> </tr> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th> <td><a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a></td> </tr> </tbody> </table> <br> <br> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <br> <div class="moz-forward-container"><br> <br> -------- Original Message -------- <table class="moz-email-headers-table" border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject: </th> <td>Failed to Compile lib-mad from source</td> </tr> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th> <td>Tue, 23 Jul 2013 14:39:32 +0530</td> </tr> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th> <td>Anshul <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a></td> </tr> <tr> <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th> <td><a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a></td> </tr> </tbody> </table> <br> <br> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> HI<br> <br> I was trying to compile libmad-0.15.0b or libmad-0.15.1b,<br> both of them failed on my computer.<br> Actually -fforce-mem was deprecated option to gcc and has been removed, so I feel <br> There is need to update configure.ac<br> <br> error was (sed -e '1s|.*|/*|' -e '1b' -e '$s|.*| */|' -e '$b' \<br> -e 's/^.*/ *&/' ./COPYRIGHT; echo; \<br> echo "# ifdef __cplusplus"; \<br> echo 'extern "C" {'; \<br> echo "# endif"; echo; \<br> if [ ".-DFPM_INTEL" != "." ]; then \<br> echo ".-DFPM_INTEL" | sed -e 's|^\.-D|# define |'; echo; \<br> fi; \<br> sed -ne 's/^# *define *\(HAVE_.*_ASM\).*/# define \1/p' \<br> config.h; echo; \<br> sed -ne 's/^# *define *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p' \<br> config.h; echo; \<br> sed -ne 's/^# *define *\(SIZEOF_.*\)/# define \1/p' \<br> config.h; echo; \<br> for header in version.h fixed.h bit.h timer.h stream.h frame.h synth.h decoder.h; do \<br> echo; \<br> sed -n -f ./mad.h.sed ./$header; \<br> done; echo; \<br> echo "# ifdef __cplusplus"; \<br> echo '}'; \<br> echo "# endif") >mad.h<br> make all-recursive<br> make[1]: Entering directory `/home/anshul/work/libmad-0.15.0b'<br> make[2]: Entering directory `/home/anshul/work/libmad-0.15.0b'<br> if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF ".deps/version.Tpo" \<br> -c -o version.lo `test -f 'version.c' || echo './'`version.c; \<br> then mv -f ".deps/version.Tpo" ".deps/version.Plo"; \<br> else rm -f ".deps/version.Tpo"; exit 1; \<br> fi<br> mkdir .libs<br> gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -fPIC -DPIC -o .libs/version.lo<br> gcc: error: <b>unrecognized command line option '-fforce-mem'</b><br> make[2]: *** [version.lo] Error 1<br> make[2]: Leaving directory `/home/anshul/work/libmad-0.15.0b'<br> make[1]: *** [all-recursive] Error 1<br> make[1]: Leaving directory `/home/anshul/work/libmad-0.15.0b'<br> make: *** [all] Error 2<br> <br> I am trying to compile by removing -fforce-mem from configure.ac<br> any better idea are welcomed.<br> <br> <br> Thanks<br> Anshul<br> <br> "Sorry if my sentence look arrogant, my english is bad"<br> <br> </div> <br> HI<br> <br> I tried to remove <b>-fforce-mem</b> and apply autoreconf but by that my bash itself crash.<br> I am using OpenSuse 12.3 linux 3.7.10-1.16-pae proccessor Intel<br> <br> thanks <br> Anshul<br> <br> <br> HI<br> <br> I was able to compile source code after removing <b>-fforce-mem<br> <br> </b>I have to to some additional steps other than just removing <b>-fforce-mem<br> </b>I had to run libtoolize before i could complile, because only autoreconf <br> does not update libtool, I dont Know what version You people use<br> but for me i required macro directory <br> <b><br> confure.ac Change<br> </b>32c32<br> < <br> ---<br> > AC_CONFIG_MACRO_DIR([m4])<br> 143d142<br> < optimize="$optimize -fforce-mem"<br> <b><br> Makefile.am Change<br> <br> </b>23a24<br> > ACLOCAL_AMFLAGS = -I m4<br> <b><br> Please help me if there is any other way than this work around.<br> <br> </b>Thanks<br> Anshul<br> </div> </body> </html> <table><tr><td bgcolor=#ffffff><font color=#000000><pre>--------------------------------------------------------------------------------------------- Notice: This message has been scanned by Trend Micro Mail Security scanner and is believed to be clean ---------------------------------------------------------------------------------------------</pre></font></td></tr></table> --------------020701070902010904090102--