[Mono-bugs] [Bug 698446] New: cross build from git fails on "no branch" checkout
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jun 7 03:56:59 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=698446
https://bugzilla.novell.com/show_bug.cgi?id=698446#c0
Summary: cross build from git fails on "no branch" checkout
Classification: Mono
Product: Mono: Runtime
Version: 2.10.x
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: htl10 at users.sourceforge.net
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=433203)
--> (http://bugzilla.novell.com/attachment.cgi?id=433203)
patch to strip "(" and ")" from 'git branch' [which returns '(no branch)' in
this use case]
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101
Firefox/4.0.1
on a "no branch" checkout, e.g. I tried to build from git of the tagged 2.10.2
by doing "git checkout 2.10.2" before running build-mingw32.sh :
-------------------
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/bin/sh ../../libtool --tag=CC --mode=compile
i686-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I../../../mono/metadat
a -I../.. -I../../.. -I../../../mono -I../../../libgc/include
-I../../../eglib/src -I../../eglib/src -DMONO_BINDIR=\"/mono-2.10.2-(no-
3f661d6/bin/\" -DMONO_ASSEMBLIES=\"/mono-2.10.2-(no-3f661d6/lib\"
-DMONO_CFG_DIR=\"/mono-2.10.2-(no-3f661d6/etc\" -DWINVER=0x0500 -D_
WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS
-DFD_SETSIZE=1024 -D__default_codegen__ -DHAVE_BOEHM_GC -DH
AVE_GC_H -DUSE_INCLUDED_LIBGC -DHAVE_GC_GCJ_MALLOC -DHAVE_GC_ENABLE -g -O2
-fno-strict-aliasing -Wdeclaration-after-statement -g -Wall
-Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-
cast-qual -Wwrite-strings -mno-tls-direct-seg-refs -MT
libmonoruntime_la-console-win32.lo -MD -MP -MF .deps/libmonoruntime_la-console-
win32.Tpo -c -o libmonoruntime_la-console-win32.lo `test -f 'console-win32.c'
|| echo '../../../mono/metadata/'`console-win32.c'
make[3]: *** [libmonoruntime_la-console-win32.lo] Error 1
make[3]: Leaving directory
`/media/crypt2/sources-unsorted/mono/build-cross-windows/mono/metadata'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/media/crypt2/sources-unsorted/mono/build-cross-windows/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/media/crypt2/sources-unsorted/mono/build-cross-windows'
make: *** [all] Error 2
------------------------
I found that it is because the build script choked on the "(" in "(no branch)",
which was returned by "git branch" in this use case.
Reproducible: Always
Steps to Reproduce:
1. git checkout 2.10.2
2. build-mingw32.sh
3.
Actual Results:
build fails as above.
Expected Results:
build succeeds.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list