Hello,
as a follow-up to my issues with using ICC with GCC 4.9, I now compiled GCC 4.8. How do I now tell ICC to use that? I've tried the -cxxlib=/path/to/gcc-48 switch. But what does it really expect the path to contain? Apparently a bin/g++, OK. But now I get this:
icpc: error #10001: could not find directory in which the set of libstdc++ include files resides
What does this mean? The last lines of output from a strace -f run is pasted below. Note how it finds e.g. /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include but then tries to access /usr/include/g++ - why?
[pid 31370] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0 [pid 31370] lstat("/home/milian/intel", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian/intel/gcc48", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian/intel/gcc48/bin", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian/intel/gcc48/bin/g++", {st_mode=S_IFLNK|0777, st_size=16, ...}) = 0 [pid 31370] readlink("/home/milian/intel/gcc48/bin/g++", "/usr/bin/g++-4.8", 4095) = 16 [pid 31370] lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31370] lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=126976, ...}) = 0 [pid 31370] lstat("/usr/bin/g++-4.8", {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0 [pid 31370] readlink("/usr/bin/g++-4.8", "g++-4.8.2", 4095) = 9 [pid 31370] lstat("/usr/bin/g++-4.8.2", {st_mode=S_IFREG|0755, st_size=764552, ...}) = 0 [pid 31370] lstat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0 [pid 31370] lstat("/home/milian/intel", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian/intel/gcc48", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian/intel/gcc48/bin", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0 [pid 31370] lstat("/home/milian/intel/gcc48/bin/g++", {st_mode=S_IFLNK|0777, st_size=16, ...}) = 0 [pid 31370] readlink("/home/milian/intel/gcc48/bin/g++", "/usr/bin/g++-4.8", 4095) = 16 [pid 31370] lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31370] lstat("/usr/bin", {st_mode=S_IFDIR|0755, st_size=126976, ...}) = 0 [pid 31370] lstat("/usr/bin/g++-4.8", {st_mode=S_IFLNK|0777, st_size=9, ...}) = 0 [pid 31370] readlink("/usr/bin/g++-4.8", "g++-4.8.2", 4095) = 9 [pid 31370] lstat("/usr/bin/g++-4.8.2", {st_mode=S_IFREG|0755, st_size=764552, ...}) = 0 [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/", X_OK) = 0 [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/", X_OK) = 0 [pid 31370] access("/ssd/milian/projects/compiled/kde4/lib/x86_64-unknown-linux-gnu/4.8.2/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/ssd/milian/projects/compiled/kde4/lib/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/ssd/milian/projects/compiled/qt4/lib/x86_64-unknown-linux-gnu/4.8.2/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/ssd/milian/projects/compiled/qt4/lib/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/ssd/milian/projects/compiled/kde4/lib/x86_64-unknown-linux-gnu/4.8.2/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/ssd/milian/projects/compiled/kde4/lib/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/ssd/milian/projects/compiled/qt4/lib/x86_64-unknown-linux-gnu/4.8.2/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/ssd/milian/projects/compiled/qt4/lib/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../x86_64-unknown-linux-gnu/lib/x86_64-unknown-linux-gnu/4.8.2/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../x86_64-unknown-linux-gnu/lib/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or directory) [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/", X_OK) = 0 [pid 31370] stat("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper", {st_mode=S_IFREG|0755, st_size=558768, ...}) = 0 [pid 31370] access("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper", X_OK) = 0 [pid 31370] fstat(1, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0 [pid 31370] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4469593000 [pid 31370] write(1, "install: /usr/lib/gcc/x86_64-unk"..., 1784) = 1784 [pid 31370] exit_group(0) = ? [pid 31370] +++ exited with 0 +++ [pid 31364] <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 31370 [pid 31364] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31370, si_status=0, si_utime=0, si_stime=0} --- [pid 31364] open("/tmp/icpcgnudirsvPO0ue", O_RDONLY) = 4 [pid 31364] fstat(4, {st_mode=S_IFREG|0600, st_size=1784, ...}) = 0 [pid 31364] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa9513ca000 [pid 31364] read(4, "install: /usr/lib/gcc/x86_64-unk"..., 4096) = 1784 [pid 31364] read(4, "", 4096) = 0 [pid 31364] close(4) = 0 [pid 31364] munmap(0x7fa9513ca000, 4096) = 0 [pid 31364] stat("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31364] stat("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31364] fstat(2, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 6), ...}) = 0 [pid 31364] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa9513ca000 [pid 31364] write(2, "icpc: remark #10346: optimizatio"..., 119icpc: remark #10346: optimization reporting will be enabled at link time when performing interprocedural optimizations ) = 119 [pid 31364] open("/home/milian/intel/gcc48/bin/g++", O_RDONLY) = 4 [pid 31364] close(4) = 0 [pid 31364] readlink("/home/milian/intel/gcc48/bin/g++", "/usr/bin/g++-4.8", 4095) = 16 [pid 31364] readlink("/usr/bin/g++-4.8", "g++-4.8.2", 4095) = 9 [pid 31364] readlink("/g++-4.8.2", 0x7fff3da6b3e0, 4095) = -1 ENOENT (No such file or directory) [pid 31364] open("/tmp/icpcdashvZB1Ynz", O_RDONLY) = 4 [pid 31364] fstat(4, {st_mode=S_IFREG|0600, st_size=2423, ...}) = 0 [pid 31364] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa9513c9000 [pid 31364] read(4, "Using built-in specs.\nCOLLECT_GC"..., 4096) = 2423 [pid 31364] read(4, "", 4096) = 0 [pid 31364] close(4) = 0 [pid 31364] munmap(0x7fa9513c9000, 4096) = 0 [pid 31364] stat("=/usr/local/include", 0x7fff3da6c330) = -1 ENOENT (No such file or directory) [pid 31364] stat("/usr/local/include", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31364] stat("=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include", 0x7fff3da6c330) = -1 ENOENT (No such file or directory) [pid 31364] stat("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31364] stat("=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include-fixed", 0x7fff3da6c330) = -1 ENOENT (No such file or directory) [pid 31364] stat("/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/include-fixed", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31364] stat("=/usr/include", 0x7fff3da6c330) = -1 ENOENT (No such file or directory) [pid 31364] stat("/usr/include", {st_mode=S_IFDIR|0755, st_size=65536, ...}) = 0 [pid 31364] stat("/usr/include/c++/4.8.2", 0x7fff3da6c330) = -1 ENOENT (No such file or directory) [pid 31364] stat("/usr/x86_64-unknown-linux-gnu/include/c++/4.8.2", 0x7fff3da6c330) = -1 ENOENT (No such file or directory) [pid 31364] open("/home/milian/intel/gcc48/bin/g++", O_RDONLY) = 4 [pid 31364] close(4) = 0 [pid 31364] open("/tmp/icpcdashvZB1Ynz", O_RDONLY) = 4 [pid 31364] fstat(4, {st_mode=S_IFREG|0600, st_size=2423, ...}) = 0 [pid 31364] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa9513c9000 [pid 31364] read(4, "Using built-in specs.\nCOLLECT_GC"..., 4096) = 2423 [pid 31364] read(4, "", 4096) = 0 [pid 31364] close(4) = 0 [pid 31364] munmap(0x7fa9513c9000, 4096) = 0 [pid 31364] stat("/usr/include/g++", 0x7fff3da6c330) = -1 ENOENT (No such file or directory) [pid 31364] write(2, "icpc: error #10001: could not fi"..., 97icpc: error #10001: could not find directory in which the set of libstdc++ include files resides ) = 97 [pid 31364] geteuid() = 1000 [pid 31364] stat("/home/milian/intel/ism/rm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31364] stat("/home/milian/intel/ism/rm", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 [pid 31364] semget(0x11613bf, 2, 0) = 720896 [pid 31364] semctl(720896, 0, IPC_STAT, 0x7fff3da6c110) = 0 [pid 31364] semget(0x11613bf, 5, IPC_CREAT|IPC_EXCL|0600) = -1 EEXIST (File exists) [pid 31364] semget(0x11613bf, 5, 0) = 720896 [pid 31364] semop(720896, {{3, -1, SEM_UNDO|IPC_NOWAIT}}, 1) = -1 EAGAIN (Resource temporarily unavailable) [pid 31364] geteuid() = 1000 [pid 31364] lstat("/tmp/data.VKSjGT", 0x7fff3da6c070) = -1 ENOENT (No such file or directory) [pid 31364] open("/tmp/data.VKSjGT", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 [pid 31364] fstat(4, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0 [pid 31364] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa9513c9000 [pid 31364] write(4, "\0\0\0\0\3\0\0\0\26\0\0\0ccompxe-15.0.0-intel"..., 79) = 79 [pid 31364] close(4) = 0 [pid 31364] munmap(0x7fa9513c9000, 4096) = 0 [pid 31364] mknod("/tmp/intelremotemonfifo.1000", S_IFIFO|0600) = -1 EEXIST (File exists) [pid 31364] open("/tmp/intelremotemonfifo.1000", O_WRONLY|O_NONBLOCK) = 4 [pid 31364] write(4, "/tmp/data.VKSjGT\0", 17) = 17 [pid 31364] unlink("/tmp/icpcdummyiKTfZe.c") = 0 [pid 31364] unlink("/tmp/icpcdashvZB1Ynz") = 0 [pid 31364] unlink("/tmp/icpclibgccqRTyVT") = 0 [pid 31364] unlink("/tmp/icpcgnudirsvPO0ue") = 0 [pid 31364] exit_group(1) = ? [pid 31365] +++ exited with 1 +++ [pid 31364] +++ exited with 1 +++<... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 31364 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31364, si_status=1, si_utime=0, si_stime=0} --- exit_group(1) = ? +++ exited with 1 +++