Missing `alloca` symbol - help?

Ken Brown kbrown@cornell.edu
Tue Oct 16 02:26:00 GMT 2018


On 10/15/2018 9:20 PM, Murray Christopherson wrote:
> I'm not certain this is a problem with Cygwin, but I am unable to find any
> issue by looking over the project in question, so I thought I'd ask. Is
> this an obvious bug, either in Cygwin or the project itself?
> [...]
> # Observed result
> Fails to install. Particularly, the error output makes multiple mentions of
> `undefined reference to `alloca'` during linking (full error log at
> https://github.com/theacodes/cmarkgfm/issues/13).
> 
> # Notes
> As far as I can tell, `alloca` is a standard Unix function (though
> deprecated). Also, in Cygwin, `/usr/includes/alloca/h` exists, suggesting
> the function _should_ exist to be linked without further packages?

alloca is defined in /usr/include/alloca.h as a macro expanding to 
__builtin_alloca.  The linking error you report suggests that there's a missing 
"#include <alloca.h>" in the source code that's being compiled.  This is also 
confirmed by the gcc warnings in your full log.

Ken
 ТÒÐÐ¥&ö&ÆVÒ&W÷'G3¢‡GG¢òö7–wv–âæ6öÒ÷&ö&ÆV×2æ‡FÖÀФd¢‡GG¢òö7–wv–âæ6öÒöfðФFö7VÖVçFF–ö㢇GG¢òö7–wv–âæ6öÒöFö72æ‡FÖÀÐ¥Vç7V'67&–&R–æfó¢‡GG¢òö7–wv–âæ6öÒöÖÂò7Vç7V'67&–&R×6–×ÆPРÐ


More information about the Cygwin mailing list