Re: [Gambas-user] LLVM compilation error

2012-12-19 Thread Tobias Boege
On Tue, 18 Dec 2012, Tobias Boege wrote:
 Hi Emil,
 
 Hans gave me some output from his gb.jit compilation attempt:
 
 --8---
 
 make[4]: Betrete Verzeichnis '/home/hans/3.4/gb.jit/src'
   CXXgb_jit_la-jit_codegen.lo
 In file included from jit_codegen.cpp:34:0:
 jit.h:42:36: fatal error: llvm/Support/IRBuilder.h: No such file or
 directory
 compilation terminated.
 make[4]: *** [gb_jit_la-jit_codegen.lo] Fehler 1
 make[4]: Verlasse Verzeichnis '/home/hans/3.4/gb.jit/src'
 make[3]: *** [all-recursive] Fehler 1
 make[3]: Verlasse Verzeichnis '/home/hans/3.4/gb.jit'
 make[2]: *** [all] Fehler 2
 make[2]: Verlasse Verzeichnis '/home/hans/3.4/gb.jit'
 make[1]: *** [all-recursive] Fehler 1
 make[1]: Verlasse Verzeichnis '/home/hans/3.4'
 make: *** [all] Fehler 2
 hans@linux:~/3.4$ ^C
 
 --8---

So, rev #5446 was verified to work in another thread[0] but I checked out
LLVM's svn repository (via the git mirror) and built the

$ llvm-config --version
3.3svn

which seems to not call some class llvm:Attributes (as in the 3.2svn or
so) but llvm:Attribute (as it was before), again.

The attached patch makes compilation work again for the more recent SVN
version. These LLVM people seem to be really uncertain about naming :-)

FYI, the commit logs show that:

a) Somewhen after rev #164727 (September) the llvm:Attribute class must have
   vanished.
b) The re-renaming to llvm:Attribute was at rev #170502 (today morning!).

c) IRBuilder.h changed location with rev #159421 (June).

Regards,
Tobi

[0] http://sourceforge.net/mailarchive/message.php?msg_id=30248749
Index: gb.jit/src/jit_codegen.cpp
===
--- gb.jit/src/jit_codegen.cpp  (revision 5448)
+++ gb.jit/src/jit_codegen.cpp  (working copy)
@@ -3614,7 +3614,7 @@
create_gep(temp_errcontext1, TARGET_BITS, 0, TARGET_BITS, 0));

llvm::Function* f = 
llvm::castllvm::Function(get_global_function(_setjmp, 'i', p));
-#if LLVM_VERSION_MAJOR  3 || (LLVM_VERSION_MAJOR == 3  LLVM_VERSION_MINOR 
= 2)
+#if LLVM_VERSION_MAJOR == 3  LLVM_VERSION_MINOR == 2
f-addFnAttr(llvm::Attributes::ReturnsTwice);
 #else
f-addFnAttr(llvm::Attribute::ReturnsTwice);
@@ -3669,7 +3669,7 @@
create_gep(temp_errcontext2, TARGET_BITS, 0, TARGET_BITS, 0));

llvm::Function* f = 
llvm::castllvm::Function(get_global_function(_setjmp, 'i', p));
-#if LLVM_VERSION_MAJOR  3 || (LLVM_VERSION_MAJOR == 3  LLVM_VERSION_MINOR 
= 2)
+#if LLVM_VERSION_MAJOR == 3  LLVM_VERSION_MINOR == 2
f-addFnAttr(llvm::Attributes::ReturnsTwice);
 #else
f-addFnAttr(llvm::Attribute::ReturnsTwice);
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to use Stat().Perm

2012-12-19 Thread M. Cs.
Hello,
I simply don't understand the new function:
How can I decide of a certain file whether it is writable or not?
How can I decide of a certain folder whether it is writable or not?
What are the proper return values?

Please do the documentation if you add some news to the project!

Thanks.

Csaba
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to use Stat().Perm

2012-12-19 Thread Benoît Minisini
Le 19/12/2012 15:37, M. Cs. a écrit :
 Hello,
 I simply don't understand the new function:
 How can I decide of a certain file whether it is writable or not?
 How can I decide of a certain folder whether it is writable or not?
 What are the proper return values?

 Please do the documentation if you add some news to the project!

 Thanks.

 Csaba


Don't use Perm, use Auth instead. It is a string that has a ls-like 
format, so it is easier to understand.

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] LLVM compilation error

2012-12-19 Thread Emil Lenngren
Let's wait until tomorrow. Who knows if they re-rename it again in the last
minutes? ;)

/Emil

2012/12/19 Tobias Boege tabo...@gmail.com

 On Tue, 18 Dec 2012, Tobias Boege wrote:
  Hi Emil,
 
  Hans gave me some output from his gb.jit compilation attempt:
 
  --8---
 
  make[4]: Betrete Verzeichnis '/home/hans/3.4/gb.jit/src'
CXXgb_jit_la-jit_codegen.lo
  In file included from jit_codegen.cpp:34:0:
  jit.h:42:36: fatal error: llvm/Support/IRBuilder.h: No such file or
  directory
  compilation terminated.
  make[4]: *** [gb_jit_la-jit_codegen.lo] Fehler 1
  make[4]: Verlasse Verzeichnis '/home/hans/3.4/gb.jit/src'
  make[3]: *** [all-recursive] Fehler 1
  make[3]: Verlasse Verzeichnis '/home/hans/3.4/gb.jit'
  make[2]: *** [all] Fehler 2
  make[2]: Verlasse Verzeichnis '/home/hans/3.4/gb.jit'
  make[1]: *** [all-recursive] Fehler 1
  make[1]: Verlasse Verzeichnis '/home/hans/3.4'
  make: *** [all] Fehler 2
  hans@linux:~/3.4$ ^C
 
  --8---

 So, rev #5446 was verified to work in another thread[0] but I checked out
 LLVM's svn repository (via the git mirror) and built the

 $ llvm-config --version
 3.3svn

 which seems to not call some class llvm:Attributes (as in the 3.2svn or
 so) but llvm:Attribute (as it was before), again.

 The attached patch makes compilation work again for the more recent SVN
 version. These LLVM people seem to be really uncertain about naming :-)

 FYI, the commit logs show that:

 a) Somewhen after rev #164727 (September) the llvm:Attribute class must
 have
vanished.
 b) The re-renaming to llvm:Attribute was at rev #170502 (today morning!).

 c) IRBuilder.h changed location with rev #159421 (June).

 Regards,
 Tobi

 [0] http://sourceforge.net/mailarchive/message.php?msg_id=30248749


 --
 LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
 Remotely access PCs and mobile devices and provide instant support
 Improve your efficiency, and focus on delivering more value-add services
 Discover what IT Professionals Know. Rescue delivers
 http://p.sf.net/sfu/logmein_12329d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] LLVM compilation error

2012-12-19 Thread Benoît Minisini
Le 19/12/2012 16:04, Emil Lenngren a écrit :
 Let's wait until tomorrow. Who knows if they re-rename it again in the last
 minutes? ;)

 /Emil


Adding my own complaints to Emil's ones, I find amazing that such smart 
guys (they are writing a new compiler infrastructure for any 
architecture after all) :

- Change headers names between different versions. But then we can 
suppose that binary compatibility is not guaranteed, between minor 
versions ( LLVM 3.3 != LLVM 3.2 != LLVM 3.1...)

- Cannot ensure that two different versions of LLVM can work on the same 
system. For example, if I compile and install LLVM 3.1 on my Ubuntu 
12.04, then OpenGL examples crash when JIT is enabled, because 
apparently the OpenGL libraries are based on LLVM 3.0.

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] RaspberryPi

2012-12-19 Thread John Rose
RaspberryPi is offering as of 16/12/2012 a recommended image of Raspbian 
(based on Debian Wheezy) at:
http://www.raspberrypi.org/downloads

http://elinux.org/RPi_Easy_SD_Card_Setup
shows how to create an image on an SD Card for booting from. I used the 
ImageWriter tool described there as I prefer a GUI to the CLI.

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34t=6182start=50#p189319
describes how to install Gambas 3.2.1 as it needs a patch described there.

I'll try above setup  install when I get my (actually a present for my 
grandson's 11th birthday) RaspberryPi.

-- 
Regards,
John
01902 331266


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.jit can't be compiled

2012-12-19 Thread flachyjoe
It's the first LLVM package I test...
I've try with the trunk too and the same issues occurred.

On debian, a link have to be done from /usr/include/llvm-3.2/llvm to
/usr/include/llvm for it work.



--
View this message in context: 
http://gambas.8142.n7.nabble.com/gb-jit-can-t-be-compiled-tp40071p40464.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] RaspberryPi

2012-12-19 Thread Maria
That is not a patch, it's a full copy of gambas321. It copies all files to
/usr/bin
/usr/share/gambas3
/usr/lib/gambas3


My r-pi is coming too :-)




 De: John Rose john.aaron.r...@gmail.com
Para: MailingList GambasUsers gambas-user@lists.sourceforge.net 
Enviado: Miércoles 19 de diciembre de 2012 20:02
Asunto: Re: [Gambas-user] RaspberryPi
 
RaspberryPi is offering as of 16/12/2012 a recommended image of Raspbian 
(based on Debian Wheezy) at:
http://www.raspberrypi.org/downloads

http://elinux.org/RPi_Easy_SD_Card_Setup
shows how to create an image on an SD Card for booting from. I used the 
ImageWriter tool described there as I prefer a GUI to the CLI.

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34t=6182start=50#p189319
describes how to install Gambas 3.2.1 as it needs a patch described there.

I'll try above setup  install when I get my (actually a present for my 
grandson's 11th birthday) RaspberryPi.

-- 
Regards,
John
01902 331266


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Lost launchers

2012-12-19 Thread Benoît Minisini
Le 19/12/2012 22:03, M. Cs. a écrit :
 Hello Benoit,
 I have a long standing problem with Gambas-based program launchers. When I
 create an installation's package, I am questioned where to put the
 application and I use to set it regularly for each distribution
 respectively. Yet, regardless to what application group I choose, and also
 regardless to the DE or the distro, I am always finding my applications in
 either Lost  Found submenu (KDE) or in Others (Cinnamon etc.)
 Is this the normal behavior?

 Csaba


Can you send me a package of one of your application for my Ubuntu? I 
will see where the launcher goes.

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Lost launchers

2012-12-19 Thread M. Cs.
This is a small stand-alone phonebook.

2012/12/19 Benoît Minisini gam...@users.sourceforge.net

 Le 19/12/2012 22:03, M. Cs. a écrit :
  Hello Benoit,
  I have a long standing problem with Gambas-based program launchers. When
 I
  create an installation's package, I am questioned where to put the
  application and I use to set it regularly for each distribution
  respectively. Yet, regardless to what application group I choose, and
 also
  regardless to the DE or the distro, I am always finding my applications
 in
  either Lost  Found submenu (KDE) or in Others (Cinnamon etc.)
  Is this the normal behavior?
 
  Csaba
 

 Can you send me a package of one of your application for my Ubuntu? I
 will see where the launcher goes.

 --
 Benoît Minisini


 --
 LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
 Remotely access PCs and mobile devices and provide instant support
 Improve your efficiency, and focus on delivering more value-add services
 Discover what IT Professionals Know. Rescue delivers
 http://p.sf.net/sfu/logmein_12329d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



telefonx_2.0.10-1_all.deb
Description: application/debian-package
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Lost launchers

2012-12-19 Thread Benoît Minisini
Le 19/12/2012 22:20, M. Cs. a écrit :
 This is a small stand-alone phonebook.


You must fill the Categories in the packager wizard. This is what is 
used by some desktop to decide where the launcher should go. Others use 
the menu entry.

Regards,

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug on MediaTagList with some files

2012-12-19 Thread Benoît Minisini
Le 16/12/2012 04:27, Adrien Prokopowicz a écrit :

 And in the IDE (I don't know either if this is a bug), when the Null
 object occurs into the declaration part of the class (or outside of any
 function/procedure), the balloon pops out somewhere inside the stack
 backtrace panel. (I first thought that the IDE itself was crashing ...)

 Regards,


This is fixed in revision #5452.

Regards,

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Lost launchers

2012-12-19 Thread M. Cs.
Thanks!

2012/12/19 Benoît Minisini gam...@users.sourceforge.net

 Le 19/12/2012 22:20, M. Cs. a écrit :
  This is a small stand-alone phonebook.
 

 You must fill the Categories in the packager wizard. This is what is
 used by some desktop to decide where the launcher should go. Others use
 the menu entry.

 Regards,

 --
 Benoît Minisini


 --
 LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
 Remotely access PCs and mobile devices and provide instant support
 Improve your efficiency, and focus on delivering more value-add services
 Discover what IT Professionals Know. Rescue delivers
 http://p.sf.net/sfu/logmein_12329d2d
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request: Component hunt disabler

2012-12-19 Thread Benoît Minisini
Le 18/12/2012 13:13, Bruce a écrit :
 On Tue, 2012-12-18 at 11:26 +0100, M. Cs. wrote:
 In fact I cannot catch the error, although it occurs randomly. I've tried
 several times to create screenshots, but at that moment the error didn't
 come up.

 Csaba

 Benoît,
 I can confirm that this issue is true.  One instance I see it in is if a
 procedure does not use a passed parameter value then a warning is
 properly raised and the IDE either opens the source concerned or resets
 the current line to somewhere in that class.  This seems to happen
 whether or not warnings are activated.
 More tomorrow.


I disabled the automatic jump to the first warning in revision #5454.

Regards,

-- 
Benoît Minisini

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user