|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Feb 2018
Posts: 3
Rep Power: 8 ![]() |
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! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: Oct 2017
Posts: 52
Rep Power: 8 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Join Date: Oct 2017
Posts: 52
Rep Power: 8 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#5 |
Super Moderator
Tim Albring
Join Date: Sep 2015
Posts: 195
Rep Power: 10 ![]() |
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:
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Join Date: Feb 2018
Posts: 3
Rep Power: 8 ![]() |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] foam-extend-3.2 compilation on windows | kirmaks | OpenFOAM Installation | 7 | December 3, 2019 20:20 |
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit | Sargam05 | OpenFOAM Installation | 13 | March 22, 2014 05:21 |
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) | floydfan | OpenFOAM Installation | 7 | December 20, 2011 05:56 |
errors during compilation and installation of OpenFOAM-1.7.x on Ubuntu 10.04 | ftec | OpenFOAM Installation | 7 | February 23, 2011 06:07 |
Compilation Error.... | Arnab | Siemens | 4 | September 12, 2004 15:54 |