[GRASS-dev] Not universal building on Mac
Agustin Diez Castillo
Agustin.Diez at uv.es
Wed May 9 09:51:20 EDT 2007
Errors compiling latest cvs on macosx intel, when using universal
flags( export CFLAGS="-arch ppc -arch i386"; export CXXFLAGS="-arch
ppc -arch i386"; export LDFLAGS="-arch ppc -arch i386"). Without them
works.
/usr/bin/install -c -m 644 scripts.hmp /Users/Shared/grasssource/
grass6/dist.i686-apple-darwin8.9.1/fonts
gtcltk
if [ ! -d /Users/Shared/grasssource/grass6/dist.i686-apple-
darwin8.9.1/etc/gtcltk ]; then mkdir -p /Users/Shared/grasssource/
grass6/dist.i686-apple-darwin8.9.1/etc/gtcltk; fi
for file in *.tcl ; do /usr/bin/install -c -m 644 $file /Users/
Shared/grasssource/grass6/dist.i686-apple-darwin8.9.1/etc/gtcltk/ ; done
gcc -I/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.9.1/
include -g -O3 -DPACKAGE=\""grassmods"\" -I/Users/Shared/
grasssource/grass6/dist.i686-apple-darwin8.9.1/include \
-o OBJ.i686-apple-darwin8.9.1/grocat.o -c grocat.c
gcc -L/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.9.1/
lib -arch ppc -arch i386 -arch ppc -arch i386 -L/usr/local/pgsql/
lib OBJ.i686-apple-darwin8.9.1/grocat.o -o /Users/Shared/grasssource/
grass6/dist.i686-apple-darwin8.9.1/etc/grocat
/usr/bin/ld: for architecture ppc
/usr/bin/ld: warning OBJ.i686-apple-darwin8.9.1/grocat.o cputype (7,
architecture i386) does not match cputype (18) for specified -arch
flag: ppc (file not loaded)
/usr/bin/ld: Undefined symbols:
_main
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cchnyodT.out (No such file or
directory)
make[2]: *** [/Users/Shared/grasssource/grass6/dist.i686-apple-
darwin8.9.1/etc/grocat] Error 1
form
..........
gcc -L/Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.9.1/
lib -arch ppc -arch i386 -arch ppc -arch i386 -L/usr/local/pgsql/
lib -g -O3 -I/Library/Frameworks/GDAL.framework/unix/include -I/
Users/Shared/grasssource/grass6/dist.i686-apple-darwin8.9.1/include -
o OBJ.i686-apple-darwin8.9.1/test test.c -lgrass_dig2 -lgrass_gis -
lgrass_datetime -lz -lgrass_rtree -lgrass_rtree \
-lgrass_gis -lgrass_datetime -lz -
lgrass_datetime -lz
/usr/bin/ld: for architecture ppc
/usr/bin/ld: Undefined symbols:
_dig__fread_port_C
_dig__fread_port_D
_dig__fread_port_F
_dig__fread_port_I
_dig__fread_port_L
_dig__fread_port_S
_dig__fwrite_port_C
_dig__fwrite_port_D
_dig__fwrite_port_F
_dig__fwrite_port_I
_dig__fwrite_port_L
_dig__fwrite_port_S
_dig_fflush
_dig_fseek
_dig_init_portable
_dig_set_cur_port
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccC8XXDG.out (No such file or
directory)
make[3]: *** [OBJ.i686-apple-darwin8.9.1/test] Error 1
Vlib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20070509/b439027d/attachment.html
More information about the grass-dev
mailing list