Problem building Crosstool for MIPSel for LinkSys wireless router

Oct 08, 2004 11 Replies

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.)



[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_r=352019 Like ninjas, true hackers are shrouded in secrecy and mystery. You may never know -- UNTIL IT'S TOO LATE.

Linksys (broadcom 4712 mips) firmwares are build with ucLibc toolchain, get yourslefe script from :

formatting link
view=tar

works like a charm (dont forget to configure uclibc)

Pozdrawiam.

RusH // http://randki.o2.pl/profil.php?id_r=352019 Like ninjas, true hackers are shrouded in secrecy and mystery. You may never know -- UNTIL IT'S TOO LATE.

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_r=352019 Like ninjas, true hackers are shrouded in secrecy and mystery. You may never know -- UNTIL IT'S TOO LATE.

Hello from Gregg C Levine 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.)

? 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_r=352019 Like ninjas, true hackers are shrouded in secrecy and mystery. You may never know -- UNTIL IT'S TOO LATE.

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 Lev>

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_r=352019 Like ninjas, true hackers are shrouded in secrecy and mystery. You may never know -- UNTIL IT'S TOO LATE.

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

/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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required