-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lfortran libasr sync #2833
Draft
Pranavchiku
wants to merge
21
commits into
lcompilers:main
Choose a base branch
from
Pranavchiku:lfortran-libasr-sync
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Lfortran libasr sync #2833
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Current status: % ./build1.sh
[...]
[ 81%] Building CXX object src/lpython/CMakeFiles/lpython_lib.dir/pickle.cpp.o
[ 82%] Building CXX object src/lpython/CMakeFiles/lpython_lib.dir/python_serialization.cpp.o
In file included from /Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:35:
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_attribute_eval.h:378:20: error: use of undeclared identifier 'make_SetClear_t'; did you mean 'ASR::make_ListClear_t'?
return make_SetClear_t(al, loc, s);
^~~~~~~~~~~~~~~
ASR::make_ListClear_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:1765:26: note: 'ASR::make_ListClear_t' declared here
static inline asr_t* make_ListClear_t(Allocator &al, const Location &a_loc, expr_t* a_a) {
^
In file included from /Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:35:
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_attribute_eval.h:490:20: error: use of undeclared identifier 'make_DictClear_t'; did you mean 'ASR::make_ListClear_t'?
return make_DictClear_t(al, loc, s);
^~~~~~~~~~~~~~~~
ASR::make_ListClear_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:1765:26: note: 'ASR::make_ListClear_t' declared here
static inline asr_t* make_ListClear_t(Allocator &al, const Location &a_loc, expr_t* a_a) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:575:39: error: no member named 'make_StructType_t_util' in namespace 'LCompilers::ASRUtils'; did you mean 'ASR::make_StructType_t'?
return ASRUtils::TYPE(ASRUtils::make_StructType_t_util(al, loc, sym));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASR::make_StructType_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:4484:26: note: 'ASR::make_StructType_t' declared here
static inline asr_t* make_StructType_t(Allocator &al, const Location &a_loc, symbol_t* a_derived_type) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:844:47: error: no member named 'make_StructType_t_util' in namespace 'LCompilers::ASRUtils'; did you mean 'ASR::make_StructType_t'?
type = ASRUtils::TYPE(ASRUtils::make_StructType_t_util(al, loc, s));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASR::make_StructType_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:4484:26: note: 'ASR::make_StructType_t' declared here
static inline asr_t* make_StructType_t(Allocator &al, const Location &a_loc, symbol_t* a_derived_type) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:1283:71: error: too few arguments to function call, expected 10, have 9
a_type, value, nullptr);
^
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr_utils.h:5996:27: note: 'make_FunctionCall_t_util' declared here
static inline ASR::asr_t* make_FunctionCall_t_util(
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:1303:22: error: no member named 'n_member_functions' in 'LCompilers::ASR::Struct_t'
if ( st->n_member_functions > 0 ) {
~~ ^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:1308:57: error: no member named 'make_StructType_t_util' in namespace 'LCompilers::ASRUtils'; did you mean 'ASR::make_StructType_t'?
ASR::ttype_t* der_type = ASRUtils::TYPE(ASRUtils::make_StructType_t_util(al, loc, stemp));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASR::make_StructType_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:4484:26: note: 'ASR::make_StructType_t' declared here
static inline asr_t* make_StructType_t(Allocator &al, const Location &a_loc, symbol_t* a_derived_type) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:1343:53: error: no member named 'make_StructType_t_util' in namespace 'LCompilers::ASRUtils'; did you mean 'ASR::make_StructType_t'?
ASR::ttype_t* der_type = ASRUtils::TYPE(ASRUtils::make_StructType_t_util(al, loc, stemp));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASR::make_StructType_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:4484:26: note: 'ASR::make_StructType_t' declared here
static inline asr_t* make_StructType_t(Allocator &al, const Location &a_loc, symbol_t* a_derived_type) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:3384:21: error: no member named 'm_member_functions' in 'LCompilers::ASR::Struct_t'
st->m_member_functions = member_fn_names.p;
~~ ^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:3385:21: error: no member named 'n_member_functions' in 'LCompilers::ASR::Struct_t'
st->n_member_functions = member_fn_names.n;
~~ ^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:3416:43: error: no member named 'make_StructType_t_util' in namespace 'LCompilers::ASRUtils'; did you mean 'ASR::make_StructType_t'?
self_var->m_type = ASRUtils::TYPE(ASRUtils::make_StructType_t_util(al,loc, class_sym));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASR::make_StructType_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:4484:26: note: 'ASR::make_StructType_t' declared here
static inline asr_t* make_StructType_t(Allocator &al, const Location &a_loc, symbol_t* a_derived_type) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:4379:29: error: too few arguments to function call, expected 18, have 17
false, false));
^
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:566:26: note: 'make_Variable_t' declared here
static inline asr_t* make_Variable_t(Allocator &al, const Location &a_loc, SymbolTable* a_parent_symtab, char* a_name, char** a_dependencies, size_t n_dependencies, intentType a_intent, expr_t* a_symbolic_value, expr_t* a_value, storage_typeType a_storage, ttype_t* a_type, symbol_t* a_type_declaration, abiType a_abi, accessType a_access, presenceType a_presence, bool a_value_attr, bool a_target_attr, bool a_contiguous_attr) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:4398:29: error: too few arguments to function call, expected 18, have 17
false, false);
^
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:566:26: note: 'make_Variable_t' declared here
static inline asr_t* make_Variable_t(Allocator &al, const Location &a_loc, SymbolTable* a_parent_symtab, char* a_name, char** a_dependencies, size_t n_dependencies, intentType a_intent, expr_t* a_symbolic_value, expr_t* a_value, storage_typeType a_storage, ttype_t* a_type, symbol_t* a_type_declaration, abiType a_abi, accessType a_access, presenceType a_presence, bool a_value_attr, bool a_target_attr, bool a_contiguous_attr) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:4616:42: error: too few arguments to function call, expected 18, have 17
value_attr, false);
^
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:566:26: note: 'make_Variable_t' declared here
static inline asr_t* make_Variable_t(Allocator &al, const Location &a_loc, SymbolTable* a_parent_symtab, char* a_name, char** a_dependencies, size_t n_dependencies, intentType a_intent, expr_t* a_symbolic_value, expr_t* a_value, storage_typeType a_storage, ttype_t* a_type, symbol_t* a_type_declaration, abiType a_abi, accessType a_access, presenceType a_presence, bool a_value_attr, bool a_target_attr, bool a_contiguous_attr) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:4660:62: error: too few arguments to function call, expected 18, have 17
ASR::presenceType::Required, false, false);
^
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:566:26: note: 'make_Variable_t' declared here
static inline asr_t* make_Variable_t(Allocator &al, const Location &a_loc, SymbolTable* a_parent_symtab, char* a_name, char** a_dependencies, size_t n_dependencies, intentType a_intent, expr_t* a_symbolic_value, expr_t* a_value, storage_typeType a_storage, ttype_t* a_type, symbol_t* a_type_declaration, abiType a_abi, accessType a_access, presenceType a_presence, bool a_value_attr, bool a_target_attr, bool a_contiguous_attr) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:4998:68: error: too few arguments to function call, expected 18, have 17
s_access, s_presence, value_attr, false);
^
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:566:26: note: 'make_Variable_t' declared here
static inline asr_t* make_Variable_t(Allocator &al, const Location &a_loc, SymbolTable* a_parent_symtab, char* a_name, char** a_dependencies, size_t n_dependencies, intentType a_intent, expr_t* a_symbolic_value, expr_t* a_value, storage_typeType a_storage, ttype_t* a_type, symbol_t* a_type_declaration, abiType a_abi, accessType a_access, presenceType a_presence, bool a_value_attr, bool a_target_attr, bool a_contiguous_attr) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:5248:68: error: no member named 'make_StructType_t_util' in namespace 'LCompilers::ASRUtils'; did you mean 'ASR::make_StructType_t'?
ASR::ttype_t* target_type = ASRUtils::TYPE(ASRUtils::make_StructType_t_util(al,loc,parent_sym));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASR::make_StructType_t
/Users/pranavchiku/repos/lpython/libasr/src/libasr/../libasr/asr.h:4484:26: note: 'ASR::make_StructType_t' declared here
static inline asr_t* make_StructType_t(Allocator &al, const Location &a_loc, symbol_t* a_derived_type) {
^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:5395:68: error: no member named 'm_is_cstruct' in 'LCompilers::ASR::StructType_t'
!ASR::down_cast<ASR::StructType_t>((var->m_type))->m_is_cstruct ) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/pranavchiku/repos/lpython/src/lpython/semantics/python_ast_to_asr.cpp:5676:70: error: no member named 'm_is_cstruct' in 'LCompilers::ASR::StructType_t'
!ASR::down_cast<ASR::StructType_t>((v->m_type))->m_is_cstruct &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/lpython/CMakeFiles/lpython_lib.dir/semantics/python_ast_to_asr.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/lpython/CMakeFiles/lpython_lib.dir/all] Error 2
make: *** [all] Error 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.