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

Compilation error SU2v6.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2018, 15:50
Default Compilation error SU2v6.0
  #1
New Member
 
Join Date: Feb 2018
Posts: 2
Rep Power: 0
cfd951 is on a distinguished road
Hi all!

I tried installing SU2 v6. I'm able to configure with MPI. However, I run into compilation errors.

CXXLD ../bin/SU2_CFD
Undefined symbols for architecture x86_64:
"___intel_sse2_strchr", referenced from:
_cg_open in libcgns.a(libcgns_a-cgnslib.o)
_cg_set_file_type in libcgns.a(libcgns_a-cgnslib.o)
_cg_configure in libcgns.a(libcgns_a-cgnslib.o)
_cg_gopath in libcgns.a(libcgns_a-cgnslib.o)
_cgio_find_file in libcgns.a(libcgns_a-cgns_io.o)
_ADF_Get_Link_Path in libcgns.a(libcgns_a-ADF_interface.o)
_ADF_Link_Size in libcgns.a(libcgns_a-ADF_interface.o)
...
"___intel_sse2_strcspn", referenced from:
_ADF_Database_Version in libcgns.a(libcgns_a-ADF_interface.o)
_ADFI_get_current_date in libcgns.a(libcgns_a-ADF_internals.o)
_ADFI_write_modification_date in libcgns.a(libcgns_a-ADF_internals.o)
_ADFI_fill_initial_file_header in libcgns.a(libcgns_a-ADF_internals.o)
"___intel_sse2_strlen", referenced from:
_cg_open in libcgns.a(libcgns_a-cgnslib.o)
_cg_zone_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_family_name_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_fambc_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_geo_read in libcgns.a(libcgns_a-cgnslib.o)
_cg_geo_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_discrete_ptset_write in libcgns.a(libcgns_a-cgnslib.o)
...
"___intel_sse2_strncmp", referenced from:
_cgi_read_units in libcgns.a(libcgns_a-cgns_internals.o)
_cgio_open_file in libcgns.a(libcgns_a-cgns_io.o)
_cgio_find_file in libcgns.a(libcgns_a-cgns_io.o)
_cgio_check_file in libcgns.a(libcgns_a-cgns_io.o)
_ADF_Database_Valid in libcgns.a(libcgns_a-ADF_interface.o)
_ADFI_add_2_sub_node_table in libcgns.a(libcgns_a-ADF_internals.o)
_ADFI_read_file_header in libcgns.a(libcgns_a-ADF_internals.o)
...
"___intel_ssse3_strcpy", referenced from:
_cg_open in libcgns.a(libcgns_a-cgnslib.o)
_cg_base_read in libcgns.a(libcgns_a-cgnslib.o)
_cg_base_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_zone_read in libcgns.a(libcgns_a-cgnslib.o)
_cg_zone_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_family_read in libcgns.a(libcgns_a-cgnslib.o)
_cg_family_write in libcgns.a(libcgns_a-cgnslib.o)
...
"___intel_ssse3_strncpy", referenced from:
_cg_gopath in libcgns.a(libcgns_a-cgnslib.o)
_cgi_read_family in libcgns.a(libcgns_a-cgns_internals.o)
_cgi_read_user_data in libcgns.a(libcgns_a-cgns_internals.o)
_cgi_read_zone in libcgns.a(libcgns_a-cgns_internals.o)
_cgi_read_subregion in libcgns.a(libcgns_a-cgns_internals.o)
_cgi_read_units in libcgns.a(libcgns_a-cgns_internals.o)
_cgi_read_boco in libcgns.a(libcgns_a-cgns_internals.o)
...
"___intel_ssse3_strrchr", referenced from:
_cgio_find_file in libcgns.a(libcgns_a-cgns_io.o)
"___svml_irem4", referenced from:
_libmetis__Match_2HopAll in libmetis.a(libmetis_a-coarsen.o)
"___svml_pow2", referenced from:
_libmetis__MlevelKWayPartitioning in libmetis.a(libmetis_a-kmetis.o)
_libmetis__InitKWayPartitioning in libmetis.a(libmetis_a-kmetis.o)
"__intel_fast_memcpy", referenced from:
_cg_zone_read in libcgns.a(libcgns_a-cgnslib.o)
_cg_zone_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_coord_partial_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_elements_read in libcgns.a(libcgns_a-cgnslib.o)
_cg_elements_partial_read in libcgns.a(libcgns_a-cgnslib.o)
_cg_elements_partial_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_parent_data_partial_write in libcgns.a(libcgns_a-cgnslib.o)
...
"__intel_fast_memset", referenced from:
_cg_elements_partial_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_boco_info in libcgns.a(libcgns_a-cgnslib.o)
_cg_bc_area_write in libcgns.a(libcgns_a-cgnslib.o)
_cg_delete_node in libcgns.a(libcgns_a-cgnslib.o)
_cgi_get_zcoorGC in libcgns.a(libcgns_a-cgns_internals.o)
_ADF_Put_Dimension_Information in libcgns.a(libcgns_a-ADF_interface.o)
_ADF_Read_All_Data in libcgns.a(libcgns_a-ADF_interface.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [../bin/SU2_CFD] Error 1
make: *** [all-recursive] Error 1


=============================
System details
OS: macOS 10.12

mpicc: icc (ICC) 18.0.1 20171018
Copyright (C) 1985-2017 Intel Corporation. All rights reserved.

mpicxx:Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
==============================


How do I resolve the above error?

Best Regards!
cfd951 is offline   Reply With Quote

Old   February 24, 2018, 02:57
Default compilation error
  #2
Member
 
Join Date: Oct 2017
Posts: 52
Rep Power: 4
gouravjee is on a distinguished road
Hello everyone ,
I am trying to write discretized form of enthalpy in openfoam and here are some constant values which i have written in code and compiled successfully.
const faceList & ff = mesh.faces();
const pointField & pp = mesh.points();
forAll ( mesh.C(), celli)
{
const cell & cc = mesh.cells()[celli];
labelList pLabels(cc.labels(ff));
pointField pLocal(pLabels.size(), vector::zero);
forAll (pLabels, pointi) pLocal[pointi] = pp[pLabels[pointi]];
scalar xDim = Foam::max(pLocal & vector(1,0,0)) - Foam::min(pLocal & vector(1,0,0));
scalar yDim = Foam::max(pLocal & vector(0,1,0)) - Foam::min(pLocal & vector(0,1,0));
scalar zDim = Foam::max(pLocal & vector(0,0,1)) - Foam::min(pLocal & vector(0,0,1));


dimensionedScalar aE = ks*yDim*zDim/xDim;

dimensionedScalar aW = ks*yDim*zDim/xDim;
dimensionedScalar aN = ks*xDim*zDim/yDim;
dimensionedScalar aS = ks*xDim*zDim/yDim;
dimensionedScalar aF = ks*yDim*xDim/zDim;
dimensionedScalar aB = ks*yDim*xDim/zDim;
dimensionedScalar aPo = rho*Cps*xDim*yDim*zDim/runTime.deltaTValue() ; ///p.oldTime();
dimensionedScalar Ap = rho*xDim*yDim*zDim/runTime.deltaTValue() ; ///p.oldTime();
dimensionedScalar aP = aW+aE+aN+aS+aB+aF+Ap+aPo;




But the problem that i face using them in my solver's .C file i get an error like this::


pFoam.C: In function ‘int main(int, char**)’:
pFoam.C:67:49: error: ‘aP’ was not declared in this scope
- fvm::laplacian(DT, T) + (lamda*aP/Ap)*fvm::ddt(T)-(lamda*aP/Ap
^
pFoam.C:67:52: error: ‘Ap’ was not declared in this scope
- fvm::laplacian(DT, T) + (lamda*aP/Ap)*fvm::ddt(T)-(lamda*aP/Ap
^
/opt/openfoam4/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/pFoam.o' failed
make: *** [Make/linux64GccDPInt32Opt/pFoam.o] Error 1


can anyone tell me what am i doing wrong?
gouravjee is offline   Reply With Quote

Old   February 24, 2018, 14:40
Default
  #3
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 11
fpalacios is on a distinguished road
Intel could be tricky could you please try with the Mac compiler. This is working for me

Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.4.0

Best,
Francisco
fpalacios is offline   Reply With Quote

Old   February 24, 2018, 15:25
Default
  #4
Member
 
Join Date: Oct 2017
Posts: 52
Rep Power: 4
gouravjee is on a distinguished road
Quote:
Originally Posted by fpalacios View Post
Intel could be tricky could you please try with the Mac compiler. This is working for me

Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.4.0

Best,
Francisco
i dont have mac at this time
so could you please suggest some other way to it ?
gouravjee is offline   Reply With Quote

Old   February 24, 2018, 16:04
Default
  #5
Super Moderator
 
Tim Albring
Join Date: Sep 2015
Posts: 186
Rep Power: 6
talbring is on a distinguished road
Quote:
Originally Posted by gouravjee View Post
i dont have mac at this time
so could you please suggest some other way to it ?
The answer of fpalacios is referring to the first post. Please remember that you are in SU2 forum. You should visit the OpenFOAM forum for your question.
__________________
Developer Director @ SU2 Foundation

Get involved:
talbring is offline   Reply With Quote

Old   February 26, 2018, 19:45
Default
  #6
New Member
 
Join Date: Feb 2018
Posts: 2
Rep Power: 0
cfd951 is on a distinguished road
Quote:
Originally Posted by fpalacios View Post
Intel could be tricky could you please try with the Mac compiler. This is working for me

Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin17.4.0

Best,
Francisco
Dear Francisco,

Switching to Apple LLVM clang helped! Thanks for a quick reply.
cfd951 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[foam-extend.org] foam-extend-3.2 compilation on windows kirmaks OpenFOAM Installation 7 December 3, 2019 21:20
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 06:21
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 06:56
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 ftec OpenFOAM Installation 7 February 23, 2011 07:07
Compilation Error.... Arnab Siemens 4 September 12, 2004 16:54


All times are GMT -4. The time now is 17:02.