Code Monkey home page Code Monkey logo

amrdeveloper / amun Goto Github PK

View Code? Open in Web Editor NEW
60.0 60.0 3.0 2.3 MB

A Statically typed, compiled general purpose low level programming language built using C++ and LLVM Infrastructure framework designed to be simple and fast

Home Page: https://amun-lang.github.io/docs/

License: MIT License

CMake 0.33% C++ 99.04% Python 0.63%
compiler cpp language llvm low-level-programming programming-language static-type-system system-programming type-inference

amun's People

Contributors

amrdeveloper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

amun's Issues

Typo in repository description

A Statically typed, compiled general purpose low level programming language built using C++ and LLVM Infrastructure framework designed to be (((smiple))) and fast

Can't build (macOS)

Is my C++ compiler the wrong version maybe?

build$ cmake ..
-- The C compiler identification is AppleClang 14.0.0.14000029
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libffi.tbd  
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libcurses.tbd  
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libz.tbd (found version "1.2.11")  
-- Found zstd: /opt/homebrew/lib/libzstd.dylib  
-- Found LibXml2: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/lib/libxml2.tbd (found version "2.9.4") 
-- Found LLVM 16.0.4
-- Using LLVMConfig.cmake in: /opt/homebrew/opt/llvm@16/lib/cmake/llvm
-- Configuring done (4.5s)
-- Generating done (0.0s)
-- Build files have been written to: /Users/ryanjoseph/Downloads/Amun-master/build
build$ make
[  5%] Building CXX object CMakeFiles/amun.dir/src/amun_alias_table.cpp.o
[ 10%] Building CXX object CMakeFiles/amun.dir/src/amun_basic.cpp.o
[ 15%] Building CXX object CMakeFiles/amun.dir/src/amun_command.cpp.o
[ 21%] Building CXX object CMakeFiles/amun.dir/src/amun_compiler.cpp.o
In file included from /Users/ryanjoseph/Downloads/Amun-master/src/amun_compiler.cpp:4:
In file included from /Users/ryanjoseph/Downloads/Amun-master/src/../include/amun_llvm_backend.hpp:6:
/Users/ryanjoseph/Downloads/Amun-master/include/amun_llvm_builder.hpp:57:53: warning: 'getPointerElementType' is deprecated: Deprecated without replacement, see https://llvm.org/docs/OpaquePointers.html for context and migration instructions [-Wdeprecated-declarations]
    auto pointer_element_type = pointer->getType()->getPointerElementType();
                                                    ^
/opt/homebrew/opt/llvm@16/include/llvm/IR/Type.h:406:5: note: 'getPointerElementType' has been explicitly marked deprecated here
  [[deprecated("Deprecated without replacement, see "
    ^
/Users/ryanjoseph/Downloads/Amun-master/src/amun_compiler.cpp:94:15: error: no template named 'Optional' in namespace 'llvm'; did you mean 'std::optional'?
    auto rm = llvm::Optional<llvm::Reloc::Model>();
              ^~~~~~~~~~~~~~
              std::optional
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/optional:590:7: note: 'std::optional' declared here
class optional
      ^
/Users/ryanjoseph/Downloads/Amun-master/src/amun_compiler.cpp:173:15: error: no template named 'Optional' in namespace 'llvm'; did you mean 'std::optional'?
    auto rm = llvm::Optional<llvm::Reloc::Model>();
              ^~~~~~~~~~~~~~
              std::optional
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/optional:590:7: note: 'std::optional' declared here
class optional
      ^
1 warning and 2 errors generated.
make[2]: *** [CMakeFiles/amun.dir/src/amun_compiler.cpp.o] Error 1
make[1]: *** [CMakeFiles/amun.dir/all] Error 2
make: *** [all] Error 2
build$ 

Compiler is unable to compile samples

Platform

  • ISA: ARM64
  • CPU: Apple M1 Pro
  • OS: Ventura 13.1 (22C65)
  • LLVM: 14.0.6_1

Description

When attempting to compile the samples, the compiler would spit outCan't create output file Undefined error: 0 for all files it's trying to compile. It seems like it is unable to write to output.o for some reason. (Message is generated here: amun_compiler.cpp, line 72; this commit's file tree 85457f4)

Unsuccessful attempts to fix the issue

  • Replaced OF_None with OF_Append
  • Replaced OpenFlags with FileAccess value of FA_Write
  • chmod'd Amun compiler binary (777)
  • chmod'd Amun compiler directory (777, recursively)

Reproduction

  • Clone Amun repository
git clone https://github.com/amrdeveloper/amun.git
  • Follow build instructions
cd amun
mkdir build
cd build
cmake ..
make
  • Try compiling samples
python scripts/compile_samples.py

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.