GithubHelp home page GithubHelp logo

Compiling jar with aura fails about aura HOT 10 CLOSED

Zubnix avatar Zubnix commented on July 24, 2024
Compiling jar with aura fails

from aura.

Comments (10)

Zubnix avatar Zubnix commented on July 24, 2024

when trying to compile the 'llvm' native build, using the provided 'build.sh', I get the following error:

[ 55%] Performing patch step for 'extllvm'
patching file lib/DebugInfo/DWARFContext.cpp
patching file lib/CodeGen/LexicalScopes.cpp
patching file lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patching file lib/CodeGen/AsmPrinter/AsmPrinter.cpp
patching file lib/Target/AArch64/AArch64FrameLowering.cpp
patching file lib/Target/ARM/ARMFrameLowering.cpp
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/tools/clang/tools/libclang/CMakeLists.txt b/tools/clang/tools/libclang/CMakeLists.txt
|index f1c3f4c..92390be 100644
|--- a/tools/clang/tools/libclang/CMakeLists.txt
|+++ b/tools/clang/tools/libclang/CMakeLists.txt
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
CMakeFiles/extllvm.dir/build.make:98: recipe for target 'extllvm-prefix/src/extllvm-stamp/extllvm-patch' failed
make[2]: *** [extllvm-prefix/src/extllvm-stamp/extllvm-patch] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/extllvm.dir/all' failed
make[1]: *** [CMakeFiles/extllvm.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
linux-x86_64 build failed

Perhaps it is related?

from aura.

ashleyj avatar ashleyj commented on July 24, 2024

I built this a few hours ago on centos

Scanning dependencies of target extllvm
[ 47%] Creating directories for 'extllvm'
[ 52%] Performing download step for 'extllvm'
[ 57%] Performing patch step for 'extllvm'
patching file lib/DebugInfo/DWARFContext.cpp
patching file lib/CodeGen/LexicalScopes.cpp
patching file lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patching file lib/CodeGen/AsmPrinter/AsmPrinter.cpp
patching file lib/Target/AArch64/AArch64FrameLowering.cpp
patching file lib/Target/ARM/ARMFrameLowering.cpp
patching file tools/clang/tools/libclang/CMakeLists.txt
[ 63%] No update step for 'extllvm'

Only thing I can think of is for some reason libclang/CMakeLists.txt file doesn't exit

$ find . -name CMakeLists.txt | grep libclang
./extclang/tools/libclang/CMakeLists.txt
./extclang/unittests/libclang/CMakeLists.txt
./target.llvm/build/linux-x86_64/extclang-prefix/src/extclang/tools/libclang/CMakeLists.txt
./target.llvm/build/linux-x86_64/extclang-prefix/src/extclang/unittests/libclang/CMakeLists.txt

Can you see it there?

from aura.

Zubnix avatar Zubnix commented on July 24, 2024

yeah looks like it's there:

zubzub@localhost ~/git/aura $ find . -name CMakeLists.txt | grep libclang
./llvm/target.llvm/build/linux-x86_64/extclang-prefix/src/extclang/tools/libclang/CMakeLists.txt
./llvm/target.llvm/build/linux-x86_64/extclang-prefix/src/extclang/unittests/libclang/CMakeLists.txt
./llvm/extclang/tools/libclang/CMakeLists.txt
./llvm/extclang/unittests/libclang/CMakeLists.txt

What patch & cmake version do you use? GNU patch 2.7.5 & cmake version 3.4.3 on this machine.

from aura.

ashleyj avatar ashleyj commented on July 24, 2024

cmake 2.8.11 on centos
Patch version: GNU patch 2.7.1

from aura.

ashleyj avatar ashleyj commented on July 24, 2024

Doing some googling looks like there is/was a bug with 'patch' not following symm links -- could be related to that

from aura.

Zubnix avatar Zubnix commented on July 24, 2024

A quick first investigation also makes me suspect that to be the problem.

from aura.

Zubnix avatar Zubnix commented on July 24, 2024

any patch version > 2.7.3 fails (so that means 2.7.4 & 2.7.5). Since 2.7.4 patch refuses to follow symlinks of directories. I advice including it in the wiki :)

from aura.

Zubnix avatar Zubnix commented on July 24, 2024

using 2.7.3 seems to fix the original issue. however I do seem to get an error pretty far on during compilation. (not compatible libxml2 found). Are you willing to provide the info (dependencies) required to build the aura/robovm llvm to the wiki as well?

from aura.

ashleyj avatar ashleyj commented on July 24, 2024

I've added a list of deps I've identified here: https://github.com/ashleyj/aura/wiki/Compiling-Aura
If you come across any I've missed, let me know.

from aura.

Zubnix avatar Zubnix commented on July 24, 2024

I was able to fix the libxml2 issue by installing a multilib compatible variant (32 & 64bit x86 ABI). Maybe other distro do this by default (I had to explicitly tell gentoo to enable 32 bit ABI for libxml2).

I did not need to install anything specifically to make the compilation succeed so I can not comment if the dependency list is complete or not.

from aura.

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.