compilation error

197 views
Skip to first unread message

André Campos

unread,
Jan 10, 2013, 11:39:16 AM1/10/13
to dirac...@googlegroups.com
Hi

 When compiling dirac12 in a ubuntu machine, I get the following error

[ 81%] Built target dirac
[ 81%] Building CXX object src/xcfun/src/CMakeFiles/xcfun.dir/functionals/._pbec.cpp.o
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:1: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\5’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\26’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\7’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:5: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\2’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:7: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:17: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\2’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:27: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:35: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\16’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\260’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:39: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\2’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:43: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\16’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\342’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:47: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\1’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\36’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:51: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\232’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\311’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\377’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:93: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\16’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\342’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:97: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\230’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:101: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\25’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:105: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\1’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:121: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\230’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:125: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\25’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:129: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\25’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:152: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:158: error: invalid suffix "c8ab1c" on integer constant
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:174: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\1’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:3814: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\1’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:3818: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\36’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:3870: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\1’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:4070: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\1’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:4074: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\36’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:4083: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\34’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:4093: warning: null character(s) ignored [enabled by default]
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\36’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\377’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:2: error: stray ‘\377’ in program
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:9: error: ‘Mac’ does not name a type
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:132: error: ‘com’ does not name a type
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:158: error: expected unqualified-id before numeric constant
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:167: error: ‘Safari’ does not name a type
/home/andre/Desktop/DIRAC-12.0-Source/src/xcfun/src/functionals/._pbec.cpp:1:3827: error: ‘This’ does not name a type
make[2]: *** [src/xcfun/src/CMakeFiles/xcfun.dir/functionals/._pbec.cpp.o] Error 1
make[1]: *** [src/xcfun/src/CMakeFiles/xcfun.dir/all] Error 2
make: *** [all] Error 2
andre@ubuntu:~/Desktop/DIRAC-12.0-Source/build$

as you can see, it goes well up to cxx compiler, where it crashs. I compiled it using the following command
./setup --fc=gfortran --cxx=g++ --int64 --force

I have gcc 4.7.2 installed. Is it a problem with the c++ compiler?

 Thanks

Andre

ueks...@gmail.com

unread,
Jan 10, 2013, 11:45:53 AM1/10/13
to dirac...@googlegroups.com
I don't understand where this ._pbec.cpp file come from. What does it contain?

Regards,
Ulf
> --
>
>

André Campos

unread,
Jan 10, 2013, 11:52:44 AM1/10/13
to dirac...@googlegroups.com
here is the file. That's always where it fails to compile, but it did not fail when I compiled it in my mac computer with gcc-mlion compiler


--



pbec.cpp

ueks...@gmail.com

unread,
Jan 10, 2013, 11:53:45 AM1/10/13
to dirac...@googlegroups.com
Is that the file which was called ._pbec.cpp ?
> --
>
>

André Campos

unread,
Jan 10, 2013, 11:55:35 AM1/10/13
to dirac...@googlegroups.com
That's the only one with this name that I found in the specified directory


--



André Campos

unread,
Jan 10, 2013, 11:58:00 AM1/10/13
to dirac...@googlegroups.com
it appears here as well
list_of_functionals.cpp

ueks...@gmail.com

unread,
Jan 10, 2013, 12:01:09 PM1/10/13
to dirac...@googlegroups.com
So there is no hidden file called ._pbec.cpp?
> --
>
>

André Campos

unread,
Jan 10, 2013, 12:01:37 PM1/10/13
to dirac...@googlegroups.com
I couldn't find any


--



ueks...@gmail.com

unread,
Jan 10, 2013, 12:03:22 PM1/10/13
to dirac...@googlegroups.com
Not even with ls -a ? (I am sorry if you already tried that, I need to
see the file it actually compiles
to understand what is wrong. The file you sent me is fine.

Ulf
> --
>
>

André Campos

unread,
Jan 10, 2013, 12:09:58 PM1/10/13
to dirac...@googlegroups.com
that's the list I get

andre@ubuntu:~/Desktop/DIRAC-12.2-Source/src/xcfun/src/functionals$ ls -a
.                          m05x2c.cpp    ._pbec_eps.h      revtpssx.cpp
..                         ._m05x2x.cpp  pbec_eps.h        ._revtpssx_eps.h
._beckex.cpp               m05x2x.cpp    ._pbex.cpp        revtpssx_eps.h
beckex.cpp                 ._m05x.cpp    pbex.cpp          ._rpbex.cpp
._brx.cpp                  m05x.cpp      ._pbex.h          rpbex.cpp
brx.cpp                    ._m06c.cpp    pbex.h            ._slater.h
._constants.h              m06c.cpp      ._pw86x.cpp       slater.h
constants.h                ._m06hfx.cpp  pw86x.cpp         ._slaterx.cpp
._ktx.cpp                  m06hfx.cpp    ._pw91k.cpp       slaterx.cpp
ktx.cpp                    ._m06lc.cpp   pw91k.cpp         ._spbec.cpp
._lb94.cpp                 m06lc.cpp     ._pw91x.cpp       spbec.cpp
lb94.cpp                   ._m06lx.cpp   pw91x.cpp         ._tfk.cpp
._ldaerfc.cpp              m06lx.cpp     ._pw92c.cpp       tfk.cpp
ldaerfc.cpp                ._m06x2c.cpp  pw92c.cpp         ._tpssc.cpp
._ldaerfc_jt.cpp           m06x2c.cpp    ._pw92eps.h       tpssc.cpp
ldaerfc_jt.cpp             ._m06x2x.cpp  pw92eps.h         ._tpssc_eps.h
._ldaerfx.cpp              m06x2x.cpp    ._pw9xx.h         tpssc_eps.h
ldaerfx.cpp                ._m06x.cpp    pw9xx.h           ._tpssx.cpp
._list_of_functionals.cpp  m06x.cpp      ._pz81c.h         tpssx.cpp
list_of_functionals.cpp    ._m0xy_fun.h  pz81c.h           ._tpssx_eps.h
._list_of_parameters.h     m0xy_fun.h    ._revpbex.cpp     tpssx_eps.h
list_of_parameters.h       ._optx.cpp    revpbex.cpp       ._vwn5c.cpp
._lypc.cpp                 optx.cpp      ._revtpssc.cpp    vwn5c.cpp
lypc.cpp                   ._p86c.cpp    revtpssc.cpp      ._vwn.h
._m05c.cpp                 p86c.cpp      ._revtpssc_eps.h  vwn.h
m05c.cpp                   ._pbec.cpp    revtpssc_eps.h
._m05x2c.cpp               pbec.cpp      ._revtpssx.cpp
andre@ubuntu:~/Desktop/DIRAC-12.2-Source/src/xcfun/src/functionals$



--



ueks...@gmail.com

unread,
Jan 10, 2013, 12:10:33 PM1/10/13
to dirac...@googlegroups.com
Yes, so can you please send me the file ._pbec.cpp ?

Ulf
> --
>
>

André Campos

unread,
Jan 10, 2013, 12:13:57 PM1/10/13
to dirac...@googlegroups.com
when I copy this file, it is the same as the one I sent before


--



ueks...@gmail.com

unread,
Jan 10, 2013, 12:15:52 PM1/10/13
to dirac...@googlegroups.com
Can you do md5 .* * in the directory where the files are and send me
the output? You can send it directly to me.

Ulf
> --
>
>

ueks...@gmail.com

unread,
Jan 10, 2013, 3:38:28 PM1/10/13
to dirac...@googlegroups.com
Me and André Campos solved his problem in private mail. The issue was
that some program on his computer was adding hidden files starting
with a dot and underscore, for example ._pbec.cpp. These files were
picked up the XCFun make system. The files are most likely created by
either windows or mac operating systems and used to store metadata on
foreign file systems. You can for example happen to create them if you
insert a portable harddrive with a FAT filesystem on a mac and open a
directory in the finder. The solution is to delete these files or to
extract a fresh Dirac install. I will investigate why the xcfun build
picks up these files, I though it would ignore hidden files but
apparently it does not. So now you know, if you encounter similar
problems in the future..

Ulf
Reply all
Reply to author
Forward
0 new messages