Giter VIP home page Giter VIP logo

Comments (10)

kroening avatar kroening commented on July 17, 2024

Consider invoking it as goto-gcc (note the extra g).

from cbmc.

rod-chapman avatar rod-chapman commented on July 17, 2024

Nope... still fails with:

rodchap@f4d4889dcf6d arrays % goto-gcc --function ctcc_harness -DCBMC -o ar.goto ar.c
/opt/gcc-13.1.0-aarch64/lib/gcc/aarch64-apple-darwin21/13.1.0/include/stddef.h:433:1: error: syntax error before '__float128'
   __float128 __max_align_f128 __attribute__((__aligned__(__alignof(__float128))));
PARSING ERROR

from cbmc.

rod-chapman avatar rod-chapman commented on July 17, 2024

It seems that goto-cc predefines _Float128 but not __float128

The latter is expected by GCC's stddef.h when APPLE , aarch64 are defined and STDC_VERSION >= 201112

from cbmc.

tautschnig avatar tautschnig commented on July 17, 2024

I will try to reproduce - we have support for __float128 conditional on what compiler family and version we believe we are running under. Apparently we are messing something up (possibly because we assume clang when on macOS). I suppose you have GCC 13 installed via brew?

from cbmc.

rod-chapman avatar rod-chapman commented on July 17, 2024

No... it's from here: https://github.com/simonjwright/distributing-gcc/releases/tag/gcc-13.2.0-aarch64
This includes the Ada compiler.

from cbmc.

kroening avatar kroening commented on July 17, 2024

I will try to reproduce - we have support for __float128 conditional on what compiler family and version we believe we are running under. Apparently we are messing something up (possibly because we assume clang when on macOS). I suppose you have GCC 13 installed via brew?

We'll need to enable a few more types when on ARM. GCC has these as well, it's not just clang.

from cbmc.

tautschnig avatar tautschnig commented on July 17, 2024

We'll need to enable a few more types when on ARM. GCC has these as well, it's not just clang.

#8319 fixes __float128; I don't know which other types we might need to add? (__float80 is not supported by GCC it seems.)

from cbmc.

kroening avatar kroening commented on July 17, 2024

#8319 fixes __float128; I don't know which other types we might need to add? (__float80 is not supported by GCC it seems.)

We also need to check __fp16.

from cbmc.

tautschnig avatar tautschnig commented on July 17, 2024

We also need to check __fp16.

Hmm, yes, but that one we haven't yet got any support for. We need to figure out whether we can use the same conditions for enabling it as we do for __bf16.

from cbmc.

tautschnig avatar tautschnig commented on July 17, 2024

__fp16 support will be added by #8323.

from cbmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.