facing error making autoconf - make[3]: *** [m4sugar.m4f] Error 1

View: New views
4 Messages — Rating Filter:   Alert me  

facing error making autoconf - make[3]: *** [m4sugar.m4f] Error 1

by SUNIL NEGI :: Rate this Message:

| View Threaded | Show Only this Message

Hi.
I am facing problems compiling autoconf with the make command on msys.
My problem is very similar to the one at
http://readlist.com/lists/lists.sourceforge.net/mingw-msys/0/573.html
But the solution is not in sight.


On running make, the script ends with the last few lines as:

make[3]: Entering directory
`/home/snegi1/dlds/autoconf-2.62/lib/m4sugar'
autom4te_perllibdir='../..'/lib AUTOM4TE_CFG='../../lib/autom4te.cfg'
../../bin/autom4te -B '../..'/lib -B '../..'/lib
\
        --language=m4sugar                      \
        --freeze                        \
        --output=m4sugar.m4f
autom4te: freezing produced output:
make[3]: *** [m4sugar.m4f] Error 1
make[3]: Leaving directory `/home/snegi1/dlds/autoconf-2.62/lib/m4sugar'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/snegi1/dlds/autoconf-2.62/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/snegi1/dlds/autoconf-2.62'
make: *** [all] Error 2


There were a lot of empty lines after "freezing produced output", but I
got rid of them by changing \n to \r in
Bin/autom4te.in (I read somewhere that this should fix the issue - but
it did not help).

Doing perl --version on the command prompt tells me that the version is
v5.6.1 built for msys.

I installed msys using "MSYS-1.0.10.exe"

I have also tried creating an environment variable M4=m4. Did not help,
though.

Any ideas? Or even pointers to where I should be asking this question,
if not here.

TIA,
Sunil
________________________________
Sunil Negi
Software Developer
Advisor Workstation

Morningstar, Inc.

+1 312 384-4923 voice
+1 312 696-6014 fax
sunil.negi@...

This e-mail contains privileged and confidential information and is
intended only for the use of the person(s) named above. Any
dissemination, distribution or duplication of this communication without
prior written consent from Morningstar is strictly prohibited. If you
received this message in error please contact the sender immediately and
delete the materials from any computer.


_______________________________________________
Autoconf mailing list
Autoconf@...
http://lists.gnu.org/mailman/listinfo/autoconf

Re: facing error making autoconf - make[3]: *** [m4sugar.m4f] Error 1

by keithmarshall :: Rate this Message:

| View Threaded | Show Only this Message

On Friday 30 May 2008 17:24, SUNIL NEGI wrote:
> autom4te: freezing produced output:
> make[3]: *** [m4sugar.m4f] Error 1
> make[3]: Leaving directory
> `/home/snegi1/dlds/autoconf-2.62/lib/m4sugar' make[2]: ***
> [all-recursive] Error 1
> make[2]: Leaving directory `/home/snegi1/dlds/autoconf-2.62/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/snegi1/dlds/autoconf-2.62'
> make: *** [all] Error 2

Looks like you are using a native Win32 build of m4, rather than the one
supplied with MSYS; that doesn't work.

> Doing perl --version on the command prompt tells me that the version
> is v5.6.1 built for msys.

Good; that's as it should be.

> I installed msys using "MSYS-1.0.10.exe"

You also need msysDTK, but if you use only the msysDTK-1.0.1 package,
that installs only m4-1.4, which is too old.  However, the solution is
*not* to go build a native m4 to replace it; you should install the
m4-1.4.7 update, which you will find as a separate download, in the
same place as the original package:
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=67879&release_id=131044
http://downloads.sourceforge.net/mingw/m4-1.4.7-MSYS.tar.bz2

Regards,
Keith.


_______________________________________________
Autoconf mailing list
Autoconf@...
http://lists.gnu.org/mailman/listinfo/autoconf

Re: facing error making autoconf - make[3]: *** [m4sugar.m4f] Error 1

by rden :: Rate this Message:

| View Threaded | Show Only this Message

Hello,

I am currently trying to install autoconf and I'm facing the same problem, though the solution you proposed seems not to work for me.
I'm running MinGW 5.6.1, m4 1.4.15 atm and tried with autoconf 2.60, 2.61, 2.62 and 2.67 atm. I also added some M4 environment variable, no changes.
However, I am not sure to have properly installed m4, as I'm completely new at this. I've put the extracted files in my "C:/msys/1.0/bin" and done the classical "configure/make/make install".

Here is my error:

mv version.m4-t version.m4
autom4te_perllibdir='../..'/lib AUTOM4TE_CFG='../../lib/autom4te.cfg'         ../../bin/autom4te -B '../..'/lib -B '../..'/lib                                 \
        --language=m4sugar                      \
        --freeze                        \
        --output=m4sugar.m4f
autom4te: freezing produced output:
autom4te:
autom4te:
....
autom4te:
autom4te:
autom4te:
make[3]: *** [m4sugar.m4f] Error 1
make[3]: Leaving directory `/c/build/autoconf-2.67/lib/m4sugar'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/build/autoconf-2.67/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/build/autoconf-2.67'
make: *** [all] Error 2


Any help welcomed...
Thanks in advance.

Rémi




keithmarshall wrote:
On Friday 30 May 2008 17:24, SUNIL NEGI wrote:
> autom4te: freezing produced output:
> make[3]: *** [m4sugar.m4f] Error 1
> make[3]: Leaving directory
> `/home/snegi1/dlds/autoconf-2.62/lib/m4sugar' make[2]: ***
> [all-recursive] Error 1
> make[2]: Leaving directory `/home/snegi1/dlds/autoconf-2.62/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/snegi1/dlds/autoconf-2.62'
> make: *** [all] Error 2

Looks like you are using a native Win32 build of m4, rather than the one
supplied with MSYS; that doesn't work.

> Doing perl --version on the command prompt tells me that the version
> is v5.6.1 built for msys.

Good; that's as it should be.

> I installed msys using "MSYS-1.0.10.exe"

You also need msysDTK, but if you use only the msysDTK-1.0.1 package,
that installs only m4-1.4, which is too old.  However, the solution is
*not* to go build a native m4 to replace it; you should install the
m4-1.4.7 update, which you will find as a separate download, in the
same place as the original package:
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=67879&release_id=131044
http://downloads.sourceforge.net/mingw/m4-1.4.7-MSYS.tar.bz2

Regards,
Keith.


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Re: facing error making autoconf - make[3]: *** [m4sugar.m4f] Error 1

by eblake :: Rate this Message:

| View Threaded | Show Only this Message

On 04/07/2011 01:38 AM, rden wrote:

>
> Hello,
>
> I am currently trying to install autoconf and I'm facing the same problem,
> though the solution you proposed seems not to work for me.
> I'm running MinGW 5.6.1, m4 1.4.15 atm and tried with autoconf 2.60, 2.61,
> 2.62 and 2.67 atm. I also added some M4 environment variable, no changes.
> However, I am not sure to have properly installed m4, as I'm completely new
> at this. I've put the extracted files in my "C:/msys/1.0/bin" and done the
> classical "configure/make/make install".
>
> Here is my error:
>
> mv version.m4-t version.m4
> autom4te_perllibdir='../..'/lib AUTOM4TE_CFG='../../lib/autom4te.cfg'        
> ../../bin/autom4te -B '../..'/lib -B '../..'/lib                                
> \
>         --language=m4sugar                      \
>         --freeze                        \
>         --output=m4sugar.m4f
> autom4te: freezing produced output:
> autom4te:
This is almost surely caused by running on a platform that is not
consistently handling carriage returns (some, but not all, of the
programs in your tool chain are handling files in text mode instead of
binary mode).

You may have better luck asking on mingw lists to see how other people
have solved this, or try a different port for windows (such as cygwin,
which I know from personal experience does not suffer from these problems).

--
Eric Blake   eblake@...    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



_______________________________________________
Autoconf mailing list
Autoconf@...
http://lists.gnu.org/mailman/listinfo/autoconf

signature.asc (632 bytes) Download Attachment