- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was trying to build node.js with intel compiler. All files compile okay, but the final linking stage fails. Strangely, if I use g++ for final link, it still work. The error message isn't quite helpful either. I have tried changing optimization from O3 to O2 - but no difference
-------------
": internal error: ** The compiler has encountered an unexpected problem. ** Segmentation violation signal raised. ** Access violation or stack overflow. Please contact Intel Support for assistance. icpc: error #10014: problem during multi-file optimization compilation (code 4)
-------
Appreciate any pointers ? Thanks!
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- « Previous
-
- 1
- 2
- Next »
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Viet - Any luck looking into how it compiles for you and not for me ? I am open to giving you access to my box too, if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try the issue #2 on other machines to see if it's compile?
For issue #1: it looks like a bug in compiler; so I have submitted a bug to the developer.
Thanks,
Viet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does this simple test case compile on your system?
$ icpc test.cpp -O2 -c -std=c++14
$ cat test.cpp
#include <cstdint>
inline bool mongoSignedMultiplyOverflow64(int64_t lhs, int64_t rhs, int64_t* product);
inline bool mongoSignedMultiplyOverflow64( long long lhs, long long rhs, long long* product) {
return __builtin_mul_overflow(lhs, rhs, product);
}
Thanks,
Viet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Turned out, that wouldn't compile. We have the simplest reproducer to see the failure.
ubuntu@ip-172-31-41-174:~/cloudbin/test$ which icpc
/opt/intel/compilers_and_libraries_2018.0.128/linux/bin/intel64/icpc
ubuntu@ip-172-31-41-174:~/cloudbin/test$ icpc --version
icpc (ICC) 18.0.0 20170811
Copyright (C) 1985-2017 Intel Corporation. All rights reserved.
ubuntu@ip-172-31-41-174:~/cloudbin/test$ icpc test.cpp -O2 -c -std=c++14
test.cpp(6): error: argument is incompatible with formal parameter
return __builtin_mul_overflow(lhs, rhs, product);
^
compilation aborted for test.cpp (code 2)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried an experiments
#1) Started with a fresh ubuntu install. Installed gcc, g++ and then Intel compiler. Same build issue
Probably shouldn't matter. Which OS are you using ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
vahoang@orcsle147:/tmp/vah/icc_errors/issue2_nobuildin$ cat test.cpp
#include <cstdint>
inline bool mongoSignedMultiplyOverflow64(int64_t lhs, int64_t rhs, int64_t* product);
inline bool mongoSignedMultiplyOverflow64( long long lhs, long long rhs, long long* product) {
return __builtin_mul_overflow(lhs, rhs, product);
}
vahoang@orcsle147:/tmp/vah/icc_errors/issue2_nobuildin$ icpc test.cpp -O2 -c -std=c++14 -V
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.0.128 Build 20170811
vahoang@orcsle147:/tmp/vah/icc_errors/issue2_nobuildin$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)
You have other Linux machines with different OSes to try?
Let me try to find an ubuntu machine and try to see if I can reproduce it.
Thanks,
Viet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It compiled on my Ubuntu box.
vahoang@orcsle138:/tmp$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
vahoang@orcsle138:/tmp$ icpc test.cpp -O2 -c -std=c++14 -V
Intel(R) C++ Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.0.128 Build 20170811
vahoang@orcsle138:/tmp$ ls -lt test.o
-rw-r--r-- 1 vahoang users 720 Nov 16 09:29 test.o
vahoang@orcsle138:/tmp$ cat test.cpp
#include <cstdint>
inline bool mongoSignedMultiplyOverflow64(int64_t lhs, int64_t rhs, int64_t* product);
inline bool mongoSignedMultiplyOverflow64( long long lhs, long long rhs, long long* product) {
return __builtin_mul_overflow(lhs, rhs, product);
}
vahoang@orcsle138:/tmp$ gcc -v
gcc version 5.3.0 (GCC)
vahoang@orcsle138:/tmp$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IMHO, specifying a function prototype with inline is misleading, and should be flagged as in error.
Also, int64_t and long long are not universally interchangeable (IOW not necessarily equivalent).
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After few redbulls and painful experimentations with OS versions, compiler versions etc, I did rootcause the issue to my gcc version. I am not 100% sure whats going on and don't watch to touch my system - but after I upgraded my gcc to 6.3.0, my errors go away. I thought there would be no dependencies - but seems like there is something.
Now I am back to my original compilation (which doesn't work - but looking into it)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- « Previous
-
- 1
- 2
- Next »