hi, everyone: Today I use ubuntu 6.06 to compile the l4. There are some error messages like this: make[2]: Entering directory `/home/fiasco/L4/l4/tool/gcc-wrap' ... Building .general.d make[2]: Leaving directory `/home/fiasco/L4/l4/tool/gcc-wrap' make[2]: Entering directory `/home/fiasco/L4/l4/tool/gcc-wrap' ... Generating drops-ar.Linux sed '\ s,@system@,Linux,g;\ s,@ar@,ar,g;\ s,@nm@,nm,g;\ s,@ranlib@,ranlib,g;\ s,@cc@,gcc,g;\ s,@cxx@,g++,g;\ s,@l4dir@,,g;\ s,@dropsdir@,/home/fiasco/L4/,g;\ s,@compilerincdir@,/usr/lib/gcc/i486-linux-gnu/3.4.6/include,g;\ s,@libgcc@,/usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc.a,g;\ s,@libgcc_eh@,/usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc_eh.a,g;\ s,@default_system@,x86_586-l4v2,g;\ s,@default_arch@,x86,g;\ s,@default_cpu@,586,g;\ s,@default_l4api@,l4v2,g; \ ' drops-ar.in > drops-ar.Linux.new sed: -e expression #1, char 452: unterminated address regex make[2]: *** [drops-ar.Linux] Error 1 make[2]: Leaving directory `/home/fiasco/L4/l4/tool/gcc-wrap' make[1]: *** [gcc-wrap] Error 2 make[1]: Leaving directory `/home/fiasco/L4/l4/tool' make: *** [tool] Error 2 I doubted that it is sed version's problem. In ubuntu 6.06 the sed is NU sed version 4.1.4. chenggh
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, chenggh wrote on 21.08.2006 06:16 this: > hi, everyone: > Today I use ubuntu 6.06 to compile the l4. There are some error messages like > this: > make[2]: Entering directory `/home/fiasco/L4/l4/tool/gcc-wrap' > ... Building .general.d > make[2]: Leaving directory `/home/fiasco/L4/l4/tool/gcc-wrap' > make[2]: Entering directory `/home/fiasco/L4/l4/tool/gcc-wrap' > ... Generating drops-ar.Linux > sed '\ > s,@system@,Linux,g;\ > s,@ar@,ar,g;\ > s,@nm@,nm,g;\ > s,@ranlib@,ranlib,g;\ > s,@cc@,gcc,g;\ > s,@cxx@,g++,g;\ > s,@l4dir@,,g;\ > s,@dropsdir@,/home/fiasco/L4/,g;\ > s,@compilerincdir@,/usr/lib/gcc/i486-linux-gnu/3.4.6/include,g;\ > s,@libgcc@,/usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc.a,g;\ > s,@libgcc_eh@,/usr/lib/gcc/i486-linux-gnu/3.4.6/libgcc_eh.a,g;\ > s,@default_system@,x86_586-l4v2,g;\ > s,@default_arch@,x86,g;\ > s,@default_cpu@,586,g;\ > s,@default_l4api@,l4v2,g; \ > ' drops-ar.in > drops-ar.Linux.new > sed: -e expression #1, char 452: unterminated address regex > make[2]: *** [drops-ar.Linux] Error 1 > make[2]: Leaving directory `/home/fiasco/L4/l4/tool/gcc-wrap' > make[1]: *** [gcc-wrap] Error 2 > make[1]: Leaving directory `/home/fiasco/L4/l4/tool' > make: *** [tool] Error 2 > > > I doubted that it is sed version's problem. In ubuntu 6.06 the sed is NU sed > version 4.1.4. It actually is. As mentioned in http://os.inf.tu-dresden.de/pipermail/l4-hackers/2006/002972.html the fix is to split the multiline sed commands into multiple commands with - -e prefixed. However, gcc-wrap should be obsolete. Feel free to delete that subdir from the tools directory. HTH, Ron. - -- Mit freundlichen Gruessen / with regards ra3 @ inf.tu-dresden.de http://os.inf.tu-dresden.de/~ra3/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFE6WinvCdOf9l7ipgRArfWAKClQl3JU2Sl0lmbFU/MJ89Rhy85CwCgwAP7 p2ao1PxITomGBhQcEwUsYXE= =HAhZ -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello again, Ronald Aigner wrote on 21.08.2006 10:02 this:
I doubted that it is sed version's problem. In ubuntu 6.06 the sed is NU sed version 4.1.4. It actually is. As mentioned in http://os.inf.tu-dresden.de/pipermail/l4-hackers/2006/002972.html the fix is to split the multiline sed commands into multiple commands with -e prefixed. To be able to give a more precise answer, I rechecked. Apparently, the bug is a combined bug of make and sed. Make changed the way line-breaks in continued shell commands are handled. As a result, the argument for sed is not formatted as expected by sed. Thus sed throws the error.
(I can only guess that instead of replacing "\\n" with a whitespace the "\n" is preserved - but that is only a guess.) One fix is to remove the line-breaks in the command string -> multiple - -e arguments. Another is to use '"' instead of ''' to embrace the command string. This, however, has the consequence that Make-variables inside the command string are no longer evaluated.
However, gcc-wrap should be obsolete. Feel free to delete that subdir from the tools directory.
Greetings, Ron. _______________________________________________ l4-hackers mailing list l4-hackers@os.inf.tu-dresden.de http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers - -- Mit freundlichen Gruessen / with regards ra3 @ inf.tu-dresden.de http://os.inf.tu-dresden.de/~ra3/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFE6W/pvCdOf9l7ipgRAgLPAJ4yHnKn3aAsUlNb2RjYTGV3pkYDlQCfdUoy Yco8SXaUOtAq1hyFEihNYhw= =D+gl -----END PGP SIGNATURE-----
participants (2)
-
chenggh -
Ronald Aigner