[LLVMbugs] [Bug 14313] New: Custom project configuration error
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Nov 10 11:37:28 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14313
Bug #: 14313
Summary: Custom project configuration error
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: llvm-config
AssignedTo: unassignedbugs at nondot.org
ReportedBy: wojtek.danilo at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
According to http://llvm.org/docs/Projects.html setting custom project based on
LLVM should be easy, but it does not. The bundled makefiles and llvm-config
does not work properly.
STEPS TO REPRODUCE:
1) compile LLVM as described here:
http://llvm.org/docs/GettingStarted.html#getting-started
lets LLVM src folder = $LLVMSRC
2) cd $LLVMSRC/projects
cp -R sample sample2
3) cd sample2/tools/sample
4) add to Makefile (before include $(LEVEL)/Makefile.common) following line:
LINK_COMPONENTS = all
5) cd $LLVMSRC/projects/sample2
6) mkdir build
7) cd build
8) ../configure (what is strange i see the first line of configure as:
"llvm-config .... no" - it is related to this bug)
9) make VERBOSE=1
as a result we should get our porgram compiled, but we get error, that
llvm-config could not be found. If I type llvm-config in terminal it works.
full verbose output:
make VERBOSE=1
for dir in lib tools; do \
if ([ ! -f $dir/Makefile ] || \
command test $dir/Makefile -ot
/home/wdanilo/dev/llvm/src/projects/sample2/$dir/Makefile ); then \
/home/wdanilo/dev/llvm/src/projects/sample2/build/../autoconf/mkinstalldirs
$dir; \
/usr/bin/cp /home/wdanilo/dev/llvm/src/projects/sample2/$dir/Makefile
$dir/Makefile; \
fi; \
(make -C $dir all ) || exit 1; \
done
make[1]: Entering directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/lib'
for dir in sample; do \
if ([ ! -f $dir/Makefile ] || \
command test $dir/Makefile -ot
/home/wdanilo/dev/llvm/src/projects/sample2/lib/$dir/Makefile ); then \
/home/wdanilo/dev/llvm/src/projects/sample2/build/../autoconf/mkinstalldirs
$dir; \
/usr/bin/cp /home/wdanilo/dev/llvm/src/projects/sample2/lib/$dir/Makefile
$dir/Makefile; \
fi; \
(make -C $dir all ) || exit 1; \
done
make[2]: Entering directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/lib/sample'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/lib/sample'
make[1]: Leaving directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/lib'
make[1]: Entering directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/tools'
for dir in sample; do \
if ([ ! -f $dir/Makefile ] || \
command test $dir/Makefile -ot
/home/wdanilo/dev/llvm/src/projects/sample2/tools/$dir/Makefile ); then \
/home/wdanilo/dev/llvm/src/projects/sample2/build/../autoconf/mkinstalldirs
$dir; \
/usr/bin/cp /home/wdanilo/dev/llvm/src/projects/sample2/tools/$dir/Makefile
$dir/Makefile; \
fi; \
(make -C $dir all ) || exit 1; \
done
/bin/sh: /home/wdanilo/dev/llvm/src/projects/Debug+Asserts/bin/llvm-config: No
such file or directory
make[2]: Entering directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/tools/sample'
/home/wdanilo/dev/llvm/src/projects/sample2/build/../Makefile.llvm.rules:963:
*** llvm-config --libs failed. Stop.
make[2]: Leaving directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/tools/sample'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/home/wdanilo/dev/llvm/src/projects/sample2/build/tools'
make: *** [all] Error 1
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list