Issue 78035 - m214: build error, cannot deliver module 'python'
Summary: m214: build error, cannot deliver module 'python'
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: solenv (show other issues)
Version: current
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.3
Assignee: jens-heiner.rechtien
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 06:49 UTC by jlcheng
Modified: 2007-06-29 16:33 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
diff of m213 and m214 of LinuxX86Env.Set.sh (4.31 KB, text/plain)
2007-06-02 06:51 UTC, jlcheng
no flags Details
LinuxX86Env.Set.sh of m212 (9.81 KB, text/plain)
2007-06-05 15:23 UTC, jlcheng
no flags Details
LinuxX86Env.Set.sh diff m212 and m214 (6.19 KB, patch)
2007-06-05 15:24 UTC, jlcheng
no flags Details | Diff
config.log of m212 (48.39 KB, text/plain)
2007-06-05 15:33 UTC, jlcheng
no flags Details
config.log diff of m212 and m214 (66.62 KB, patch)
2007-06-05 15:34 UTC, jlcheng
no flags Details | Diff
Proposed patch for solenv/bin/deliver.pl (855 bytes, text/plain)
2007-06-06 12:44 UTC, rt
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jlcheng 2007-06-02 06:49:56 UTC
I get this when dmake SRC680_m214/pyuno/source/module:
dmake:  makefile.mk:  line 67:  Error: -- Include file pyversion.mk, not found
---* RULES.MK *---

I find the LinuxX86Env.Set.sh, there are new item: ENABLE_HEADLESS="TRUE". Maybe
cws headless01 not finished?
Comment 1 jlcheng 2007-06-02 06:51:26 UTC
Created attachment 45599 [details]
diff of m213 and m214 of LinuxX86Env.Set.sh
Comment 2 jlcheng 2007-06-02 06:56:18 UTC
The Linux is SLES 10 Eval.
Comment 3 hjs 2007-06-04 13:51:53 UTC
looking at the provided snippet of your LinuxX86Env.Set.sh leaves the guess that
you're using python from your system. in that case you shouldn't need
pyversion.mk at all (see /pyuno/source/module/makefile.mk).
please check your environment.
Comment 4 jlcheng 2007-06-04 15:39:59 UTC
Yes. I don't know why, but I find these ERROR where deliver. And after ERROR
behind d.lst files no deliver. I want to know how solve this problem. The ERROR is:

strip: /SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll.4239-1180869851:
二义性的文件格å¼
strip:匹é…æ ¼å¼ï¼š efi-app-ia32 pei-i386
strip:匹é…æ ¼å¼ï¼š efi-app-ia32 pei-i386
deliver: /SRC680_m214/external/prj/d.lst: ERROR: Failed to execute strip -R
'.comment' -s /SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll.4239-1180869851

strip:
/SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe.2445-1180870702:
二义性的文件格å¼
strip:匹é…æ ¼å¼ï¼š efi-app-ia32 pei-i386
strip:匹é…æ ¼å¼ï¼š efi-app-ia32 pei-i386
deliver: /SRC680_m214/python/prj/d.lst: ERROR: Failed to execute strip -R
'.comment' -s
/SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe.2445-1180870702
Comment 5 hjs 2007-06-04 18:36:11 UTC
your linux directories contain windows binaries??? are you trying to
crosscompile? please check your environment.

after that, try to cleanup your solver from *.exe and *.dll and remove the
output tree in python.

Comment 6 jlcheng 2007-06-05 07:22:20 UTC
I build m212 no problem use default params of configure. But when build m214,
there are these problems. How can disable "cross compile" when configure? I
don't want to build OOo with "cross compile". I only want to build newer OOo on
SLE 10. thx.
Comment 7 rt 2007-06-05 08:52:20 UTC
Ause: 
- 'unowinreg.dll' is the only thing which even in 'standard' builds eventually
gets cross compiled. If now, you have to have a precompiled version in your
tree, as you need this windows dll even in uniox builds for creating SDK sets.
- 'python2.3/distutils/command/wininst.exe' also seems to exist in python's
output trees of all platforms, though I have no idea why ...
In other words: these two file names alone are not a sign of a corrupted
environment.
Comment 8 rt 2007-06-05 09:02:37 UTC
jlcheng:
concerning that deliver error: I do not understand why at all deliver tries to
strip those two files. Can you please check what the 'file' command states about
them? Do
> file /SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll
> file /SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe
or, if the files are not present in solver, something like 
> file python/unxlngi6.pro/misc/build/Python-2.3.4/Lib/distutils/command/wininst.exe
and report the output here.
Comment 9 jlcheng 2007-06-05 09:10:51 UTC
rt:
Ok, thx. And I want to test for configure --disable-odk to solver
"unowinreg.dll". Or I don't use precompiled version "unowinreg.dll". But the
2nd, I don't know how to do. I can try no deliver the file "wininst.exe", I
modify d.lst.
Now I only think there some problem in my Linux. But the m212 has no this problem.
Comment 10 rt 2007-06-05 10:37:34 UTC
lcheng :
--disable-odg or not delivering some files is not the solution here. It looks as
if the root cause of your problems is much deeper. You somehow have an insane
environment:
- apparently 'file unowinreg.dll' does not return what I would expect for a
linux environment
- environment variable GUI or SYSTEM_PYTHON also is not as I would expect (see
Auses comment above: if you configure with system-python, pyversion.mk should
not be included at all)

So, please thoroughly check your configure line. Get a new shell, carefully set
your environment, and try to reproduce. Do 'file unowinreg.dll', 'echo $GUI',
and 'echo $SYSTEM_PYTHON', and paste the output here.
Comment 11 jlcheng 2007-06-05 14:30:55 UTC
file SRC680_m214/external/unowinreg/unowinreg.dll
SRC680_m214/external/unowinreg/unowinreg.dll: PE executable for MS Windows (DLL)
(console) Intel 80386 32-bit

No this file: SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll

file SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll.2015-1181039382
SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll.2015-1181039382: PE
executable for MS Windows (DLL) (console) Intel 80386 32-bit

No this file:
SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe
file
SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe.24553-1181039534
SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe.24553-1181039534:
PE executable for MS Windows (GUI) Intel 80386 32-bit

file
SRC680_m214/python/unxlngi6.pro/misc/build/Python-2.3.4/Lib/distutils/command/wininst.exe
SRC680_m214/python/unxlngi6.pro/misc/build/Python-2.3.4/Lib/distutils/command/wininst.exe:
PE executable for MS Windows (GUI) Intel 80386 32-bit


ls -l
SRC680_m214/python/unxlngi6.pro/misc/build/Python-2.3.4/Lib/distutils/command/wininst.exe
-rwxr-xr-x 1 94717 261 57344 2004-05-26 02:47
SRC680_m214/python/unxlngi6.pro/misc/build/Python-2.3.4/Lib/distutils/command/wininst.exe

ls -l SRC680_m214/external/unowinreg/unowinreg.dll
-rw------- 1 root root 6144 2007-06-04 19:54
SRC680_m214/external/unowinreg/unowinreg.dll


The environment variable GUI or SYSTEM_PYTHON have nothing.
My configure is not with system-python.

Maybe these information is helpful. My m212 is complete build, no any problem.
Thanks all.
Comment 12 jlcheng 2007-06-05 15:23:01 UTC
Created attachment 45660 [details]
LinuxX86Env.Set.sh of m212
Comment 13 jlcheng 2007-06-05 15:24:13 UTC
Created attachment 45661 [details]
LinuxX86Env.Set.sh diff m212 and m214
Comment 14 jlcheng 2007-06-05 15:33:26 UTC
Created attachment 45662 [details]
config.log of m212
Comment 15 jlcheng 2007-06-05 15:34:11 UTC
Created attachment 45663 [details]
config.log diff of m212 and m214
Comment 16 hjs 2007-06-05 16:23:25 UTC
try

export LANG=C
strip -R
'.comment' -s /SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll 
or wherever you find that file...

and paste the result
Comment 17 rt 2007-06-05 16:32:58 UTC
And, yes, between m212 and m214 deliver.pl got changed so that now files of type
"PE executable" get stripped. I just do not know why stripping fails in your
build, it does not do so here. Therefore it really could help to get that output
Ause (hjs) asked for. (I simply cannot understand the error message you pasted
earlier.)
Comment 18 jlcheng 2007-06-06 02:18:20 UTC
The Ause (hjs) test command, I will check tonight. Thanks. Maybe, my SLES 10
Eval has some problem, I can't solve :(

I translate the Chinese to English(Google Translate):
strip: /SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll.4239-1180869851:
ambiguity file format
strip:Match format: efi-app-ia32 pei-i386
strip:Match format: efi-app-ia32 pei-i386
deliver: /SRC680_m214/external/prj/d.lst: ERROR: Failed to execute strip -R
'.comment' -s /SRC680_m214/solver/680/unxlngi6.pro/bin/unowinreg.dll.4239-1180869851

strip:
/SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe.2445-1180870702:
ambiguity file format
strip:Match format: efi-app-ia32 pei-i386
strip:Match format: efi-app-ia32 pei-i386
deliver: /SRC680_m214/python/prj/d.lst: ERROR: Failed to execute strip -R
'.comment' -s
/SRC680_m214/solver/680/unxlngi6.pro/lib/python/distutils/command/wininst.exe.2445-1180870702
Comment 19 jlcheng 2007-06-06 12:02:37 UTC
# export LANG=C

# strip -R '.comment' -s unowinreg.dll

strip: unowinreg.dll: File format is ambiguous
strip: Matching formats: efi-app-ia32 pei-i386
strip: Matching formats: efi-app-ia32 pei-i386

# strip --help
strip: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little
elf32-big elf64-alpha ecoff-littlealpha elf64-little elf64-big elf32-littlearm
elf32-bigarm elf32-hppa-linux elf32-hppa elf64-ia64-little elf64-ia64-big
efi-app-ia64 elf32-m68k a.out-m68k-linux elf32-powerpc aixcoff-rs6000
elf32-powerpcle ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000
elf32-s390 elf64-s390 elf32-sparc a.out-sparc-linux elf64-sparc a.out-sunos-big
elf64-x86-64 pe-i386 pei-i386 srec symbolsrec tekhex binary ihex trad-core

Yes, the SLES 10 Eval strip support too many targets :(
How can I delete some targets, I want to delete "pei-i386".
Comment 20 rt 2007-06-06 12:44:47 UTC
Created attachment 45689 [details]
Proposed patch for solenv/bin/deliver.pl
Comment 21 rt 2007-06-06 12:46:55 UTC
.
Comment 22 rt 2007-06-06 12:48:51 UTC
Please try attached patch for 'deliver.pl'. If it works for you, I'll try to
find a CWS for bringing it into one of the next milestones.
Comment 23 jlcheng 2007-06-06 16:25:30 UTC
Thanks all.
I think this is two problem, SLES 10 Eval strip command has too many targets.
2nd the cws mingwport04 changed deliver.pl, but little problem.
Ok, now I use rt deliver.pl.patch, I had pyversion.mk file in
SRC680_m214/solver/680/unxlngi6.pro/inc/.
That's OK. The patch works very fine, very good.
Comment 24 rt 2007-06-06 16:35:41 UTC
Glad to hear that it works for you.
Comment 25 rt 2007-06-07 09:25:39 UTC
Fixed on CWS rt21 by applying attached patch.
Comment 26 rt 2007-06-11 16:18:03 UTC
Please verify on CWS rt21.
Comment 27 jens-heiner.rechtien 2007-06-11 17:00:05 UTC
Vverified
Comment 28 jens-heiner.rechtien 2007-06-29 16:33:21 UTC
Close issue.