[GRASS-dev] Not universal building on Mac
Agustin Diez Castillo
Agustin.Diez at uv.es
Wed May 9 11:23:02 EDT 2007
I did make distclean before compiling. On the binary nviz is still
crashing
*********************
Date/Time: 2007-05-09 17:21:50.427 +0200
OS Version: 10.4.9 (Build 8P2137)
Report Version: 4
Command: nviz
Path: /Applications/GRASS-6.3.app/Contents/Resources/etc/nviz2.2/nviz
Parent: wish8.4 [7533]
Version: ??? (???)
PID: 9077
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x6e614320
Thread 0 Crashed:
0 libX11.6.dylib 0x00709cd2 XQueryExtension + 51
1 libGL.1.dylib 0x006745f3 glXQueryExtension + 62
2 nviz 0x000149bf Togl_CreateWindow + 56 (togl.c:
1805)
3 com.tcltk.tklibrary 0x9adbf131 Tk_MakeWindowExist + 120
4 nviz 0x00015e89 Togl_Cmd + 1046 (togl.c:1572)
5 com.tcltk.tcllibrary 0x9acbe16f TclInvokeStringCommand + 121
6 com.tcltk.tcllibrary 0x9acc08e1 TclEvalObjvInternal + 733
7 com.tcltk.tcllibrary 0x9ace365a TclExecuteByteCode + 3101
8 com.tcltk.tcllibrary 0x9ace8442 TclCompEvalObj + 279
9 com.tcltk.tcllibrary 0x9ad0f261 TclObjInterpProc + 524
10 com.tcltk.tcllibrary 0x9acc08e1 TclEvalObjvInternal + 733
11 com.tcltk.tcllibrary 0x9acc0be8 Tcl_EvalEx + 488
12 com.tcltk.tcllibrary 0x9acfe930 Tcl_FSEvalFile + 400
13 com.tcltk.tcllibrary 0x9acfea14 Tcl_EvalFile + 47
14 com.tcltk.tklibrary 0x9ad95291 Tk_MainEx + 835
15 nviz 0x00012e4f main + 102 (nvizMain.c:64)
16 nviz 0x0000205a _start + 216
17 nviz 0x00001f81 start + 41
Thread 1:
0 libSystem.B.dylib 0x9001a93c select + 12
1 libSystem.B.dylib 0x90024987 _pthread_body + 84
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x6e614328 ebx: 0x006745c3 ecx: 0x00014987 edx: 0x6e614320
edi: 0xbfffd8b8 esi: 0x01f5e008 ebp: 0xbfffc7a8 esp: 0xbfffc770
ss: 0x0000001f efl: 0x00010283 eip: 0x00709cd2 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
Binary Images Description:
0x1000 - 0x22fff nviz /Applications/GRASS-6.3.app/Contents/
Resources/etc/nviz2.2/nviz
On May 9, 2007, at 5:18 PM, William Kyngesburye wrote:
> On May 9, 2007, at 8:51 AM, Agustin Diez Castillo wrote:
>
>> 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
>
> Somehow the universal flags didn't get into the grocat compile, but
> did make it to the grocat link. Odd because grocat hasn't changed
> since last November, and it's a standard .o target.
>
> Try make distclean? Could be some leftovers from a single-arch build.
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "We are at war with them. Neither in hatred nor revenge and with no
> particular pleasure I shall kill every ___ I can until the war is
> over. That is my duty."
>
> "Don't you even hate 'em?"
>
> "What good would it do if I did? If all the many millions of people
> of the allied nations devoted an entire year exclusively to hating
> the ____ it wouldn't kill one ___ nor shorten the war one day."
>
> <Ha, ha> "And it might give 'em all stomach ulcers."
>
> - Tarzan, on war
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20070509/14b1f411/attachment.html
More information about the grass-dev
mailing list