| View previous topic :: View next topic |
| Author |
Message |
Xywa Veteran


Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Tue Jan 10, 2017 8:27 am Post subject: [SOLVED] Failed to emerge dev-util/nvidia-cuda-sdk-7.5.18 |
|
|
My system is trying to recompile nvidia-cuda-sdk-7.5.18, as I removed opencl flag, and I have such error:
| Code: | #$ "/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.4"/gcc -c -x c++ -ggdb -march=native -O2 -pipe -O2 -I"../../common/inc" "-I/opt/cuda/bin/..//include" -fpreprocessed -m64 -o "simplePrintf.o" "/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/temp/tmpxft_00001921_00000000-59_simplePrintf.compute_20.ii"
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
# --error 0x1 --
Makefile:259: recipe for target 'cudaOpenMP.o' failed
make[1]: *** [cudaOpenMP.o] Error 1
make[1]: Leaving directory '/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/work/samples/0_Simple/cudaOpenMP'
Makefile:52: recipe for target '0_Simple/cudaOpenMP/Makefile.ph_build' failed
make: *** [0_Simple/cudaOpenMP/Makefile.ph_build] Error 2
make: *** Waiting for unfinished jobs....
# --error 0x1 --
Makefile:229: recipe for target 'simplePrintf.o' failed
make[1]: *** [simplePrintf.o] Error 1
make[1]: Leaving directory '/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/work/samples/0_Simple/simplePrintf'
Makefile:52: recipe for target '0_Simple/simplePrintf/Makefile.ph_build' failed
make: *** [0_Simple/simplePrintf/Makefile.ph_build] Error 2
* ERROR: dev-util/nvidia-cuda-sdk-7.5.18::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-util/nvidia-cuda-sdk-7.5.18::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-util/nvidia-cuda-sdk-7.5.18::gentoo'`.
* The complete build log is located at '/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/temp/build.log'.
* The ebuild environment file is located at '/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/temp/environment'.
* Working directory: '/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/work/samples'
* S: '/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/work/samples'
>>> Failed to emerge dev-util/nvidia-cuda-sdk-7.5.18, Log file:
>>> '/mnt/twardy/tmp/portage/dev-util/nvidia-cuda-sdk-7.5.18/temp/build.log'
|
Last edited by Xywa on Thu Jan 12, 2017 9:50 am; edited 1 time in total |
|
| Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31094 Location: here
|
Posted: Tue Jan 10, 2017 9:03 am Post subject: |
|
|
See bug _________________ Questions are guaranteed in life; Answers aren't. |
|
| Back to top |
|
 |
Xywa Veteran


Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Tue Jan 10, 2017 9:59 pm Post subject: |
|
|
| fedeliallalinea wrote: | | See bug |
But I have this file already installed, only would like to recompile without one USE flag. So how is it possible, I could recompile it before?
:/ |
|
| Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31094 Location: here
|
Posted: Wed Jan 11, 2017 10:46 am Post subject: |
|
|
Try with those commands:
| Code: | # echo -e 'CFLAGS="${CFLAGS} -D_FORCE_INLINES"\nCXXFLAGS="${CXXFLAGS} -D_FORCE_INLINES"' > /etc/portage/env/force-inlines.conf
# echo "dev-util/nvidia-cuda-sdk force-inlines.conf" >> /etc/portage/package.env
# emerge nvidia-cuda-sdk |
_________________ Questions are guaranteed in life; Answers aren't. |
|
| Back to top |
|
 |
Xywa Veteran


Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Thu Jan 12, 2017 9:50 am Post subject: |
|
|
| fedeliallalinea wrote: | Try with those commands:
| Code: | # echo -e 'CFLAGS="${CFLAGS} -D_FORCE_INLINES"\nCXXFLAGS="${CXXFLAGS} -D_FORCE_INLINES"' > /etc/portage/env/force-inlines.conf
# echo "dev-util/nvidia-cuda-sdk force-inlines.conf" >> /etc/portage/package.env
# emerge nvidia-cuda-sdk |
|
This did the trick^^
Could you explain, what it was, please.
Do I need to delete those file for new version of nvidia-cuda-sdk in the future? |
|
| Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31094 Location: here
|
Posted: Thu Jan 12, 2017 11:26 am Post subject: |
|
|
| Xywa wrote: | | Could you explain, what it was, please. |
I don't know exactly, I only applied workaround proposed in the bug (comment 1), but instead to change CMakeLists.txt files I used package.env
| Xywa wrote: | | Do I need to delete those file for new version of nvidia-cuda-sdk in the future? |
I can't know if problem is resolved in future version of package. Probably the best solution is replace line in /etc/portage/package.env with =dev-util/nvidia-cuda-sdk-7.5.18 force-inlines.conf, by doing so you can know if the next version has the problem or not. _________________ Questions are guaranteed in life; Answers aren't. |
|
| Back to top |
|
 |
|