Re: error compiling UPC-to-C translator

From: Costin Iancu (cciancu_at_lbl_dot_gov)
Date: Tue Feb 26 2008 - 09:53:55 PST

  • Next message: Ruben Niederhagen: "Re: error compiling UPC-to-C translator"
    Hi Ruben.
    
     From what I remember,  we use targia32_ia64_nodebug to build,  
    regardless of the target architecture.
    Give that a try.
    It it still doesn't work, I'll need the gcc version you are using.
    We've been using 3.x and 4.? without any problems. If it's the  
    "newest" gcc we might not have tried it.
    
    
    Costin
    
    On Feb 26, 2008, at 3:04 AM, Ruben Niederhagen wrote:
    
    > Hi!
    >
    > I have trouble to compile the UPC-to-C translator:
    >
    > [...]
    > g++ -D_SGI_SOURCE -D_LANGUAGE_C_PLUS_PLUS -Wformat -funsigned-char - 
    > D__GNU_BUG_WORKAROUND -D_NOTHREADS           -DIN_GCC - 
    > DHAVE_CONFIG_H -DTARGET_NAME=\"ia64-linux\" -DLONGLONG -DFRONT_END - 
    > DUSE_DECL_SRCPOS -DFRONT_END_C -DCFE -DCIL -DDO_IL_LOWERING=0 - 
    > DNO_USR_INCLUDE=TRUE -DAUTOMATIC_TEMPLATE_INSTANTIATION=0 - 
    > DINSTANTIATION_BY_IMPLICIT_INCLUSION=0 -DBACK_END_IS_C_GEN_BE=0 - 
    > DMONGOOSE_CIF -DSGI_RAG_BACKEND -DSGI_MONGOOSE -DCOMPILE_UPC - 
    > DHANDLE_PRAGMA_WEAK -DMIPSEL -DNDEBUG  -DCHECKING=0 - 
    > D__MIPS_AND_IA64_ELF_H -I../../include -I../include -I../../common/ 
    > com -I../../common/com/ia64 -I../../common/util -I../../common/util/ 
    > ia64 -I../../common/targ_info/access -I../../gccfe -I../../gccfe/gnu  
    > -I../../gccfe/gnu/ia64 -I../../gccfe/gnu/config -I../../gccfe/gnu/ 
    > config/ia64 -I../../gnu_common/include -fPIC -DTARG_IA64     -g3 - 
    > D_DEBUG  -D_MIPSEB -D_LONGLONG -D_MIPS_SZINT=32 -D_MIPS_SZPTR=64 - 
    > D_MIPS_SZLONG=64 -D_LP64  -D_LINUX_LINUX -Wno-deprecated -c ../../ 
    > gccfe/tree_symtab.cxx -o tree_symtab.o
    > ../../gccfe/gnu/flags.h:174: error: previous declaration of 'int  
    > pedantic' with 'C++' linkage
    > ../../gccfe/gnu/tree.h:2449: error: conflicts with new declaration  
    > with 'C' linkage
    > make[3]: *** [tree_symtab.o] Error 1
    > make[3]: Leaving directory `/tmp/devel/upc/ 
    > berkeley_upc_translator-2.6.0/open64/osprey1.0/build_ia64/gccfe'
    > make[2]: *** [all] Error 1
    > make[2]: Leaving directory `/tmp/devel/upc/ 
    > berkeley_upc_translator-2.6.0/open64/osprey1.0/build_ia64'
    > make[1]: *** [all-internal] Error 2
    > make[1]: Leaving directory `/tmp/devel/upc/ 
    > berkeley_upc_translator-2.6.0'
    > make: *** [all] Error 2
    >
    > I tried to fix this by rearranging the
    >
    >  extern "C" {
    >  ...
    >  }
    >
    > statements, but that did not work out.
    >
    > Does somebody have an idea what I am doing wrong?
    >
    > Thank you!
    >  Ruben
    
    -- 
    Costin C. Iancu                                                       cciancu_at_lbl_dot_gov
    Future Technologies Group                                 Phone:  
    510-495-2122
    Lawrence Berkeley National Laboratory           Fax:   510-486-6900
    

  • Next message: Ruben Niederhagen: "Re: error compiling UPC-to-C translator"