Giter Club home page Giter Club logo

Comments (10)

tautschnig avatar tautschnig commented on August 15, 2024

Could you please attach preprocessed source to this issue? You can obtain these by adding -E to the goto-cc commands.

Edit: Also, please add the s2n-tls commit id you are working off of.

Thank you!

from cbmc.

rod-chapman avatar rod-chapman commented on August 15, 2024

If I run gcc directly on that source file, I get a slightly more detailed error message:

In file included from cbmc_utils.c:16:
cbmc_utils.c: In function ‘assert_rc_decrement_on_evp_pkey_ctx’:
cbmc_utils.c:203:29: error: invalid use of incomplete typedef ‘EVP_PKEY’ {aka ‘struct evp_pkey_st’}
  203 |         assert(storage->pkey->references == storage->pkey_refs - 1);
      |                             ^~

from cbmc.

tautschnig avatar tautschnig commented on August 15, 2024

If I run gcc directly on that source file, I get a slightly more detailed error message:

So this isn’t a goto-cc issue?!

from cbmc.

rod-chapman avatar rod-chapman commented on August 15, 2024

Well... it seems that the compiler upon which goto-cc is built and/or based on seems to matter in some way. Here is the expanded source attached.
cbmc_utils_expanded.c.gz

from cbmc.

tautschnig avatar tautschnig commented on August 15, 2024

cbmc_utils_expanded.c.gz

Is this Linux or macOS? Could you please provide the other one as well?

from cbmc.

rod-chapman avatar rod-chapman commented on August 15, 2024

That one was pre-processed on Linux.

from cbmc.

rod-chapman avatar rod-chapman commented on August 15, 2024

Here it is again, this time expanded with clang 15.0.0 on macOS...
cbmc_utils_expanded_macos.c.gz

from cbmc.

kroening avatar kroening commented on August 15, 2024

goto-gcc simply calls gcc, passing through any arguments, goto-clang calls clang, and so on. We should find a way of clarifying whether an error message is generated by the underlying compiler, or by our own parser/typechecker.

from cbmc.

tautschnig avatar tautschnig commented on August 15, 2024

The difference here is on your Linux system you appear to have OpenSSL's header files installed in the default include search path of the preprocessor (and you don't use -nostdinc). With those header files installed, crypto/s2n_evp.h will bring in /usr/include/openssl/evp.h instead of tests/cbmc/aws-verification-model-for-libcrypto/include/openssl/evp.h (as is the case in your macOS run).

Closing as this doesn't seem an issue on goto-cc's side. Please feel free to reopen with more info if you still think that goto-cc needs to be changed in any way.

from cbmc.

rod-chapman avatar rod-chapman commented on August 15, 2024

Ah... that makes sense. The instructions in the s2n-tls README file tell me to install "libssl-dev" to build s2n-tls on Linux, so that makes sense. Now... I will ask the s2n-tls developers how they handle this case.

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.