Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: KinoSearch Installation errors

by Anonymous Monk
on Mar 29, 2011 at 09:19 UTC ( [id://896121]=note: print w/replies, xml ) Need Help??


in reply to Re^4: KinoSearch Installation errors
in thread KinoSearch Installation errors

I get the same errors as OP with latest mingw
$ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrap +per.exe Target: mingw32 Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,f +ortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable- +shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-d +ebug --enable-version-specific-runtime-libs --disable-werror --build= +mingw32 --prefix=/mingw Thread model: win32 gcc version 4.5.2 (GCC)
And yes, I have
C:\MinGW\include\dirent.h C:\MinGW\share\libtool\libltdl\lt__dirent.c C:\MinGW\share\libtool\libltdl\libltdl\lt__dirent.h

I also get a bunch of these warnings

warning: incompatible implicit declaration of built-in function 'alloc +a'
which seems to be related to Richard Henderson - Re: Fix implicit declaration warnings for alloca in target files
On Thu, Sep 16, 2004 at 08:55:50AM -0400, Kaveh R. Ghazi wrote: > +/* GCC always provides __builtin_alloca(x). */ > +#ifndef alloca > +#define alloca(x) __builtin_alloca(x) > +#endif Should be #undef, not #ifndef.

Replies are listed 'Best First'.
Re^6: KinoSearch Installation errors
by creamygoodness (Curate) on Mar 29, 2011 at 10:41 UTC

    The alloca issue may be addressed by this patch, which requires a full rebuild (perl Build realclean; perl Build.PL; perl Build test):

    Index: charmonizer/src/Charmonizer/Probe/Memory.c =================================================================== --- charmonizer/src/Charmonizer/Probe/Memory.c (revision 6525) +++ charmonizer/src/Charmonizer/Probe/Memory.c (revision 6526) @@ -72,7 +72,7 @@ } /* Windows. */ - if (!has_alloca || has_builtin_alloca) { + if (!(has_alloca || has_builtin_alloca)) { sprintf(code_buf, alloca_code, "malloc.h", "alloca"); if (CC_test_compile(code_buf, strlen(code_buf))) { has_malloc_h = true; @@ -81,7 +81,7 @@ ConfWriter_append_conf("#define chy_alloca alloca\n"); } } - if (!has_alloca || has_builtin_alloca) { + if (!(has_alloca || has_builtin_alloca)) { sprintf(code_buf, alloca_code, "malloc.h", "_alloca"); if (CC_test_compile(code_buf, strlen(code_buf))) { has_malloc_h = true;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://896121]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-03-29 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found