Hi Stéphane,
On Fri, Oct 18, 2013 at 12:31 AM, Steven Yi <[email protected]> wrote:
> I just tried a change to allow overriding of LLVM_CLANG (git diff
> below). This just does an ifndef.
>
> +ifndef LLVM_CLANG
> LLVM_CLANG = $(shell $(LLVM_CONFIG) --prefix)/bin/clang++
> +endif
Just for the record: I'm also running into the same kind of
compilation problem with the latest faust2 from git, on both Arch
Linux and Ubuntu. There is no $llvmprefix/bin/clang++, neither in
upstream nor in packages from common Linux distributions. It's just
/usr/bin/clang++ or /usr/local/bin/clang++. I bet that it's that way
on virtually every Un*x system which has clang installed.
It would be nice if compiler/Makefile.unix could be corrected so that
it will work out of the box on the majority of systems. I understand
your concerns about using the right clang++ version to compile the
bitcode, but this is not the right way to do it IMHO, since it breaks
compilation for most people. Simply tell people to install the right
clang version or set up their path so that the right clang version is
found when compiling stuff.
BTW, Steven, I don't see why it should be necessary to add the ifndef
if all you want to do is override the LLVM_CLANG variable, you can do
by invoking 'make' with something like `make LLVM_CLANG=clang++`, or
am I missing something here?
Anyway, if I run `make LLVM_CLANG=clang++` then on Linux (both on Arch
and Ubuntu 3.10, with LLVM 3.3 and clang 3.3 installed) I get a bunch
of compile errors like the following (let me know if you want to have
the complete error log):
clang++ -O3 -DLLVM_33 -emit-llvm -S ../architecture/scheduler.cpp -o
scheduler.ll
clang++ -O3 -DLLVM_33 -emit-llvm -S ../architecture/scheduler.cpp -o
scheduler.ll
../architecture/scheduler.cpp:384:5: error: use of undeclared identifier
'sysctlbyname'
sysctlbyname("hw.physicalcpu", &physical_count, &size, NULL, 0);
^
../architecture/scheduler.cpp:388:5: error: use of undeclared identifier
'sysctlbyname'
sysctlbyname("hw.logicalcpu", &logical_count, &size, NULL, 0);
^
../architecture/scheduler.cpp:681:26: error: use of undeclared identifier
'GetMicroSeconds'
fStart = GetMicroSeconds();
^
../architecture/scheduler.cpp:692:21: error: use of undeclared identifier
'GetMicroSeconds'
fStop = GetMicroSeconds();
^
../architecture/scheduler.cpp:1009:13: error: use of undeclared identifier
'get_affinity'
get_affinity(thread->fThread);
^
../architecture/scheduler.cpp:1109:13: error: use of undeclared identifier
'set_affinity'
set_affinity(fThread, fNumThread + 1);
^
6 errors generated.
make[1]: *** [scheduler.ll] Error 1
So Faust2 doesn't build for me right now. That's bad because in the
AUR we have a PKGBUILD which builds Faust2 straight from the git
sources, which is now broken. :( For the time being, I will have to
revert to an older revision which is known to build on Linux, but of
course it would be nice if these errors could be corrected.
Greetings,
Albert
--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: [email protected]
WWW: https://plus.google.com/111193356966611167754
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel