Skip to contentSkip to conversation

gcc-cross-kernel-3.3.4

DISCUSSION Tom Rini 2 participants 3 messages Apr 3, 2009

lore
Share & tools
lore

Tom Rini

author
#0 lore raw
Quoted 1 line · On Wed, Apr 01, 2009 at 09:48:56AM -0000…

Yes, you're right. Changed patch is attached.

[snip]

recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb line 3

Quoted 7 lines

diff -Nur openembedded/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb build/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb

recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb +1 -0
@@ -1,2 +1,3 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-cross-kernel.inc
+SRC_URI_append = "file://gcc334-collect2_file_open_args.patch;patch=1"

Grabbed this as mbox from patchwork, so I hope this gets followed-up right. The patch is good, but we should be doing this for all 3.3.4's we have left. I'll take care of that and push shortly. Thanks.

Signature · 1 line
Tom Rini
#1 lore raw
Quoted 4 lines · Tom Rini
Quoted 1 line · On Wed, Apr 01, 2009 at 09:48:56AM -0000…

Yes, you're right. Changed patch is attached.

[snip]

Quoted 11 lines

recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb line 3

Quoted 7 lines

diff -Nur openembedded/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb build/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb

recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb +1 -0
@@ -1,2 +1,3 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-cross-kernel.inc
+SRC_URI_append = "file://gcc334-collect2_file_open_args.patch;patch=1"

Grabbed this as mbox from patchwork, so I hope this gets followed-up right. The patch is good, but we should be doing this for all 3.3.4's we have left. I'll take care of that and push shortly. Thanks.

I have a slightly different opinion. This only solves one problem which is due to FORTIFY_SOURCES on ubuntu native gcc. On newer host distributions (with gcc 4.x). When we chose a OE distro (target) which uses old compilers ( 3.4 or below) we end up compiling the cross compilers with relatively newer compiler which may have problems. Same could be true for other host utilities which are old.

I think best solution is to build a native compiler from the same version first. Now it will add to compilation time but then we can have ASSUME_PROVIDED.

Quoted 8 lines
Signature · 7 lines
-- 
Tom Rini

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
author
#2 lore raw
Quoted 24 lines · Khem Raj
Quoted 4 lines · Tom Rini
Quoted 1 line · On Wed, Apr 01, 2009 at 09:48:56AM -0000…

Yes, you're right. Changed patch is attached.

[snip]

Quoted 11 lines

recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb line 3

Quoted 7 lines

diff -Nur openembedded/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb build/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb

recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb +1 -0
@@ -1,2 +1,3 @@
 require gcc-cross-initial_${PV}.bb
 require gcc-cross-kernel.inc
+SRC_URI_append = "file://gcc334-collect2_file_open_args.patch;patch=1"

Grabbed this as mbox from patchwork, so I hope this gets followed-up right. The patch is good, but we should be doing this for all 3.3.4's we have left. I'll take care of that and push shortly. Thanks.

I have a slightly different opinion. This only solves one problem which is due to FORTIFY_SOURCES on ubuntu native gcc. On newer host distributions (with gcc 4.x). When we chose a OE distro (target) which uses old compilers ( 3.4 or below) we end up compiling the cross compilers with relatively newer compiler which may have problems. Same could be true for other host utilities which are old.

Quoted 3 lines

I think best solution is to build a native compiler from the same version first. Now it will add to compilation time but then we can have ASSUME_PROVIDED.

Note that there's also a few other problems needing to be patched, at least on Ubuntu 8.10, to start with, needing
https://dev.openwrt.org/browser/trunk/toolchain/gcc/patches/3.4.6/820-i386_inhibit_libc.patch?rev=14370
and I'm trying to nail down a glibc that builds with all of this as well (2.2.5 had some problem for DISTRO=angstrom-2008.1 MACHINE=epia). All in all, I'm about to give up on 3.* (I was building for some SDK patches I'm going to post shortly, need to get back to testing that stuff..)

Signature · 1 line
Tom Rini