linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: adamdabr@poczta.onet.pl
Subject: Re: [uml-devel] problems making UML binary
Date: Wed, 16 Feb 2005 19:29:13 +0100	[thread overview]
Message-ID: <200502161929.14267.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20050215155130Z2659002-7959+680@kps3.test.onet.pl>

On Tuesday 15 February 2005 16:49, adamdabr@poczta.onet.pl wrote:
> Hello,
>
> Could you please help me with the following problem?
>
> Here's a problem I've encountered when trying to compile an UML (User Mode
> Linux) linux binary:

> 5) Then I've tried make linux ARCH=um but got problems:
>  a) with gcc 3.4.1 that I started with (standard Mandrake 10.1 instalation)
> I've got a lot of errors like:
>
> "sched.c:839: error: conflicting types for 'sleep_on_timeout'
>
> /home/adam/work/UML/linux-2.4.27/include/linux/sched.h:598: error: previous
> declaration of 'sleep_on_timeout'
>
> was here"
No idea about this (yet)... maybe GCC became stricter about declaration 
consistency... Since the problem happens probably with i386, too, you might 
try the latest 2.4 with the same patch applied.

> So I guessed it was a gcc/Mandrake problem..
>  b) with gcc 3.3.1-2mdk or gcc 2.96-063mdk I got another problem - make
> linux ARCH=um runs smooth

> until it gets to linking: here is what I've got:
> "ld -r -o unmap_fin.o unmap.o -lc -L/usr/lib
> ld: cannot find -lc
> make[3]: *** [unmap_fin.o] Error 1
> make[3] Leaving directory
> `/home/adam/work/UML/linux-2.4.27/arch/um/kernel/tt' ..."

This is a message caused by missing /usr/lib/libc.a - install 
glibc-static-devel and this one *should* work fine. Actually, in my 
experience, gcc 3.3.2 from Mandrake 10 Official miscompiles UML / 2.4 (not 
reproducible with UML / 2.6). gcc 3.2.2 from Mandrake 9.1 installs and works 
well (use make ARCH=um CC='gcc-3.2.2' after installing it)... I've no 
experience with the 3.3.1 one.
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2005-02-16 18:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-15 15:49 [uml-devel] problems making UML binary adamdabr
2005-02-16 18:29 ` Blaisorblade [this message]

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=200502161929.14267.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=adamdabr@poczta.onet.pl \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox