[Bug 29021] New: powerpc32 build broken on 64-bit hosts: /usr/bin/ld: powerpc:common architecture of input file `c_037.o' is incompatible with powerpc:common64 output

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Nov 7 14:01:05 CST 2011


http://bugs.winehq.org/show_bug.cgi?id=29021

             Bug #: 29021
           Summary: powerpc32 build broken on 64-bit hosts: /usr/bin/ld:
                    powerpc:common architecture of input file `c_037.o' is
                    incompatible with powerpc:common64 output
           Product: Wine
           Version: 1.3.32
          Platform: ppc32
        OS/Version: Linux
            Status: NEW
          Keywords: download, source
          Severity: major
          Priority: P2
         Component: build-env
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: austinenglish at gmail.com
            Blocks: 25744
    Classification: Unclassified


Created attachment 37360
  --> http://bugs.winehq.org/attachment.cgi?id=37360
make log

Found while investigating bug 28981. This is a powerpc64 host, with 32-bit
libraries installed (Fedora 16):
[austin at gcc1-power7 wine-git]$ uname -a
Linux gcc1-power7.osuosl.org 3.1.0-0.rc9.git0.2.fc16.kh.ppc64 #1 SMP Wed Oct 12
22:41:01 UTC 2011 ppc64 ppc64 ppc64 GNU/Linux
[austin at gcc1-power7 wine-git]$ cat /etc/issue
Fedora release 16 (Verne)
Kernel \r on an \m (\l)

I used:
`CFLAGS="-m32 -g -O0" ./configure && make`
to force a 32-bit build, but that fails:
make[1]: Entering directory `/home/austin/wine-git/libs/wine'
version=`(GIT_DIR=../../.git git describe HEAD 2>/dev/null || echo
"wine-1.3.32") | sed -n -e '$s/\(.*\)/const char wine_build[] = "\1";/p'` &&
(echo $version | cmp -s - version.c) || echo $version >version.c || (rm -f
version.c && exit 1)
gcc -shared -Wl,-soname,libwine.so.1 -Wl,--version-script=./wine.map c_037.o
c_10000.o c_10006.o c_10007.o c_10029.o c_1006.o c_10079.o c_10081.o c_1026.o
c_1250.o c_1251.o c_1252.o c_1253.o c_1254.o c_1255.o c_1256.o c_1257.o
c_1258.o c_1361.o c_20127.o c_20866.o c_20932.o c_21866.o c_28591.o c_28592.o
c_28593.o c_28594.o c_28595.o c_28596.o c_28597.o c_28598.o c_28599.o c_28600.o
c_28603.o c_28604.o c_28605.o c_28606.o c_424.o c_437.o c_500.o c_737.o c_775.o
c_850.o c_852.o c_855.o c_856.o c_857.o c_860.o c_861.o c_862.o c_863.o c_864.o
c_865.o c_866.o c_869.o c_874.o c_875.o c_878.o c_932.o c_936.o c_949.o c_950.o
casemap.o collation.o compose.o config.o cptable.o debug.o fold.o ldt.o
loader.o mbtowc.o mmap.o port.o sortkey.o string.o utf8.o wctomb.o wctype.o    
   version.o ../../libs/port/libwine_port.a -ldl     -o libwine.so.1.0
/usr/bin/ld: powerpc:common architecture of input file `c_037.o' is
incompatible with powerpc:common64 output
/usr/bin/ld: powerpc:common architecture of input file `c_10000.o' is
incompatible with powerpc:common64 output
/usr/bin/ld: powerpc:common architecture of input file `c_10006.o' is
incompatible with powerpc:common64 output

looks like we're still trying to link something as 64-bit? Those fails are
32-bit though:
[austin at gcc1-power7 wine-git]$ file libs/wine/*o
libs/wine/c_037.o:     ELF 32-bit MSB relocatable, PowerPC or cisco 4500,
version 1 (SYSV), not stripped
libs/wine/c_10000.o:   ELF 32-bit MSB relocatable, PowerPC or cisco 4500,
version 1 (SYSV), not stripped
libs/wine/c_10006.o:   ELF 32-bit MSB relocatable, PowerPC or cisco 4500,
version 1 (SYSV), not stripped

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list