Skip to contentSkip to conversation

userland packages

DISCUSSION Pete Popov 4 participants 7 messages Oct 27, 2000 – Oct 30, 2000 MIPS

lore
Share & tools
lore

Pete Popov

author
#0 lore raw

Is there a guide on how to rebuild userland packages from source code? I've installed the cross compiler and can compile a kernel, but when I try to build a simple userland app, the compiler can't find libraries, include files, etc.

Thanks.

Pete

#1 lore raw
Quoted 4 lines · Pete Popov

Is there a guide on how to rebuild userland packages from source code? I've installed the cross compiler and can compile a kernel, but when I try to build a simple userland app, the compiler can't find libraries, include files, etc.

You have to copy all the includes and libraries to /usr/mips-linux/{include,lib}/, then fixup linker scripts that disguise themselfes as .so files like libc.so and you can start.

Getting everything to crosscompile is a hard job, I really recomend native builds.

Ralf

#2 lore raw
Quoted 8 lines · Ralf Baechle
Quoted 4 lines · Pete Popov

Is there a guide on how to rebuild userland packages from source code? I've installed the cross compiler and can compile a kernel, but when I try to build a simple userland app, the compiler can't find libraries, include files, etc.

Quoted 7 lines

You have to copy all the includes and libraries to /usr/mips-linux/{include,lib}/, then fixup linker scripts that disguise themselfes as .so files like libc.so and you can start.

Getting everything to crosscompile is a hard job, I really recomend native builds.

Pete,

He is not telling the truth. :-) See his very own MIPS-HOWTO, cross-compile section :

http://www.linux.sgi.com/mips-howto.html

Also, you can take a look of the rpm spec files for the toolchains I put on ftp.mvista.com/pub/Area51/mips_le/. So far all my usrland stuff are cross-compiled - I don't have the luxury of a desktop MIPS with 1.6GB RAM.

Jun

#3 lore raw
Quoted 4 lines · Jun Sun

He is not telling the truth. :-) See his very own MIPS-HOWTO, cross-compile section :

http://www.linux.sgi.com/mips-howto.html

So you probably never tried to crosscompile something with extensive autoconf scripts like Gnome. It's a major pain to get that done right. Running the compiler is the trivial part of build some package ...

Quoted 4 lines

Also, you can take a look of the rpm spec files for the toolchains I put on ftp.mvista.com/pub/Area51/mips_le/. So far all my usrland stuff are cross-compiled - I don't have the luxury of a desktop MIPS with 1.6GB RAM.

I bet your heating makes less noise ...

Ralf

author
#4 lore raw
Quoted 11 lines · Ralf Baechle
Quoted 4 lines · Jun Sun

He is not telling the truth. :-) See his very own MIPS-HOWTO, cross-compile section :

http://www.linux.sgi.com/mips-howto.html

So you probably never tried to crosscompile something with extensive autoconf scripts like Gnome. It's a major pain to get that done right. Running the compiler is the trivial part of build some package ...

Our cross development environment make it easy to rebuild all packages we support, but the big endian tool chain and libs aren't ready yet. I think I'll just wait :-) I've got plenty of things broken as it is, without the userland packages.

Quoted 6 lines
Quoted 4 lines

Also, you can take a look of the rpm spec files for the toolchains I put on ftp.mvista.com/pub/Area51/mips_le/. So far all my usrland stuff are cross-compiled - I don't have the luxury of a desktop MIPS with 1.6GB RAM.

I bet your heating makes less noise ...

Pete

#5 lore raw
In reply to Ralf Baechle
Quoted 2 lines · Ralf Baechle

So you probably never tried to crosscompile something with extensive autoconf scripts like Gnome. It's a major pain to get that done right.

Well, for sane scripts that can be handled easily by defining problematic
cache variables to reasonable values. The real problem are helper programs used to build architecture-dependent data, see e.g. tic in ncurses.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#6 lore raw
Quoted 7 lines · Maciej W. Rozycki
Quoted 2 lines

So you probably never tried to crosscompile something with extensive autoconf scripts like Gnome. It's a major pain to get that done right.

Well, for sane scripts that can be handled easily by defining problematic
cache variables to reasonable values. The real problem are helper programs used to build architecture-dependent data, see e.g. tic in ncurses.

Or as one more example rpcgen in libc. Last I checked libc did cheat and omit all the affected parts of libc when crosscompiling. Não bom.

Ralf