Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How long until hardened and toolchain will produce a hardene
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 28, 29, 30  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  

How long until hardened and toolchain will produce a hardened gcc4?
1 year
23%
 23%  [ 40 ]
5 years
20%
 20%  [ 35 ]
10 years
7%
 7%  [ 13 ]
lifetime
4%
 4%  [ 8 ]
eternity
44%
 44%  [ 76 ]
Total Votes : 172

Author Message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Wed May 28, 2008 10:30 am    Post subject: Reply with quote

Gcc 4.2.4 is on my overlay
Happy testing :)
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Wed May 28, 2008 11:06 am    Post subject: Reply with quote

Xake wrote:
zorry wrote:
Gcc 4.2.4 is in portage.
Bug#149649 is no more :cry:
Are we going to open a new bug for hardened gcc 4.x toolchain?


No new bug for hardened gcc-4 until we have something hardened have had a chance to look at and have given us their input on.
And maybe let toolchain have a look at it also.
Then comes the testing and telling people to break their systems for us!:-D

Okey :)
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Wed May 28, 2008 11:24 am    Post subject: Reply with quote

The trac for Hardened gcc 4.x toolchain
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
nat
Apprentice
Apprentice


Joined: 04 Sep 2002
Posts: 205

PostPosted: Wed May 28, 2008 12:58 pm    Post subject: thanks! Reply with quote

Just want to say thanks to everyone working/testing the hardened gcc4. will test it myself on uclibc when i get time.

-nc
_________________
time = money but money != time
Back to top
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Wed May 28, 2008 1:33 pm    Post subject: Re: thanks! Reply with quote

nat wrote:
Just want to say thanks to everyone working/testing the hardened gcc4. will test it myself on uclibc when i get time.

-nc


Appriciate this. But be aware you may hit some problems, as we have currently no experience of uclibc.
Back to top
View user's profile Send private message
nat
Apprentice
Apprentice


Joined: 04 Sep 2002
Posts: 205

PostPosted: Thu May 29, 2008 7:00 am    Post subject: Re: thanks! Reply with quote

Xake wrote:
nat wrote:
Just want to say thanks to everyone working/testing the hardened gcc4. will test it myself on uclibc when i get time.

-nc


Appriciate this. But be aware you may hit some problems, as we have currently no experience of uclibc.


I have. Last time I tried the __stack_chk_guard func was missing and conclustion was we wait for uclibc-0.9.29. But 0.9.29 is not really planned for gentoo but we are backporting stuff for 0.9.28. Shouldn't be too hard to backport the __stack_chk_guard for current uclibc.

-nc
_________________
time = money but money != time
Back to top
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Thu May 29, 2008 3:06 pm    Post subject: Re: thanks! Reply with quote

nat wrote:
Xake wrote:
nat wrote:
Just want to say thanks to everyone working/testing the hardened gcc4. will test it myself on uclibc when i get time.

-nc


Appriciate this. But be aware you may hit some problems, as we have currently no experience of uclibc.


I have. Last time I tried the __stack_chk_guard func was missing and conclustion was we wait for uclibc-0.9.29. But 0.9.29 is not really planned for gentoo but we are backporting stuff for 0.9.28. Shouldn't be too hard to backport the __stack_chk_guard for current uclibc.

-nc



Good. :)
Keep us posted if there is anything we need to change.
Back to top
View user's profile Send private message
forsaken1
n00b
n00b


Joined: 30 May 2008
Posts: 27
Location: Lovely Skåne, Sweden

PostPosted: Fri May 30, 2008 7:09 am    Post subject: Reply with quote

I've recompiled my 64bit only installation with the overlay, everything seems to work fine. Except that portage complains about the eclass and wanting me to do emerge --regen after each sync and e2fsprogs didn't include the -fPIC flag, I had to edit the ebuild and remove "use amd64 && use hardened".
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Mon Jun 02, 2008 9:08 pm    Post subject: Reply with quote

Have new ebuild and patch for e2fsprogs for testing.
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
forsaken1
n00b
n00b


Joined: 30 May 2008
Posts: 27
Location: Lovely Skåne, Sweden

PostPosted: Tue Jun 03, 2008 8:10 am    Post subject: Reply with quote

zorry wrote:
Have new ebuild and patch for e2fsprogs for testing.


It works :)
Back to top
View user's profile Send private message
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Tue Jun 03, 2008 11:07 pm    Post subject: Reply with quote

Have new ebuild and patch for grub for testing.
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
forsaken1
n00b
n00b


Joined: 30 May 2008
Posts: 27
Location: Lovely Skåne, Sweden

PostPosted: Wed Jun 04, 2008 6:10 am    Post subject: Reply with quote

zorry wrote:
Have new ebuild and patch for grub for testing.


I can't test it since I'm not running multilib.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon Jun 09, 2008 11:37 am    Post subject: Reply with quote

you guys have any plans to port / test-drive the hardened patchset to >=gcc-4.3.1 ?

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
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon Jun 09, 2008 5:34 pm    Post subject: Reply with quote

ok, since I "needed" it, here are the ported piepatches,

dunno if everything is set up right, currently I'm test-compiling gcc, then I'll see whether it compiles right and so on:

gcc-4.3.1-piepatches-v4.tar.bz2

the rs6000 and arm stuff is missing since pie stuff wasn't in their files (probably moved or whatever ...):

Quote:
gcc/config/rs6000/linux64.h
gcc/config/rs6000/sysv4.h

gcc/config/arm/uclinux-elf.h


I commented the sections where I wasn't sure with:

Code:
/* the following was changed:
...
to
...
 */

_________________
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
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon Jun 09, 2008 5:37 pm    Post subject: Reply with quote

Quote:
/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/ -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 -O -m32 -fno-stack-protector -O2 -O2 -g -O2 -mtune=nocona -pipe -fPIC -fstack-protector -fno-strict-aliasing -fno-ident -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/../gcc -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o crtprec80.o -MT crtprec80.o -MD -MP -MF crtprec80.dep -D__PREC=80 -c /var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/../gcc/config/i386/crtprec.c
/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/ -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 -O -m32 -fno-stack-protector -O2 -O2 -g -O2 -mtune=nocona -pipe -fPIC -fstack-protector -fno-strict-aliasing -fno-ident -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/. -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/../gcc -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS -o crtfastmath.o -MT crtfastmath.o -MD -MP -MF crtfastmath.dep -msse -minline-all-stringops -c \
/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/gcc-4.3.1/libgcc/../gcc/config/i386/crtfastmath.c
# If the gcc directory specifies which extra parts to
# build for this target, and the libgcc configuration also
# specifies, make sure they match. This can be removed
# when the gcc directory no longer holds libgcc configuration;
# it is useful when migrating a target.
Configuration mismatch!
Extra parts from gcc directory: crtbegin.o crtbeginS.o crtbeginT.o crtbeginTS.o crtend.o crtendS.o crtfastmath.o crtprec32.o crtprec64.o crtprec80.o
Extra parts from libgcc: crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o crtprec64.o crtprec80.o crtfastmath.o
exit 1
make[5]: *** [libgcc-extra-parts] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build'
make: *** [profiledbootstrap] Error 2


ok, not enough know-how - I guess :P
_________________
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
Dwokfur
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2006
Posts: 86
Location: Budapest, Hungary, Europe

PostPosted: Mon Jun 09, 2008 6:28 pm    Post subject: Reply with quote

Awesome!

Does it compile the kernel? If yes, that is the way to go.

Regards,
Dw.

kernelOfTruth wrote:
ok, since I "needed" it, here are the ported piepatches,

dunno if everything is set up right, currently I'm test-compiling gcc, then I'll see whether it compiles right and so on:

gcc-4.3.1-piepatches-v4.tar.bz2

the rs6000 and arm stuff is missing since pie stuff wasn't in their files (probably moved or whatever ...):



Last edited by Dwokfur on Mon Jun 09, 2008 6:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dwokfur
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2006
Posts: 86
Location: Budapest, Hungary, Europe

PostPosted: Mon Jun 09, 2008 6:44 pm    Post subject: Reply with quote

I'm happy to announce, that I've managed to get Xake's overlay working on my laptop. Although switching the toolchain was a bit different, because I used an intermediate (4.1.2 semi-hardened) toolchain, but it works. The spec files are created OK and ebuilds can use them. Grub compiled using the overlay produces a working binary.

Two examples:
emerging Xorg produces the following portage messages:
Quote:

* Messages for package x11-base/xorg-server-1.3.0.0-r5:

* Forcing on xorg-x11 for new enough glxtokens.h...
* Hardened compiler filtered -Wl,-z,now - GCC_SPECS set to noznow.specs
* Users of reduced blanking now need:
* Option "ReducedBlanking"
* In the relevant Monitor section(s).
* Make sure your reduced blanking modelines are safe!

Please note, the third entry!
Now check the binary out using scanelf!
Quote:

readelf -h /usr/bin/Xorg | grep DYN
Type: DYN (Shared object file)
readelf -s /usr/bin/Xorg | grep stack_chk_fail
229: 00000000 2180 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (11)
readelf -l /usr/bin/Xorg | grep RELRO
GNU_RELRO 0x1caed8 0x001cbed8 0x001cbed8 0x01128 0x01128 R 0x1
readelf -d /usr/bin/Xorg | grep BIND


Exactly what is expected.

Second example: mplayer
Quote:

* Messages for package media-video/mplayer-1.0_rc2_p26753-r1:

* For MPlayer's language support, the configuration will
* use your LINGUAS variable from /etc/make.conf. If you have more
* than one language enabled, then the first one in the list will
* be used to output the messages, if a translation is available.
* man pages will be created for all languages where translations
* are also available.
* Hardened compiler filtered -fPIC - GCC_SPECS set to nopie.specs
* GNU info directory index is up-to-date.

Again note the row about Hardened compiler!
Now what scanelf says?
Quote:

readelf -h /usr/bin/mplayer | grep DYN

readelf -s /usr/bin/mplayer | grep stack_chk_fail
501: 00000000 2180 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (21)
readelf -l /usr/bin/mplayer | grep RELRO
GNU_RELRO 0x7e0eac 0x08829eac 0x08829eac 0x01154 0x01154 R 0x1
readelf -d /usr/bin/mplayer | grep BIND
0x0000001e (FLAGS) BIND_NOW

Correct!

Both binaries are running fine!
I didn't compile the whole world, it would take ages.

Respect to:
Xake, Zorry, KernelOfTruth, Peter Hjalmarsson (?) and Kevin F Quinn

Shame on those, who gave a f* on the Hardened Toolchain and let Gentoo to lag behind other distros!

BTW: how to check out fortify_source?

What's next?

Regards,
Dw.
Back to top
View user's profile Send private message
Dwokfur
Tux's lil' helper
Tux's lil' helper


Joined: 15 Sep 2006
Posts: 86
Location: Budapest, Hungary, Europe

PostPosted: Mon Jun 09, 2008 6:58 pm    Post subject: Reply with quote

Doh!

Playing around with crtbegin is beyond my scope. Although I know some asm on x86. I'll try to give it a try.

It would be good to look for somebody who can give a helping hand in the mean time though...

Regards,
Dw.

kernelOfTruth wrote:
Quote:
/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/ -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 -O -m32 -fno-stack-protector -O2 -O2 -g -O2 -mtune=nocona -pipe -fPIC -fstack-protector -fno-strict-aliasing -fno-ident -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc
<snip>
Configuration mismatch!
Extra parts from gcc directory: crtbegin.o crtbeginS.o crtbeginT.o crtbeginTS.o crtend.o crtendS.o crtfastmath.o crtprec32.o crtprec64.o crtprec80.o
Extra parts from libgcc: crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o crtprec64.o crtprec80.o crtfastmath.o
exit 1
make[5]: *** [libgcc-extra-parts] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build'
make: *** [profiledbootstrap] Error 2


ok, not enough know-how - I guess :P
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon Jun 09, 2008 7:50 pm    Post subject: Reply with quote

just finished the in-tree gcc-version:

Quote:
gcc -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.1/work/gcc-4.3.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --enable-java-awt=gtk --enable-objc-gc --enable-languages=c,c++,java,objc,obj-c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 4.3.1 p1.0, ssp-builtin'
Thread model: posix
gcc version 4.3.1 (Gentoo Hardened 4.3.1 p1.0, ssp-builtin)


... fascinating ! :)
_________________
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
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon Jun 09, 2008 8:07 pm    Post subject: Reply with quote

Dwokfur wrote:
Doh!

Playing around with crtbegin is beyond my scope. Although I know some asm on x86. I'll try to give it a try.

It would be good to look for somebody who can give a helping hand in the mean time though...

Regards,
Dw.

kernelOfTruth wrote:
Quote:
/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/./gcc/ -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 -O -m32 -fno-stack-protector -O2 -O2 -g -O2 -mtune=nocona -pipe -fPIC -fstack-protector -fno-strict-aliasing -fno-ident -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../.././gcc
<snip>
Configuration mismatch!
Extra parts from gcc directory: crtbegin.o crtbeginS.o crtbeginT.o crtbeginTS.o crtend.o crtendS.o crtfastmath.o crtprec32.o crtprec64.o crtprec80.o
Extra parts from libgcc: crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtprec32.o crtprec64.o crtprec80.o crtfastmath.o
exit 1
make[5]: *** [libgcc-extra-parts] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/32/libgcc'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/libgcc'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build/x86_64-pc-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/build'
make: *** [profiledbootstrap] Error 2


ok, not enough know-how - I guess :P


I believe it's rather a triggered bug than a crtbegin thingy:

http://www.google.com/search?hl=de&q=%22when+the+gcc+directory+no+longer+holds+libgcc+configuration%22&btnG=Suche&meta=

(un)fortunately that one was already fixed - strange ...

edit:
oh well, I think I added something which shouldn't be there ...
_________________
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
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon Jun 09, 2008 9:54 pm    Post subject: Reply with quote

zorry ?

how do you fix the following error, please ?
this doesn't happen with your overlay, right?

Quote:
* Applying gcc-4.2.0-cc1-no-stack-protector.patch ... [ ok ]
* Applying upstream pie patches ...
* 00_all_gcc-4.0-cvs-incompat.patch ... [ ok ]
* 00_all_gcc-4.1.1-v9.0.5-start_endfile-new.patch ... [ ok ]
* Done with patching
* Applying non-default pie patches ...
* 00_all_gcc.4.1.1-v9.0.9-start_endfile-nondef_new.patch ... [ ok ]
* 01_all_gcc-4.0.2-v9.0.0-start_endfile-boundschecking-no.patch ... [ ok ]
* Done with patching

* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/piepatch/def
* ( def )


update:

gcc-4.3.1-piepatches-v7.tar.bz2
_________________
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
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Mon Jun 09, 2008 10:34 pm    Post subject: Reply with quote

kernelOfTruth wrote:
zorry ?

how do you fix the following error, please ?
this doesn't happen with your overlay, right?

Quote:
* Applying gcc-4.2.0-cc1-no-stack-protector.patch ... [ ok ]
* Applying upstream pie patches ...
* 00_all_gcc-4.0-cvs-incompat.patch ... [ ok ]
* 00_all_gcc-4.1.1-v9.0.5-start_endfile-new.patch ... [ ok ]
* Done with patching
* Applying non-default pie patches ...
* 00_all_gcc.4.1.1-v9.0.9-start_endfile-nondef_new.patch ... [ ok ]
* 01_all_gcc-4.0.2-v9.0.0-start_endfile-boundschecking-no.patch ... [ ok ]
* Done with patching

* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/piepatch/def
* ( def )


update:

gcc-4.3.1-piepatches-v7.tar.bz2

Thanx for the work.
I will fix it and add it to my overlay
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


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

PostPosted: Mon Jun 09, 2008 10:49 pm    Post subject: Reply with quote

zorry wrote:
kernelOfTruth wrote:
zorry ?

how do you fix the following error, please ?
this doesn't happen with your overlay, right?

Quote:
* Applying gcc-4.2.0-cc1-no-stack-protector.patch ... [ ok ]
* Applying upstream pie patches ...
* 00_all_gcc-4.0-cvs-incompat.patch ... [ ok ]
* 00_all_gcc-4.1.1-v9.0.5-start_endfile-new.patch ... [ ok ]
* Done with patching
* Applying non-default pie patches ...
* 00_all_gcc.4.1.1-v9.0.9-start_endfile-nondef_new.patch ... [ ok ]
* 01_all_gcc-4.0.2-v9.0.0-start_endfile-boundschecking-no.patch ... [ ok ]
* Done with patching

* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/piepatch/def
* ( def )


update:

gcc-4.3.1-piepatches-v7.tar.bz2

Thanx for the work.
I will fix it and add it to my overlay


your welcome :)

the patches should be correct now, unfortunately I'm still getting the same error, ... :?
_________________
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
zorry
Developer
Developer


Joined: 30 Mar 2008
Posts: 380
Location: Umeå The north part of scandinavia

PostPosted: Tue Jun 10, 2008 12:29 am    Post subject: Reply with quote

kernelOfTruth wrote:
zorry wrote:
kernelOfTruth wrote:
zorry ?

how do you fix the following error, please ?
this doesn't happen with your overlay, right?

Quote:
* Applying gcc-4.2.0-cc1-no-stack-protector.patch ... [ ok ]
* Applying upstream pie patches ...
* 00_all_gcc-4.0-cvs-incompat.patch ... [ ok ]
* 00_all_gcc-4.1.1-v9.0.5-start_endfile-new.patch ... [ ok ]
* Done with patching
* Applying non-default pie patches ...
* 00_all_gcc.4.1.1-v9.0.9-start_endfile-nondef_new.patch ... [ ok ]
* 01_all_gcc-4.0.2-v9.0.0-start_endfile-boundschecking-no.patch ... [ ok ]
* Done with patching

* Cannot find $EPATCH_SOURCE! Value for $EPATCH_SOURCE is:
*
* /var/tmp/portage/sys-devel/gcc-4.3.1-r3/work/piepatch/def
* ( def )


update:

gcc-4.3.1-piepatches-v7.tar.bz2

Thanx for the work.
I will fix it and add it to my overlay


your welcome :)

the patches should be correct now, unfortunately I'm still getting the same error, ... :?

Ticket 24 on the Trac
_________________
gcc version 6.1.0 (Gentoo Hardened 6.1.0 p1.1)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


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

PostPosted: Tue Jun 10, 2008 9:20 am    Post subject: Reply with quote

thanks, zorry,

unfortunately I can't comment nor modify that ticket :(
_________________
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
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 6, 7, 8 ... 28, 29, 30  Next
Page 7 of 30

 
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