Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
- Gregg C Levine
October 8, 2004, 12:22 am

Hello from Gregg C Levine
New problem now. I am now trying to build the cross compilation tools for the
LinkSys wireless router, and having done two things. One was making sure I had a
non-root user ID to run things, and the other was to create the necessary places
for
the Crosstool to work. (I also assigned them to the user ID.) However towards
the
end of the whole process, I see this strange error message:
/mipsel-unknown-linux-gnu/include -D_LIBC_REENTRANT -include
../include/libc-sym bols.h -DPIC -o
/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-linux-gnu/g
cc-3.2.3-glibc-2.2.3/build-glibc/misc/ptrace.o
In file included from /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.
2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,
from ../sysdeps/unix/sysv/linux/sys/user.h:1,
from ../sysdeps/unix/sysv/linux/ptrace.c:22:
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-lin
ux-gnu/include/asm/user.h:12:21: asm/reg.h: No such file or
directory
In file included from /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.
2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,
from ../sysdeps/unix/sysv/linux/sys/user.h:1,
from ../sysdeps/unix/sysv/linux/ptrace.c:22:
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-lin
ux-gnu/include/asm/user.h:38: `EF_SIZE' undeclared here (not in a
function)
make[2]: *** [/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-linux-gnu/gcc-3.
2.3-glibc-2.2.3/build-glibc/misc/ptrace.o] Error 1
make[2]: Leaving directory `/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-li
nux-gnu/gcc-3.2.3-glibc-2.2.3/glibc-2.2.3/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-li
nux-gnu/gcc-3.2.3-glibc-2.2.3/glibc-2.2.3'
make: *** [all] Error 2
who4@who4:/usr/src/crosstool-0.28-rc37$
Curiously enough, it was the same error message that I saw while attempting to
build
a generic MIPSel tool chain.
------------
Gregg C Levine drwho8 atsign att dot net
"This signature will self destruct after reading."
(Remove gizmo in e-mail address to facilitate responding by e-mail.)
New problem now. I am now trying to build the cross compilation tools for the
LinkSys wireless router, and having done two things. One was making sure I had a
non-root user ID to run things, and the other was to create the necessary places
for
the Crosstool to work. (I also assigned them to the user ID.) However towards
the
end of the whole process, I see this strange error message:
/mipsel-unknown-linux-gnu/include -D_LIBC_REENTRANT -include
../include/libc-sym bols.h -DPIC -o
/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-linux-gnu/g
cc-3.2.3-glibc-2.2.3/build-glibc/misc/ptrace.o
In file included from /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.
2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,
from ../sysdeps/unix/sysv/linux/sys/user.h:1,
from ../sysdeps/unix/sysv/linux/ptrace.c:22:
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-lin
ux-gnu/include/asm/user.h:12:21: asm/reg.h: No such file or
directory
In file included from /opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.
2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,
from ../sysdeps/unix/sysv/linux/sys/user.h:1,
from ../sysdeps/unix/sysv/linux/ptrace.c:22:
/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-lin
ux-gnu/include/asm/user.h:38: `EF_SIZE' undeclared here (not in a
function)
make[2]: *** [/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-linux-gnu/gcc-3.
2.3-glibc-2.2.3/build-glibc/misc/ptrace.o] Error 1
make[2]: Leaving directory `/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-li
nux-gnu/gcc-3.2.3-glibc-2.2.3/glibc-2.2.3/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/crosstool-0.28-rc37/build/mipsel-unknown-li
nux-gnu/gcc-3.2.3-glibc-2.2.3/glibc-2.2.3'
make: *** [all] Error 2
who4@who4:/usr/src/crosstool-0.28-rc37$
Curiously enough, it was the same error message that I saw while attempting to
build
a generic MIPSel tool chain.
------------
Gregg C Levine drwho8 atsign att dot net
"This signature will self destruct after reading."
(Remove gizmo in e-mail address to facilitate responding by e-mail.)

Re: Problem building Crosstool for MIPSel for LinkSys wireless router
[cut]
why are you building glibc toolchain ? and why on earth are you messing
with your filesystem (/usr/..) instead of keeping everything in
/home/.. ?
Try Erics toolchain script from uclibc.org , worked for me (Mips also).
Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.

Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Hello from Gregg C Levine
Why? Because that cross compilation tool chain is what was suggested for
building
images to go into a certain specie of router. I haven't got it here, in fact I
don't even
have a wireless network. But it might end up being here, so I am investigating
it.
-------
Gregg C Levine drwho8 atsign att dot net
"This signature does not exist! Please disregard."
(Remove gadget to respond by e-mail.)
snipped-for-privacy@pf.pl says...

Why? Because that cross compilation tool chain is what was suggested for
building
images to go into a certain specie of router. I haven't got it here, in fact I
don't even
have a wireless network. But it might end up being here, so I am investigating
it.
-------
Gregg C Levine drwho8 atsign att dot net
"This signature does not exist! Please disregard."
(Remove gadget to respond by e-mail.)
snipped-for-privacy@pf.pl says...


Re: Problem building Crosstool for MIPSel for LinkSys wireless router

Linksys (broadcom 4712 mips) firmwares are build with ucLibc toolchain,
get yourslefe script from :
http://www.uclibc.org/cgi-bin/cvsweb/toolchain/gcc-3.3.x.tar.gz ?
view=tar
works like a charm (dont forget to configure uclibc)
Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.

Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Hello from Gregg C Levine
Now they are indeed. And Dan Kegel's Crosscompile script mentions it. So do the
websites that I have looked at. However, the 1.3.x series of firmware blobs were
not. As always in this business, it depends. Nor does that help me with my
problems.
------------
Gregg C Levine drwho8 atsign att dot net
"This signature was never even here."
(Remove gadget when replying by e-mail.)
snipped-for-privacy@pf.pl says...

Now they are indeed. And Dan Kegel's Crosscompile script mentions it. So do the
websites that I have looked at. However, the 1.3.x series of firmware blobs were
not. As always in this business, it depends. Nor does that help me with my
problems.
------------
Gregg C Levine drwho8 atsign att dot net
"This signature was never even here."
(Remove gadget when replying by e-mail.)
snipped-for-privacy@pf.pl says...


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTME__@att.net (Gregg C Levine) wrote :

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
stop topposting !
What stops you from using uclibc toolchain ? i'm confused.
Pozdrawiam.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
stop topposting !
What stops you from using uclibc toolchain ? i'm confused.
Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.

Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Simple. The lack of a machine to work with. This is still theoretical work. And
every
time I look at that library, it gets more complicated. Even though Erik has
simplified
the configration process.
As for the other request, in word: no. I'll stop doing that, when the regulars
start
complaining. There aren't any specific rules here.
Gregg C Levine drwho8 atsign att dot net
"This signature is currently freezing itself on Hoth and loving it."
(Please remove gizmo from headers when replying by e-mail.)
snipped-for-privacy@pf.pl says...


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTME__@att.net (Gregg C Levine) wrote :

? i'm more confused. WHY are you posting to comp.os.linux.embedded if
you dont have a linux machine (or at least Cygwin) ?

oh, its not for looking at it, its for running it, you run it, wait,
and thats it, its done.

RFC 1855
Pozdrawiam.

? i'm more confused. WHY are you posting to comp.os.linux.embedded if
you dont have a linux machine (or at least Cygwin) ?

oh, its not for looking at it, its for running it, you run it, wait,
and thats it, its done.

RFC 1855
Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.

Re: Problem building Crosstool for MIPSel for LinkSys wireless router
Hello from Gregg C Levine
I think you missed the point. Again. I have a Linux box. Right now he's busy
have a
second go at building the Kegel Crosstool. As far as using uClibc, not until I
need
to. And as for point me to a RFC.... Won't work. That's a good suggestion, but I
meant complaints from other members. I need eight more to make complaints. On
another forum, this one an e-mail list, the list owner/manager grouched, so that
time I
went along with it.
-----
Gregg C Levine drwho8 atsign att dot net
"This signature supports the Rebel Alliance to restore the Republic."
(Remember to remove device when considering an e-mail reply."
snipped-for-privacy@pf.pl says...

I think you missed the point. Again. I have a Linux box. Right now he's busy
have a
second go at building the Kegel Crosstool. As far as using uClibc, not until I
need
to. And as for point me to a RFC.... Won't work. That's a good suggestion, but I
meant complaints from other members. I need eight more to make complaints. On
another forum, this one an e-mail list, the list owner/manager grouched, so that
time I
went along with it.
-----
Gregg C Levine drwho8 atsign att dot net
"This signature supports the Rebel Alliance to restore the Republic."
(Remember to remove device when considering an e-mail reply."
snipped-for-privacy@pf.pl says...


Re: Problem building Crosstool for MIPSel for LinkSys wireless router
drwho8__NOTREALLYME__ snipped-for-privacy@att.net (Gregg C Levine) wrote :

I think its time for an insult - are you too stupid to post according
to netiquette ? (you dont have to answer - its a rethorical question)
BTW I got 2 Linksys boxes (wrt) running linux/ucLibc, but I guess that
you know better ...
Pozdrawiam.

I think its time for an insult - are you too stupid to post according
to netiquette ? (you dont have to answer - its a rethorical question)
BTW I got 2 Linksys boxes (wrt) running linux/ucLibc, but I guess that
you know better ...
Pozdrawiam.
--
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
RusH //
http://randki.o2.pl/profil.php?id_r35%2019
We've slightly trimmed the long signature. Click to see the full one.

Re: Problem building Crosstool for MIPSel for LinkSys wireless router

Hi Gregg,
I'm a regular (although I don't check in here as often
as I do on snipped-for-privacy@sources.redhat.com), and I do request that you try to not
toppost. We can read your posts either way, but
trimming properly and replying under the gist of the original
post is considered good style.
Now, as to your problem:

/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linux-gnu/include/linux/user.h:1,

/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linux-gnu/include/asm/user.h:12:21:
asm/reg.h: No such file or directory
> ...
> who4@who4:/usr/src/crosstool-0.28-rc37$
$ grep LINUX_DIR */gcc-3.2.3-glibc-2.2.3.dat
crosstool-0.28-rc33rpm/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.4.21
crosstool-0.28-rc35/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.4.21
crosstool-0.28-rc36/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.4.21
crosstool-0.28-rc37/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.6.8
crosstool-0.28-rc38/gcc-3.2.3-glibc-2.2.3.dat:LINUX_DIR=linux-2.6.8
It looks like when I moved to linux-2.6.8 across the board, I
caused problems for people trying to build that old configuration.
So the fix is to edit gcc-3.2.3-glibc-2.2.3.dat and set it
back to linux-2.4.21, probably. Let me know if that helps.
- Dan

Re: Problem building Crosstool for MIPSel for LinkSys wireless router

/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linu
x-gnu/include/linux/user.h:1,

/opt/crosstool/mipsel-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.3/mipsel-unknown-linu
x-gnu/include/asm/user.h:12:21: asm/reg.h: No such file o

Hello from Gregg C Levine
How's this? Incidentally you were right. I did fix it and it worked. Actually I
also
chose the Release Candidate that you had out before, and that worked. I did what
you suggested this morning, and it worked.
--
Gregg C Levine drwho8 atsign att dot net
Gregg C Levine drwho8 atsign att dot net
Site Timeline
- » what can i do with those gpio ?
- — Next thread in » Embedded Linux
-
- » Monitoring WIFI using a PDA
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » LoRar Plateforme
- — The site's Newest Thread. Posted in » Electronics (French)
-