kburtch / SparForte

Bourne shell, template engine, scripting language reliable, scalable projects. Based a ISO standard proven effective for large, mission-critical projects, SparForte is designed for fast development while, at the same time, providing easier designing, maintenance and bug removal. About 130.000 lines of code.
https://www.sparforte.com
GNU General Public License v2.0
50 stars 6 forks source link

BDB compile error #21

Closed qunying closed 2 years ago

qunying commented 2 years ago

Compiled under Slackware64, with gcc 11.2.0 (SparForte 2.4.1) Tested with main trunk, still has the same error.

Making Berkeley DB Support

gmake -C bdb gmake[2]: Entering directory '/tmp/slackAda/SparForte-2.4.1/src/bdb' gcc -DBDB4 -o gen_constants -Wall -fstack-protector -O1 -D_FORTIFY_SOURCE=2 gen_constants.c gcc -O3 -DBDB4 -Wall -fstack-protector -O1 -D_FORTIFY_SOURCE=2 -c c_bdb.c ./gen_constants > bdb_constants.ads gnatmake -c -gnatVaep -gnateEeAeEeF db.adb gcc -c -gnatVaep -gnateEeAeEeF db.adb db.adb:69:58: prefix of "overlaps_storage" attribute must be object

kburtch commented 2 years ago

overlaps_storage attribute is not used in this file or anywhere else in SparForte. I cannot duplicate this issue on Mint 20.2, Debian 11.1 or Red Hat 7.

Perhaps it is a gcc 11.2 bug. I'm not sure how to address it as the attribute is not in the source code.

qunying commented 2 years ago

According to https://www.reddit.com/r/ada/comments/gp8usy/error_prefix_of_overlaps_storage_attribute_must/

If I remove "eA" from -gnateEeAeEeF, it compiles without problem.

kburtch commented 2 years ago

option removed and change pushed. a comment added that this is likely a gcc 11 issue.