Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems in compile case in openFOAM #151

Open
saeidqh opened this issue Oct 11, 2019 · 1 comment
Open

problems in compile case in openFOAM #151

saeidqh opened this issue Oct 11, 2019 · 1 comment

Comments

@saeidqh
Copy link

saeidqh commented Oct 11, 2019

Hi..

I want a case run to OpenFOAM that it README is in <<((https://github.com/AhmedAlratrout/ContactAngle-Curvature-Roughness))>>
in part compile code i have problem.

This is error that I receive.
Screenshot from 2019-10-11 17-27-32

saeid@saeid-HP-Pavilion-dv7-Notebook-PC:~/works/apps/contactAngle$ ./AllMake
surfaceRoughness
wmake
make[1]: Entering directory '/home/saeid/works/apps/contactAngle/surfaceRoughness'
make[1]: *** No rule to make target '/opt/openfoam6/src/OpenFOAM/lnInclude/uLabelSpecific.H', needed by 'Make/linux64GccDPInt32Opt/surfaceRoughness.C.dep'. Stop.
make[1]: Leaving directory '/home/saeid/works/apps/contactAngle/surfaceRoughness'
Makefile:9: recipe for target 'wmake' failed
make: *** [wmake] Error 2
skipping Example
surfaceAddLayerToCL
wmake
make[1]: Entering directory '/home/saeid/works/apps/contactAngle/surfaceAddLayerToCL'
make[1]: *** No rule to make target '/opt/openfoam6/src/OpenFOAM/lnInclude/uLabelSpecific.H', needed by 'Make/linux64GccDPInt32Opt/surfaceAddLayerToCL.C.dep'. Stop.
make[1]: Leaving directory '/home/saeid/works/apps/contactAngle/surfaceAddLayerToCL'
Makefile:9: recipe for target 'wmake' failed
make: *** [wmake] Error 2
surfaceSmoothVP
wmake
make[1]: Entering directory '/home/saeid/works/apps/contactAngle/surfaceSmoothVP'
make[1]: *** No rule to make target '/opt/openfoam6/src/OpenFOAM/lnInclude/uLabelSpecific.H', needed by 'Make/linux64GccDPInt32Opt/surfaceSmoothVP.C.dep'. Stop.
make[1]: Leaving directory '/home/saeid/works/apps/contactAngle/surfaceSmoothVP'
Makefile:9: recipe for target 'wmake' failed
make: *** [wmake] Error 2
voxelImage
g++ -std=c++0x -c sphereToRaw.cpp
g++ -o /home/saeid/works/bin-v16/bin/sphereToRaw sphereToRaw.o
g++ -c -fPIC imageReader.cpp -o imageReader.o
g++ -c -fPIC voxelMesh.cpp -o voxelMesh.o
g++ -shared voxelMesh.o imageReader.o -o /home/saeid/works/bin-v16/bin/libvoxelMesh.so
g++ -c imageFileConvert.cpp
g++ -fPIC -L/home/saeid/works/bin-v16/bin/ imageFileConvert.o -lvoxelMesh -o /home/saeid/works/bin-v16/bin/imageFileConvert
g++ -fPIC -c rawToFoam.cpp
g++ -fPIC -o /home/saeid/works/bin-v16/bin/rawToFoam -L/home/saeid/works/bin-v16/bin rawToFoam.o -lvoxelMesh
rm -f *.o
voxelImageNew
g++ -O3 -Wall writeRaCLInds.o -o /home/saeid/works/bin-v16/bin/writeRaCLInds
/usr/bin/ld: writeRaCLInds.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:66: recipe for target 'writeRaCLInds' failed
make: *** [writeRaCLInds] Error 1
voxelToSurfaceML
wmake
make[1]: Entering directory '/home/saeid/works/apps/contactAngle/voxelToSurfaceML'
make[1]: *** No rule to make target '/opt/openfoam6/src/OpenFOAM/lnInclude/uLabelSpecific.H', needed by 'Make/linux64GccDPInt32Opt/voxelToSurface.C.dep'. Stop.
make[1]: Leaving directory '/home/saeid/works/apps/contactAngle/voxelToSurfaceML'
Makefile:6: recipe for target 'wmake' failed
make: *** [wmake] Error 2

please guide me

@dnshnrch
Copy link

Your question is unrelated to this repository. But as I faced the same issue when compiling AlRatrout's software, I found that the file "uLabelspecific.H" was dropped when OpenFOAM went from v1606+ to v1612+.
There are some inconsistencies in AlRatrout's installation manual when it comes to the underlying OpenFOAM version. Try v1606+ instead of v1612+, and the error should be gone.

Maybe this also helps other people who come by this thread, although the issue is already 5 years old.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants