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

Make fails with fstream not found error #295

Open
RangaSamudrala opened this issue Aug 28, 2024 · 0 comments
Open

Make fails with fstream not found error #295

RangaSamudrala opened this issue Aug 28, 2024 · 0 comments

Comments

@RangaSamudrala
Copy link

Make on RHEL 9 fails as below. Specifying TARGET_ARCH=x86_64 as command line argument does not help.

# gcc --version
gcc (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# g++ --version
g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# ls -la `which gcc`
-rwxr-xr-x. 3 root root 1088912 Dec 19  2023 /bin/gcc
# ls -la `which g++`
-rwxr-xr-x. 4 root root 1088960 Dec 19  2023 /bin/g++
# 
# make
make[1]: Entering directory '/usr/local/cuda-12.6/cuda-samples/Samples/1_Utilities/bandwidthTest'
/usr/local/cuda/bin/nvcc -ccbin g++ -I../../../Common -m64 --threads 0 --std=c++11 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_86,code=sm_86 -gencode arch=compute_89,code=sm_89 -gencode arch=compute_90,code=sm_90 -gencode arch=compute_90,code=compute_90 -o bandwidthTest.o -c bandwidthTest.cu
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
In file included from ../../../Common/helper_cuda.h:41,
                 from bandwidthTest.cu:42:
../../../Common/helper_string.h:34:10: fatal error: fstream: No such file or directory
   34 | #include <fstream>
      |          ^~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:341: bandwidthTest.o] Error 255
make[1]: Leaving directory '/usr/local/cuda-12.6/cuda-samples/Samples/1_Utilities/bandwidthTest'
make: *** [Makefile:45: Samples/1_Utilities/bandwidthTest/Makefile.ph_build] Error 2
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

1 participant