harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hindess <mark.hind...@googlemail.com>
Subject Re: [classlib][build] build failed
Date Tue, 05 Dec 2006 22:55:33 GMT

On 5 December 2006 at 13:47, "Geir Magnusson Jr." <geir@pobox.com> wrote:
>
> For cases like this, when you say "should be fixed now", could you
> please report to all of us what happened (the cause) and how you fixed
> it?

For the record, I caused it.  I changed:

  #include <malloc.h>

to:

  #include <stdlib.h>

The latter is more correct/portable.  (The latter is found in the linux
malloc(3) man page and using the former causes an error on FreeBSD.)

I tested on Linux and Oliver confirmed a simple test case worked on
Windows.

Unfortunately my test case was too simple - aren't they always - and
<stdlib.h> on windows didn't define a required function.

Alexey reverted the change for that one file, which should be okay since
it's windows only and portability is less crucial (than for example the
unix or shared code).

Regards,
 Mark.

> Alexey Petrenko wrote:
> > Should be fixed now.
> > 
> > SY, Alexey
> > 
> > 2006/12/5, Alexey Petrenko <alexey.a.petrenko@gmail.com>:
> >> I'll take a look.
> >>
> >> 2006/12/5, Vladimir Ivanov <ivavladimir@gmail.com>:
> >> > The CC on the WinXP report the problem of compilation. Could somebody
> >> > reproduce/fix it?
> >> >  Thanks, Vladimir
> >> >
> >> > <...>
> >> >    [exec]      [exec]         cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
> >> > -nologo -FIsehmap.h -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WIN95
> >> > -D_WIN32_WINDOWS=0x0400 /D
> >> > IN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Ogityb1 -WX -GF -Gs 
> >> -MD -Zi
> >> > -Zm400  -D_DLL -D_MT -DWIN32 -D_WIN32_WINNT=0x0400 -D_WINSOCKAPI_
> >> > -DWINVER=0x0400
> >> > C:\cc.harmony\trunk\cc\projects\classlib\trunk\deploy\include
> >> > /IC:\cc.harmony\trunk\cc\projects\classlib\trunk\deploy\jdk\include /I.
> >> > -DHYPORT_LIBRARY_DEFINE
> >> > ..\shared\ -Fohysignal.obj hysignal.c
> >> >    [exec]      [exec] hysignal.c
> >> >    [exec]      [exec]         cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
> >> > -nologo -FIsehmap.h -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WIN95
> >> > -D_WIN32_WINDOWS=0x0400 /D
> >> > IN32_DCOM -D_WIN32_IE=0x0500 -DWINVER=0x0400 -Ogityb1 -WX -GF -Gs 
> >> -MD -Zi
> >> > -Zm400  -D_DLL -D_MT -DWIN32 -D_WIN32_WINNT=0x0400 -D_WINSOCKAPI_
> >> > -DWINVER=0x0400
> >> > C:\cc.harmony\trunk\cc\projects\classlib\trunk\deploy\include
> >> > /IC:\cc.harmony\trunk\cc\projects\classlib\trunk\deploy\jdk\include /I.
> >> > -DHYPORT_LIBRARY_DEFINE
> >> > ..\shared\ -Fohysl.obj hysl.c
> >> >    [exec]      [exec] hysl.c
> >> >    [exec]      [exec] hysl.c(274) : error C2220: warning treated as 
> >> error -
> >> > no object file generated
> >> >    [exec]      [exec] hysl.c(274) : warning C4013: 'alloca' undefined;
> >> > assuming extern returning int
> >> >    [exec]      [exec] NMAKE : fatal error U1077: 'cl' : return code 
> >> '0x2'
> >> >    [exec]      [exec] Stop.
> >> >
> >> >    [exec] BUILD FAILED
> >> >    [exec] 
> >> C:\cc.harmony\trunk\cc\projects\classlib\trunk\build.xml:146: The
> >> > following error occurred while executing this line:
> >> >    [exec] C:\cc.harmony\trunk\cc\projects\classlib\trunk\make\build-
> >> > native.xml:68: The following error occurred while executing this line:
> >> >    [exec]
> >> > 
> >> C:\cc.harmony\trunk\cc\projects\classlib\trunk\modules\portlib\build.xml:8
> 9: 
> >>
> >> > The following error occurred while executing this line:
> >> >    [exec]
> >> > 
> >> C:\cc.harmony\trunk\cc\projects\classlib\trunk\make\properties.xml:298: 
> >> exec
> >> > returned: 2
> >> >
> >> >
> >>
> 



Mime
View raw message