There is info+patch file for seamonkey-2.0.3 in
http://fink.cvs.sourceforge.net/viewvc/fink/experimental/jfmertens/crypto/finkinfo/
It builds, apparently correctly, on 10.5/32bit.

On 10.5/64bit, I get :

> jsregexp.cpp
> c++ -o jsregexp.o -c -fvisibility=hidden -DFEATURE_NANOJIT - 
> DJS_TRACER -DOSTYPE=\"Darwin9.8.0\" -DOSARCH=Darwin -DEXPORT_JS_API   
> -DJS_USE_SAFE_ARENA  -I. -I.  -I./../../dist/include   -I./../../ 
> dist/include/js -I/sw64/bld/seamonkey-2.0.3-1/comm-1.9.1/mozilla/ 
> dist/include/nspr -I/sdk/include -I.    -fPIC  -I/sw64/lib/pango- 
> ft219/include-pango-1.0 -I/sw64/lib/pango-ft219/include -I/sw64/ 
> include/freetype2 -I/sw64/lib/fontconfig2/include  -fno-rtti -fno- 
> exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno- 
> ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid- 
> offsetof -Wno-long-long -fno-strict-aliasing -fpascal-strings -fno- 
> common -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os  -I/sw64/ 
> lib/pango-ft219/include-pango-1.0 -I/sw64/lib/pango-ft219/include -I/ 
> sw64/include/freetype2 -I/sw64/lib/fontconfig2/include  - 
> DMOZILLA_CLIENT -include ./mozilla-config.h -Wp,-MD,.deps/ 
> jsregexp.pp jsregexp.cpp
> {standard input}:8257:suffix or operands invalid for `call'
> make[4]: *** [jsregexp.o] Error 1

[  Instead of, under 32bit :
> jsregexp.cpp
> c++ -o jsregexp.o -c -I./../../dist/include/system_wrappers_js - 
> include ./config/gcc_hidden.h -DFEATURE_NANOJIT -DJS_TRACER -DOSTYPE= 
> \"Darwin9.8.0\" -DOSARCH=Darwin -DEXPORT_JS_API  - 
> DJS_USE_SAFE_ARENA  -I. -I.  -I./../../dist/include   -I./../../dist/ 
> include/js -I/sw32/bld/seamonkey-2.0.3-1/comm-1.9.1/mozilla/dist/ 
> include/nspr -I/sdk/include -I.    -fPIC  -I/sw/lib/pango-ft219/ 
> include-pango-1.0 -I/sw/lib/pango-ft219/include -I/sw/include/ 
> freetype2 -I/sw/lib/fontconfig2/include  -fno-rtti -fno-exceptions - 
> Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor- 
> privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof - 
> Wno-long-long -fno-strict-aliasing -fpascal-strings -fno-common - 
> fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os  -I/sw/lib/pango- 
> ft219/include-pango-1.0 -I/sw/lib/pango-ft219/include -I/sw/include/ 
> freetype2 -I/sw/lib/fontconfig2/include  -DMOZILLA_CLIENT -include ./ 
> mozilla-config.h -Wp,-MD,.deps/jsregexp.pp jsregexp.cpp
]

Re-running the command manually, preceded by
> env CCACHE_DISABLE=1 MACOSX_DEPLOYMENT_TARGET=10.5 PATH=/sw64/var/ 
> lib/fink/path-prefix-10.6:/sw64/share/melina/bin:/sw64/bin:/sw64/ 
> sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:.

, and with -pipe replaced by -save-temps, yields the slightly more  
explicit msg :

> jsregexp.s:8257:suffix or operands invalid for `call'

where the relevant lines in jsregexp.s are :
>   8251        L1429:
>   8252                movq    -224(%rbp), %rdx
>   8253                movq    (%rdx), %rax
>   8254                movq    %rdx, %rcx
>   8255                movq    %r12, %rdx
>   8256                movq    %rax, 32(%r12)
>   8257                call *%esi
>   8258                movq    %rax, %rsi
>   8259                movq    32(%r12), %rax
>   8260                subq    -216(%rbp), %rax
>   8261                sarq    %rax
>   8262                movq    %rax, 32(%r12)
>   8263                jmp     L1431


Do I understand correctly that c++ is generating invalid asm code ?
Any idea how to debug/fix this ? (The error persists when replacing
-Os  by  -O0).
This is with
i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)

Thanks !

Jean-Francois Mertens


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to