[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



           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

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_
-DFD_SETSIZE=1024 -D__default_codegen__ -DHAVE_BOEHM_GC -DH
-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
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
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
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