Menu

Does zinc compile correctly on 64-bit arch?

Help
Lionel B
2006-07-12
2013-04-26
  • Lionel B

    Lionel B - 2006-07-12

    Hi,

    When I try to compile CodeBrowser on my x86_64 (Xeon, RH EL 4) zinc compiles with what I suspect are  word size related warnings and then segfaults when run:

    /var/scratch/lionelb/usr/src/code-browser-2.7> make
    (cd ./zinc && make)
    make[1]: Entering directory `/var/scratch/lionelb/usr/src/code-browser-2.7/zinc'
    gcc -O2 -fomit-frame-pointer -c -o zc.o zc.c
    zc.c:860: warning: conflicting types for built-in function 'malloc'
    zc.c:1239: warning: conflicting types for built-in function 'fwrite'
    zc.c: In function `_new_type_p_s__memory_bundle_dw_e__type_id_in_dw_dw':
    zc.c:2076: warning: cast from pointer to integer of different size
    zc.c: In function `_copy_p_vo_p_vo_dw':
    zc.c:2258: warning: cast from pointer to integer of different size
    zc.c: In function `_unexpected_p_s__parser_e__token_p_s__lexeme_e__token':
    zc.c:4609: warning: cast to pointer from integer of different size
    zc.c:4609: warning: cast to pointer from integer of different size
    zc.c: In function `_syntax_error_p_s__parser_e__token_p_s__lexeme':
    zc.c:4781: warning: cast to pointer from integer of different size
    gcc -O2 -fomit-frame-pointer -c -o io.o io.c
    gcc -s -o zc zc.o io.o
    make[1]: Leaving directory `/var/scratch/lionelb/usr/src/code-browser-2.7/zinc'
    gtk.c
    gtkcustom.c
    gtk-resources.c
    io.c
    Checking GTK+ 2.4... Ok
    Compiling zinc files...
    make: *** [cb] Segmentation fault

     
    • Marc Kerbiquet

      Marc Kerbiquet - 2006-07-12

      Hi Lionel,

      yes, it comes from invalid size of types. Zinc can be built on 64-bit architecture (at least on amd64) using 'make MODE=64' but the editor won't work. I still have issues with my gtk headers and I don't have a 64-bit machine to debug this.

      Sorry.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.