Discussion:
[ast-developers] 32bit Linux build reports 64bit HOSTTYPE ("linux.i386-64" instead of "linux.i386") ...
Roland Mainz
2013-06-17 15:22:29 UTC
Permalink
Hi!

----

Small (?!) bug:
On SuSE 12.3/AMD64/64bit build ksh93's "getconf" builtins reports a
64bit HOSTTYPE:
-- snip --
$ file ./arch/linux.i386/bin/ksh
./arch/linux.i386/bin/ksh: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.16, BuildID[sha1]=0xa537902b7b89da7cf44601f3fa5262009a8ed689, not
stripped
$ ./arch/linux.i386/bin/ksh -c 'builtin getconf ; getconf HOSTTYPE'
linux.i386-64
-- snip --

-----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Glenn Fowler
2013-06-17 16:42:09 UTC
Permalink
I found a problem in bin/package host type than may be releated
that fix will be in the next ast-ksh alpha which should be out later today
thanks
Post by Roland Mainz
Hi!
----
On SuSE 12.3/AMD64/64bit build ksh93's "getconf" builtins reports a
-- snip --
$ file ./arch/linux.i386/bin/ksh
./arch/linux.i386/bin/ksh: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.16, BuildID[sha1]=0xa537902b7b89da7cf44601f3fa5262009a8ed689, not
stripped
$ ./arch/linux.i386/bin/ksh -c 'builtin getconf ; getconf HOSTTYPE'
linux.i386-64
-- snip --
-----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Roland Mainz
2013-07-17 02:46:31 UTC
Permalink
Post by Glenn Fowler
Post by Roland Mainz
On SuSE 12.3/AMD64/64bit build ksh93's "getconf" builtins reports a
-- snip --
$ file ./arch/linux.i386/bin/ksh
./arch/linux.i386/bin/ksh: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.16, BuildID[sha1]=0xa537902b7b89da7cf44601f3fa5262009a8ed689, not
stripped
$ ./arch/linux.i386/bin/ksh -c 'builtin getconf ; getconf HOSTTYPE'
linux.i386-64
-- snip --
I found a problem in bin/package host type than may be releated
that fix will be in the next ast-ksh alpha which should be out later today
thanks
It looks this is still broken in ast-ksh.2013-06-28:
-- snip --
$ (export PATH="/usr/ast/bin:$PATH" HOSTTYPE="linux.i386"
SHELL=~/bin/ksh CC='/usr/bin/gcc -m32' ; time $SHELL ./bin/package
make HOSTTYPE="$HOSTTYPE") 2>&1 | tee -a buildlog.log
$ ./arch/linux.i386/bin/ksh -c 'getconf HOSTTYPE'
linux.i386-64
-- snip --

... it should print "linux.i386" for a 32bit build...

----

Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Glenn Fowler
2013-07-17 05:20:53 UTC
Permalink
reproduced, found and fixed the problem
Post by Roland Mainz
Post by Glenn Fowler
Post by Roland Mainz
On SuSE 12.3/AMD64/64bit build ksh93's "getconf" builtins reports a
-- snip --
$ file ./arch/linux.i386/bin/ksh
./arch/linux.i386/bin/ksh: ELF 32-bit LSB executable, Intel 80386,
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux
2.6.16, BuildID[sha1]=0xa537902b7b89da7cf44601f3fa5262009a8ed689, not
stripped
$ ./arch/linux.i386/bin/ksh -c 'builtin getconf ; getconf HOSTTYPE'
linux.i386-64
-- snip --
I found a problem in bin/package host type than may be releated
that fix will be in the next ast-ksh alpha which should be out later today
thanks
-- snip --
$ (export PATH="/usr/ast/bin:$PATH" HOSTTYPE="linux.i386"
SHELL=~/bin/ksh CC='/usr/bin/gcc -m32' ; time $SHELL ./bin/package
make HOSTTYPE="$HOSTTYPE") 2>&1 | tee -a buildlog.log
$ ./arch/linux.i386/bin/ksh -c 'getconf HOSTTYPE'
linux.i386-64
-- snip --
... it should print "linux.i386" for a 32bit build...
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
Loading...