
ebuild refers to gcc's files in main portage tree, so there is no additional files needed.nbvcxz wrote:check ftp://sources.redhat.com/pub/gcc/snapshots/ for the latest version and make (rename) the ebuild yourself


me not.nbvcxz wrote:btw. has anybody succesed with compiling any recent kernel with 4.3.0?

(from http://www.gnu.org/software/gcc/gcc-4.3/changes.html, note that's not just supportSupport for SSSE3 built-in functions and code generation are available via -mssse3.
Support for SSE4.1 built-in functions and code generation are available via -msse4.1.
Support for SSE4.2 built-in functions and code generation are available via -msse4.2.
Both SSE4.1 and SSE4.2 support can be enabled via -msse4.

Yup, I've compiled kamikaze9 with gcc-4.3 happily. It's my current running kernel.nbvcxz wrote:btw. has anybody succesed with compiling any recent kernel with 4.3.0?
mine always fails with System.map creating (tried with mm, kamikaze, ragnarok etc.)
Linux b33fb0x 2.6.22-kamikaze9 #3 PREEMPT Tue Sep 25 08:21:03 BST 2007 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux
b33fb0x portage # gcc-config -l
[1] x86_64-pc-linux-gnu-4.2.0
[2] x86_64-pc-linux-gnu-4.3.0-alpha20070921 *
Why do you use "-march=native" ?unK wrote: Btw, I recompiled world using latest snapshot and my system is still workingso I made a table similar to nbvcxz's where I put packages, which failed for me. I also wrote several small patches which allow some of them to build -> http://www.unknownart.webd.pl/o/gcc43/
cheers.
thanks for the heads up, i've been meaning to do a bootstrap with gcc-4.3 and -march=core2nbvcxz wrote:yay as [profile=159137]unK[/profile] announced at Polish forum - I can confirm that you can compile the whole toolchain (with glibc but must use glibc-omitfp) and almost whole system (except of cpio tar and openssl) from portage with gcc-4.3.0_alpha20070921
I have all the above compiling, I use autopatching from bash-rc (look at previous posts).nbvcxz wrote:yay as [profile=159137]unK[/profile] announced at Polish forum - I can confirm that you can compile the whole toolchain (with glibc but must use glibc-omitfp) and almost whole system (except of cpio tar and openssl) from portage with gcc-4.3.0_alpha20070921
But here it fails:b33fc0d3 wrote:openssl didn't even need a patch here ...
Code: Select all
i686-pc-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall -DOPENSSL_BN_ASM_PART_WORDS -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -O2 -march=native -pipe -fomit-frame-pointer -Wa,--noexecstack -c -o eng_padlock.o eng_padlock.c
eng_padlock.c: In function ‘padlock_aes_cipher’:
eng_padlock.c:445: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
eng_padlock.c:445: error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
eng_padlock.c:408: error: ‘asm’ operand has impossible constraints
eng_padlock.c:445: error: ‘asm’ operand has impossible constraints
eng_padlock.c:446: error: ‘asm’ operand has impossible constraints
eng_padlock.c:447: error: ‘asm’ operand has impossible constraints
eng_padlock.c:445: error: ‘asm’ operand has impossible constraints
eng_padlock.c:445: error: ‘asm’ operand has impossible constraints
eng_padlock.c:448: error: ‘asm’ operand has impossible constraints
eng_padlock.c:445: error: ‘asm’ operand has impossible constraints
make[2]: *** [eng_padlock.o] Błąd 1
make[2]: Opuszczenie katalogu `/var/tmp/portage/dev-libs/openssl-0.9.8e-r2/work/openssl-0.9.8e/crypto/engine'
make[1]: *** [subdirs] Błąd 1
make[1]: Opuszczenie katalogu `/var/tmp/portage/dev-libs/openssl-0.9.8e-r2/work/openssl-0.9.8e/crypto'
make: *** [build_crypto] Błąd 1
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,

Code: Select all
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib -DLOCALEDIR=\"/usr/share/locale\" -O2 -march=core2 -pipe -c `test -f search.c || echo './'`search.c
In file included from grep.c:43:
grep.h:45: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
grep.h:46: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
grep.h:47: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
grep.c: In function âprint_offset_sepâ:
grep.c:502: warning: incompatible implicit declaration of built-in function âfwriteâ
grep.c:502: error: âstdoutâ undeclared (first use in this function)
grep.c:502: error: (Each undeclared identifier is reported only once
grep.c:502: error: for each function it appears in.)
grep.c: In function âprlineâ:
grep.c:509: warning: incompatible implicit declaration of built-in function âprintfâ
grep.c:539: warning: incompatible implicit declaration of built-in function âfwriteâ
grep.c:539: error: âstdoutâ undeclared (first use in this function)
grep.c:569: warning: incompatible implicit declaration of built-in function âfwriteâ
grep.c:576: warning: incompatible implicit declaration of built-in function âfwriteâ
grep.c:591: warning: incompatible implicit declaration of built-in function âfwriteâ
grep.c:599: warning: incompatible implicit declaration of built-in function âfwriteâ
dfa.c: In function âparse_bracket_exp_mbâ:
dfa.c:485: warning: assignment from incompatible pointer type
dfa.c:554: warning: assignment from incompatible pointer type
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../lib -DLOCALEDIR=\"/usr/share/locale\" -O2 -march=core2 -pipe -c `test -f grepmat.c || echo './'`grepmat.c
grep.c: In function âgrepâ:
grep.c:874: warning: incompatible implicit declaration of built-in function âprintfâ
grep.c: In function âgrepfileâ:
grep.c:963: warning: incompatible implicit declaration of built-in function âprintfâ
grep.c:969: warning: incompatible implicit declaration of built-in function âprintfâ
grep.c: In function âusageâ:
grep.c:1055: warning: incompatible implicit declaration of built-in function âfprintfâ
grep.c:1055: error: âstderrâ undeclared (first use in this function)
grep.c:1062: warning: incompatible implicit declaration of built-in function âprintfâ
grep.c: In function âmainâ:
grep.c:1295: error: âFILEâ undeclared (first use in this function)
grep.c:1295: error: âfpâ undeclared (first use in this function)
grep.c:1464: error: âstdinâ undeclared (first use in this function)
grep.c:1669: warning: incompatible implicit declaration of built-in function âprintfâ
make[2]: *** [grep.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from search.c:33:
grep.h:45: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
grep.h:46: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
grep.h:47: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token
search.c: In function âcheck_multibyte_stringâ:
search.c:174: warning: passing argument 1 of âwcrtombâ discards qualifiers from pointer target type
make[2]: *** [search.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-apps/grep-2.5.1a-r1/work/grep-2.5.1a/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/grep-2.5.1a-r1/work/grep-2.5.1a'
make: *** [all] Error 2
*
* ERROR: sys-apps/grep-2.5.1a-r1 failed.
* Call stack:
* ebuild.sh, line 1684: Called dyn_compile
* ebuild.sh, line 1020: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* grep-2.5.1a-r1.ebuild, line 56: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-apps/grep-2.5.1a-r1/temp/build.log'.Code: Select all
AR sysklogd/lib.a
CC util-linux/fsck_minix.o
CC libbb/wfopen.o
CC util-linux/getopt.o
CC libbb/wfopen_input.o
CC util-linux/hexdump.o
util-linux/fsck_minix.c: In function âpush_filenameâ:
util-linux/fsck_minix.c:287: warning: implicit declaration of function âsprintfâ
util-linux/fsck_minix.c:287: warning: incompatible implicit declaration of built-in function âsprintfâ
util-linux/fsck_minix.c: In function âaskâ:
util-linux/fsck_minix.c:310: warning: implicit declaration of function âputsâ
util-linux/fsck_minix.c:320: warning: implicit declaration of function âprintfâ
util-linux/fsck_minix.c:320: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:322: warning: implicit declaration of function âfflushâ
util-linux/fsck_minix.c:322: error: âstdoutâ undeclared (first use in this function)
util-linux/fsck_minix.c:322: error: (Each undeclared identifier is reported only once
util-linux/fsck_minix.c:322: error: for each function it appears in.)
util-linux/fsck_minix.c:323: warning: implicit declaration of function âgetcharâ
util-linux/fsck_minix.c:324: error: âEOFâ undeclared (first use in this function)
util-linux/fsck_minix.c: In function âcheck_mountâ:
util-linux/fsck_minix.c:380: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âcheck_zone_nr2â:
util-linux/fsck_minix.c:407: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âread_blockâ:
util-linux/fsck_minix.c:433: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:438: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âwrite_blockâ:
util-linux/fsck_minix.c:453: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:461: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âread_tablesâ:
util-linux/fsck_minix.c:666: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:671: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âget_inodeâ:
util-linux/fsck_minix.c:698: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:720: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:726: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âget_inode2â:
util-linux/fsck_minix.c:744: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:766: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:771: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âadd_zoneâ:
util-linux/fsck_minix.c:809: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:819: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âadd_zone2â:
util-linux/fsck_minix.c:840: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:850: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âcheck_fileâ:
util-linux/fsck_minix.c:995: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1009: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1015: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1023: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1024: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âcheck_file2â:
util-linux/fsck_minix.c:1045: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1059: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1065: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1073: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1074: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function ârecursive_checkâ:
util-linux/fsck_minix.c:1092: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function ârecursive_check2â:
util-linux/fsck_minix.c:1109: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âcheck_countsâ:
util-linux/fsck_minix.c:1132: warning: incompatible implicit declaration of built-in function âprintfâ
CC util-linux/hwclock.o
CC libbb/xatonum.o
util-linux/fsck_minix.c:1141: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1147: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1152: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1167: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1172: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âcheck_counts2â:
util-linux/fsck_minix.c:1184: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1193: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1199: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1204: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1219: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c:1224: warning: incompatible implicit declaration of built-in function âprintfâ
util-linux/fsck_minix.c: In function âfsck_minix_mainâ:
util-linux/fsck_minix.c:1325: warning: incompatible implicit declaration of built-in function âprintfâ
make[1]: *** [util-linux/fsck_minix.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC libbb/xconnect.o
make: *** [util-linux] Error 2
make: *** Waiting for unfinished jobs....
CC libbb/xfuncs.o
CC libbb/xgetcwd.o
CC libbb/xgethostbyname.o
CC libbb/xreadlink.o
CC libbb/xregcomp.o
AR libbb/lib.a
*
* ERROR: sys-apps/busybox-1.7.1 failed.
* Call stack:
* ebuild.sh, line 1684: Called dyn_compile
* ebuild.sh, line 1020: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* busybox-1.7.1.ebuild, line 157: Called die
* The specific snippet of code:
* emake busybox || die "build failed"
* The die message:
* build failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.7.1/temp/build.log'.
*