[llvm-dev] Building compiler front-end from GitHub source

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[llvm-dev] Building compiler front-end from GitHub source

Gerolf Hoflehner via llvm-dev
Hi there ...

I tried to build an compiler front-end for the m-language on top of LLVM from [this](https://github.com/f-akazawa/mlang) GitHub repo.
The build went through but no binaries for the specific front-end where generated.

I've tried it this way:
```
# source directory
LLVM_ROOT=$(pwd)
# pull in llvm sources
svn co http://llvm.org/svn/llvm-project/llvm/branches/release_31 llvm
# pull in clang
cd llvm/tools || exit $?
svn co http://llvm.org/svn/llvm-project/cfe/branches/release_31 clang
# pull in mlang
git clone https://github.com/f-akazawa/mlang.git
cd "$LLVM_ROOT" || exit $?
mkdir build && cd build || exit $?
"$LLVM_ROOT"/llvm/configure --enable-optimized --enable-targets="host-only"
make
make check-all
```
Anyone an idea what i'am missing?

PS: I've also tried it on the llvm irc node, but there's no one responding.

Thank you for your time and best regards,

Marc
_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply | Threaded
Open this post in threaded view
|

Re: [llvm-dev] Building compiler front-end from GitHub source

Gerolf Hoflehner via llvm-dev
Exactly what does "make" and "make check-all" produce as output? I'm not at all familiar with that concept, but the overall build script is similar to what my Pascal compiler does (aside from using git rather than SVN to fetch the llvm and clang sources)... You may be missing some pre-requisit, or have too new of something?

--
Mats

On 12 June 2017 at 14:50, Ludwig, Marc via llvm-dev <[hidden email]> wrote:
Hi there ...

I tried to build an compiler front-end for the m-language on top of LLVM from [this](https://github.com/f-akazawa/mlang) GitHub repo.
The build went through but no binaries for the specific front-end where generated.

I've tried it this way:
```
# source directory
LLVM_ROOT=$(pwd)
# pull in llvm sources
svn co http://llvm.org/svn/llvm-project/llvm/branches/release_31 llvm
# pull in clang
cd llvm/tools || exit $?
svn co http://llvm.org/svn/llvm-project/cfe/branches/release_31 clang
# pull in mlang
git clone https://github.com/f-akazawa/mlang.git
cd "$LLVM_ROOT" || exit $?
mkdir build && cd build || exit $?
"$LLVM_ROOT"/llvm/configure --enable-optimized --enable-targets="host-only"
make
make check-all
```
Anyone an idea what i'am missing?

PS: I've also tried it on the llvm irc node, but there's no one responding.

Thank you for your time and best regards,

Marc
_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


_______________________________________________
LLVM Developers mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev