error compiling UPC-to-C translator

From: Ruben Niederhagen (ruben_at_lfbs.rwth-aachen.de)
Date: Tue Feb 26 2008 - 03:04:15 PST

  • Next message: Costin Iancu: "Re: error compiling UPC-to-C translator"
    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
    

  • Next message: Costin Iancu: "Re: error compiling UPC-to-C translator"