CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Can't compile with '-ipo' flag

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2017, 14:28
Default Can't compile with '-ipo' flag
  #1
Senior Member
 
Join Date: Jun 2016
Posts: 102
Rep Power: 10
xuegy is on a distinguished road
Hello all,

I'm compiling OF 4.1 with ICC. I have version 16 17 and 18 beta on a CentOS 7 HPC.

I tried both '-xHost' and '-fast' flags but all versions of icc gave the same error in the very beginning:
Code:
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigWriteNow.o:(.data+0x0): multiple definition of `vtable for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigWriteNow.o:(.data+0x0): multiple definition of `typeinfo for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigWriteNow.o:(.data+0x0): multiple definition of `typeinfo name for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/timer.o:(.data+0x0): multiple definition of `vtable for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/timer.o:(.data+0x0): multiple definition of `typeinfo for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/timer.o:(.data+0x0): multiple definition of `typeinfo name for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/POSIX.o:(.data+0x0): multiple definition of `vtable for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/POSIX.o:(.data+0x0): multiple definition of `typeinfo for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/POSIX.o:(.data+0x0): multiple definition of `typeinfo name for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/fileMonitor.o:(.data+0x0): multiple definition of `vtable for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/fileMonitor.o:(.data+0x0): multiple definition of `typeinfo for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/fileMonitor.o:(.data+0x0): multiple definition of `typeinfo name for Foam::simpleRegIOobject'
/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/src/OSspecific/POSIX/signals/sigStopAtWriteNow.o:(.data+0x0): first defined here
make: *** [/home/gux215/OpenFOAM/OpenFOAM-icc/platforms/linux64IccDPInt32Opt/lib/libOSspecific.o] Error 1
So instead of doing that, I tried all flags separately. Finally it turns out that '-ipo' flag is the reason. I have seen people compiled successfully with '-xHost' so '-ipo' shouldn't be a problem. Any idea?
xuegy is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 18:22
Error compile file udf czfluent Fluent UDF and Scheme Programming 24 September 26, 2009 14:24
2D flag model and mesh! Faraaz CFX 2 November 28, 2008 15:33
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51


All times are GMT -4. The time now is 01:31.