Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 4.6 Ebuild
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
hedmo
l33t
l33t


Joined: 29 Aug 2009
Posts: 923
Location: halmstad

PostPosted: Sat Jun 04, 2011 12:36 am    Post subject: Reply with quote

Evilguru

do you handle 4.7.0_alphaxxxxxxxx to :?:
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1373

PostPosted: Tue Jun 28, 2011 11:44 am    Post subject: gcc-4.6.1 does not get patches Reply with quote

Just to rename a gcc-4.6.0 ebuild to gcc-4.6.1 doesn't work, because of missing uclib v4.6.1 patches. There is a long list of errors fixed for gcc-4.6.1 ...
_________________
fun2gen2
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Jun 28, 2011 4:44 pm    Post subject: Re: gcc-4.6.1 does not get patches Reply with quote

ulenrich wrote:
Just to rename a gcc-4.6.0 ebuild to gcc-4.6.1 doesn't work, because of missing uclib v4.6.1 patches. There is a long list of errors fixed for gcc-4.6.1 ...


then rename the uclibc patches too ;)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1373

PostPosted: Wed Jun 29, 2011 10:23 am    Post subject: Reply with quote

Now it compiles, but there must be renamed from distfiles directory

gcc-4.6.0-[uclib,pie,patches]
to gcc-4.6.1-[uclib,pie,patches]
And in "patches" tar I deleted three ICE-4.6.1 patches and a freebsd patch!

By the way, why is there applied a patch of gcc-4.4 spec? I ever wondered about spec files, is it just a kind of abi compatibility announcement ?

PS: gcc-4.6.1 runs really cool and error free for me!
_________________
fun2gen2
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Jun 29, 2011 11:43 pm    Post subject: Reply with quote

ulenrich wrote:
Now it compiles, but there must be renamed from distfiles directory

gcc-4.6.0-[uclib,pie,patches]
to gcc-4.6.1-[uclib,pie,patches]
And in "patches" tar I deleted three ICE-4.6.1 patches and a freebsd patch!

By the way, why is there applied a patch of gcc-4.4 spec? I ever wondered about spec files, is it just a kind of abi compatibility announcement ?

PS: gcc-4.6.1 runs really cool and error free for me!


so it's ready for experienced user consumption ?


what apps were failing for you (besides the ones mentioned in this thread) ?


kernel-compilation and glibc now works ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 248

PostPosted: Thu Jun 30, 2011 12:17 pm    Post subject: Reply with quote

kernelOfTruth wrote:
ulenrich wrote:
Now it compiles, but there must be renamed from distfiles directory

gcc-4.6.0-[uclib,pie,patches]
to gcc-4.6.1-[uclib,pie,patches]
And in "patches" tar I deleted three ICE-4.6.1 patches and a freebsd patch!

By the way, why is there applied a patch of gcc-4.4 spec? I ever wondered about spec files, is it just a kind of abi compatibility announcement ?

PS: gcc-4.6.1 runs really cool and error free for me!


so it's ready for experienced user consumption ?


what apps were failing for you (besides the ones mentioned in this thread) ?


kernel-compilation and glibc now works ?


I have compiled kernel and glibc without problem with gcc-4.6.0... what problem did you have with them?
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1373

PostPosted: Sun Jul 03, 2011 9:06 am    Post subject: new chromium-13-gcc46.patcht Reply with quote

On an ~amd64 system the only package only with patch unsing gcc-4.6.1 is chromium. Because chromum-13 had changed the sequence of two lines in a source file, here comes chromium-13-gcc46.patch
Code:
--- third_party/tcmalloc/chromium/src/common.cc   2011-03-29 20:46:14.000000000 +0400
+++ third_party/tcmalloc/chromium/src/common.cc   2011-03-29 20:47:02.000000000 +0400
@@ -30,6 +30,7 @@
 // ---
 // Author: Sanjay Ghemawat <opensource@google.com>
 
+#include <cstddef>
 #include "config.h"
 #include "system-alloc.h"
 #include "config.h"
--- third_party/tcmalloc/chromium/src/base/vdso_support.h   2011-03-29 23:20:20.000000000 +0400
+++ third_party/tcmalloc/chromium/src/base/vdso_support.h   2011-03-29 23:20:37.000000000 +0400
@@ -37,6 +37,7 @@
 
 #define HAVE_VDSO_SUPPORT 1
 
+#include <cstddef>
 #include <stdlib.h>     // for NULL
 #include <link.h>  // for ElfW
 #include "base/basictypes.h"
--- third_party/tcmalloc/chromium/src/base/stl_allocator.h   2011-03-31 12:53:13.000000000 +0400
+++ third_party/tcmalloc/chromium/src/base/stl_allocator.h   2011-03-31 12:53:32.000000000 +0400
@@ -38,6 +38,7 @@
 #include <config.h>
 
 #include <limits>
+#include <cstddef>
 
 #include "base/basictypes.h"
 #include "base/logging.h"
--- third_party/tcmalloc/chromium/src/symbolize.h   2011-03-31 12:58:42.000000000 +0400
+++ third_party/tcmalloc/chromium/src/symbolize.h   2011-03-31 12:59:00.000000000 +0400
@@ -38,6 +38,7 @@
 #include <stdint.h>  // for uintptr_t
 #endif
 #include <map>
+#include <cstddef>
 
 using std::map;
 
--- third_party/tcmalloc/chromium/src/system-alloc.h   2011-03-31 13:01:01.000000000 +0400
+++ third_party/tcmalloc/chromium/src/system-alloc.h   2011-03-31 13:01:15.000000000 +0400
@@ -37,6 +37,7 @@
 #define TCMALLOC_SYSTEM_ALLOC_H_
 
 #include <config.h>
+#include <cstddef>
 #include "internal_logging.h"
 
 // REQUIRES: "alignment" is a power of two or "0" to indicate default alignment
--- gpu/command_buffer/common/types.h   2011-03-31 13:32:58.000000000 +0400
+++ gpu/command_buffer/common/types.h   2011-03-31 13:33:12.000000000 +0400
@@ -11,6 +11,7 @@
 #include <stdint.h>
 #endif
 #include <string>
+#include <cstddef>
 
 typedef signed char         schar;
 typedef signed char         int8;
--- third_party/libjingle/source/talk/base/sigslot.h   2011-03-31 13:43:11.000000000 +0400
+++ third_party/libjingle/source/talk/base/sigslot.h   2011-03-31 13:52:32.000000000 +0400
@@ -80,6 +80,7 @@
 #include <list>
 #include <set>
 #include <stdlib.h>
+#include <cstddef>
 
 // On our copy of sigslot.h, we force single threading
 #define SIGSLOT_PURE_ISO
--- third_party/ots/src/os2.cc~   2011-03-31 14:03:13.000000000 +0400
+++ third_party/ots/src/os2.cc   2011-03-31 14:03:25.000000000 +0400
@@ -5,6 +5,7 @@
 #include "os2.h"
 
 #include "head.h"
+#include <cstddef>
 
 // OS/2 - OS/2 and Windows Metrics
 // http://www.microsoft.com/opentype/otspec/os2.htm
--- ui/gfx/codec/jpeg_codec.h   2011-03-31 14:11:18.000000000 +0400
+++ ui/gfx/codec/jpeg_codec.h   2011-03-31 14:11:27.000000000 +0400
@@ -7,6 +7,7 @@
 #pragma once
 
 #include <vector>
+#include <cstddef>
 
 class SkBitmap;
 
--- chrome/browser/search_engines/template_url_prepopulate_data.h   2011-03-31 14:48:03.000000000 +0400
+++ chrome/browser/search_engines/template_url_prepopulate_data.h   2011-03-31 14:49:52.000000000 +0400
@@ -7,6 +7,7 @@
 #pragma once
 
 #include <vector>
+#include <cstddef>
 
 class GURL;
 class PrefService;
--- ppapi/cpp/paint_aggregator.h   2011-05-11 23:59:53.000000000 +0300
+++ ppapi/cpp/paint_aggregator.h   2011-05-12 00:00:36.000000000 +0300
@@ -6,6 +6,7 @@
 #define PPAPI_CPP_PAINT_AGGREGATOR_H_
 
 #include <vector>
+#include <cstddef>
 
 #include "ppapi/cpp/point.h"
 #include "ppapi/cpp/rect.h"

_________________
fun2gen2
Back to top
View user's profile Send private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1979
Location: Poland

PostPosted: Tue Jul 05, 2011 7:01 am    Post subject: Reply with quote

gcc-4.6.1 is in portage tree, masked.
Back to top
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 406

PostPosted: Wed Jul 06, 2011 12:04 am    Post subject: Reply with quote

Haven't used gentoo for a while. The Handbook section 'Mixing Branches' has changed or it is because I am using amd64 profile.

To the question, I think I unmasked gcc-4.6 (put >=sys-devel/gcc-4.6.0 in package.unmask and package.accept_keywords), but when I do emerge -s gcc there is only 4.4.5 version.

There is no need to put ** chars and the like in package.accept_keywords for live or svn ebuils? There is no mention of it neither in x86 (it is not b/c I am using amd64) nor in amd64 Handbook.
Back to top
View user's profile Send private message
deno
Guru
Guru


Joined: 13 Sep 2006
Posts: 406

PostPosted: Wed Jul 06, 2011 12:38 pm    Post subject: Reply with quote

I got it. KEYWORKDS are mentioned in man pages, altgough it would be nice they are mentioned in Handbook to.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3234
Location: Gainesville, Florida

PostPosted: Wed Jul 06, 2011 2:21 pm    Post subject: Reply with quote

I noticed this in the 4.6.1 ebuild
Code:
ewarn
   ewarn "LTO support is still experimental and unstable."
   ewarn "Any bugs resulting from the use of LTO will not be fixed."
   ewarn

Several other distros have moved to gcc-4.6.1 (Mandriva, Ubuntu, Arch, Fedora) in their testing repos, so it seems it is possible. I'm running 4.6.0 on one Gentoo installation, so I guess I'll update to 4.6.1.

Any feedback on the LTO options?
Last time I tried that, ran into many compile problems, and gave up. Man gcc still says -flto and -fwhopr are disabled by default and experimental.

At http://gcc.gnu.org/gcc-4.6/changes.html under General Optimizer Improvements there's more info, which of course I don't pretend to fully understand. However, among other encouraging things, it says
Quote:
A large number of bugs were fixed. GCC itself, Mozilla Firefox and other large applications can be built with LTO enabled.


In light of this, I thought perhaps not enabling lto globally and trying emerge -e @world, but instead only building the toolchain with lto, then Firefox and a few other larger packages (dare I try kde-meta :roll: ) might work out OK.

Or should we just go ahead and build a gcc-4.6.1 toolchain, and then dive into a full emerge -e @world?
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.29-r2, gcc-9.1.0 kernel-5.1.12-gentoo USE=experimental
Back to top
View user's profile Send private message
12345moon12345
n00b
n00b


Joined: 24 Dec 2006
Posts: 27

PostPosted: Wed Jul 06, 2011 4:16 pm    Post subject: flto with gcc 4.6.1 Reply with quote

Hi I'm trying lto but not sure about correct options and many packages appear to become bigger.
for instance sys-apps/openrc 0.8.3-r1

condition 1) without flto:
GRAPHITE="-floop-block -floop-interchange -floop-strip-mine"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -ftree-vectorize ${GRAPHITE}"
CXXFLAGS="$(CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
env-update && source /etc/profile && emerge -1v openrc && qsize -b openrc-0.8.3-r1 gives me 558156 bytes

condition 2) with flto
GRAPHITE="-floop-block -floop-interchange -floop-strip-mine"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -ftree-vectorize ${GRAPHITE} -flto -fwhole-program"
CC="gcc ${CFLAGS}"
CXXFLAGS="gcc $(CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-flto"
env-update && source /etc/profile && emerge -1v openrc && qsize -b openrc-0.8.3-r1 gives me 846402 bytes

so enabling flto in this way gives a 152% file size (other packages anywhere between 64% and 500%)
So my big question is: what's going on here?
any thoughts /experiences appreciated.
To investigate further I looked at individual file size instead of the whole package-size by running after each emerge:
for line in `equery f openrc` ; do if [ -f "$line" ]; then ls -sh $line ; fi ; done ;
then I found the difference were in just 3 files:

condition 1) without flto:
120K /sbin/rc
28K /usr/lib64/libeinfo.a
76K /usr/lib64/librc.a

condition 2) with flto:
108K /sbin/rc
88K /usr/lib64/libeinfo.a
320K /usr/lib64/librc.a

again any thoughts /experiences appreciated.

thanks :D :D
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3234
Location: Gainesville, Florida

PostPosted: Wed Jul 06, 2011 5:04 pm    Post subject: Reply with quote

12345moon12345,
I see you enabled ftlo globally. Pretty brave! :o

I think I read about the binary size increases a while back before 4.6.0 was officially released. However, your results (64-500% larger) are slightly alarming.

I too would like to know what's going on. Other than that, are you having any compiling problems? A package or two here or there wouldn't discourage me, but before I was having around 100+ packages fail- wouldn't want to go through that again.

I have Mandriva cooker and Arch testing installed on another box- I'll check and see what default flags they are using to compile their binaries- hope I can find them.

Think I'll record the sizes of /bin, /usr/bin, /sbin, /lib, and all the rest BEFORE I try updating to 4.6.1 and -flto, then check sizes later after an emerge -e @world.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 1700, 3.0GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.29-r2, gcc-9.1.0 kernel-5.1.12-gentoo USE=experimental
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6279

PostPosted: Wed Jul 06, 2011 5:27 pm    Post subject: Re: flto with gcc 4.6.1 Reply with quote

12345moon12345 wrote:
condition 1) without flto:
120K /sbin/rc
28K /usr/lib64/libeinfo.a
76K /usr/lib64/librc.a

condition 2) with flto:
108K /sbin/rc
88K /usr/lib64/libeinfo.a
320K /usr/lib64/librc.a

This is what ought to be expected: The binary (/sbin/rc) has decreased its size considerably. (Given that it was an already quite optimized binary, 10% are a lot).
The static libraries have increased, because the flto-information was added to them so that flto can be used when you link to them. (Unfortunately, only the gold linker can currently use that information from static libraries, and using gold is in the current state probably not a good idea.)
Actually, you probably do not need the static libraries at all - I do not know why they are installed for openrc. Maybe genkernel uses them?
Probably the same holds for the other packages which you have installed: You should think about removing unneeded static libraries. Personally, I have
Code:
: ${enable_static=no}

in my config.site, but this is dangerous of course and needs to be overridden for several packages.
Back to top
View user's profile Send private message
Ormaaj
Guru
Guru


Joined: 28 Jan 2008
Posts: 319

PostPosted: Wed Jul 06, 2011 5:46 pm    Post subject: Reply with quote

Build fails for 4.6.1. Mostly -Ofast except for a few in package.env.

Code:
 ~ $ ( f(){ printf '%s\n' "Total: ${#@}" "${@%%,[[:space:]]*}"; }; mapfile < <(xclip -o); f "${MAPFILE[@]##*\(}"; )
Total: 39
dev-libs/nss-3.12.10::gentoo
dev-java/netbeans-platform-7.0::gentoo
dev-db/virtuoso-server-6.1.3::gentoo
dev-haskell/djinn-2009.9.3::custom
kde-base/ffmpegthumbs-4.6.4::gentoo
dev-java/xerces-2.9.1::gentoo
dev-db/hsqldb-1.8.1.2-r1::gentoo
dev-java/netbeans-harness-7.0::gentoo
kde-base/konq-plugins-4.6.49.9999::kde
dev-lang/php-5.3.6-r1::gentoo
dev-lang/mono-2.10.2-r1::gentoo
net-analyzer/rrdtool-1.4.5::gentoo
kde-base/krunner-4.6.4::gentoo
www-client/rekonq-9999::kde
dev-util/qt-creator-9999::qting-edge
games-emulation/bsnes-0.080::roslin
games-board/dreamchess-0.2.0::sunrise
media-plugins/libvisual-projectm-2.0.1::gentoo
sci-libs/gdal-1.8.0-r1::gentoo
www-client/chromium-9999-r1::gentoo
kde-base/marble-4.6.4::gentoo
media-sound/audacity-1.3.13::gentoo
sci-mathematics/octave-3.4.0-r1::gentoo
games-puzzle/bloxorz-0.1::gentoo-haskell
games-action/monadius-0.93::gentoo-haskell
dev-java/jdbc-mysql-5.1.14::gentoo
dev-java/netbeans-ide-7.0::gentoo
dev-java/netbeans-websvccommon-7.0::gentoo
dev-java/netbeans-nb-7.0::gentoo
dev-java/netbeans-dlight-7.0::gentoo
dev-java/netbeans-cnd-7.0::gentoo
dev-java/netbeans-php-7.0::gentoo
dev-java/netbeans-ergonomics-7.0::gentoo
dev-java/netbeans-java-7.0::gentoo
dev-java/netbeans-profiler-7.0::gentoo
dev-java/netbeans-apisupport-7.0::gentoo
dev-java/netbeans-groovy-7.0::gentoo
dev-java/netbeans-enterprise-7.0::gentoo
dev-java/netbeans-mobility-7.0::gentoo
 ~ $ eix --only-names -I | wc -l
1978
 ~ $ gcc-config -l
 [1] x86_64-pc-linux-gnu-4.5.2
 [2] x86_64-pc-linux-gnu-4.6.1 *
~ $ flags
CFLAGS="-march=native -Ofast -ggdb -mmmx -floop-interchange -floop-strip-mine -floop-block -pipe" CXXFLAGS="${CFLAGS}"


Last edited by Ormaaj on Wed Jul 06, 2011 6:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 248

PostPosted: Wed Jul 06, 2011 5:46 pm    Post subject: Re: flto with gcc 4.6.1 Reply with quote

Quote:

Actually, you probably do not need the static libraries at all - I do not know why they are installed for openrc. Maybe genkernel uses them?
Probably the same holds for the other packages which you have installed: You should think about removing unneeded static libraries. Personally, I have
Code:
: ${enable_static=no}

in my config.site, but this is dangerous of course and needs to be overridden for several packages.


config.site? what configuration file is it? Is there any documentation about it? In other hand, do you have a per package C[XX]FLAG file? Can you post it?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6279

PostPosted: Wed Jul 06, 2011 6:49 pm    Post subject: Re: flto with gcc 4.6.1 Reply with quote

cruzki123 wrote:
config.site? what configuration file is it?

It is a configuration file for autotool. You can define its path by the environment variable CONFIG_SITE.
Quote:
Is there any documentation about it?

Not really. Moreover, using it is rather dangerous. Expect breakage even for such simple settings as the above: Usually, the package author knows better how to use autotools....
Quote:
In other hand, do you have a per package C[XX]FLAG file?

Yes, several.
Quote:
Can you post it?

It is too long (several hundred entries). I posted the file concerning flto some weeks ago (it has become a bit longer in the meanwhile but not very much).
Here are the packages which break already with my simple config.site:
Code:
dev-libs/lzo CONFIG_SITE='' # sys-power/suspend needs static libs
dev-lisp/clisp CONFIG_SITE='' NOLDADD=1 +D*DEBUG +D*ASSERT +frename-registers +ffast-math +fdirectives-only
dev-util/ccache CONFIG_SITE=''
games-rpg/freedroidrpg CONFIG_SITE='' +fgraphite* +floop-* # compilation fails/segfaults without this
media-sound/audacity CONFIG_SITE='' +fno-common
net-misc/streamtuner CONFIG_SITE=''
sci-mathematics/axiom CONFIG_SITE='' +D*FILE_OFFSET* +D*FORTIFY* # MAKEOPTS-='-j*'
sys-devel/gdb +ffast-math CONFIG_SITE=''
sys-devel/libtool CONFIG_SITE=''
x11-libs/libXxf86vm CONFIG_SITE='' # nvidia-settings needs the static version
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 248

PostPosted: Wed Jul 06, 2011 8:27 pm    Post subject: Reply with quote

Thank you!! I think that when I recover my laptop from my wife I will try to test -lto and -Ofast.
Back to top
View user's profile Send private message
erpalma
n00b
n00b


Joined: 19 Feb 2008
Posts: 17

PostPosted: Thu Jul 07, 2011 3:11 pm    Post subject: Reply with quote

Is it currently ""safe"" to enable graphite globally?

Enabling LTO in make.conf gaves me about 15/20 (over 1200) failed emerge so by now I keep it disabled.

i5 2410M - ~amd64 - gcc 4.6.1
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6279

PostPosted: Thu Jul 07, 2011 4:49 pm    Post subject: Reply with quote

erpalma wrote:
Is it currently ""safe"" to enable graphite globally?

The only packages where I had problems with it with gcc-4.5 are
Code:
media-gfx/gimp NOLDADD=1 +fgraphite* +floop-*
games-rpg/freedroidrpg CONFIG_SITE='' +fgraphite* +floop-* # compilation fails/segfaults without this
media-libs/libcaca +fgraphite* +floop-*
sys-fs/encfs +fgraphite* +floop-*

I have not recompiled much with gcc-4.6 yet. However, I had one machine where every graphite compilation ended with a segfault (with gcc-4.5), so your experience might be processor-dependent.
Quote:
Enabling LTO in make.conf gaves me about 15/20 (over 1200) failed emerge so by now I keep it disabled.

It seems that much more packages fail with -flto with gcc-4.6.1 than with gcc-4.5 (with gcc-4.6.0 -flto was practically unusable since it produced broken code in many cases).

Moreover, -flto usually causes scanelf to report writable+executable sections for practically all packages, see e.g. this bug report. I would be grateful if anybody can tell me where lies the problem (that is: is it a scanelf or gcc bug or unavoidable with -flto? Why does it not occur with gcc:4.5?).
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Jul 08, 2011 3:49 pm    Post subject: Reply with quote

cruzki123 wrote:
kernelOfTruth wrote:
ulenrich wrote:
Now it compiles, but there must be renamed from distfiles directory

gcc-4.6.0-[uclib,pie,patches]
to gcc-4.6.1-[uclib,pie,patches]
And in "patches" tar I deleted three ICE-4.6.1 patches and a freebsd patch!

By the way, why is there applied a patch of gcc-4.4 spec? I ever wondered about spec files, is it just a kind of abi compatibility announcement ?

PS: gcc-4.6.1 runs really cool and error free for me!


so it's ready for experienced user consumption ?


what apps were failing for you (besides the ones mentioned in this thread) ?


kernel-compilation and glibc now works ?


I have compiled kernel and glibc without problem with gcc-4.6.0... what problem did you have with them?


you're referring to glibc 2.13* right ?


I haven't had any since I was still on gcc 4.5.3,

currently re-compiling the whole system + updating everything


I only asked cause I had read the there were issues with glibc but these probably were related to glibc 2.14 rather than gcc 4.6.0 or 4.6.1 itself





I'm observing several of the following messages lately:

Quote:
warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]

warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result [-Wunused-result]


they should be harmless - I guess & only indicating stricter coding checks


thanks !
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 248

PostPosted: Fri Jul 08, 2011 6:47 pm    Post subject: Reply with quote

Quote:

you're referring to glibc 2.13* right ?


Yes, Flameeyes's has posted quite a list of problems with glibc 2.14 so i has not tried yet.
Back to top
View user's profile Send private message
keet
Guru
Guru


Joined: 09 Sep 2008
Posts: 529

PostPosted: Fri Aug 12, 2011 8:14 pm    Post subject: Reply with quote

I haven't been able to compile Libreoffice with GCC 4.6 for months, though I've tried various versions of it and libwpd. It keeps complaining about something like this:

Code:
=============
Building module libwpd
=============

Entering /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/libwpd

mkout -- version: 1.8
if [ -f ./unxlngx6.pro/misc/build/libwpd-0.9.1.exists ] ; then mv ./unxlngx6.pro/misc/build/libwpd-0.9.1 ./unxlngx6.pro/misc/build/libwpd-0.9.1_removeme ; fi
make writeable...
no patch needed...
mkdir: cannot create directory `./unxlngx6.pro/misc/build/libwpd-0.9.1/src/lib': File exists
Making:    all_wpdlib.dpslo
Compiling: libwpd/unxlngx6.pro/misc/build/libwpd-0.9.1/src/lib/libwpd_internal.cpp

...


Compiling: libwpd/unxlngx6.pro/misc/build/libwpd-0.9.1/src/lib/WP5GeneralPacketData.cpp
In file included from /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/libwpd/unxlngx6.pro/misc/build/libwpd-0.9.1/src/lib/WP5GeneralPacketData.cpp:31:0:
/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/libwpd/unxlngx6.pro/misc/build/libwpd-0.9.1/src/lib/WP5GraphicsInformationPacket.h: In member function 'const WPXBinaryData* WP5GraphicsInformationPacket::getImage(long unsigned int) const':
/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/libwpd/unxlngx6.pro/misc/build/libwpd-0.9.1/src/lib/WP5GraphicsInformationPacket.h:40:138: error: 'NULL' was not declared in this scope
dmake:  Error code 1, while making '../../../../../../unxlngx6.pro/slo/WP5GeneralPacketData.obj'
dmake:  Error code 255, while making './unxlngx6.pro/misc/build/so_built_wpd'

-----------------------------------------------------------------------
        Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
            http://wiki.documentfoundation.org/Development

 it seems that the error is inside 'libwpd', please re-run build
 inside this module to isolate the error and/or test your fix:
-----------------------------------------------------------------------

/bin/bash
cd /var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2
source ./LinuxX86-64Env.Set.sh
cd libwpd
build

when the problem is isolated and fixed exit and re-run 'make' from the top-level
sometimes (sadly) it is necessary to rm -Rf unxlngx6.pro in a module.
make: *** [stamp/build] Error 1
 * ERROR: app-office/libreoffice-3.3.1 failed (compile phase):
 *   Build failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 8880:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *
 * If you need support, post the output of 'emerge --info =app-office/libreoffice-3.3.1',
 * the complete build log and the output of 'emerge -pqv =app-office/libreoffice-3.3.1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.10.3"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/app-office/libreoffice-3.3.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-3.3.1/temp/environment'.
 * S: '/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2'
Back to top
View user's profile Send private message
Ormaaj
Guru
Guru


Joined: 28 Jan 2008
Posts: 319

PostPosted: Fri Aug 12, 2011 10:50 pm    Post subject: Reply with quote

kernelOfTruth wrote:

I'm observing several of the following messages lately:

Quote:
warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]

warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result [-Wunused-result]


they should be harmless - I guess & only indicating stricter coding checks


thanks !


What's the proper way to deal with these BTW? This is a very typical thing AFAIK. I'm not a C programmer but 99% of these must be side-effect-ful functions where you don't necessarily care about the result like scanf, except with some guaranteed input.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6279

PostPosted: Sat Aug 13, 2011 8:57 am    Post subject: Reply with quote

keet wrote:
Code:
/var/tmp/portage/app-office/libreoffice-3.3.1/work/libreoffice-build-3.3.1.2/build/libreoffice-3.3.1.2/libwpd/unxlngx6.pro/misc/build/libwpd-0.9.1/src/lib/WP5GraphicsInformationPacket.h:40:138: error: 'NULL' was not declared in this scope

This error means that there is an
Code:
#include <cstddef>
missing near the beginning of the WP5GraphicsInformationPacket.h file.
(It was missing all of the time, but only after restructuring of the header includes in newer gcc version this error is caught, so you should report this issue [upstream if the file is unpatched])
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum