As background, http://bugs.gentoo.org/show_bug.cgi?id=233097 has an experimental, unsupported ebuild for openwatcom-1.7.1 and it doesn't quite work :-<
The ebuild's src_compile function is: src_compile() { ./build.sh || die "build.sh failed" } When I run "emerge =dev-lang/openwatcom-1.7.1", the build fails with /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `bootstrp/clibext.o' is incompatible with i386 output distcc[16016] ERROR: compile (null) on localhost failed The full output of the emerge command is in the attached file. Alternatively, I can manually unpack and build with commands: ebuild =dev-lang/openwatcom-1.7.1.ebuild unpack cd /var/tmp/dev-lang/openwatcom-1.7.1/work ./build.sh With the steps performed manually, the compilation works properly. Anybody familiar with the "i386:x86-64 ... incompatible ... i386" message and know what it means? Any suggestions on ebuild changes to correct this behavior? Thanks ! David
>>> Unpacking source... >>> Unpacking open_watcom_1.7.1-src.tar.bz2 to /var/tmp/portage/dev-lang/openwatcom-1.7.1/work [32;01m*[0m Applying build.sh.patch ... [A[71C [34;01m[ [32;01mok[34;01m ][0m >>> Source unpacked in /var/tmp/portage/dev-lang/openwatcom-1.7.1/work >>> Compiling source in /var/tmp/portage/dev-lang/openwatcom-1.7.1/work ... Open Watcom compiler build environment mkdir bootstrp cc -c -funsigned-char -fno-common -g -O2 -Wall -Wno-switch -Ibootstrp -Ih -I../watcom/h -I../lib_misc/h -D__LINUX__ -D__UNIX__= -DUNIX -Uunix -DBOOTSTRAP -DWMAKE -Ibootstrp -o bootstrp/wsplice.o ../builder/c/wsplice.c cc -c -funsigned-char -fno-common -g -O2 -Wall -Wno-switch -Ibootstrp -Ih -I../watcom/h -I../lib_misc/h -D__LINUX__ -D__UNIX__= -DUNIX -Uunix -DBOOTSTRAP -DWMAKE -Ibootstrp -o bootstrp/clibext.o ../watcom/c/clibext.c cc -g bootstrp/wsplice.o bootstrp/clibext.o -o bootstrp/wsplice collect2: ld terminated with signal 11 [Segmentation fault] /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `bootstrp/wsplice.o' is incompatible with i386 output /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `bootstrp/clibext.o' is incompatible with i386 output distcc[16016] ERROR: compile (null) on localhost failed make: *** [bootstrp/wsplice] Error 1 ./build.sh: line 19: wmake: command not found ./build.sh: line 22: builder: command not found >>> Source compiled. >>> Test phase [not enabled]: dev-lang/openwatcom-1.7.1 >>> Install openwatcom-1.7.1 into /var/tmp/portage/dev-lang/openwatcom-1.7.1/image/ category dev-lang cp: cannot stat `rel2': No such file or directory ln: creating symbolic link `/var/tmp/portage/dev-lang/openwatcom-1.7.1/image//opt/openwatcom/bin': No such file or directory >>> Completed installing openwatcom-1.7.1 into /var/tmp/portage/dev-lang/openwatcom-1.7.1/image/ >>> Done.