"float.h values not know for cross compiler"
Steps:
make LANGUAGES=c CFLAGS=-O CC="gcc -m32"
make enquire
$IDIR/simplesim-3.0/sim-safe ./enquire -f > float.h-cross
make LANGUAGES=c CFLAGS=-O CC="gcc -m32" install
make enquire
$IDIR/simplesim-3.0/sim-safe ./enquire -f > float.h-cross
make LANGUAGES=c CFLAGS=-O CC="gcc -m32" install
Original Source:
Now if you get an error with equire:
. / Xgcc-B. /-DCROSS_COMPILE-DIN_GCC-g -I./include -I/usr/include-DNO_MEM-DNO_LONG_DOUBLE_IO-O0-I.-C. / Enquire.c
In file included from / usr / include / sys / types.h: 270,
from. / enquire.c: 401:
/ usr / include / BITS / pthreadtypes.h: 99: Warning: unnamed struct / Union that defines no instances
. / xgcc-B. /-DCROSS_COMPILE-DIN_GCC -g-O -I./include -I/usr/include enquire.o Enquire
enquire.o: In function `fcheck ':
. / enquire.c: 2186: undefined Reference to `__isoc99_sscanf '
enquire.o: In function ` dCheck ':
. / enquire.c: 2186: undefined Reference to `__isoc99_sscanf '
enquire.o: In function `ldCheck ':
. / enquire.c: 2186: undefined Reference to `__isoc99_sscanf '
make: *** [Enquire] Error 1
Solution:
The first 8 lines in enquire.c add:
# Define _GNU_SOURCE
That's it. Current problems is to use sim-cache and sim-outorder
execution encountered an error when gzip (gzip with sim-profile executive is normal; mcf with the implementation of these three are normal):
Original Source: http://daizw.blogspot.com/
No comments:
Post a Comment