Skip to contentSkip to conversation

Will 2.6 require Python for any configuration ? (CML2)

DISCUSSION Samium Gromoff 3 participants 7 messages Aug 23, 2001 – Aug 24, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

And if you're trying to do this on the machine you're trying to make supported, you're going to have lots of fun.

so you like python. okay.

but imagine the X arch hacker does not like python,
and nevertheless needs to port it on arch X.
still fun?
hardly...

:)

----

cheers,

Samium Gromoff

#1 lore raw
Quoted 4 lines · Samium Gromoff
Quoted 2 lines

And if you're trying to do this on the machine you're trying to make supported, you're going to have lots of fun.

so you like python. okay.

Actually, I only know a bit of python. It seems nice but I've been caught up doing real work (and learning PPC asm at the same time.)

Quoted 3 lines

but imagine the X arch hacker does not like python,
and nevertheless needs to port it on arch X.
still fun?

Well I know python is endian-clean. I'd suspect it's even 32/64bit clean. So it's not a matter of 'port' but compile. And Linus has done things which have made lots of kernel hackers scratch their head for a while. (Jump out of this fire and into the min/max macros in 2.4.9 fire to see what I mean).

Signature · 2 lines
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
#2 lore raw
In reply to Samium Gromoff
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Tom" == Tom Rini <[email protected]> writes:

Quoted 2 lines · Samium Gromoff
Quoted 2 lines

but imagine the X arch hacker does not like python, and nevertheless needs to port it on arch X. still fun?

Tom> Well I know python is endian-clean. I'd suspect it's even Tom> 32/64bit clean. So it's not a matter of 'port' but compile. And Tom> Linus has done things which have made lots of kernel hackers Tom> scratch their head for a while. (Jump out of this fire and into Tom> the min/max macros in 2.4.9 fire to see what I mean).

Again, please try and do real porting work before you make such silly statements. Perl is 32/64 little/big-endian clean ... and still it's the absolutely worst app to bring up (even X tends to be easier).

There is a lot more to this than meets the eye!

Jes

#3 lore raw
In reply to Samium Gromoff
Quoted 12 lines · Jes Sorensen
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Tom" == Tom Rini <[email protected]> writes:

Quoted 2 lines · Samium Gromoff
Quoted 2 lines

but imagine the X arch hacker does not like python, and nevertheless needs to port it on arch X. still fun?

Tom> Well I know python is endian-clean. I'd suspect it's even Tom> 32/64bit clean. So it's not a matter of 'port' but compile. And Tom> Linus has done things which have made lots of kernel hackers Tom> scratch their head for a while. (Jump out of this fire and into Tom> the min/max macros in 2.4.9 fire to see what I mean).

Quoted 3 lines

Again, please try and do real porting work before you make such silly statements. Perl is 32/64 little/big-endian clean ... and still it's the absolutely worst app to bring up (even X tends to be easier).

perl is (or was last time I tried it) a PITA because it doesn't have a real config script. In my experiance (and I do have a lot here) apps which use autoconf/et al suck less at porting, as long as you have autoconf/libtool/et al happy. Then it usually comes down to poorly written code.

Signature · 2 lines
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
#4 lore raw
In reply to Samium Gromoff
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Tom" == Tom Rini <[email protected]> writes:

Quoted 4 lines · Jes Sorensen
Quoted 4 lines

Again, please try and do real porting work before you make such
silly statements. Perl is 32/64 little/big-endian clean ... and still it's the absolutely worst app to bring up (even X tends to be easier).

Tom> perl is (or was last time I tried it) a PITA because it doesn't Tom> have a real config script. In my experiance (and I do have a lot Tom> here) apps which use autoconf/et al suck less at porting, as long Tom> as you have autoconf/libtool/et al happy. Then it usually comes Tom> down to poorly written code.

The configure script has almost nothing to do with this! autoconf etc. is just little bits on the surface. So pardon if I question the relevance of your experience in this area.

The real problems with Perl is that it exercises almost all of your libc, uses floating point math, dlopen() and a lot of other funnies. Successfully running Perl's test suite is a very good indicator for the completeness of your libc. On the other hand gcc and the development toolchain are remarkably easy to accomodate on that front.

Jes

#5 lore raw
In reply to Samium Gromoff
Quoted 6 lines · Jes Sorensen

The real problems with Perl is that it exercises almost all of your libc, uses floating point math, dlopen() and a lot of other funnies. Successfully running Perl's test suite is a very good indicator for the completeness of your libc. On the other hand gcc and the development toolchain are remarkably easy to accomodate on that front.

We're getting someplace now. If you question the ability of the platform to make reliable tools such as perl, why do you think you'll have good binutils and gcc on the platform? If your platform doesn't have dlopen() working then yes, python2 will probably be pissed off. I conceeded this last time too I think. If you're trying to bring up a platform compiling a kernel is a good test of having lots of things working. With 2.6 it'll mean one more thing is at least somewhat working, dlopen(). Or you can go and make a CML2 interp in C. Or sh. I'm quite happy cross compiling stuff until things get a bit farther along on a brand spanking new platform.

Signature · 2 lines
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
#6 lore raw
In reply to Samium Gromoff
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Tom" == Tom Rini <[email protected]> writes:

Quoted 6 lines · Jes Sorensen
Quoted 6 lines

The real problems with Perl is that it exercises almost all of your libc, uses floating point math, dlopen() and a lot of other funnies. Successfully running Perl's test suite is a very good indicator for the completeness of your libc. On the other hand gcc and the development toolchain are remarkably easy to accomodate on that front.

Tom> We're getting someplace now. If you question the ability of the Tom> platform to make reliable tools such as perl, why do you think Tom> you'll have good binutils and gcc on the platform?

Maybe because I have ''been there done that''! This is exactly how things were when we brought up the ia64 port.

Tom> If your
Tom> platform doesn't have dlopen() working then yes, python2 will Tom> probably be pissed off. I conceeded this last time too I think. Tom> If you're trying to bring up a platform compiling a kernel is a Tom> good test of having lots of things working. With 2.6 it'll mean Tom> one more thing is at least somewhat working, dlopen().

Do you have any idea how dlopen() actually works? It requires you to have dynamic loading working, that means shared libraries ... please do us a favor and go read the code in glibc in elf/*.c and sysdep/<some-arch>/dl-machine.h (plus a couple of other files). Implementing shared library support is ''very interesting'' but it's by far the first thing you do on a new system.

That aside, I am not aware whether Python2 actually requires dlopen to work well enough to run CML2.

Tom> Or you
Tom> can go and make a CML2 interp in C. Or sh. I'm quite happy Tom> cross compiling stuff until things get a bit farther along on a Tom> brand spanking new platform.

Well I can tell you that most people would like to compile their kernels on the host even BEFORE they get shared libraries going.

Ok, I think I have spent enough time on this discussion now, back to hacking.

Jes