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

Hi again,

On 2007-05-30 at 09:50:39 [+0200], Stefano Ceccherini 
<stefano.ceccherini@xxxxxxxxx> wrote:
> 2007/5/30, Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx>:
> 
> Ok, I forgot I had some diffs from Urias, which after applied, made
> this problem go away.
> But the fs_shell still doesn't link, and ld now doesn't say anything useful:
> 
> Link generated/objects/cygwin/lib/libroot_build.so
> Chmod1 generated/objects/cygwin/lib/libroot_build.so
> Link generated/objects/cygwin/x86/release/tools/bfs_shell/bfs_shell
> collect2: ld returned 1 exit status
> 
> cc  -Xlinker --allow-multiple-definition -o
> "generated/objects/cygwin/x86/release/tools/bfs_shell/bfs_shell"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/BlockAllocator.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/BPlusTree.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Attribute.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Debug.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Index.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Inode.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Journal.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Query.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Utility.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/Volume.o"
> "generated/objects/cygwin/x86/release/tools/bfs_shell/kernel_interface.o"
> "generated/objects/cygwin/x86/release/tools/fs_shell/fs_shell.a"
> "generated/objects/cygwin/lib/libroot_build.so" -lsupc++ -lstdc++  ;
> 
> ...failed Link generated/objects/cygwin/x86/release/tools/bfs_shell/bfs_shell 

Have you tried invoking cc manually with an added '-v -save-temps'? That should 
give you the cmdline used for ld (or collect). 
During my own porting efforts, invoking the individual tools manually (and 
fiddling with their cmdline) often helped me to learn more about any such 
problems.

cheers,
        Oliver

Other related posts: