0 Replies Latest reply on Nov 21, 2013 10:36 AM by giacombum

    Problem compiling open64

    giacombum

      I'm trying to compile open64-4.5.2.1 on my home pc with a phenom II X4 955 and archlinux-x86_64 installed.

      I've downloaded all multilib packages (I think), and after a

      ../configure --prefix=/opt/open64-4.5.2.1 CC=gcc --build=x86_64-unknown-linux-gnu

      I see that in the makefile the option BUILD_MULTILIB is set to yes; so I delete the argument of this option and try with a "make" but I obtain the following error:

      In file included from /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_cfg.h:140:0,

                       from /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/bb_node_set.h:441,

                       from /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_etable.h:112,

                       from /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_min_essa.cxx:53:

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_proactive.h:217:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]

      };

      ^

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_proactive.h:225:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]

      };

      ^

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_proactive.h:302:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]

      };

      ^

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_proactive.h:312:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]

      };

      ^

      make[3]: ingresso nella directory "/home/giacomo/x86_open64-4.5.2.1/obj/osprey/cygnus/ld"

      make[3]: uscita dalla directory "/home/giacomo/x86_open64-4.5.2.1/obj/osprey/cygnus/ld"

      make[2]: uscita dalla directory "/home/giacomo/x86_open64-4.5.2.1/obj/osprey/cygnus"

      In file included from /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/bb_node_set.h:441:0,

                       from /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_etable.h:112,

                       from /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_min_essa.cxx:53:

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_cfg.h: In member function ‘SC_NODE* CFG::Get_sc_from_bb(BB_NODE*) const’:

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_cfg.h:294:58: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

           return (SC_NODE *) _sc_map->Get_val((POINTER) bb->Id());

                                                                ^

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_cfg.h: In member function ‘void CFG::Add_sc_map(BB_NODE*, SC_NODE*)’:

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_cfg.h:299:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

           _sc_map->Add_map((POINTER) bb->Id(), (POINTER)sc);

                                             ^

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_cfg.h: In member function ‘void CFG::Remove_sc_map(BB_NODE*, SC_NODE*)’:

      /home/giacomo/x86_open64-4.5.2.1/obj/osprey/../../osprey/be/opt/opt_cfg.h:303:66: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

           MAP_LIST * map_lst = _sc_map->Find_map_list((POINTER) bb->Id());

                                                                        ^

      make[3]: uscita dalla directory "/home/giacomo/x86_open64-4.5.2.1/obj/osprey/targdir/wopt"

      ../../../../osprey/be/opt/Makefile.gbase:316: set di istruzioni per l'obiettivo "default" non riuscito

      make[2]: *** [default] Errore 2

      make[2]: uscita dalla directory "/home/giacomo/x86_open64-4.5.2.1/obj/osprey/targdir/wopt"

      Makefile:244: set di istruzioni per l'obiettivo "wopt.so" non riuscito

      make[1]: *** [wopt.so] Errore 2

      make[1]: uscita dalla directory "/home/giacomo/x86_open64-4.5.2.1/obj"

      Makefile:334: set di istruzioni per l'obiettivo "build" non riuscito

      make: *** [build] Errore 2

      How can I solve?