Re: sed & bzImage issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 30, 2008 at 6:13 PM, Sam Ravnborg <sam@xxxxxxxxxxxx> wrote:
> On Mon, Jun 30, 2008 at 03:38:28PM +0200, Vegard Nossum wrote:
>> Hello,
>>
>> I just experienced two issues which seem related to kbuild:
>>
>> 1. A 'sed' error (but I've seen it before and it doesn't really matter):
>>
>>   Using xxx/linux-2.6 as source for kernel
>>   CALL    xxx/linux-2.6/scripts/checksyscalls.sh
>> sed: -e expression #1, char 154: Unknown option to 's'
>
> It would be nice to have it fixed (I do not see it here).

It's probably an older version of sed:

$ sed --version
GNU sed version 3.02

(I have 4.1.5 on my usual computer.)

The failed command seems to be:

sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\
\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
\#warning syscall \1 not implemented\
\#endif/p }' $1

from scripts/checksyscalls.sh.

My sed-fu is not sufficient to pinpoint the exact location of the
error, however ;-)

>> 2. A vanishing bzImage. kbuild claims successful building, but the
>> file isn't there:
>>

...

> Above I do not see any generated files.
> Dod you happen to use make O=... so output files
> are somewhere else and the path in the printout is
> just from another base directory?

Aha! Brilliant, thanks :-)

(Yes, and I forgot about it... :-( I simply assumed that since it said
"this file has just been created", it would also be there by the same
name...)


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux