Code Monkey home page Code Monkey logo

Comments (12)

vnmakarov avatar vnmakarov commented on July 21, 2024 2

seems they use already a C2X feature

Even faster than GCC. GCC developers submitted the patch to process __hash_include just today https://gcc.gnu.org/ml/gcc-patches/2020-01/msg01220.html

It is a bad practice to make header files which can not be parsed by a bit older C compilers.

from mir.

vnmakarov avatar vnmakarov commented on July 21, 2024 1

I hope that it will help you.
https://gist.github.com/corona10/e6a51162c2d68c081d317b881b890f2c

Thank you. This helped me to understand what is going on. The macro __has_include for c2m is probably not defined and this is translated to the following expression according to C11 standard (undefined macros are changed to 0):

#if 0 (<0.0>)

I'll try to fix the failure on this week.

from mir.

vnmakarov avatar vnmakarov commented on July 21, 2024 1

Thank you again for testing. I have an access to High Sierra machine and Travis I use for testing has no Catalina. Therefore tests on mac machines look ok to me.

I am going to find a Catalina machine and debug this issue. When I fix this, I'll also add GitHub actions (as they use Catalina) machines to check the future changes.

I think it will take 1-2 weeks.

from mir.

vnmakarov avatar vnmakarov commented on July 21, 2024 1

Thank you for informing me. I fixed some wrong memory addressing. Might be it is a reason why the bootstrap started to pass.

I am still having a lot of memory leaks in c2mir. It should be fixed as c2mir might be used as a library. I will be working on it.

from mir.

vnmakarov avatar vnmakarov commented on July 21, 2024

Thank you for reporting. Actually last week I worked on OSX port and solved a lot of problems for this. Currently OSX is passing all tests. You can check CI status from README.md (please see the test badge). The last MacOSX check is on https://travis-ci.com/vnmakarov/mir/jobs/276920083

The warning is ok (you can see such messages on the travis report page). I don't know why the compilation failed for you after the warning. Although it can happen if you use --pedantic flag (#warning is not C standard directive).

The message occurs when GNUC is not defined. It seems to me that xcode system include files were never supposed to be compiled by non gcc/clang compilers. I can not define GNUC for c2m as it does not implement all GCC extensions. I am planning to implement some GCC extensions but not all of them.

I think the failure culprit is wrong preprocessor expression. It saw such messages when I worked on OSX port. I fixed it. May be you are using not the last state of the project. If it is not, please provide me the preprocessor directive in Availability.h on which you have this message. Apparently, I am using older version of Xcode and my Availiability.h file is only 337 lines long.

from mir.

corona10 avatar corona10 commented on July 21, 2024

@vnmakarov Here is the Availiability.h what my system report. :)
I hope that it will help you.
https://gist.github.com/corona10/e6a51162c2d68c081d317b881b890f2c

from mir.

rofl0r avatar rofl0r commented on July 21, 2024
#if __has_include(<AvailabilityProhibitedInternal.h>)
  #include <AvailabilityProhibitedInternal.h>
#endif

seems they use already a C2X feature

from mir.

vnmakarov avatar vnmakarov commented on July 21, 2024

I've implemented __has_include. Could you check it please. Does it work for you?

from mir.

corona10 avatar corona10 commented on July 21, 2024

@vnmakarov Another error occured.

+++++++ C2MIR Bootstrap Test ... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:81:2: warning -- #warning "Unsupported compiler detected"
make: *** [c2mir-bootstrap-test] Segmentation fault: 11

from mir.

corona10 avatar corona10 commented on July 21, 2024

Here is the file: https://gist.github.com/corona10/14ab2e39bf8a07fc2e62b1a738645107

from mir.

corona10 avatar corona10 commented on July 21, 2024

@vnmakarov
Thank you for the response :) I will wait for your new fix!
Until then I am going to read your published code, I am really looking forward this project future.

from mir.

dm1try avatar dm1try commented on July 21, 2024

FYI, the tests are passed on my side (Catalina 10.15.3 Beta (19D62e))
Screen Shot 2020-01-24 at 03 35 19

from mir.

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.