Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598250 - dev-util/nvidia-cuda-sdk: fails to build with -Wl,--as-needed in CFLAGS/CXXFLAGS
Summary: dev-util/nvidia-cuda-sdk: fails to build with -Wl,--as-needed in CFLAGS/CXXFLAGS
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-27 13:23 UTC by Jan Ziak (atomsymbol)
Modified: 2019-01-21 22:56 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,12.65 KB, text/x-log)
2016-10-28 15:56 UTC, Jan Ziak (atomsymbol)
Details
emerge --info (emerge-info,7.56 KB, text/plain)
2016-10-29 12:12 UTC, Jan Ziak (atomsymbol)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Ziak (atomsymbol) 2016-10-27 13:23:01 UTC
$ cat /var/log/portage/dev-util:nvidia-cuda-sdk-8.0.44:20161027-124106.log
...
#$ "/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3"/gcc -D__CUDA_ARCH__=600 -E -x c++   -DCUDA_DOUBLE_MATH_FUNCTIONS  -D__CUDACC__ -D__NVCC__ -D__CUDACC_RDC__  -fuse-linker-plugin -mtune=bdver3 -O2 -fdiagnostics-color=always -fexcess-precision=fast -fno-omit-frame-pointer -fno-stack-protector -Wl --as-needed -O2 -I"../../common/inc" "-I/opt/cuda/bin/..//include"   -D"__CUDACC_VER__=80044" -D"__CUDACC_VER_BUILD__=44" -D"__CUDACC_VER_MINOR__=0" -D"__CUDACC_VER_MAJOR__=8" -include "cuda_runtime.h" -m64 "simpleDeviceLibrary.cu" > "/var/tmp/portage/dev-util/nvidia-cuda-sdk-8.0.44/temp/tmpxft_00001f97_00000000-19_simpleDeviceLibrary.compute_60.cpp1.ii" 
gcc: error: unrecognized command line option '-Wl'
gcc: error: unrecognized command line option '-Wl'
gcc: error: unrecognized command line option '--as-needed'
gcc: error: unrecognized command line option '--as-needed'
gcc: error: unrecognized command line option '-Wl'
gcc: error: unrecognized command line option '--as-needed'
gcc: error: unrecognized command line option '-Wl'
gcc: error: unrecognized command line option '--as-needed'
...
Comment 1 David Seifert gentoo-dev 2016-10-28 14:56:08 UTC
something is broken on your end, its -Wl,--as-needed and not "-Wl --as-needed" with a space like you seem to have it.
Comment 2 Jan Ziak (atomsymbol) 2016-10-28 15:56:13 UTC
(In reply to David Seifert from comment #1)
> something is broken on your end, its -Wl,--as-needed and not "-Wl
> --as-needed" with a space like you seem to have it.

-Wl,--as-needed (with comma) is mentioned in the title of this bug.
Comment 3 Jan Ziak (atomsymbol) 2016-10-28 15:56:48 UTC
Created attachment 451766 [details]
build.log
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-10-29 11:53:17 UTC
Could you add emerge --info too, please?
Comment 5 Jan Ziak (atomsymbol) 2016-10-29 12:12:00 UTC
Created attachment 451836 [details]
emerge --info
Comment 6 David Seifert gentoo-dev 2016-11-01 19:36:17 UTC
(In reply to Jan Ziak (http://atom-symbol.net) from comment #5)
> Created attachment 451836 [details]
> emerge --info

Why do you have -Wl,--as-needed in CFLAGS?