Comments (12)
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.
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.
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.
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.
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.
@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.
#if __has_include(<AvailabilityProhibitedInternal.h>)
#include <AvailabilityProhibitedInternal.h>
#endif
seems they use already a C2X feature
from mir.
I've implemented __has_include
. Could you check it please. Does it work for you?
from mir.
@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.
Here is the file: https://gist.github.com/corona10/14ab2e39bf8a07fc2e62b1a738645107
from mir.
@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.
FYI, the tests are passed on my side (Catalina 10.15.3 Beta (19D62e))
from mir.
Related Issues (20)
- Segfault in `target_get_blk_type` HOT 1
- Segfault in `classify_node` HOT 1
- Segfault in `get_enum_basic_type` HOT 1
- Segfault in `get_enum_basic_type` HOT 1
- heap-buffer-overflow in `def_symbol` HOT 1
- heap-buffer-overflow in `VARR_token_tpush` and `VARR_token_tpop` HOT 3
- Assertion failed: (0), function out_op, file mir2c.c, line 65 HOT 8
- Supplying custom allocation/deallocation routines HOT 2
- Building with zig and failing at runtime on `mir_hash_1`
- Support for system calls? HOT 11
- Issue 361 test case failed HOT 2
- Shebang support for Mir files? HOT 13
- Awk has a syntax error in the benchmarks HOT 16
- Allow MIR text to be mixed in with C API
- Bug in mir-gen-x86_64.c on bbv branch HOT 3
- Add Apple Silicon CI support HOT 2
- Assertion error in 'process_aggregate_arg' for anonymous struct/union HOT 2
- Assertion error in 'get_uptodate_def_insn' relating to division by `sizeof(char)` HOT 3
- Please implement _Thread_local HOT 1
- CMake build broken with 9b7aa03 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mir.