in a 32 chroot on a 64bit kernel, lazbuild 0.9.30-1

>uname -a
Linux ubuntu 2.6.38-9-generic #43-Ubuntu SMP Thu Apr 28 15:23:06 UTC
2011 x86_64 GNU/Linux


>dpkg-architecture -qDEB_BUILD_ARCH
i386

>lazbuild -h
...
--cpu=<cpu>
                      override the project cpu. e.g. i386 x86_64 powerpc
                      powerpc_64 etc. default: i386
...

>file $(readlink -m $(which lazbuild))
/usr/lib/lazarus/0.9.30/lazbuild: ELF 32-bit LSB executable, Intel
80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped


but nevertheless if I do:

lazbuild  -B --ws=gtk2 easymp3gain.lpr
Note: environment config file not found - using defaults
NOTE: miscellaneous options file not found - using defaults
TCompiler.Compile WorkingDir="/tmp/easymp3gain-0.5.0/"
CompilerFilename="/usr/bin/fpc" CompilerParams=" -MObjFPC -Sgi -CX -O1
-Tlinux -Px86_64 -gl -Xs -XX -vewnhi -l
-Fu/usr/lib/lazarus/0.9.30/components/synedit/units/x86_64-linux
-Fu/usr/lib/lazarus/0.9.30/ideintf/units/x86_64-linux
-Fu/usr/lib/lazarus/0.9.30/lcl/units/x86_64-linux
-Fu/usr/lib/lazarus/0.9.30/lcl/units/x86_64-linux/gtk2
-Fu/usr/lib/lazarus/0.9.30/packager/units/x86_64-linux -Fu. -FUbin/
-FEbin/ -oeasymp3gain -dLCL -dLCLgtk2 easymp3gain.lpr"
[TCompiler.Compile] CmdLine="/usr/bin/fpc -B  -MObjFPC -Sgi -CX -O1
-Tlinux -Px86_64 -gl -Xs -XX -vewnhi -l
-Fu/usr/lib/lazarus/0.9.30/components/synedit/units/x86_64-linux
-Fu/usr/lib/lazarus/0.9.30/ideintf/units/x86_64-linux
-Fu/usr/lib/lazarus/0.9.30/lcl/units/x86_64-linux
-Fu/usr/lib/lazarus/0.9.30/lcl/units/x86_64-linux/gtk2
-Fu/usr/lib/lazarus/0.9.30/packager/units/x86_64-linux -Fu. -FUbin/
-FEbin/ -oeasymp3gain -dLCL -dLCLgtk2 easymp3gain.lpr"
Error: ppcx64 can't be executed, error message: Failed to execute
"ppcx64", error code: 127


which I can fix by explicitly calling lazbuild with --cpu=i386

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to