Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

GCC 4.3.0 testing!

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Locked
Advanced search
702 posts
  • Page 13 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 11
  • 12
  • 13
  • 14
  • 15
  • …
  • 29
  • Next
Author
Message
unK
l33t
l33t
User avatar
Posts: 769
Joined: Tue Feb 06, 2007 5:08 pm

Post by unK » Sat Sep 29, 2007 4:09 pm

I suppose gcc-4.3 for x86 and x86_64 has its own problematic packages (eg. openssl)

Btw openssl compiled fine with gcc-4.3.0-alpha20070928, so now whole system can be compiled with gcc-4.3 (at least on x86)
laughinggnome wrote:Also, cabextract and exiv2 both hang on 'checking for working mktime... ' during configure.

Any bright ideas?
Did you wait a moment? :wink:
It just stops for one minute max and then goes again.
Top
eremini
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Fri May 27, 2005 8:41 am

Post by eremini » Sat Sep 29, 2007 8:49 pm

Path to make tar compile

Code: Select all

--- lib/argp.h.orig     2007-09-25 11:04:18.000000000 +0200
+++ lib/argp.h  2007-09-25 11:06:24.000000000 +0200
@@ -580,7 +580,11 @@
 # endif
 
 # ifndef ARGP_EI
-#  define ARGP_EI extern __inline__
+#  if defined __GNUC_STDC_INLINE__
+#    define ARGP_EI extern __inline__ __attribute__((__gnu_inline__))
+#  else
+#    define ARGP_EI extern __inline__
+#  endif
 # endif
 
 ARGP_EI void
--- lib/argp-fmtstream.h.orig   2007-09-25 11:06:49.000000000 +0200
+++ lib/argp-fmtstream.h        2007-09-25 11:07:35.000000000 +0200
@@ -198,8 +198,12 @@
 #endif
 
 #ifndef ARGP_FS_EI
+#ifdef __GNUC_STDC_INLINE__
+#define ARGP_FS_EI extern inline __attribute__((__gnu_inline__))
+#else
 #define ARGP_FS_EI extern inline
 #endif
+#endif
 
 ARGP_FS_EI size_t
 __argp_fmtstream_write (argp_fmtstream_t __fs,
Top
eremini
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Fri May 27, 2005 8:41 am

Post by eremini » Sat Sep 29, 2007 11:29 pm

Yep, openssl fails here as well
Top
laughinggnome
n00b
n00b
Posts: 45
Joined: Tue Mar 07, 2006 4:30 pm

Post by laughinggnome » Sun Sep 30, 2007 2:16 am

unK wrote: Did you wait a moment? :wink:
It just stops for one minute max and then goes again.
After 9 3/4 hours it's still just sitting there!

Most of the the other problems are, I think, due to x86_64 and missing headers.
It's fun though, this messing up a perfectly good and working system with something new and exciting!
Top
b33fc0d3
Retired Dev
Retired Dev
Posts: 128
Joined: Thu Jun 22, 2006 1:22 pm

Post by b33fc0d3 » Sun Sep 30, 2007 5:38 pm

eremini wrote:are we allowed to post these patches on bugs.gentoo.org?
Only file bugs for Gentoo specific bugs, like glibc-2.6.1 contains a gentoo specific patch for gcc-4.3. Send generic patches upstream.
Top
b33fc0d3
Retired Dev
Retired Dev
Posts: 128
Joined: Thu Jun 22, 2006 1:22 pm

Post by b33fc0d3 » Sun Sep 30, 2007 5:39 pm

laughinggnome wrote:
unK wrote: Did you wait a moment? :wink:
It just stops for one minute max and then goes again.
After 9 3/4 hours it's still just sitting there!

Most of the the other problems are, I think, due to x86_64 and missing headers.
It's fun though, this messing up a perfectly good and working system with something new and exciting!
Try the GCC "-fwrapv" compiler flag for packages that do this at configure. It's a temporary hack and very ugly.
Top
b33fc0d3
Retired Dev
Retired Dev
Posts: 128
Joined: Thu Jun 22, 2006 1:22 pm

Firefox-2.0.0.7 works with gcc-4.3

Post by b33fc0d3 » Sun Sep 30, 2007 5:41 pm

about:buildconfig

Build platform
target
x86_64-pc-linux-gnu

Build tools
Compiler Version Compiler flags
x86_64-pc-linux-gnu-gcc gcc version 4.3.0-alpha20070921 (experimental) (GCC) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -march=athlon64 -fPIC -Wno-return-type -w -pthread -pipe
x86_64-pc-linux-gnu-g++ gcc version 4.3.0-alpha20070921 (experimental) (GCC) -fno-rtti -fno-handle-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon64 -fPIC -Wno-return-type -w -fpermissive -fshort-wchar -pthread -pipe -DARON_WAS_HERE -fpermissive -I/usr/X11R6/include

Configure arguments
--enable-application=browser '--enable-optimize=-O3 -ftree-vectorizer-verbose=3' --disable-installer --disable-pedantic --enable-crypto --with-system-jpeg --with-system-png --with-system-zlib --disable-updater --enable-default-toolkit=gtk2 --enable-pango --enable-svg --enable-svg-renderer=cairo --enable-system-cairo --disable-strip --disable-strip-libs --enable-single-profile --disable-profilesharing --disable-profilelocking --disable-ipv6 --disable-xinerama --disable-xprint --disable-freetype2 --disable-debug --disable-tests --enable-reorder --enable-application=browser --enable-image-encoder=all --enable-canvas --with-system-nspr --with-system-nss --enable-official-branding --enable-oji --enable-mathml --disable-jsd --disable-xpctools --with-default-mozilla-five-home=/usr/lib64/mozilla-firefox --enable-extensions=default,typeaheadfind,-venkman --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
Top
unK
l33t
l33t
User avatar
Posts: 769
Joined: Tue Feb 06, 2007 5:08 pm

Post by unK » Sun Sep 30, 2007 6:31 pm

Ok, I fixed all packages which failed for me and I have full gcc-4.3.0 system, except kernel (asm error) and minefield :)

All patches are available here. I also added eremini's patch for tar and cpio, I think it is nice to have them all in one place, but if you mind, I'll remove it.

ps. I am not sure about safety of patch for jpeg and id3lib.

cheers.
Top
eremini
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Fri May 27, 2005 8:41 am

Post by eremini » Mon Oct 01, 2007 12:23 am

unK: of course thats fine

Confirmed OpenSSL compiles with the latest gcc snapshot
Top
eremini
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Fri May 27, 2005 8:41 am

Post by eremini » Mon Oct 01, 2007 9:00 pm

Yep, mm-sources don't compile

CC arch/i386/lib/usercopy.o
arch/i386/lib/usercopy.c: In function ‘__copy_to_user_ll’:
arch/i386/lib/usercopy.c:777: error: ‘asm’ operand has impossible constraints
make[1]: *** [arch/i386/lib/usercopy.o] Error 1
Top
enderandrew
l33t
l33t
User avatar
Posts: 731
Joined: Tue Oct 25, 2005 8:37 am

Post by enderandrew » Tue Oct 02, 2007 2:56 am

eremini wrote:Yep, mm-sources don't compile

CC arch/i386/lib/usercopy.o
arch/i386/lib/usercopy.c: In function ‘__copy_to_user_ll’:
arch/i386/lib/usercopy.c:777: error: ‘asm’ operand has impossible constraints
make[1]: *** [arch/i386/lib/usercopy.o] Error 1
Send an email to Andrew Morton and/or the LKML. I'm sure someone will post a quick fix.
Nihilism makes me smile.
Top
unK
l33t
l33t
User avatar
Posts: 769
Joined: Tue Feb 06, 2007 5:08 pm

Post by unK » Tue Oct 02, 2007 3:11 pm

I'm quite bored so I started playing around with cflags and I just noticed that using gcc-4.3 and flag -ftree-loop-linear mesa compiles. But with xorg-server it still fails.

Btw I changes my sane cflags to these: "-Os -march=native -pipe -fomit-frame-pointer -freorder-blocks -fno-ident -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -fweb". I'm going to recompile world with them and gcc-4.3 and see what happens :twisted:
Top
nbvcxz
Guru
Guru
User avatar
Posts: 379
Joined: Fri Sep 02, 2005 7:09 pm
Location: Kraków / PL

Post by nbvcxz » Tue Oct 02, 2007 6:23 pm

unK wrote:Btw I changes my sane cflags to these: "-Os -march=native -pipe -fomit-frame-pointer -freorder-blocks -fno-ident -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -fweb". I'm going to recompile world with them and gcc-4.3 and see what happens :twisted:
Should work ok - see my table to avoid possible conflicts, but first try them all - gcc-4.3.0 is still being improved and some data in my table can be not up to date.
nBVCXz
zen-kernel (bfq compcache) | /tmp -> tmpfs | ext4 | zsh | xfce | schedtool
Top
eremini
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Fri May 27, 2005 8:41 am

Post by eremini » Fri Oct 05, 2007 12:40 am

ghostscript-gpl

i686-pc-linux-gnu-gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -DHAVE_FILE64 -O2 -fPIC -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -Wno-strict-aliasing -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE="unsigned long long" -march=native -O2 -pipe -fomit-frame-pointer -ftree-vectorize -ftracer -ftree-loop-linear -I./obj/../soobj -I./src -o ./obj/../soobj/gdevtfnx.o -c ./src/gdevtfnx.c
./src/gdevtfnx.c: In function ‘tiff12_print_page’:
./src/gdevtfnx.c:98: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [obj/../soobj/gdevtfnx.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/ghostscript-gpl-8.57/work/ghostscript-8.57'
make: *** [so] Error 2

Edit:
Never mind it fails on gcc 4.2 as well, its the cflags (-march=native -O2 -pipe -fomit-frame-pointer -ftree-vectorize -ftracer -ftree-loop-linear).
Top
nbvcxz
Guru
Guru
User avatar
Posts: 379
Joined: Fri Sep 02, 2005 7:09 pm
Location: Kraków / PL

Post by nbvcxz » Fri Oct 05, 2007 8:46 am

@ eremini - try with no -ftree-* flags
nBVCXz
zen-kernel (bfq compcache) | /tmp -> tmpfs | ext4 | zsh | xfce | schedtool
Top
unK
l33t
l33t
User avatar
Posts: 769
Joined: Tue Feb 06, 2007 5:08 pm

Post by unK » Fri Oct 05, 2007 9:28 am

using -ftree* on x86 can only cause trouble imo (especially ftree-loop-linear).

Edit: Ok, -Os is not really good, xorg-server and compiz-fusion compiled with it have horrible performance, now I'll try -O3 (and -O2 for qt&kde).
Edit2: LoL, It seems messing with cflags using experimental gcc doesn't give good results at all, so I set my defaults again.
Top
eremini
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Fri May 27, 2005 8:41 am

Post by eremini » Sat Oct 06, 2007 11:29 am

patch to make in portage antlr compile

Code: Select all

--- lib/cpp/antlr/CharScanner.hpp.orig	2007-10-06 12:10:48.165620503 +0100
+++ lib/cpp/antlr/CharScanner.hpp	2007-10-06 12:11:51.487277141 +0100
@@ -55,6 +55,7 @@
 	}
 }
 #else
+#include <string.h>
 #ifdef NO_STRCASECMP
 ANTLR_C_USING(stricmp)
 #else
Haven't submitted this upstream because I don't know if the latest upstream version has the same bug
Top
eremini
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Fri May 27, 2005 8:41 am

Post by eremini » Sun Oct 07, 2007 12:15 pm

libglade also fails for me with gcc 4.3. Anyone can confirm?
Top
unK
l33t
l33t
User avatar
Posts: 769
Joined: Tue Feb 06, 2007 5:08 pm

Post by unK » Sun Oct 07, 2007 1:22 pm

eremini wrote:libglade also fails for me with gcc 4.3. Anyone can confirm?
yeah. use b33fc0d3's patch from here to fix it.
Top
b33fc0d3
Retired Dev
Retired Dev
Posts: 128
Joined: Thu Jun 22, 2006 1:22 pm

A new update on patches

Post by b33fc0d3 » Mon Oct 08, 2007 1:10 am

*** REMOVED ***
Last edited by b33fc0d3 on Fri Nov 16, 2007 2:07 am, edited 1 time in total.
Top
unK
l33t
l33t
User avatar
Posts: 769
Joined: Tue Feb 06, 2007 5:08 pm

Post by unK » Tue Oct 09, 2007 2:13 pm

Openssl compiled with gcc-4.3 is broken (apache compiled with ssl won't start and subversion won't checkout from https://*).
Top
Dottout
l33t
l33t
User avatar
Posts: 882
Joined: Tue Mar 07, 2006 6:38 pm

Post by Dottout » Wed Oct 10, 2007 8:33 pm

hi, thank you for your patches, Ive almost finished to emerge world with gcc-4.3.0-alpha20071005 (CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer")
well, does anyone have a fix for amsn? it dies at login with 'illegal instruction'
I also confirm again svn issue, checkout from https doesnt work
Top
tomt21
n00b
n00b
Posts: 12
Joined: Sun Feb 18, 2007 1:25 pm

Post by tomt21 » Thu Oct 11, 2007 10:56 am

Sorry if this is a stupid newbie question but how do you install gcc 4.3? i got 4.2 to install by unmasking it but there doesnt seem to be an ebuild for 4.3.

I don't want to use it as my main compiler, i just want to use it to build python 2.5 and compile some .so files because i'm having problems getting openmp to work using ctypes in python with 4.2 (it complains about dlopen not being able to open libgomp)
Top
cruzki
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Tue Dec 13, 2005 1:50 pm

Post by cruzki » Thu Oct 11, 2007 11:43 am

you need to use layman and fetch the overlay toolchain.

#emerge layman
#layman -f
#layman -a toolchain

Then unmask (or keyword, I don't remember) gcc-4.3 and install ;)

Good lock
Top
tomt21
n00b
n00b
Posts: 12
Joined: Sun Feb 18, 2007 1:25 pm

Post by tomt21 » Thu Oct 11, 2007 12:14 pm

Thank you! I looked for an overlay but I didn't know gcc was in the toolchain one (I realise how stupid that sounds.. in my defense I was looking for an overlay called gcc!)
Top
Locked

702 posts
  • Page 13 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 11
  • 12
  • 13
  • 14
  • 15
  • …
  • 29
  • Next

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic