Open GoogleCodeExporter opened 8 years ago
fixing issue by adding "^M" filter inside
iphone-dev/llvm-gcc-4.0-iphone/configure.in
didn't helped (it's not working), the fix proposal was following:
before (line 81): sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
after: sed -e 's/\x0D$//' -e 's,\$,$$,g' <<EOF_SED > conftestsed.out
Original comment by okoko...@gmail.com
on 20 Oct 2009 at 9:31
problem being temporary solved applying filter everywhere found population into
configargs.h file with a help of grep tool:
grep -iRn "cat > configargs.h" /usr/local/iphone-dev/
files affected are probably following two:
/usr/local/iphone-dev/llvm-gcc-4.0-iphone/gcc/configure:12767:cat >
configargs.h <<EOF
/usr/local/iphone-dev/llvm-gcc-4.0-iphone/gcc/configure.ac:1530:cat >
configargs.h <<EOF
fixes were provided in following block of code:
# Double all backslashes and backslash all quotes to turn
# gcc_config_arguments into a C string.
sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
$gcc_config_arguments
EOF
gcc_config_arguments_str=`cat conftest.out`
rm -f conftest.out
cat > configargs.h <<EOF
/* Generated automatically. */
static const char configuration_arguments[] = "$gcc_config_arguments_str";
static const char thread_model[] = "$thread_file";
original was:
sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
fixed with:
sed -e 's/\\/\\\\/g; s/"/\\"/g; s/\x0D//g' <<EOF >conftest.out
Original comment by ole2m...@gmail.com
on 20 Oct 2009 at 4:07
Original issue reported on code.google.com by
okoko...@gmail.com
on 20 Oct 2009 at 9:25Attachments: