|
Bugzilla – Full Text Bug Listing |
| Summary: | wrong compilation options for icpc (Intel C/C++ Compiler) | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Andrey Mazo <ahippo> |
| Component: | build system | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahippo, gjcarneiro |
| Priority: | P3 | ||
| Version: | ns-3-dev | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Attachments: |
./waf configure -d optimized --enable-static --check-cxx-compiler=icpc > waf_configure.log 2>&1
./waf build -j1 -vv > waf_build.log 2>&1 Pass gcc options to icc. Enable static build with icc on linux. Pass gcc options to icc. Enable static build with icc on linux. Updated patch. |
||
|
Description
Andrey Mazo
2009-09-19 06:21:16 UTC
Created attachment 591 [details]
./waf configure -d optimized --enable-static --check-cxx-compiler=icpc > waf_configure.log 2>&1
Created attachment 592 [details]
./waf build -j1 -vv > waf_build.log 2>&1
(In reply to comment #0) > Grepping through .waf-1.5.8-* gives that options "-compatibility_version" and > "-current_version" come from function gxx_modifier_darwin() from file > Tools/gxx.py. > Quick overview gives, that wscript and src/wscript gets correct env['CXX_NAME'] > and env['COMPILER_CXX']. > Not yet found where they are screwed up. It seems, it's a waf bug. ``detect'' string from Tools/icpc.py looks as following: detect=''' find_icpc find_ar gxx_common_flags gxx_modifier_darwin cxx_load_tools cxx_add_flags ''' Note the gxx_modifier_darwin in this ``detect'' string. Quick onetime fix is to replace gxx_modifier_darwin with gxx_modifier_platform in this ``detect'' string. More sound solution is to upgrade to waf-1.5.9. So I propose to close this bug as WONTFIX and open new bug with request to upgrade to waf-1.5.9. (In reply to comment #3) > (In reply to comment #0) > Note the gxx_modifier_darwin in this ``detect'' string. > Quick onetime fix is to replace gxx_modifier_darwin with gxx_modifier_platform > in this ``detect'' string. Oops, there is no gxx_modifier_platform in waf-1.5.8, so the quick fix is to remove gxx_modifier_darwin. Created attachment 599 [details]
Pass gcc options to icc. Enable static build with icc on linux.
Comment on attachment 599 [details]
Pass gcc options to icc. Enable static build with icc on linux.
Instead of (module.env['CXX_NAME'] == 'gcc') or (module.env['CXX_NAME'] == 'icc')
Please use:
module.env['CXX_NAME'] in ['gcc', 'icc']
Created attachment 601 [details]
Pass gcc options to icc. Enable static build with icc on linux. Updated patch.
changeset: 5252:481053e0cd10 tag: tip user: Andrey Mazo <mazo@iitp.ru> date: Fri Sep 25 12:28:32 2009 +0100 summary: Bug 681: wrong compilation options for icpc (Intel C/C++ Compiler) |