[haiku-development] Re: building under Cygwin (windows)

Hi Stefano,

On 2007-05-30 at 08:43:05 [+0200], Stefano Ceccherini 
<stefano.ceccherini@xxxxxxxxx> wrote:
> I'm trying (for the nth time) to build haiku on cygwin. This time I
> got much more far than the usual (I managed to build the cross tools
> (gcc 2.95.3)), but now I came to a blocker:
> 
> InitScript1 generated/haiku.image-init-vars
> Archive generated/objects/cygwin/x86/release/tools/fs_shell/fs_shell.a
> ar: creating generated/objects/cygwin/x86/release/tools/fs_shell/fs_shell.a
> Ranlib generated/objects/cygwin/x86/release/tools/fs_shell/fs_shell.a
> Link generated/objects/cygwin/x86/release/tools/bfs_shell/bfs_shell
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/libsupc++.a(new_opv.o):(.rdata$_ZTISt9bad_al
> loc[typeinfo
> for std::bad_alloc]+0x0): multiple definition of `typeinfo for
> std::bad_alloc'
> generated/objects/cygwin/lib/libroot_build.so:fake:(.rdata+0x654): first 
> defined
>  here 

[ ... ]

> Any idea about what could be wrong ?

It seems that cygwin's linker does not allow multiple instances of the same 
symbol, probably due to existing binary format rules on Windows. 

Could you please try to invoke the linker command manually and add '-z muldefs' 
to it? I am not even sure the cygwin linker supports that option, but if it 
does work this way, it could be possible to add this option to the build of 
host-tools on the cygwin platform...

cheers,
        Oliver

Other related posts: