linux-um archives
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Progress with -bb4.
Date: Sat, 15 Jan 2005 11:17:11 -0500	[thread overview]
Message-ID: <200501151117.12000.rob@landley.net> (raw)

Running ptrace under uml found the problem with gcc: UML's default environment 
includes "." at the end of $PATH, and if you have that gcc doesn't search the 
path for ld.

So I took "." out of the path, and it started working.  Yay!  (Cool stuff, 
guys.)

Along the way, I found some interesting quirks:

1) I mentioned the gratuitous use of perl earlier.  This is only for 
--show-config, which could A) be replaced by a sed script, B) should 
presumably be wrapped in CONFIG_IKCONFIG anyway.

I ripped it out of the makefile and it built fine without it.  I'll see about 
patching the makefile with the sed thing and/or the CONFIG option this 
weekend, although I'm not good at makefiles...

2) Building under uclibc dies with a conflicting definition error, due to
arch/um/include/user.h containing "extern int strlcpy(char *, const char *, 
int);", when uclibc's string.h contains:

extern size_t strlcpy(char *__restrict dst, const char *__restrict src,
                      size_t n) __THROW;

I yanked the strlcpy line from arch/um/include/user.h and everything built 
fine without it (didn't even see any new warnings), both under both uclibc 
(more or less 0.9.27, a cvs snapshot a couple weeks before release) and glibc 
(knoppix 3.6, comes with glibc 2.3.2), possibly because it's still in 
include/linux/string.h...

The resulting uclibc binaries seemed to work fine in both environments.  I 
could even run the uclibc one from within the uclibc chroot environment via 
"./vmlinux rootfs=hostfs rootflags=/ rw init=/bin/sh" and it behaved pretty 
well.  (Overmount /proc and /dev/pts and life is good...)

3) Running my big build script, it hangs between ./configure and make of 
binutils.  No idea why yet.  Just sits there spinning, with vmlinux eating 
100% of the CPU, and if you leave it for half an hour it still won't advance, 
and this is something that should only take a second or so...

4) I can get all sorts of things to segfault under uclibc with ptrace -f.  For 
example, just try ptrace -f on a shellscript and watch the segfaults fly.  Is 
it just me?

#4 makes #3 a bit harder to debug.

I'll try upgrading to -bs5 and see if that makes anything better.

Query: is a 2.6.10-bb likely in future, or should I just try -bk or -mm or 
some such?

Rob


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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-01-15 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-15 16:17 Rob Landley [this message]
2005-01-19 22:12 ` [uml-devel] Progress with -bb4 Blaisorblade

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=200501151117.12000.rob@landley.net \
    --to=rob@landley.net \
    --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