[gdal-dev] GDAL compile error: expected initializer before ‘__attribute_alloc_size__’
Marsh, Chris
chris.marsh at usask.ca
Wed Apr 17 14:32:21 PDT 2019
That's...odd. I don't quite know what happened there, sorry. here is the full error
/cvmfs/soft.computecanada.ca/nix/var/nix/profiles/16.09/include/stdlib.h:471:35<http://soft.computecanada.ca/nix/var/nix/profiles/16.09/include/stdlib.h:471:35>: error: expected initializer before ‘__attribute_alloc_size__’
__THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur;
^~~~~~~~~~~~~~~~~~~~~~~~
I had seen the 'error: expected ‘,’ or ‘;’ before ‘__attribute_alloc_size__’' posts, but this seems to be different.
I take it then that you've never run into this before?
On Wed, Apr 17, 2019 at 3:26 PM Even Rouault <even.rouault at spatialys.com<mailto:even.rouault at spatialys.com>> wrote:
You didn't actually paste the error message itself, but I guess it must be
'error: expected ‘,’ or ‘;’ before ‘__attribute_alloc_size__’' from hits found
by
https://www.google.com/search?q=__attribute_alloc_size__
This error seems to occur in various other contexts. Perhaps something due to
your particular build chain rather than GDAL itself. Of course if you find a
reasonable fix to upstream in GDAL, that'd be welcome.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20190417/6355cfc5/attachment-0001.html>
More information about the gdal-dev
mailing list