Re: [Faudiostream-users] faust2pd make error

2014-05-14 Thread Hugo Caracalla
Hi Albert,

Thanks for the info, this is exactly what I needed : I put the llc and opt
tools from the previous 3.3 version (that can but downloaded here :
https://bitbucket.org/purelang/pure-lang/downloads/llvm-3.3-tools.tar.bz2https://www.google.com/url?q=https%3A%2F%2Fbitbucket.org%2Fpurelang%2Fpure-lang%2Fdownloads%2Fllvm-3.3-tools.tar.bz2sa=Dsntz=1usg=AFQjCNGCryflCzqXKCPtybecEZA_pJ3VlQ)
in the pure repertories, as instructed, and ran as a test :

 cd pure/examples
 pure -c hello.pure -o hello

Which ran pretty fine, without outputting the list of errors it previously
did. The make of faust2pd then went smoothly : after a few tests with the
.dsp of faust/examples the whole thing seems to work perfectly.

For the record, my distribution is Ubuntu Studio Ubuntu 14.04 LTS.

You are also right about the ~.pd_linux files : trying to open them
directly via pure data was nonsense (although at the time I actually had
tried adding the path of my ~.pd_linux file to pure data search path and
still couldn't call it in Pd : but then pure wasn't well-installed so there
is not much to be said).

Thanks to all of you, it feels quite nice to end a week of me stubbornly
trying to manage all of this by myself.

-Hugo


On 14 May 2014 06:32, Albert Graef aggr...@gmail.com wrote:

 Hi Hugo,

 The issue you describe is with the llc from LLVM 3.4, cf.
 http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-February/069979.html.
 It's a Linux-specific bug (well, it might also affect Windows, I haven't
 checked that yet, but llc 3.4 works fine on the Mac at least). The bug
 breaks Pure's batch compiler which is used to compile the faust2pd.pure
 script to a native executable. I've been meaning to file a bug report at
 the LLVM Bugzilla so that this gets fixed in LLVM 3.5 at least, but totally
 forgot about it. Thanks for reminding me. :) I'll check whether that bug is
 still present in the latest LLVM revision from svn and file a bug report
 asap if it is.

 If you want to stick to LLVM 3.4, the easiest way to work around the bug
 is to just use the llc and opt tools from LLVM 3.3 instead, see this thread
 on the Pure mailing list:
 https://groups.google.com/forum/#!topic/pure-lang/ZiMK5DY9Tq0. They will
 work fine even if Pure itself is linked against the LLVM 3.4 libraries.

 If you're running the latest Pure version, you can compile LLVM 3.3 with
 --disable-shared and drop the statically linked llc and opt executables
 into the Pure library directory (/usr/lib/pure or /usr/local/lib/pure,
 depending on where you installed Pure). Or you can try to use the
 ready-made Linux ELF 64 and 32 bit binaries available here:
 https://bitbucket.org/purelang/pure-lang/downloads/llvm-3.3-tools.tar.bz2.
 They will hopefully work on all Linux distributions with recent C/C++
 libraries. The package also contains a README with instructions on how to
 compile your own llc and opt if the provided binaries don't work on your
 system.

 Which Linux distribution do you use? For Arch Linux and derivatives we
 have a package which implements this workaround, so you could install Pure
 straight from the AUR and you'll be set. If you're on some other
 distribution, drop me an email so that I can walk you through the needed
 steps, if necessary.

 Sorry for the hassle. It's really not Pure's fault. The LLVM devs broke
 their tools on Linux and didn't even notice it. :( Alas, this kind of
 breakage happens much too often. E.g., on the Mac the llc from LLVM 3.3 was
 broken. But there's really no alternative to LLVM these days, if you need a
 comprehensive cross-platform compiler backend featuring JIT compilation, so
 we compiler writers love LLVM despite its bugs. :)

 Albert



 On Wed, May 14, 2014 at 3:46 AM, Hugo Caracalla es.illus...@gmail.comwrote:


 Hello,

 Trying to keep it all as clean as possible, I did the steps Thomas gave
 and managed to get quite further :

 The installation of llvm, Clang, their dependencies, Pure, pd-Pure, and
 purexml went smoothly. Alas, the last one did not : when trying to make
 faust2pd, I obtain the following results :

  sed -e 's?@version@?2.7?'  faust2pd.pure  xxfaust2pd.pure
 pure -c xxfaust2pd.pure -o faust2pd
 faust2pd.s: Assembler messages:
 faust2pd.s:53: Error: invalid character '' in operand 1
 faust2pd.s:111: Error: invalid character '' in operand 1
 faust2pd.s:169: Error: invalid character '' in operand 1
 faust2pd.s:275: Error: invalid character '' in operand 1
 faust2pd.s:386: Error: invalid character '' in operand 1
 faust2pd.s:596: Error: Missing symbol name in directive

 And so on, and so on...

 I could give to anyone interested the whole log of it but I think those
 lines should be enough to give the idea.

 It seems that pure is misreading what I feed him with, but I didn't
 manage to get any further than this. If anyone has a hint of what is going
 on, I would be truly grateful.

 -Hugo


 --
 Accelerate Dev Cycles with 

Re: [Faudiostream-users] faust2pd make error

2014-05-14 Thread Albert Graef
On Wed, May 14, 2014 at 2:03 PM, Hugo Caracalla es.illus...@gmail.comwrote:

 You are also right about the ~.pd_linux files : trying to open them
 directly via pure data was nonsense (although at the time I actually had
 tried adding the path of my ~.pd_linux file to pure data search path and
 still couldn't call it in Pd : but then pure wasn't well-installed so there
 is not much to be said).


As I said, the Pure installation isn't needed for the Pd Faust externals in
any way, so that must have been due to some other snafu -- maybe a mistyped
path or something like that. But anyway, I'm happy that it works for you
now. :)

Albert

-- 
Dr. Albert Graf
Dept. of Music-Informatics, University of Mainz, Germany
Email:  aggr...@gmail.com
WWW:https://plus.google.com/+AlbertGraef
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users


[Faudiostream-users] faust2pd make error

2014-05-13 Thread Hugo Caracalla
Hello,

Trying to keep it all as clean as possible, I did the steps Thomas gave and
managed to get quite further :

The installation of llvm, Clang, their dependencies, Pure, pd-Pure, and
purexml went smoothly. Alas, the last one did not : when trying to make
faust2pd, I obtain the following results :

 sed -e 's?@version@?2.7?'  faust2pd.pure  xxfaust2pd.pure
pure -c xxfaust2pd.pure -o faust2pd
faust2pd.s: Assembler messages:
faust2pd.s:53: Error: invalid character '' in operand 1
faust2pd.s:111: Error: invalid character '' in operand 1
faust2pd.s:169: Error: invalid character '' in operand 1
faust2pd.s:275: Error: invalid character '' in operand 1
faust2pd.s:386: Error: invalid character '' in operand 1
faust2pd.s:596: Error: Missing symbol name in directive

And so on, and so on...

I could give to anyone interested the whole log of it but I think those
lines should be enough to give the idea.

It seems that pure is misreading what I feed him with, but I didn't manage
to get any further than this. If anyone has a hint of what is going on, I
would be truly grateful.

-Hugo
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users


Re: [Faudiostream-users] faust2pd make error

2014-05-13 Thread Albert Graef
Hi Hugo,

The issue you describe is with the llc from LLVM 3.4, cf.
http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-February/069979.html. It's
a Linux-specific bug (well, it might also affect Windows, I haven't checked
that yet, but llc 3.4 works fine on the Mac at least). The bug breaks
Pure's batch compiler which is used to compile the faust2pd.pure script to
a native executable. I've been meaning to file a bug report at the LLVM
Bugzilla so that this gets fixed in LLVM 3.5 at least, but totally forgot
about it. Thanks for reminding me. :) I'll check whether that bug is still
present in the latest LLVM revision from svn and file a bug report asap if
it is.

If you want to stick to LLVM 3.4, the easiest way to work around the bug is
to just use the llc and opt tools from LLVM 3.3 instead, see this thread on
the Pure mailing list:
https://groups.google.com/forum/#!topic/pure-lang/ZiMK5DY9Tq0. They will
work fine even if Pure itself is linked against the LLVM 3.4 libraries.

If you're running the latest Pure version, you can compile LLVM 3.3 with
--disable-shared and drop the statically linked llc and opt executables
into the Pure library directory (/usr/lib/pure or /usr/local/lib/pure,
depending on where you installed Pure). Or you can try to use the
ready-made Linux ELF 64 and 32 bit binaries available here:
https://bitbucket.org/purelang/pure-lang/downloads/llvm-3.3-tools.tar.bz2.
They will hopefully work on all Linux distributions with recent C/C++
libraries. The package also contains a README with instructions on how to
compile your own llc and opt if the provided binaries don't work on your
system.

Which Linux distribution do you use? For Arch Linux and derivatives we have
a package which implements this workaround, so you could install Pure
straight from the AUR and you'll be set. If you're on some other
distribution, drop me an email so that I can walk you through the needed
steps, if necessary.

Sorry for the hassle. It's really not Pure's fault. The LLVM devs broke
their tools on Linux and didn't even notice it. :( Alas, this kind of
breakage happens much too often. E.g., on the Mac the llc from LLVM 3.3 was
broken. But there's really no alternative to LLVM these days, if you need a
comprehensive cross-platform compiler backend featuring JIT compilation, so
we compiler writers love LLVM despite its bugs. :)

Albert



On Wed, May 14, 2014 at 3:46 AM, Hugo Caracalla es.illus...@gmail.comwrote:


 Hello,

 Trying to keep it all as clean as possible, I did the steps Thomas gave
 and managed to get quite further :

 The installation of llvm, Clang, their dependencies, Pure, pd-Pure, and
 purexml went smoothly. Alas, the last one did not : when trying to make
 faust2pd, I obtain the following results :

  sed -e 's?@version@?2.7?'  faust2pd.pure  xxfaust2pd.pure
 pure -c xxfaust2pd.pure -o faust2pd
 faust2pd.s: Assembler messages:
 faust2pd.s:53: Error: invalid character '' in operand 1
 faust2pd.s:111: Error: invalid character '' in operand 1
 faust2pd.s:169: Error: invalid character '' in operand 1
 faust2pd.s:275: Error: invalid character '' in operand 1
 faust2pd.s:386: Error: invalid character '' in operand 1
 faust2pd.s:596: Error: Missing symbol name in directive

 And so on, and so on...

 I could give to anyone interested the whole log of it but I think those
 lines should be enough to give the idea.

 It seems that pure is misreading what I feed him with, but I didn't manage
 to get any further than this. If anyone has a hint of what is going on, I
 would be truly grateful.

 -Hugo


 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Faudiostream-users mailing list
 Faudiostream-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/faudiostream-users




-- 
Dr. Albert Graf
Dept. of Music-Informatics, University of Mainz, Germany
Email:  aggr...@gmail.com
WWW:https://plus.google.com/+AlbertGraef
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users