[cfe-dev] Makefile & "make" builds successfully but no executable is generated

Jonathan Roelofs via cfe-dev cfe-dev at lists.llvm.org
Sat Nov 14 08:29:04 PST 2015



On 11/14/15 9:19 AM, Omid Ghenatnevi wrote:
> Hi Jonathan,
>
> the clang/tools/Makefile seems to be autogenerated by cmake and has a
> comment that says not to modify.

The one in src, not the one in the build directory.


Also, please stop replying only to me in your messages... If you don't 
include the list, then nobody else will see your replies, which will 
give them less information to help solve your problem.

> However, when I modify it and add PARALLEL_DIRS = example and then run
> make in my example directory the executable is still not generated.
>
> On Fri, Nov 13, 2015 at 12:01 PM, Jonathan Roelofs
> <jonathan at codesourcery.com <mailto:jonathan at codesourcery.com>> wrote:
>
>
>
>     On 11/13/15 9:59 AM, o.ghenatnevi at gmail.com
>     <mailto:o.ghenatnevi at gmail.com> wrote:
>
>         Ah no I didn't do that, may I ask some guidance on that?
>
>
>     I'd add it to PARALLEL_DIRS unless you know that it needs ARCMT or
>     the static analyzer.
>
>
>     Jon
>
>
>
>         Best Regards,
>
>         Omid Ghenatnevi
>
>
>             On Nov 13, 2015, at 11:46 AM, Jonathan Roelofs
>             <jonathan at codesourcery.com
>             <mailto:jonathan at codesourcery.com>> wrote:
>
>
>
>                 On 11/13/15 9:42 AM, Omid Ghenatnevi via cfe-dev wrote:
>
>                 Hello everyone,
>
>                 When I execute the cmd "make" the build is successful.
>                 However, the
>                 executable is NOT created/generated. Am I doing
>                 something wrong?
>
>                 Below is my makefile in my example directory which is
>                 located in:
>                 static_analysis/build/release/tools/clang/tools/example
>
>                 which contains the Example.cpp file I want to compile
>
>
>                 Makefile:
>
>                 CLANG_LEVEL:= ../..
>
>                 TOOLNAME= example #the name of tool's executable
>
>                 SOURCES:= Example.cpp #the Clang source files you want
>                 to compile
>
>                 include$(CLANG_LEVEL)/../../Makefile.config
>
>                 LINK_COMPONENTS:= $(TARGETS_TO_BUILD)asmparser bitreader
>                 support mc option
>
>                 USEDLIBS= clangFrontend.a clangSerialization.a
>                 clangDriver.a \
>                 clangTooling.a clangParse.a clangSema.a \
>                 clangAnalysis.a clangRewriteFrontend.a clangRewriteCore.a \
>                 clangEdit.a clangAST.a clangLex.a clangBasic.a
>                 include$(CLANG_LEVEL)/Makefile
>
>                 Any help would be greatly appreciated!
>
>
>             Did you tell clang/tools/Makefile about your new directory?
>
>             Jon
>
>
>
>                 _______________________________________________
>                 cfe-dev mailing list
>                 cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>
>                 http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
>             --
>             Jon Roelofs
>             jonathan at codesourcery.com <mailto:jonathan at codesourcery.com>
>             CodeSourcery / Mentor Embedded
>
>
>     --
>     Jon Roelofs
>     jonathan at codesourcery.com <mailto:jonathan at codesourcery.com>
>     CodeSourcery / Mentor Embedded
>
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-dev mailing list