View previous topic :: View next topic |
Author |
Message |
Genewb Apprentice
Joined: 09 Jan 2007 Posts: 165
|
Posted: Tue Oct 16, 2007 1:42 am Post subject: |
|
|
Has anyone here managed to compile an October snapshot? I get:
Quote: | /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -Winvalid-pch -Wno-deprecated -x c++-header -march=nocona -O2 -pipe -D_GNU_SOURCE -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/libsupc++ -O0 -g /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/include/precompiled/stdc++.h -o x86_64-pc-linux-gnu/bits/stdc++.h.gch/O0g.gch
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/include/precompiled/stdc++.h:68:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/limits:1047: error: stray ‘\275’ in program
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/limits:1079: error: stray ‘\230’ in program
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/limits:1104: error: stray ‘\232’ in program
make[4]: *** [x86_64-pc-linux-gnu/bits/stdc++.h.gch/O0g.gch] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build'
make: *** [profiledbootstrap] Error 2 |
when using both 4.1.2 and 4.2.2. No, I'm not using a hardened profile and none of my toolchain has been compiled using fstack-protector. |
|
Back to top |
|
|
b33fc0d3 Retired Dev
Joined: 22 Jun 2006 Posts: 128
|
Posted: Tue Oct 16, 2007 2:34 am Post subject: |
|
|
Genewb wrote: | Has anyone here managed to compile an October snapshot? |
Yes, this seems to be a x86_64 profiled_bootstrap issue. Add this to the top of the ebuild.
Code: | GCC_MAKE_TARGET="bootstrap" |
|
|
Back to top |
|
|
Genewb Apprentice
Joined: 09 Jan 2007 Posts: 165
|
Posted: Tue Oct 16, 2007 3:38 am Post subject: |
|
|
b33fc0d3 wrote: | Genewb wrote: | Has anyone here managed to compile an October snapshot? |
Yes, this seems to be a x86_64 profiled_bootstrap issue. Add this to the top of the ebuild.
Code: | GCC_MAKE_TARGET="bootstrap" |
|
Thank you (very much)! |
|
Back to top |
|
|
jaydeex n00b
Joined: 11 Oct 2007 Posts: 3
|
Posted: Tue Oct 16, 2007 2:13 pm Post subject: Rebuild kernel with gcc 4.3 |
|
|
Thank you 'unK' for the how to.
I managed to install GCC 4.3 and sucesfully rebuilt world (emerge -e world). Now, im having errors when recompiling the kernel. I dont have the log at the very moment, but i was just wondering if any special steps or patch was required to rebuild the kernel in 4.3. I seem to find a few posts indicating im not alone having trouble building the kernel, but no concrete solution seems to exist.
anyone can provide a tip?
thanks guys, im learning a lot with all this |
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Tue Oct 16, 2007 4:14 pm Post subject: |
|
|
It is gcc 4.3 regression and I think it won't be solved soon due to the date of last post there. |
|
Back to top |
|
|
jaydeex n00b
Joined: 11 Oct 2007 Posts: 3
|
Posted: Tue Oct 16, 2007 4:27 pm Post subject: |
|
|
Thanks unK,
Due to my lack of knowledge in the inner workings of GCC, i fail to understand how the problem with udivdi3 prevents from rebuilding the kernel. But in overall if i understand correctly, there is currently no way to rebuild the kernel in gcc 4.3; is that it?
If so, what do you guys do, rebuild your kernels with older versions of gcc?
thanks!
note: sorry if i ask noob questions, but gotta start somewhere
edit: i just got home and i confirm the error message is: undefined reference to '__udivdi3' |
|
Back to top |
|
|
Waninkoko Guru
Joined: 13 May 2005 Posts: 549
|
|
Back to top |
|
|
dodo1122 Guru
Joined: 02 Sep 2006 Posts: 347 Location: York, England
|
Posted: Wed Oct 17, 2007 1:29 pm Post subject: |
|
|
Waninkoko wrote: | http://kamikaze.waninkoko.info/misc/gcc-4.3.0-fix-kernel-compilation.patch
This is a little patch to compile kernel with GCC 4.3.0. You need to apply it to the kernel source. |
I am using it since yesterday, and it works nicely
dodo _________________ #zen-sources on irc.rizon.net |
|
Back to top |
|
|
b33fc0d3 Retired Dev
Joined: 22 Jun 2006 Posts: 128
|
Posted: Fri Oct 19, 2007 7:02 am Post subject: |
|
|
Anyone else on x86_64 and not able to compile the kernel with gcc-4.3?
Try this patch, came from the kernel ml (included in git3):
Code: | --- arch/x86_64/vdso/vdso.lds.S.orig 2007-10-19 06:39:09.000000000 +0100
+++ arch/x86_64/vdso/vdso.lds.S 2007-10-19 06:44:51.000000000 +0100
@@ -20,31 +20,40 @@
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
+ /* The kernel does not need to know these addresses,
+ so they don't need to be before VDSO_TEXT_OFFSET.
+ Pack these in here to sop up the space used for the alignment. */
+ .note : { *(.note.*) } :text :note
+ .useless : {
+ *(.got.plt) *(.got)
+ *(.gnu.linkonce.d.*)
+ *(.gnu.linkonce.b.*)
+ } :text
+
/* This linker script is used both with -r and with -shared.
For the layouts to match, we need to skip more than enough
space for the dynamic symbol table et al. If this amount
- is insufficient, ld -shared will barf. Just increase it here. */
+ is insufficient, ld -shared will barf. */
. = VDSO_PRELINK + VDSO_TEXT_OFFSET;
-
- .text : { *(.text) } :text
- .text.ptr : { *(.text.ptr) } :text
- . = VDSO_PRELINK + 0x900;
- .data : { *(.data) } :text
- .bss : { *(.bss) } :text
-
- .altinstructions : { *(.altinstructions) } :text
- .altinstr_replacement : { *(.altinstr_replacement) } :text
-
- .note : { *(.note.*) } :text :note
- .eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr
- .eh_frame : { KEEP (*(.eh_frame)) } :text
- .dynamic : { *(.dynamic) } :text :dynamic
- .useless : {
- *(.got.plt) *(.got)
- *(.gnu.linkonce.d.*)
- *(.dynbss)
- *(.gnu.linkonce.b.*)
- } :text
+ .rodata : { *(.rodata*) } :text
+ .data : {
+ *(.data*)
+ *(.sdata*)
+ *(.bss*)
+ *(.dynbss*)
+ }
+ .dynamic : { *(.dynamic) } :text :dynamic
+ .altinstructions : { *(.altinstructions) } :text
+ .altinstr_replacement : { *(.altinstr_replacement) } :text
+ /* Separate actual executed code from other data for happy caches. */
+ . = ALIGN(128);
+
+ .text : {
+ FILL(0x90909090);
+ *(.text .stub .text.* .gnu.linkonce.t.*)
+ KEEP (*(.text.*personality*))
+ . = ALIGN(128);
+ }
}
/*
|
|
|
Back to top |
|
|
israel1601 n00b
Joined: 19 Oct 2007 Posts: 3
|
Posted: Fri Oct 19, 2007 2:41 pm Post subject: error |
|
|
have a bug;
error compiling kernel 2.6!!!
i waint final version |
|
Back to top |
|
|
Dottout l33t
Joined: 07 Mar 2006 Posts: 882
|
Posted: Fri Oct 19, 2007 2:59 pm Post subject: Re: error |
|
|
israel1601 wrote: | have a bug;
error compiling kernel 2.6!!!
i waint final version |
did you read the last post before your one? you need to patch |
|
Back to top |
|
|
israel1601 n00b
Joined: 19 Oct 2007 Posts: 3
|
Posted: Fri Oct 19, 2007 3:27 pm Post subject: Re: error |
|
|
can have more bug, i wa... final version
tnhks
Dottout wrote: | israel1601 wrote: | have a bug;
error compiling kernel 2.6!!!
i waint final version |
did you read the last post before your one? you need to patch |
|
|
Back to top |
|
|
yamakawa Guru
Joined: 28 Jul 2003 Posts: 340
|
Posted: Fri Oct 19, 2007 3:29 pm Post subject: |
|
|
Even after adding GCC_MAKE_TARGET="bootstrap" in the ebuild, I still get the following when emerging gcc-4.3-alpha snapshots. My last successful emerge was 20070810.
Code: | libtool: compile: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -pipe -D_GNU_SOURCE -c /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/src/mt_allocator.cc -o mt_allocator.o >/dev/null 2>&1
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:48,
from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:101: error: '::fpos_t' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:103: error: '::clearerr' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:104: error: '::fclose' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:105: error: '::feof' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:106: error: '::ferror' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:107: error: '::fflush' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:108: error: '::fgetc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:109: error: '::fgetpos' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:110: error: '::fgets' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:111: error: '::fopen' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:112: error: '::fprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:113: error: '::fputc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:114: error: '::fputs' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:115: error: '::fread' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:116: error: '::freopen' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:117: error: '::fscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:118: error: '::fseek' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:119: error: '::fsetpos' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:120: error: '::ftell' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:121: error: '::fwrite' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:122: error: '::getc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:123: error: '::getchar' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:124: error: '::gets' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:125: error: '::perror' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:126: error: '::printf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:127: error: '::putc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:128: error: '::putchar' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:129: error: '::puts' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:130: error: '::remove' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:131: error: '::rename' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:132: error: '::rewind' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:133: error: '::scanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:134: error: '::setbuf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:135: error: '::setvbuf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:136: error: '::sprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:137: error: '::sscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:138: error: '::tmpfile' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:139: error: '::tmpnam' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:140: error: '::ungetc' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:141: error: '::vfprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:142: error: '::vprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:143: error: '::vsprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:170: error: '::snprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:171: error: '::vfscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:172: error: '::vscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:173: error: '::vsnprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:174: error: '::vsscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:181: error: '__gnu_cxx::snprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:182: error: '__gnu_cxx::vfscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:183: error: '__gnu_cxx::vscanf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:184: error: '__gnu_cxx::vsnprintf' has not been declared
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/cstdio:185: error: '__gnu_cxx::vsscanf' has not been declared
In file included from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/string:47,
from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/locale_classes.h:47,
from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/locale:46,
from /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/src/codecvt.cc:30:
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h: In static member function 'static typename __gnu_cxx::_Char_types<_CharT>::int_type __gnu_cxx::char_traits<_CharT>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:141: error: 'EOF' was not declared in this scope
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h: In static member function 'static int std::char_traits<char>::eof()':
/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/char_traits.h:295: error: 'EOF' was not declared in this scope
make[4]: *** [codecvt.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: compile: /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/./gcc/xgcc -shared-libgcc -B/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/./gcc -nostdinc++ -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include -I/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -O2 -pipe -D_GNU_SOURCE -c /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/gcc-4.3-20071012/libstdc++-v3/src/bitmap_allocator.cc -o bitmap_allocator.o >/dev/null 2>&1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build'
make: *** [bootstrap] Error 2
*
* ERROR: sys-devel/gcc-4.3.0_alpha20071012 failed.
* Call stack:
* ebuild.sh, line 1695: Called dyn_compile
* ebuild.sh, line 1033: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1377: Called toolchain_src_compile
* toolchain.eclass, line 26: Called gcc_src_compile
* toolchain.eclass, line 1546: Called gcc_do_make 'bootstrap'
* toolchain.eclass, line 1420: Called die
* The specific snippet of code:
* emake \
* LDFLAGS="${LDFLAGS}" \
* STAGE1_CFLAGS="${STAGE1_CFLAGS}" \
* LIBPATH="${LIBPATH}" \
* BOOT_CFLAGS="${BOOT_CFLAGS}" \
* ${GCC_MAKE_TARGET} \
* || die "emake failed with ${GCC_MAKE_TARGET}"
* The die message:
* emake failed with bootstrap
* |
Code: | # USE="-gtk -mudflap -objc -objc++ -objc-gc -openmp" emerge -upv gcc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U ] sys-devel/gcc-4.3.0_alpha20071012 [4.3.0_alpha20070810] USE="nls (-altivec) -bootstrap -build -doc -fortran* -gcj -gtk* (-hardened) -ip28 -ip32r10k -mudflap* (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -openmp* -test -vanilla" 0 kB [1]
Total: 1 package (1 upgrade), Size of downloads: 0 kB
Portage tree and overlays:
[0] /usr/portage
[1] /usr/portage/local/layman/toolchain |
Code: | # emerge --info
Portage 2.1.3.15 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo x86_64)
=================================================================
System uname: 2.6.23-gentoo x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz
Timestamp of tree: Fri, 19 Oct 2007 09:30:08 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python: 2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18.50.0.2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -march=core2 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LC_ALL="C"
LINGUAS="ja"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local/layman/sunrise /usr/portage/local/layman/enlightenment /usr/portage/local/layman/vmware /usr/portage/local/layman/toolchain /usr/portage/local/layman/science /usr/portage/local/portagejp /usr/portage/local/myown /usr/portage/local/layman/toolchain /usr/portage/local/layman/vmware /usr/portage/local/layman/science /usr/portage/local/layman/enlightenment /usr/portage/local/layman/sunrise /usr/portage/local/layman/custom-kernels"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa amd64 arts avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cjk cli cracklib crypt cscope cups dbus dlloader dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gnome gtk gtk2 hal iconv imlib immqt ipv6 isdnlog jpeg kde libg++ mad midi mikmod mmx mng mp3 mpeg mudflap multilibs ncurses nls nptl nptlonly ogg opengl openmp oss pam pcmcia pcre pdflib perl plotutils png ppds pppd python qt3 qt4 quicktime rar readline reflection ruby scim sdl session spell spl sse sse2 ssl tcpd threads truetype truetype-fonts type1 type1-fonts udev unicode vim-syntax vorbis xml xorg xscreensaver xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ja" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
I also tried gcc-4.2.2 profile as well. Actually I use 4.2.2 instead of 4.1.2, which I think more stable.
Any idea? or...should I also enable "bootstrap" in USE flag? (testing right now...) |
|
Back to top |
|
|
Genewb Apprentice
Joined: 09 Jan 2007 Posts: 165
|
Posted: Sat Oct 20, 2007 10:37 am Post subject: |
|
|
yamakawa wrote: | Even after adding GCC_MAKE_TARGET="bootstrap" in the ebuild, I still get the following when emerging gcc-4.3-alpha snapshots.
[snip]
I also tried gcc-4.2.2 profile as well. Actually I use 4.2.2 instead of 4.1.2, which I think more stable.
Any idea? or...should I also enable "bootstrap" in USE flag? (testing right now...) |
The multilib patch is still needed:
Code: |
diff -urN fixincludes.orig/fixincl.x fixincludes/fixincl.x
--- fixincludes.orig/fixincl.x 2007-07-26 00:51:47.000000000 +0100
+++ fixincludes/fixincl.x 2007-08-08 00:39:26.000000000 +0100
@@ -6349,7 +6349,7 @@
* content bypass pattern - skip fix if pattern found
*/
tSCC zStdio_Stdarg_HBypass0[] =
- "include.*(stdarg.h|machine/ansi.h)";
+ "include.*(stdarg.h|machine/ansi.h)|gentoo-multilib";
#define STDIO_STDARG_H_TEST_CT 1
static tTestDesc aStdio_Stdarg_HTests[] = {
diff -urN fixincludes.orig/inclhack.def fixincludes/inclhack.def
--- fixincludes.orig/inclhack.def 2007-07-26 00:51:47.000000000 +0100
+++ fixincludes/inclhack.def 2007-08-08 00:18:06.129542000 +0100
@@ -3457,12 +3457,12 @@
/*
* Arrange for stdio.h to use stdarg.h to define __gnuc_va_list.
* On 4BSD-derived systems, stdio.h defers to machine/ansi.h; that's
- * OK too.
+ * OK too. Gentoo multilib uses a wrapper for stdio.h; skip it.
*/
fix = {
hackname = stdio_stdarg_h;
files = stdio.h;
- bypass = "include.*(stdarg\.h|machine/ansi\.h)";
+ bypass = "include.*(stdarg\.h|machine/ansi\.h)|gentoo-multilib";
/*
* On Solaris 10, this fix is unncessary; <stdio.h> includes
* <iso/stdio_iso.h>, which includes <sys/va_list.h>.
|
|
|
Back to top |
|
|
ryo-san l33t
Joined: 17 Feb 2005 Posts: 729
|
Posted: Sun Oct 21, 2007 4:38 am Post subject: |
|
|
hello all,
tried tonight twice to compile gcc-4.3 20071012 and it fails at the same point ( end of stage 3 ) :
Code: |
misc_specifics.o dprod_r8.o f2c_specifics.o
libtool: link: /usr/x86_64-pc-linux-gnu/bin/ranlib .libs/libgfortran.a
libtool: link: creating libgfortran.la
libtool: link: ( cd ".libs" && rm -f "libgfortran.la" && ln -s "../libgfortran.la" "libgfortran.la" )
make[6]: quittant le répertoire « /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/32/libgfortran »
make[5]: quittant le répertoire « /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/32/libgfortran »
make[4]: quittant le répertoire « /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libgfortran »
make[3]: quittant le répertoire « /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libgfortran »
make[2]: quittant le répertoire « /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build/x86_64-pc-linux-gnu/libgfortran »
make[1]: quittant le répertoire « /var/tmp/portage/sys-devel/gcc-4.3.0_alpha20071012/work/build »
make: *** [bootstrap] Erreur 2
*
* ERROR: sys-devel/gcc-4.3.0_alpha20071012 failed.
* Call stack:
* ebuild.sh, line 1695: Called dyn_compile
* ebuild.sh, line 1033: Called qa_call 'src_compile'
* ebuild.sh, line 44: Called src_compile
* ebuild.sh, line 1377: Called toolchain_src_compile
* toolchain.eclass, line 26: Called gcc_src_compile
* toolchain.eclass, line 1546: Called gcc_do_make 'bootstrap'
* toolchain.eclass, line 1420: Called die
* The specific snippet of code:
* emake \
* LDFLAGS="${LDFLAGS}" \
* STAGE1_CFLAGS="${STAGE1_CFLAGS}" \
* LIBPATH="${LIBPATH}" \
* BOOT_CFLAGS="${BOOT_CFLAGS}" \
* ${GCC_MAKE_TARGET} \
* || die "emake failed with ${GCC_MAKE_TARGET}"
* The die message:
* emake failed with bootstrap
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/log/portage/sys-devel:gcc-4.3.0_alpha20071012:20071021-030639.log'.
*
|
and of course no error in the log.I added the line on top of gcc ebuild.
Maybe some of you have some hints, i will try to find my way but it looks dark
BTW, i've installed portage-bashrc-ng tonight by hand, is there an ebuild ? i 've read something like "if you have already emerged..." in the doc.
thx
Code: |
Portage 2.1.3.15 (default-linux/amd64/2007.0/desktop, gcc-4.2.2, glibc-2.6.1-r0, 2.6.23-gentoo x86_64)
=================================================================
System uname: 2.6.23-gentoo x86_64 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Timestamp of tree: Fri, 19 Oct 2007 18:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.2-r1
dev-lang/python: 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r1
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache confcache distlocks keepwork metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LINGUAS="fr FR_fr"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise /usr/portage/local/layman/marineam-xen /usr/portage/local/layman/xeffects /usr/portage/local/layman/voip /usr/portage/local/layman/berkano /usr/portage/local/layman/toolchain"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac acpi alsa amd64 bash-completion berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss encode evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jpeg ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr FR_fr" USERLAND="GNU" VIDEO_CARDS="ati vesa vga radeon fbdev fglrx"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
|
|
Back to top |
|
|
Gregoire Apprentice
Joined: 15 Apr 2006 Posts: 292
|
Posted: Mon Oct 22, 2007 5:29 pm Post subject: |
|
|
Same error here with gcc-4.3.0_alpha20071012 and gcc-4.3.0_alpha20071019, under amd64 (Core Duo 2). |
|
Back to top |
|
|
Genewb Apprentice
Joined: 09 Jan 2007 Posts: 165
|
Posted: Mon Oct 22, 2007 8:20 pm Post subject: |
|
|
In the absence of knowledgeable people, may I make a lay suggestion to try -fortran if you don't need it? |
|
Back to top |
|
|
Gregoire Apprentice
Joined: 15 Apr 2006 Posts: 292
|
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Wed Oct 24, 2007 1:32 pm Post subject: |
|
|
Did anyone get working uvesafb with kernel compiled against system compiled with gcc-4.3.0? |
|
Back to top |
|
|
Gregoire Apprentice
Joined: 15 Apr 2006 Posts: 292
|
Posted: Wed Oct 24, 2007 1:50 pm Post subject: svn of mplayer/ffmpeg don't compil against 4.3.0-alpha200710 |
|
|
Code: |
...
x86_64-pc-linux-gnu-gcc -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -D__STDC_LIMIT_MACROS -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -D__STDC_LIMIT_MACROS -I/usr/include/ -I/usr/include/SDL -D_REENTRANT -D_REENTRANT -I/usr/include/freetype2 -I/usr/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/liveMedia -I/usr/include/UsageEnvironment -I/usr/include/BasicUsageEnvironment -I/usr/include/groupsock -c -o demux_rtp.o demux_rtp.cpp
<command-line>: error: "__STDC_LIMIT_MACROS" redefined
<command-line>: error: this is the location of the previous definition
In file included from demux_rtp_internal.h:16,
from demux_rtp.cpp:12:
../libavcodec/avcodec.h:2250: warning: ‘ImgReSampleContext’ is deprecated (declared at ../libavcodec/avcodec.h:2244)
../libavcodec/avcodec.h:2260: warning: ‘ImgReSampleContext’ is deprecated (declared at ../libavcodec/avcodec.h:2244)
demux_rtp.cpp:71: warning: ‘typedef’ was ignored in this declaration
make[1]: *** [demux_rtp.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-video/mplayer-9999-r17/work/mplayer/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] Error 2
|
And same for ffmpeg :
Code: |
...
x86_64-pc-linux-gnu-gcc -march=core2 -O2 -pipe -fomit-frame-pointer -fomit-frame-pointer -march=athlon64 -pthread -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -O3 -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg"/libavutil -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg"/libavcodec -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg"/libavformat -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg"/libswscale -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -DHAVE_AV_CONFIG_H -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg"/libswscale -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg"/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg" -I"/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg"/libavutil -march=core2 -O2 -pipe -fomit-frame-pointer -fomit-frame-pointer -march=athlon64 -pthread -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -O3 -fPIC -DPIC -c -o elbg.o elbg.c
elbg.c: In function ‘try_shift_candidate’:
elbg.c:245: 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]: *** [elbg.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/media-video/ffmpeg-20079999-r2/work/ffmpeg/libavcodec'
make: *** [lib] Error 2
rm doc/ffserver.pod doc/ffmpeg.pod doc/ffplay.pod
|
Any idea on how to solve those issues ? |
|
Back to top |
|
|
Gregoire Apprentice
Joined: 15 Apr 2006 Posts: 292
|
Posted: Wed Oct 24, 2007 2:48 pm Post subject: |
|
|
Using a vanilla svn of ffmpeg :
Code: |
gcc -I"/usr/src/CVS/ffmpeg-gcc43"/libswscale -I"/usr/src/CVS/ffmpeg-gcc43"/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/src/CVS/ffmpeg-gcc43" -I"/usr/src/CVS/ffmpeg-gcc43" -I"/usr/src/CVS/ffmpeg-gcc43"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -O3 -c -o roqvideoenc.o roqvideoenc.c
gcc -I"/usr/src/CVS/ffmpeg-gcc43"/libswscale -I"/usr/src/CVS/ffmpeg-gcc43"/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/src/CVS/ffmpeg-gcc43" -I"/usr/src/CVS/ffmpeg-gcc43" -I"/usr/src/CVS/ffmpeg-gcc43"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -O3 -c -o elbg.o elbg.c
elbg.c: In function ‘try_shift_candidate’:
elbg.c:245: 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]: *** [elbg.o] Error 1
make[1]: Leaving directory `/usr/src/CVS/ffmpeg-gcc43/libavcodec'
make: *** [lib] Error 2
|
|
|
Back to top |
|
|
ryo-san l33t
Joined: 17 Feb 2005 Posts: 729
|
Posted: Thu Oct 25, 2007 9:24 am Post subject: |
|
|
Genewb wrote: | yamakawa wrote: | Even after adding GCC_MAKE_TARGET="bootstrap" in the ebuild, I still get the following when emerging gcc-4.3-alpha snapshots.
[snip]
I also tried gcc-4.2.2 profile as well. Actually I use 4.2.2 instead of 4.1.2, which I think more stable.
Any idea? or...should I also enable "bootstrap" in USE flag? (testing right now...) |
The multilib patch is still needed:
Code: |
diff -urN fixincludes.orig/fixincl.x fixincludes/fixincl.x
--- fixincludes.orig/fixincl.x 2007-07-26 00:51:47.000000000 +0100
+++ fixincludes/fixincl.x 2007-08-08 00:39:26.000000000 +0100
@@ -6349,7 +6349,7 @@
* content bypass pattern - skip fix if pattern found
*/
tSCC zStdio_Stdarg_HBypass0[] =
- "include.*(stdarg.h|machine/ansi.h)";
+ "include.*(stdarg.h|machine/ansi.h)|gentoo-multilib";
#define STDIO_STDARG_H_TEST_CT 1
static tTestDesc aStdio_Stdarg_HTests[] = {
diff -urN fixincludes.orig/inclhack.def fixincludes/inclhack.def
--- fixincludes.orig/inclhack.def 2007-07-26 00:51:47.000000000 +0100
+++ fixincludes/inclhack.def 2007-08-08 00:18:06.129542000 +0100
@@ -3457,12 +3457,12 @@
/*
* Arrange for stdio.h to use stdarg.h to define __gnuc_va_list.
* On 4BSD-derived systems, stdio.h defers to machine/ansi.h; that's
- * OK too.
+ * OK too. Gentoo multilib uses a wrapper for stdio.h; skip it.
*/
fix = {
hackname = stdio_stdarg_h;
files = stdio.h;
- bypass = "include.*(stdarg\.h|machine/ansi\.h)";
+ bypass = "include.*(stdarg\.h|machine/ansi\.h)|gentoo-multilib";
/*
* On Solaris 10, this fix is unncessary; <stdio.h> includes
* <iso/stdio_iso.h>, which includes <sys/va_list.h>.
|
|
what is this patch please ? where did u get it ?
anyway it seems ok , i have finally my gcc-4.3
I have appplied the above patchs to compile my kernel.
But is there a way to disable CFLAGS filtering ?
I've set -march=core2 to test , but it is replaced at compile time :
Code: |
* Filtering out invalid CFLAG "-mach=core2"
* Filtering out invalid CXXFLAG "-mach=core2"
|
|
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Thu Oct 25, 2007 11:19 am Post subject: |
|
|
Are you sure it is "march", not "mach"? ;p |
|
Back to top |
|
|
ryo-san l33t
Joined: 17 Feb 2005 Posts: 729
|
Posted: Thu Oct 25, 2007 11:58 am Post subject: |
|
|
what a noob
thx unK
what about rebuilding "system" with this new compiler ?
is it safe ? did someone did it ? |
|
Back to top |
|
|
unK l33t
Joined: 06 Feb 2007 Posts: 769
|
Posted: Thu Oct 25, 2007 1:04 pm Post subject: |
|
|
Yeah, eg. me You can build almost whole world with gcc-4.3.0, for failed packages you can use my and b33fc0d3 patches (links here) |
|
Back to top |
|
|
|
|
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
|
|