[Clfs-support] unzip compile issue
Ken Moffat
zarniwhoop at ntlworld.com
Mon Apr 13 14:04:13 PDT 2009
On Mon, Apr 13, 2009 at 08:07:07PM +0000, Koornstra, Reinoud wrote:
> Hi,
>
> I wished to build unzip as described here:
>
> http://cblfs.cross-lfs.org/index.php/Unzip
>
[...]
>
> Upon compiling I get this message: (for non multilib)
>
> NOTE: use linux_noasm target for non-Intel Linux compiles.
^^^^^^^^^^^^^^^^^
> make unzips CC=gcc LD=gcc AS=gcc\
> CF="-O3 -Wall -I. -DASM_CRC -D_FILE_OFFSET_BITS=64"\
> AF="-Di386 -D_FILE_OFFSET_BITS=64" CRC32=crc_gcc
> make[1]: Entering directory `/sources/cblfs/unzip-5.52'
> gcc -c -O3 -Wall -I. -DASM_CRC -D_FILE_OFFSET_BITS=64 unzip.c
> gcc -Di386 -D_FILE_OFFSET_BITS=64 -x assembler-with-cpp -c -o crc_gcc.o crc_i386.S
> crc_i386.S: Assembler messages:
> crc_i386.S:146: Error: suffix or operands invalid for `push'
> crc_i386.S:147: Error: suffix or operands invalid for `push'
> crc_i386.S:148: Error: suffix or operands invalid for `push'
> crc_i386.S:149: Error: suffix or operands invalid for `push'
> crc_i386.S:150: Error: suffix or operands invalid for `push'
> crc_i386.S:151: Error: suffix or operands invalid for `push'
> crc_i386.S:228: Error: suffix or operands invalid for `pop'
> crc_i386.S:229: Error: suffix or operands invalid for `pop'
> crc_i386.S:230: Error: suffix or operands invalid for `pop'
> crc_i386.S:231: Error: suffix or operands invalid for `pop'
> crc_i386.S:232: Error: suffix or operands invalid for `pop'
> crc_i386.S:233: Error: suffix or operands invalid for `pop'
> make[1]: *** [crc_gcc.o] Error 1
> make[1]: Leaving directory `/sources/cblfs/unzip-5.52'
> make: *** [linux] Error 2
>
> Any hints how to resolve this?
> Kind Regards,
>
> Reinoud.
OK, the wording of the "NOTE" is "perhaps unhelpful", but try it
(historically, the architecture can be regarded as amd64).
In general, whenever assembler code fails on x86_64-64 it usually
means something causes the build to thinbk it is on 32-bit - in this
case, the i386 in the assember file name is a giveaway.
ĸen
--
das eine Mal als Tragödie, das andere Mal als Farce
More information about the Clfs-support
mailing list