I just install Msys2, did the install instructions. But while trying to build GNUlib using MingW I hit a problem with MSys2's 'sed.exe' or 'sh.exe' in generating GNUlib's math.h. The message from sh.exe:
 /bin/sh: -c: line 134: unexpected EOF while looking for matching `''
 /bin/sh: -c: line 135: syntax error: unexpected end of file
 Makefile.MingW:730: recipe for target 'math.h' failed
 gnumake: *** [math.h] Error 1

I've used the old sh/sed in MSys for years w/o problems. What could be the problem now? A too long command-line or what? It's "only" 16kByte. Attached.

FYI, the sh/sed versions are different. Msys32's sh/sed --version
 GNU bash, version 4.3.22(2)-release (i686-pc-msys)
 /bin/sed (GNU sed) 4.2.2

and from Msys':
 GNU bash, version 3.1.17(1)-release (i686-pc-msys)
 GNU sed version 4.2.1

--gv
sed -e 's/@GUARD_PREFIX@/GNULIB/g' -e 's/@INCLUDE_NEXT@/include_next/g' -e 
's/@PRAGMA_COLUMNS@//g' -e 's/@GNULIB_GETTIMEOFDAY@/1/g' -e 
's/@REPLACE_GETTIMEOFDAY@/1/g' -e 's/@HAVE_GETTIMEOFDAY@/1/g' -e 
's/@HAVE_WINSOCK2_H@/1/g' -e 's/@PRAGMA_SYSTEM_HEADER@/#pragma GCC 
system_header/g'                                    \
        -e 's/@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@/include_next/g' \
        -e 's/@NEXT_AS_FIRST_DIRECTIVE_MATH_H@/<math\.h>/g'     \
        -e 's/@REPLACE_ITOLD@/0/g'                              \
        -e 's/@REPLACE_NAN@/0/g'                                \
        -e 's/@REPLACE_HUGE_VAL@/0/g'                           \
        -e 's/@GNULIB_ACOSF@/0/g'                               \
        -e 's/@HAVE_ACOSF@/1/g'                                 \
        -e 's/@GNULIB_ACOSL@/0/g'                               \
        -e 's/@HAVE_ACOSL@/1/g'                                 \
        -e 's/@HAVE_DECL_ACOSL@/1/g'                            \
        -e 's/@GNULIB_ASINF@/0/g'                               \
        -e 's/@HAVE_ASINF@/1/g'                                 \
        -e 's/@GNULIB_ASINL@/0/g'                               \
        -e 's/@HAVE_ASINL@/1/g'                                 \
        -e 's/@HAVE_DECL_ASINL@/1/g'                            \
        -e 's/@GNULIB_ATANF@/0/g'                               \
        -e 's/@HAVE_ATANF@/1/g'                                 \
        -e 's/@GNULIB_ATANL@/0/g'                               \
        -e 's/@HAVE_ATANL@/1/g'                                 \
        -e 's/@HAVE_DECL_ATANL@/1/g'                            \
        -e 's/@GNULIB_ATAN2F@/0/g'                              \
        -e 's/@HAVE_ATAN2F@/1/g'                                \
        -e 's/@GNULIB_CBRTF@/0/g'                               \
        -e 's/@REPLACE_CBRTF@/0/g'                              \
        -e 's/@HAVE_DECL_CBRTF@/1/g'                            \
        -e 's/@GNULIB_CBRT@/0/g'                                \
        -e 's/@HAVE_CBRT@/1/g'                                  \
        -e 's/@GNULIB_CBRTL@/0/g'                               \
        -e 's/@REPLACE_CBRTL@/0/g'                              \
        -e 's/@HAVE_DECL_CBRTL@/1/g'                            \
        -e 's/@GNULIB_CEILF@/0/g'                               \
        -e 's/@REPLACE_CEILF@/0/g'                              \
        -e 's/@HAVE_DECL_CEILF@/1/g'                            \
        -e 's/@GNULIB_CEIL@/0/g'                                \
        -e 's/@REPLACE_CEIL@/0/g'                               \
        -e 's/@GNULIB_CEILL@/0/g'                               \
        -e 's/@REPLACE_CEILL@/0/g'                              \
        -e 's/@HAVE_DECL_CEILL@/1/g'                            \
        -e 's/@GNULIB_COPYSIGNF@/0/g'                           \
        -e 's/@HAVE_DECL_COPYSIGNF@/1/g'                        \
        -e 's/@GNULIB_COPYSIGN@/0/g'                            \
        -e 's/@HAVE_COPYSIGN@/1/g'                              \
        -e 's/@GNULIB_COPYSIGNL@/0/g'                           \
        -e 's/@HAVE_COPYSIGNL@/1/g'                             \
        -e 's/@GNULIB_COSF@/0/g'                                \
        -e 's/@HAVE_COSF@/1/g'                                  \
        -e 's/@GNULIB_COSL@/0/g'                                \
        -e 's/@HAVE_COSL@/1/g'                                  \
        -e 's/@HAVE_DECL_COSL@/1/g'                             \
        -e 's/@GNULIB_COSHF@/0/g'                               \
        -e 's/@HAVE_COSHF@/1/g'                                 \
        -e 's/@GNULIB_EXPF@/0/g'                                \
        -e 's/@HAVE_EXPF@/1/g'                                  \
        -e 's/@GNULIB_EXPL@/0/g'                                \
        -e 's/@HAVE_EXPL@/1/g'                                  \
        -e 's/@HAVE_DECL_EXPL@/1/g'                             \
        -e 's/@GNULIB_EXP2F@/0/g'                               \
        -e 's/@HAVE_DECL_EXP2F@/1/g'                            \
        -e 's/@GNULIB_EXP2@/0/g'                                \
        -e 's/@REPLACE_EXP2@/0/g'                               \
        -e 's/@HAVE_DECL_EXP2@/1/g'                             \
        -e 's/@GNULIB_EXP2L@/0/g'                               \
        -e 's/@REPLACE_EXP2L@/0/g'                              \
        -e 's/@HAVE_DECL_EXP2L@/1/g'                            \
        -e 's/@GNULIB_EXPM1F@/0/g'                              \
        -e 's/@REPLACE_EXPM1F@/0/g'                             \
        -e 's/@HAVE_EXPM1F@/1/g'                                \
        -e 's/@GNULIB_EXPM1@/0/g'                               \
        -e 's/@REPLACE_EXPM1@/0/g'                              \
        -e 's/@HAVE_EXPM1@/1/g'                                 \
        -e 's/@GNULIB_EXPM1L@/0/g'                              \
        -e 's/@HAVE_DECL_EXPM1L@/1/g'                           \
        -e 's/@GNULIB_FABSF@/0/g'                               \
        -e 's/@HAVE_FABSF@/1/g'                                 \
        -e 's/@GNULIB_FABSL@/0/g'                               \
        -e 's/@REPLACE_FABSL@/0/g'                              \
        -e 's/@HAVE_FABSL@/1/g'                                 \
        -e 's/@GNULIB_FLOORF@/0/g'                              \
        -e 's/@REPLACE_FLOORF@/0/g'                             \
        -e 's/@HAVE_DECL_FLOORF@/1/g'                           \
        -e 's/@GNULIB_FLOOR@/0/g'                               \
        -e 's/@REPLACE_FLOOR@/0/g'                              \
        -e 's/@GNULIB_FLOORL@/0/g'                              \
        -e 's/@REPLACE_FLOORL@/0/g'                             \
        -e 's/@HAVE_DECL_FLOORL@/1/g'                           \
        -e 's/@GNULIB_FMAF@/0/g'                                \
        -e 's/@REPLACE_FMAF@/0/g'                               \
        -e 's/@HAVE_FMAF@/1/g'                                  \
        -e 's/@GNULIB_FMA@/0/g'                                 \
        -e 's/@REPLACE_FMA@/0/g'                                \
        -e 's/@HAVE_FMA@/1/g'                                   \
        -e 's/@GNULIB_FMAL@/0/g'                                \
        -e 's/@REPLACE_FMAL@/0/g'                               \
        -e 's/@HAVE_FMAL@/1/g'                                  \
        -e 's/@GNULIB_FMODF@/0/g'                               \
        -e 's/@REPLACE_FMODF@/0/g'                              \
        -e 's/@HAVE_FMODF@/1/g'                                 \
        -e 's/@GNULIB_FMOD@/0/g'                                \
        -e 's/@REPLACE_FMOD@/0/g'                               \
        -e 's/@GNULIB_FMODL@/0/g'                               \
        -e 's/@REPLACE_FMODL@/0/g'                              \
        -e 's/@HAVE_FMODL@/1/g'                                 \
        -e 's/@GNULIB_FREXPF@/0/g'                              \
        -e 's/@REPLACE_FREXPF@/0/g'                             \
        -e 's/@HAVE_FREXPF@/1/g'                                \
        -e 's/@GNULIB_FREXP@/0/g'                               \
        -e 's/@REPLACE_FREXP@/0/g'                              \
        -e 's/@GNULIB_FREXPL@/0/g'                              \
        -e 's/@REPLACE_FREXPL@/0/g'                             \
        -e 's/@HAVE_DECL_FREXPL@/1/g'                           \
        -e 's/@GNULIB_FREXPL@/0/g'                              \
        -e 's/@GNULIB_FREXPL@/0/g'                              \
        -e 's/@REPLACE_FREXPL@/0/g'                             \
        -e 's/@HAVE_DECL_FREXPL@/1/g'                           \
        -e 's/@GNULIB_FREXPL@/0/g'                              \
        -e 's/@GNULIB_HYPOTF@/0/g'                              \
        -e 's/@REPLACE_HYPOTF@/0/g'                             \
        -e 's/@HAVE_HYPOTF@/1/g'                                \
        -e 's/@GNULIB_HYPOT@/0/g'                               \
        -e 's/@REPLACE_HYPOT@/0/g'                              \
        -e 's/@GNULIB_HYPOTL@/0/g'                              \
        -e 's/@REPLACE_HYPOTL@/0/g'                             \
        -e 's/@HAVE_HYPOTL@/1/g'                                \
        -e 's/@GNULIB_ILOGBF@/0/g'                              \
        -e 's/@REPLACE_ILOGBF@/0/g'                             \
        -e 's/@HAVE_ILOGBF@/1/g'                                \
        -e 's/@GNULIB_ILOGB@/0/g'                               \
        -e 's/@REPLACE_ILOGB@/0/g'                              \
        -e 's/@HAVE_ILOGB@/1/g'                                 \
        -e 's/@GNULIB_ILOGBL@/0/g'                              \
        -e 's/@HAVE_ILOGBL@/1/g'                                \
        -e 's/@GNULIB_LDEXPF@/0/g'                              \
        -e 's/@HAVE_LDEXPF@/1/g'                                \
        -e 's/@GNULIB_LDEXPL@/0/g'                              \
        -e 's/@REPLACE_LDEXPL@/0/g'                             \
        -e 's/@HAVE_DECL_LDEXPL@/1/g'                           \
        -e 's/@GNULIB_LDEXPL@/0/g'                              \
        -e 's/@GNULIB_LOGF@/0/g'                                \
        -e 's/@REPLACE_LOGF@/0/g'                               \
        -e 's/@HAVE_LOGF@/1/g'                                  \
        -e 's/@GNULIB_LOG@/0/g'                                 \
        -e 's/@REPLACE_LOG@/0/g'                                \
        -e 's/@GNULIB_LOGL@/0/g'                                \
        -e 's/@REPLACE_LOGL@/0/g'                               \
        -e 's/@HAVE_LOGL@/1/g'                                  \
        -e 's/@HAVE_DECL_LOGL@/1/g'                             \
        -e 's/@GNULIB_LOG10F@/0/g'                              \
        -e 's/@REPLACE_LOG10F@/0/g'                             \
        -e 's/@HAVE_LOG10F@/1/g'                                \
        -e 's/@GNULIB_LOG10@/0/g'                               \
        -e 's/@REPLACE_LOG10@/0/g'                              \
        -e 's/@GNULIB_LOG10L@/0/g'                              \
        -e 's/@REPLACE_LOG10L@/0/g'                             \
        -e 's/@HAVE_LOG10L@/1/g'                                \
        -e 's/@HAVE_DECL_LOG10L@/1/g'                           \
        -e 's/@GNULIB_LOG1PF@/0/g'                              \
        -e 's/@REPLACE_LOG1PF@/0/g'                             \
        -e 's/@HAVE_LOG1PF@/1/g'                                \
        -e 's/@GNULIB_LOG1P@/0/g'                               \
        -e 's/@REPLACE_LOG1P@/0/g'                              \
        -e 's/@HAVE_LOG1P@/1/g'                                 \
        -e 's/@GNULIB_LOG1PL@/0/g'                              \
        -e 's/@REPLACE_LOG1PL@/0/g'                             \
        -e 's/@HAVE_LOG1PL@/1/g'                                \
        -e 's/@GNULIB_LOG2F@/0/g'                               \
        -e 's/@REPLACE_LOG2F@/0/g'                              \
        -e 's/@HAVE_DECL_LOG2F@/1/g'                            \
        -e 's/@GNULIB_LOG2@/0/g'                                \
        -e 's/@REPLACE_LOG2@/0/g'                               \
        -e 's/@HAVE_DECL_LOG2@/1/g'                             \
        -e 's/@GNULIB_LOG2L@/0/g'                               \
        -e 's/@REPLACE_LOG2L@/0/g'                              \
        -e 's/@HAVE_DECL_LOG2L@/1/g'                            \
        -e 's/@GNULIB_LOGBF@/0/g'                               \
        -e 's/@REPLACE_LOGBF@/0/g'                              \
        -e 's/@HAVE_LOGBF@/1/g'                                 \
        -e 's/@GNULIB_LOGB@/0/g'                                \
        -e 's/@REPLACE_LOGB@/0/g'                               \
        -e 's/@HAVE_DECL_LOGB@/1/g'                             \
        -e 's/@GNULIB_LOGBL@/0/g'                               \
        -e 's/@REPLACE_LOGBL@/0/g'                              \
        -e 's/@HAVE_LOGBL@/1/g'                                 \
        -e 's/@GNULIB_MODFF@/0/g'                               \
        -e 's/@REPLACE_MODFF@/0/g'                              \
        -e 's/@HAVE_MODFF@/1/g'                                 \
        -e 's/@GNULIB_MODF@/0/g'                                \
        -e 's/@REPLACE_MODF@/0/g'                               \
        -e 's/@GNULIB_MODFL@/0/g'                               \
        -e 's/@REPLACE_MODFL@/0/g'                              \
        -e 's/@HAVE_MODFL@/1/g'                                 \
        -e 's/@GNULIB_POWF@/0/g'                                \
        -e 's/@HAVE_POWF@/1/g'                                  \
        -e 's/@GNULIB_REMAINDERF@/0/g'                          \
        -e 's/@REPLACE_REMAINDERF@/0/g'                         \
        -e 's/@HAVE_REMAINDERF@/1/g'                            \
        -e 's/@GNULIB_REMAINDER@/0/g'                           \
        -e 's/@REPLACE_REMAINDER@/0/g'                          \
        -e 's/@HAVE_REMAINDER@/1/g'                             \
        -e 's/@HAVE_DECL_REMAINDER@/1/g'                        \
        -e 's/@GNULIB_REMAINDERL@/0/g'                          \
        -e 's/@REPLACE_REMAINDERL@/0/g'                         \
        -e 's/@HAVE_REMAINDERL@/1/g'                            \
        -e 's/@HAVE_DECL_REMAINDERL@/1/g'                       \
        -e 's/@GNULIB_RINTF@/0/g'                               \
        -e 's/@HAVE_DECL_RINTF@/1/g'                            \
        -e 's/@GNULIB_RINT@/0/g'                                \
        -e 's/@HAVE_RINT@/1/g'                                  \
        -e 's/@GNULIB_RINTL@/0/g'                               \
        -e 's/@HAVE_RINTL@/1/g'                                 \
        -e 's/@GNULIB_ROUNDF@/0/g'                              \
        -e 's/@REPLACE_ROUNDF@/0/g'                             \
        -e 's/@HAVE_DECL_ROUNDF@/1/g'                           \
        -e 's/@GNULIB_ROUND@/0/g'                               \
        -e 's/@REPLACE_ROUND@/0/g'                              \
        -e 's/@HAVE_DECL_ROUND@/1/g'                            \
        -e 's/@GNULIB_ROUNDL@/0/g'                              \
        -e 's/@REPLACE_ROUNDL@/0/g'                             \
        -e 's/@HAVE_DECL_ROUNDL@/1/g'                           \
        -e 's/@GNULIB_SINF@/0/g'                                \
        -e 's/@HAVE_SINF@/1/g'                                  \
        -e 's/@GNULIB_SINL@/0/g'                                \
        -e 's/@HAVE_SINL@/1/g'                                  \
        -e 's/@HAVE_DECL_SINL@/1/g'                             \
        -e 's/@GNULIB_SINHF@/0/g'                               \
        -e 's/@HAVE_SINHF@/1/g'                                 \
        -e 's/@GNULIB_SQRTF@/0/g'                               \
        -e 's/@HAVE_SQRTF@/1/g'                                 \
        -e 's/@GNULIB_SQRTL@/0/g'                               \
        -e 's/@REPLACE_SQRTL@/0/g'                              \
        -e 's/@HAVE_SQRTL@/1/g'                                 \
        -e 's/@HAVE_DECL_SQRTL@/1/g'                            \
        -e 's/@GNULIB_TANF@/0/g'                                \
        -e 's/@HAVE_TANF@/1/g'                                  \
        -e 's/@GNULIB_TANL@/0/g'                                \
        -e 's/@HAVE_TANL@/1/g'                                  \
        -e 's/@HAVE_DECL_TANL@/1/g'                             \
        -e 's/@GNULIB_TANHF@/0/g'                               \
        -e 's/@HAVE_TANHF@/1/g'                                 \
        -e 's/@GNULIB_TRUNCF@/0/g'                              \
        -e 's/@REPLACE_TRUNCF@/0/g'                             \
        -e 's/@HAVE_DECL_TRUNCF@/1/g'                           \
        -e 's/@GNULIB_TRUNC@/0/g'                               \
        -e 's/@REPLACE_TRUNC@/0/g'                              \
        -e 's/@HAVE_DECL_TRUNC@/1/g'                            \
        -e 's/@GNULIB_TRUNCL@/0/g'                              \
        -e 's/@REPLACE_TRUNCL@/0/g'                             \
        -e 's/@HAVE_DECL_TRUNCL@/1/g'                           \
        -e 's/@GNULIB_ISFINITE@/0/g'                            \
        -e 's/@REPLACE_ISFINITE@/0/g'                           \
        -e 's/@GNULIB_ISINF@/0/g'                               \
        -e 's/@REPLACE_ISINF@/0/g'                              \
        -e 's/@GNULIB_ISNANF@/0/g'                              \
        -e 's/@HAVE_ISNANF@/1/g'                                \
        -e 's/@GNULIB_ISNAND@/1/g'                              \
        -e 's/@HAVE_ISNAND@/0/g'                                \
        -e 's/@GNULIB_ISNANL@/0/g'                              \
        -e 's/@HAVE_ISNANL@/1/g'                                \
        -e 's/@GNULIB_ISNAN@/0/g'                               \
        -e 's/@REPLACE_ISNAN@/0/g'                              \
        -e 's/@HAVE_ISNANF@/1/g'                                \
        -e 's/@HAVE_ISNAND@/1/g'                                \
        -e 's/@HAVE_ISNANL@/1/g'                                \
        -e 's/@GNULIB_SIGNBIT@/0/g'                             \
        -e 's/@REPLACE_SIGNBIT_USING_GCC@/0/g'                  \
        -e 's/@REPLACE_SIGNBIT@/0/g'                            < math.in.h >> 
math.h
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to