This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with ct-ng 1.5.1: "fragment: command not found"


Matthias,
All,

On Friday 30 October 2009 12:27:38 Matthias Kaehlcke wrote:
> El Fri, Oct 30, 2009 at 09:50:03AM +0100 Yann E. MORIN ha dit:
> > On Thursday 29 October 2009 21:24:42 Matthias Kaehlcke wrote:
> > > the build of a uclibc toolchain for i686 using crosstool-ng v1.5.1
> > > fails with the following error:
> > > [ALL  ]
> > > /usr/local/src/ct-ng-build/targets/src/binutils-2.18/ld/emultempl/elf32.em:
> > > line 11: fragment: command not found 
> > > ... (more lines with the same error)
> > > anyone ran into this issue and knows how to solve it?
> > This fixed it for me, binutils 2.18 seems to be sensible to such stuff.
> > (In my case /bin/sh pointed to bash, but it was still failing if I did
> >  not explicitly set CONFIG_SHELL to bash).
> CONFIG_SHELL was already set to bash :(
> any other ideas?

Care to test the following, please?

===8<===
--- binutils-2.18/ld/genscripts.sh.orig 2009-10-30 19:15:25.000000000 +0100
+++ binutils-2.18/ld/genscripts.sh      2009-10-30 19:16:30.000000000 +0100
@@ -390,23 +390,6 @@
     *" ${EMULATION_NAME} "*) COMPILE_IN=true;;
 esac

-if test -n "${BASH+set}"; then
-  source_em()
-  {
-    local current_script="$em_script"
-    em_script=$1
-    . $em_script
-    em_script=$current_script
-  }
-
-  alias fragment='em_lineno=$LINENO; fragment_em'
-  fragment_em()
-  {
-    local lineno=$[$em_lineno + 1]
-    echo >> e${EMULATION_NAME}.c "#line $lineno \"$em_script\""
-    cat >> e${EMULATION_NAME}.c
-  }
-else
   source_em()
   {
     . $1
@@ -415,7 +398,6 @@
   {
     cat >> e${EMULATION_NAME}.c
   }
-fi

 # Generate e${EMULATION_NAME}.c.
 # Start with an empty file, then the sourced .em script
===8<===

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]