Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302136 - dev-lang/gambas - a free development environment based on a Basic interpreter with object extensions
Summary: dev-lang/gambas - a free development environment based on a Basic interpreter...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement with 4 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://gambas.sourceforge.net/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 237497
  Show dependency tree
 
Reported: 2010-01-25 04:25 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-03-19 17:41 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
2.16.0 to 2.20.0 ebuild diff (gambas-2.20.0.ebuild.diff,416 bytes, patch)
2010-03-01 19:23 UTC, Andreas Sturmlechner
Details | Diff
Updated Gentoo-specific patch (gambas-2.20.0-FLAGS.patch,1.11 KB, patch)
2010-03-01 19:25 UTC, Andreas Sturmlechner
Details | Diff
remove xdgutils test from gambas3 (xdgutils.patch,2.31 KB, patch)
2012-10-13 08:25 UTC, Dominique Michel
Details | Diff
ebuild for gambas3-3.3.2 (gambas3-3.3.2.ebuild,4.34 KB, text/plain)
2012-10-13 08:29 UTC, Dominique Michel
Details
ebuild for 3.5.2 (gambas-3.5.2.ebuild,4.86 KB, text/plain)
2014-02-03 17:56 UTC, Dominique Michel
Details
ebuild for 3.5.2 (gambas-3.5.2.ebuild,4.34 KB, text/plain)
2014-02-04 01:10 UTC, Dominique Michel
Details
ebuild for 3.5.2 with reviewed dependencies (gambas-3.5.2.ebuild,4.65 KB, text/plain)
2014-02-05 21:09 UTC, Dominique Michel
Details
ebuild for 3.5.2 (gambas-3.5.2.ebuild,4.61 KB, text/plain)
2014-02-05 21:27 UTC, Dominique Michel
Details
live ebuild that can also be used for 3.5.2 (gambas-9999.ebuild,5.04 KB, text/plain)
2014-02-05 21:28 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2010-01-25 04:25:19 UTC
=
Comment 1 Patrick Lauer gentoo-dev 2010-01-28 11:19:55 UTC
Had to slightly rebase the FLAGS patch, but:

make[5]: Entering directory `/var/tmp/portage/dev-util/gambas-2.19.0/work/gambas2-2.19.0/gb.xml/src/rpc'                                

Creating the information files for gb.xml.rpc component ...
gb.xml.rpc                                                 
gbi2: warning: component gb.xml.rpc not found              
Compiling the gb.xml.rpc project ... /var/tmp/portage/dev-util/gambas-2.19.0/work/gambas2-2.19.0/gb.xml/src/rpc/gb.xml.rpc/hPost.class:3: Unknown identifier: HttpClient                                                                                                            
/usr/bin/install: cannot stat `gb.xml.rpc.gambas': No such file or directory                                                              
make[5]: *** [install-data-hook] Error 1                                                                                                  
make[5]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.19.0/work/gambas2-2.19.0/gb.xml/src/rpc'                                   
make[4]: *** [install-data-am] Error 2                                                                                                    
make[4]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.19.0/work/gambas2-2.19.0/gb.xml/src/rpc'                                   
make[3]: *** [install-am] Error 2                                                                                                         
make[3]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.19.0/work/gambas2-2.19.0/gb.xml/src/rpc'                                   
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.19.0/work/gambas2-2.19.0/gb.xml/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.19.0/work/gambas2-2.19.0/gb.xml'
make: *** [install-recursive] Error 1
 * ERROR: dev-util/gambas-2.19.0 failed:

hmm, something is wrong there :)
Comment 2 dpshak 2010-02-04 18:07:44 UTC
I get the identical error trying to emerge gambas2-2.16.0.  This occurs both on an x86_64 machine and this x86 machine.  I also tried installing Gambas2 on a fresh Gentoo install on this machine with the same failure.

Truck ~ # emerge --info
Portage 2.2_rc62 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r3-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 04 Feb 2010 16:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.4, 4.4.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.chem.wisc.edu/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac acpi aiglx alsa arts bitmap-fonts branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dvd dvdr encode fam firefox flac foomaticdb fortran gdbm gif glitz gpm gstreamer gtk gtk+ hal iconv ieee1394 java jpeg kde ldap libffi libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pcmcia pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection samba sdl session spell spl ssl startup-notification svg synaptics sysfs tcpd truetype unicode usb vcd vorbis wifi win32codecs wxwidgets x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LINGUAS="en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Creating the information files for gb.xml.xslt component ...
gb.xml.xslt

make[5]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/xslt'
make[4]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/xslt'
make[3]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/xslt'
Making install in rpc
make[3]: Entering directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/rpc'
make[4]: Entering directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/rpc'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/lib/gambas2" || /bin/mkdir -p "/var/tmp/portage/dev-util/gambas-2.16.0/image//usr/lib/gambas2"
 /usr/bin/install -c -m 644 'gb.xml.rpc.component' '/var/tmp/portage/dev-util/gambas-2.16.0/image//usr/lib/gambas2/gb.xml.rpc.component'
make  install-data-hook
make[5]: Entering directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/rpc'

Creating the information files for gb.xml.rpc component ...
gbi2: warning: component gb.xml.rpc not found
gb.xml.rpc
Compiling the gb.xml.rpc project ... /var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/rpc/gb.xml.rpc/hPost.class:3: Unknown identifier: HttpClient
/usr/bin/install: cannot stat `gb.xml.rpc.gambas': No such file or directory
make[5]: *** [install-data-hook] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/rpc'
make[4]: *** [install-data-am] Error 2
make[4]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/rpc'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src/rpc'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0/gb.xml'
make: *** [install-recursive] Error 1
 * ERROR: dev-util/gambas-2.16.0 failed:
 *   emake install failed
 *
 * Call stack:
 *     ebuild.sh, line  48:  Called src_install
 *   environment, line 3396:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" LIBTOOLFLAGS="--quiet" install -j1 || die "emake install failed";
 *
 * If you need support, post the output of 'emerge --info =dev-util/gambas-2.16.0',
 * the complete build log and the output of 'emerge -pqv =dev-util/gambas-2.16.0'.
 * The complete build log is located at '/var/log/portage/dev-util:gambas-2.16.0:20100204-172905.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/gambas-2.16.0/temp/environment'.
 * S: '/var/tmp/portage/dev-util/gambas-2.16.0/work/gambas2-2.16.0'

>>> Failed to emerge dev-util/gambas-2.16.0, Log file:
Comment 3 Andreas Sturmlechner gentoo-dev 2010-03-01 17:56:43 UTC
Same issue here, and version 2.20 was just released, so I'll try that now.
Comment 4 Andreas Sturmlechner gentoo-dev 2010-03-01 19:23:49 UTC
Created attachment 221665 [details, diff]
2.16.0 to 2.20.0 ebuild diff

Only a small change was needed for a successful 2.20.0 version bump, new ebuild includes updated patch.
Comment 5 Andreas Sturmlechner gentoo-dev 2010-03-01 19:25:39 UTC
Created attachment 221667 [details, diff]
Updated Gentoo-specific patch
Comment 6 Andreas Sturmlechner gentoo-dev 2010-03-01 19:29:02 UTC
Note that the new version still won't build as long as you USE "xml".

I suspect it's a strict aliasing issue, but didn't really dig into it.

Please, someone update this summary to the new version bump accordingly. :)
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-03-22 07:10:31 UTC
Moving to maintainer-wanted@ as a new package. And I think this should be in dev-lang/ instead of dev-util/ if it's restored in tree.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/gambas/
Comment 8 Jerry McBride 2010-03-30 22:58:52 UTC
Who the hell said it was OK to delete GAMBAS?!

Come on you guys! Give us a bit of warning before you do something like this!

Comment 9 Jerry McBride 2010-03-30 23:03:36 UTC
I need the most recent ebuild and associated patches... ASAP... Does ANYONE have them available for FTP?

Please... can anyone help?

Email me at jmcbride@mail-on.us or mcbrides9@comcast.net...

Never in my whole Gentoo experience have I been so unhappy with it's ebuild maintainers! Whether you know or not or even give a damn, you guys really, really screwed me... 

Thanks a bunch!
Comment 10 Navid Zamani 2010-04-10 23:22:15 UTC
Hello. Is this dead? KDE presents XT7-Player on their home page, and it looks like the first mplayer gui that is not for drooling idiots. (*nudge nudge* *do want* ;)

Unfortunately it requires gambas. So… what does it take to be the maintainer?
And if I’m not fitting that, is there really nobody who likes XT7-Player? I thought the maintainers were power users. (*nudge nudge*) :D
Comment 11 Jerry McBride 2010-04-18 02:42:18 UTC
I'm STILL waiting for dev-lang/gambas to appear!
Comment 12 Navid Zamani 2010-04-18 03:04:15 UTC
(In reply to comment #11)
> I'm STILL waiting for dev-lang/gambas to appear!

Dude, I understand you, but keep cool. :)
Remember that you’re getting this all for free.
I bet if you offer something in return, someone will be much happier about doing what he otherwise would not have any fun with.
If you don’t have money, you can also look into fixing it yourself, if it’s so much more important to you, than to whoever else maintains it. You can learn all the stuff, needed to do it. :) (You don’t have that option with closed source software.)
Also not being nice will only have people associate even worse feelings with doing this.
I know it’s not that easy, but if you can link fixing this to something good and worth it, then it’s pretty much guaranteed that someone will fix it asap. :)
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-04-23 15:17:02 UTC
(In reply to comment #9)
> I need the most recent ebuild and associated patches... ASAP... Does ANYONE
> have them available for FTP?

The link to removed ebuilds and patches were already provided in Comment #7.

(In reply to comment #10)
> Unfortunately it requires gambas. So… what does it take to be the maintainer?
> And if I’m not fitting that, is there really nobody who likes XT7-Player? I
> thought the maintainers were power users. (*nudge nudge*) :D

You should discuss with gambas upstream about porting to Qt4 from Qt3. So I guess it requires some C++ coding skills.
Comment 14 Jerry McBride 2010-04-24 02:14:15 UTC
Thanks! But I've already got the older ebuilds. 

YES! I've been "upstream" so much that I can see into tomorrow...

The best practice for me is to simply install gambas3... It work well enough that I can continue working. I just wish that gambas2 would get less attention and gambas3 would get more attention...

Really though... I'll ever get over how quickly, coldly and un-announced that gambas2 got deprecated and deleted. It's simply NEVER happened before in my history with Gentoo.

Rather than bash, correct or denigrate me... as the maintainer WHY this was done in the first place. There are, after all, gambas users that DEPEND on a viable ebuild.

Jerry
Comment 15 lalebarde 2010-08-02 09:02:06 UTC
Gambas works both with qt and gtk+. Most applications work either with one or the other but not both, and no one delete them ! So, removing Gambas2 because it works with qt3 and not qt4 is in my opinion a bad decision.
Comment 16 lalebarde 2010-08-02 09:08:43 UTC
(In reply to comment #13)
> The link to removed ebuilds and patches were already provided in Comment #7.
> 
I tried the links and the cvs command, but no ebuild is available. Please, post a link to the last ebuild available.

Here is what I get :

# cvs -d :pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot co gentoo-x86/dev-util/gambas
cvs checkout: warning: failed to open /root/.cvspass for reading: No such file or directory
cvs checkout: Updating gentoo-x86/dev-util/gambas
cvs checkout: Updating gentoo-x86/dev-util/gambas/files
# ls -R
.:
gentoo-x86

./gentoo-x86:
CVS  dev-util

./gentoo-x86/CVS:
Entries  Entries.Log  Entries.Static  Repository  Root

./gentoo-x86/dev-util:
CVS  gambas

./gentoo-x86/dev-util/CVS:
Entries  Entries.Log  Entries.Static  Repository  Root

./gentoo-x86/dev-util/gambas:
CVS  files

./gentoo-x86/dev-util/gambas/CVS:
Entries  Entries.Log  Repository  Root

./gentoo-x86/dev-util/gambas/files:
CVS

./gentoo-x86/dev-util/gambas/files/CVS:
Entries  Repository  Root
# 

Comment 17 lalebarde 2010-08-02 09:13:41 UTC
found here : http://code.google.com/p/wavilen/source/detail?r=4
    - gambas-2.20.0.ebuild
    - gambas-2.20.0-FLAGS.patch
Comment 18 lalebarde 2010-08-02 10:25:17 UTC
(In reply to comment #15)
> Gambas works both with qt and gtk+. Most applications work either with one or
> the other but not both, and no one delete them ! So, removing Gambas2 because
> it works with qt3 and not qt4 is in my opinion a bad decision.
> 

Sorry, though its philosophy (either qt or gtk+), Gambas2 still needs qt3 to build !
Comment 19 lalebarde 2010-08-02 13:17:19 UTC
ebuilds and patches for gambas-2.20.0, gambas-2.20.2, gambas-2.21.0 here :
http://bugs.gentoo.org/show_bug.cgi?id=146871
since it is the link provided by upstream :
http://gambasdoc.org/help/doc/package?view&en
Comment 20 jeff 2011-05-20 09:00:11 UTC
http://sourceforge.net/projects/gambas/files/gambas3/  can you add the latest version of gambas 3 to the portage tree? thanks.
Comment 21 Navid Zamani 2011-11-09 13:11:55 UTC
(In reply to comment #18)
> Sorry, though its philosophy (either qt or gtk+), Gambas2 still needs qt3 to
> build !

Well, now there’s Gambas3, which uses qt4 and all, so let’s just forget and forgive the mess, and move on. :)

Topic: Getting Gambas3 into portage, just that.
Question: Who is in charge of this becoming an ebuild, and what can I do to help him? Or alternatively, if nobody is in charge: What needs to be done? (If it’s not *too* hard, and I don’t have to learn too much just for this, I am interested in doing it.)

Anyone? :)
Comment 22 Navid Zamani 2011-11-09 13:17:43 UTC
This bug blocks media-video/Xt7-Player (bug #237497) btw., but I can’t change the bug dependencies, and it may take some time before somebody does. So I thought I’d mention it
Comment 23 Dominique Michel 2012-10-13 08:25:18 UTC
Created attachment 326444 [details, diff]
remove xdgutils test from gambas3
Comment 24 Dominique Michel 2012-10-13 08:29:20 UTC
Created attachment 326446 [details]
ebuild for gambas3-3.3.2

I done it in order to try gambas, but at the end I have other things to do. So, I put it as it is. It work for me.

I am not sure if all the eclasses are needed. I have not tested all the use flags, but emerge work when they are on.
Comment 25 Dominique Michel 2014-02-03 17:56:38 UTC
Created attachment 369456 [details]
ebuild for 3.5.2
Comment 26 Dominique Michel 2014-02-03 18:11:29 UTC
Gambas is really an outstanding software. 

First, it is basic. 
Second it doesn't have the bugs of visual basic.tm.
Third, you can compile your programs like with java.
Last, it's open source software.
Comment 27 Navid Zamani 2014-02-03 18:22:15 UTC
(In reply to Dominique Michel from comment #26)
First, please don’t use the bug tracker for random comments. We have vast forum spaces over at forums.gentoo.org for that. :)
Second, BASIC and “outstanding” are mutually exclusive things. The “Visual” variant even more so. ;)
Comment 28 Julian Ospald 2014-02-03 19:03:10 UTC
(In reply to Dominique Michel from comment #25)
> Created attachment 369456 [details]
> ebuild for 3.5.2

There are "\" missing in the econf arguments, hence httpd, openal, openssl are completely ignored.

"svn log > ChangeLog"
I don't like that. Plus you don't even DEPEND on subversion.

"|| die" is not needed for doins/newdoc and other portage helpers anymore

"insinto /usr/share/icons/hicolor/128x128/apps" is not needed, you can use "doicon -s 128 ${PN}.png"

"libtool --finish ${D}/usr/lib64/gambas3 || die "finish failed""
besides missing quotes and that it should be --mode=finish, it even seems redundant to me
Comment 29 Dominique Michel 2014-02-04 01:10:25 UTC
Created attachment 369488 [details]
ebuild for 3.5.2

I should have ran repoman. The suggested fixes are made, and a few other as well.It also have a few +flag USEs, they correspond to the one needed to get a full functional IDE.

It use +sqlite3 because it is the default in gambas. sqlite(2) can be used as fall-back, but it seam more logic to me to use the same default than gambas.
Comment 30 Cănărău Constantin 2014-02-05 17:29:03 UTC
Something it's wronk/missing with this ebuild. 
I got a lot of "symbol lookup error: /var/tmp/portage/dev-lang/gambas-3.5.2/image//usr/lib64/gambas3/gb.image.so: undefined symbol: pow"
Therefor gambas it's unusable for me.

||
|| Unable to compile gb.desktop
|| Unable to compile gb.eval.highlight
|| Unable to compile gb.gui.base
|| Unable to compile gb.form
|| Unable to compile gb.form.dialog
|| Unable to compile gb.form.mdi
|| Unable to compile gb.db.form
|| Unable to compile gb.report
|| Unable to compile gb.chart
|| Unable to compile gb.net.pop3
|| Unable to compile gb.memcached
|| Unable to compile gb.map
|| Unable to compile gambas3
||

I added -lm to ldflags in makefile but with no use. 

Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.18-r1, 3.13.1-aufs-costel x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.1-aufs-costel-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16427952 total,  14394232 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 05 Feb 2014 12:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo added
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=10 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup collision-protect config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-filter unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://distfiles.gentoo.org/"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now -O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"
MAKEOPTS="-j8 --load-average=10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/added"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac gdbm gif gmp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv introspection ipv6 ithreads jpeg lcms ldap libnotify libsecret logrotate mad mmx mng modules mp3 mp4 mpeg multilib mysql nautilus ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pch pcre pdf png policykit postgres ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vdpau vhosts vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="virtuoso hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ro en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gunzip gzip limit_conn limit_req map memcached naxsi proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition cache_purge dav fancyindex flv geoip gzip_static headers_more image_filter mp4 perl push random_index realip secure_link spdy stub_status sub upload_progress xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7 python 3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-lang/gambas-3.5.2 was built with the following:
USE="bzip2 cairo crypt dbus desktop gmp gtk imageimlib imageio mysql ncurses opengl pcre pdf postgres qt4 sdl sqlite3 svg xml zlib -curl -examples -gsl -httpd -jit -libxml -media -mime -net -odbc -openal -openssl -sdlsound -smtp -sqlite -v4l"
CFLAGS="-O2 -pipe -march=native -w -fno-lto"
CXXFLAGS="-O2 -pipe -march=native -fno-lto"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--warn-once,--as-needed,-z,now"
Comment 31 Dominique Michel 2014-02-05 19:28:14 UTC
You have

CFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"

Does it help if you filter out some of -ffast-math -w -flto=8 -fno-fat-lto-objects?
Comment 32 Dominique Michel 2014-02-05 21:09:32 UTC
Created attachment 369654 [details]
ebuild for 3.5.2 with reviewed dependencies

It introduce a few forgotten depends, slots, use flags, and some updated versions, into the depends.

Nothing that will solve the pow issue for what I can see.
Comment 33 Dominique Michel 2014-02-05 21:27:15 UTC
Created attachment 369658 [details]
ebuild for 3.5.2

removed duplicated pdf dependency
Comment 34 Dominique Michel 2014-02-05 21:28:20 UTC
Created attachment 369660 [details]
live ebuild that can also be used for 3.5.2
Comment 35 Dominique Michel 2014-02-05 21:36:40 UTC
(In reply to Dominique Michel from comment #31)
> You have
> 
> CFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"
> 
> Does it help if you filter out some of -ffast-math -w -flto=8
> -fno-fat-lto-objects?

Or of your LDFLAGS?
Comment 36 Cănărău Constantin 2014-02-07 10:52:09 UTC
Sorry for delay.
Yes, I have some exotic cflags, but as emerge --info gambas say I use safe flags for gambas:
=================================================================
                        Package Settings
=================================================================

dev-lang/gambas-3.5.2 was built with the following:
USE="bzip2 cairo crypt dbus desktop gmp gtk imageimlib imageio mysql ncurses opengl pcre pdf postgres qt4 sdl sqlite3 svg xml zlib -curl -examples -gsl -httpd -jit -libxml -media -mime -net -odbc -openal -openssl -sdlsound -smtp -sqlite -v4l"
CFLAGS="-O2 -pipe -march=native -w -fno-lto"
CXXFLAGS="-O2 -pipe -march=native -fno-lto"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--warn-once,--as-needed,-z,now"

Anyway I found a workarround: 
I created a env file in /etc/portage/env/gambas.conf with -lm appended on LDFLAGS and everithing start to work like a charm, even with system-wide flags. Anyway lto it's fltered/ignored.

New setting that worked:
emerge --info gambas
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.18-r1, 3.13.1-aufs-costel x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.1-aufs-costel-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16427952 total,   9789040 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 07 Feb 2014 09:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo added
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=10 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup collision-protect config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-filter unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://distfiles.gentoo.org/"
LANG="ro_RO.UTF-8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now -O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects"
MAKEOPTS="-j8 --load-average=10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/added"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac gdbm gif gmp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv introspection ipv6 ithreads jpeg lcms ldap libnotify libsecret logrotate mad mmx mng modules mp3 mp4 mpeg multilib mysql nautilus ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pch pcre pdf png policykit postgres ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vdpau vhosts vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="virtuoso hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ro en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gunzip gzip limit_conn limit_req map memcached naxsi proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition cache_purge dav fancyindex flv geoip gzip_static headers_more image_filter mp4 perl push random_index realip secure_link spdy stub_status sub upload_progress xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7 python 3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-lang/gambas-3.5.2 was built with the following:
USE="bzip2 cairo crypt curl dbus desktop examples gmp gsl gtk httpd imageimlib imageio libxml media mime mysql ncurses net openal opengl openssl pcre pdf postgres qt4 sdl sdlsound sqlite3 svg xml zlib -jit -odbc -smtp -sqlite -v4l"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now -O2 -pipe -march=native -ffast-math -w -flto=8 -fno-fat-lto-objects -lm"
Comment 37 Dominique Michel 2014-02-07 19:36:06 UTC
You are right. I was talking about that in the gambas mail list, and the chief developer said he want fix it.

But I still have a doubt. I just use CLFAGS="-march=native -O2 -pipe" and portage default LDFLAGS, and don't get in trouble with that package.