All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jörg Bakker" <joerg@hakker.de>
To: Openembedded-devel@lists.openembedded.org
Subject: [PATCH] gcc-cross-kernel-3.3.4
Date: Mon, 30 Mar 2009 21:41:30 +0200	[thread overview]
Message-ID: <200903302141.30822.joerg@hakker.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 2806 bytes --]

Building gcc-cross-kernel-3.3.4 stops with the following error:

| In function 'open',                                                                                                                                    
|     inlined from 'collect_execute' at 
/home/jb/devel/cc/jammsession/oe/build/tmp/work/i586-angstrom-linux/gcc-cross-
kernel-3.3.4-3.3.4-r9/gcc-3.3.4/gcc/collect2.c:1575:                                                                                                                                        
| /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared 
with attribute error: open with O_CREAT in second argument needs 3 arguments                                                                                                                                                       
| make[1]: *** [collect2.o] Error 1                                                                                                                      
| make[1]: *** Waiting for unfinished jobs....                                                                                                           
| done                                                                                                                                                   
....
| make[1]: Leaving directory 
`/home/jb/devel/cc/jammsession/oe/build/tmp/work/i586-angstrom-linux/gcc-
cross-kernel-3.3.4-3.3.4-r9/gcc-3.3.4/build.i686-linux.i586-angstrom-
linux/gcc'
| make: *** [all-gcc] Error 2
| FATAL: oe_runmake failed
NOTE: Task failed: /home/jb/devel/cc/jammsession/oe/build/tmp/work/i586-
angstrom-linux/gcc-cross-kernel-3.3.4-3.3.4-r9/temp/log.do_compile.17555
NOTE: package gcc-cross-kernel-3.3.4-3.3.4-r9: task do_compile: failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/jb/devel/cc/jammsession/oe/build/recipes/gcc.save/gcc-
cross-kernel-3.3.4_3.3.4.bb do_compile failed
ERROR: Task 7 (/home/jb/devel/cc/jammsession/oe/build/recipes/gcc.save/gcc-
cross-kernel-3.3.4_3.3.4.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 271 tasks of which 265 didn't need to be rerun 
and 1 failed.
ERROR: '/home/jb/devel/cc/jammsession/oe/build/recipes/gcc.save/gcc-cross-
kernel-3.3.4_3.3.4.bb' failed

OE Build Configuration:
BB_VERSION        = "1.8.13"
METADATA_BRANCH   = "org.openembedded.dev"
METADATA_REVISION = "8f8efbe43a7f28802d066f7f83915e8fbd0d4cc2"
TARGET_ARCH       = "i586"                                    
TARGET_OS         = "linux"                                   
MACHINE           = "epia"                                    
DISTRO            = "angstrom"                                
DISTRO_VERSION    = "2009.X-test-20090329"                    

The attached patch fixes this.




[-- Attachment #2: gcc-cross-kernel-334.patch --]
[-- Type: text/x-patch, Size: 1369 bytes --]

diff -Nur openembedded/recipes/gcc/gcc-cross-kernel-3.3.4/gcc334-collect2_file_open_args.patch build/recipes/gcc/gcc-cross-kernel-3.3.4/gcc334-collect2_file_open_args.patch
--- openembedded/recipes/gcc/gcc-cross-kernel-3.3.4/gcc334-collect2_file_open_args.patch	1970-01-01 01:00:00.000000000 +0100
+++ build/recipes/gcc/gcc-cross-kernel-3.3.4/gcc334-collect2_file_open_args.patch	2009-03-21 17:34:07.000000000 +0100
@@ -0,0 +1,11 @@
+--- gcc-3.3.4/gcc/collect2.c.orig	2009-03-21 17:26:11.000000000 +0100
++++ gcc-3.3.4/gcc/collect2.c	2009-03-21 17:26:47.000000000 +0100
+@@ -1572,7 +1572,7 @@
+   if (redir)
+     {
+       /* Open response file.  */
+-      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
++      redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);
+ 
+       /* Duplicate the stdout and stderr file handles
+ 	 so they can be restored later.  */
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
--- openembedded/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb	2009-03-21 10:44:02.000000000 +0100
+++ build/recipes/gcc/gcc-cross-kernel-3.3.4_3.3.4.bb	2009-03-21 17:39:11.000000000 +0100
@@ -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"

             reply	other threads:[~2009-03-30 19:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30 19:41 Jörg Bakker [this message]
2009-03-31 21:41 ` [PATCH] gcc-cross-kernel-3.3.4 Khem Raj
2009-04-01 19:48   ` Jörg Bakker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200903302141.30822.joerg@hakker.de \
    --to=joerg@hakker.de \
    --cc=Openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.