Opened 17 years ago
Closed 17 years ago
#1643 closed defect (worksforme)
05/17/07 Nightly fails to compile on 64bit gcc 4.1.1 20070105
Reported by: | rbanfield | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | Mateusz Łoskot |
Description
Could not compile on Intel Core Duo 64 bit nor AMD Opteron 64 bit using 64 bit Fedora 6, instead generating the following errors
libtool: compile: gcc -c -DPNG_NO_GLOBAL_ARRAYS -Ilibpng -I../zlib -I/home/rbanfiel/p2/gdal/port -I/home/rbanfiel/p2/gdal/gcore -I/home/rbanfiel/p2/gdal/alg -I/home/rbanfiel/p2/gdal/ogr -I/home/rbanfiel/p2/gdal/ogr/ogrsf_frmts -DOGR_ENABLED -I/home/rbanfiel/p2/gdal/port -I/home/rbanfiel/p2/jasper-uuid/src/libjasper -I/home/rbanfiel/p2/jasper-uuid/src/libjasper/include -Wall -Wdeclaration-after-statement -O2 libpng/pnggccrd.c -o ../o/pnggccrd.o
/tmp/ccU8ZRRg.s: Assembler messages: /tmp/ccU8ZRRg.s:17: Error: suffix or operands invalid for `push' /tmp/ccU8ZRRg.s:18: Error: suffix or operands invalid for `push' /tmp/ccU8ZRRg.s:19: Error: suffix or operands invalid for `push' /tmp/ccU8ZRRg.s:20: Error: suffix or operands invalid for `pushf' /tmp/ccU8ZRRg.s:21: Error: suffix or operands invalid for `pop' /tmp/ccU8ZRRg.s:24: Error: suffix or operands invalid for `push' /tmp/ccU8ZRRg.s:25: Error: suffix or operands invalid for `popf' /tmp/ccU8ZRRg.s:26: Error: suffix or operands invalid for `pushf' /tmp/ccU8ZRRg.s:27: Error: suffix or operands invalid for `pop' /tmp/ccU8ZRRg.s:28: Error: suffix or operands invalid for `push' /tmp/ccU8ZRRg.s:29: Error: suffix or operands invalid for `popf' /tmp/ccU8ZRRg.s:47: Error: suffix or operands invalid for `pop' /tmp/ccU8ZRRg.s:48: Error: suffix or operands invalid for `pop' /tmp/ccU8ZRRg.s:49: Error: suffix or operands invalid for `pop'
The gcc version is 4.1.1 20070105. This file can compile fine in 32-bit mode, (i.e. gcc -m32 -c ...), so I'm not sure what magic would need to be performed in order to not generate these assembler commands in 64-bit.
Change History (4)
comment:1 by , 17 years ago
comment:3 by , 17 years ago
Perhaps, wrong version of binutils is used. This problem seems to be not related to version of GCC but assembler, which is part of binutils.
Usually, when one upgrades to newer version of GCC, newer version of binutils are installed.
My suggestion is to check version of binutils and try newer one if necessary.
comment:4 by , 17 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Closing as this doesn't seem to have much to do with GDAL. The code in question is actually from libpng and it appears the issue is with the build tools.
Please re-open if you feel there is some specific fixable GDAL issue.
I've no idea what is wrong here.
I'm still running gcc 3.4.