Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Issues #246

Open
sjensenUT opened this issue Jan 17, 2021 · 0 comments
Open

Compilation Issues #246

sjensenUT opened this issue Jan 17, 2021 · 0 comments

Comments

@sjensenUT
Copy link

I've been trying to compile Zsim and I'm getting the following error report.

In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from build/opt/g_std/g_string.h:31,
from build/opt/access_tracing.h:29,
from build/opt/access_tracing.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from build/opt/g_std/g_string.h:31,
from build/opt/access_tracing.h:29,
from build/opt/access_tracing.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from /usr/include/c++/7/bitset:47,
from build/opt/coherence_ctrls.h:29,
from build/opt/coherence_ctrls.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from build/opt/config.h:36,
from build/opt/config.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from build/opt/config.h:36,
from build/opt/config.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from build/opt/config.h:36,
from build/opt/config.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/bits/stl_algobase.h:59,
from /usr/include/c++/7/vector:60,
from build/opt/g_std/g_vector.h:29,
from build/opt/memory_hierarchy.h:32,
from build/opt/cache_arrays.h:29,
from build/opt/cache_arrays.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/bits/stl_algobase.h:59,
from /usr/include/c++/7/vector:60,
from build/opt/g_std/g_vector.h:29,
from build/opt/memory_hierarchy.h:32,
from build/opt/cache_arrays.h:29,
from build/opt/cache.h:29,
from build/opt/cache.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
g++ -o build/opt/contention_sim.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/contention_sim.cpp
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/functional:48,
from build/opt/contention_sim.h:29,
from build/opt/contention_sim.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
g++ -o build/opt/core_recorder.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/core_recorder.cpp
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/bits/stl_algobase.h:59,
from /usr/include/c++/7/vector:60,
from build/opt/g_std/g_vector.h:29,
from build/opt/event_recorder.h:29,
from build/opt/core_recorder.h:29,
from build/opt/core_recorder.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
g++ -o build/opt/ddr_mem.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/ddr_mem.cpp
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/bits/stl_algobase.h:59,
from /usr/include/c++/7/deque:60,
from build/opt/ddr_mem.h:29,
from build/opt/ddr_mem.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
g++ -o build/opt/debug_harness.o -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/debug_harness.cpp
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/g_std/g_string.h:31,
from build/opt/access_tracing.h:29,
from build/opt/access_tracing.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/g_std/g_string.h:31,
from build/opt/access_tracing.h:29,
from build/opt/access_tracing.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/g_std/g_string.h:31,
from build/opt/ddr_mem.h:31,
from build/opt/ddr_mem.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/functional:54,
from build/opt/contention_sim.h:29,
from build/opt/contention_sim.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/config.h:36,
from build/opt/config.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/malloc.h:42,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/string.h:49,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdlib.h:49,
from build/opt/galloc.h:29,
from build/opt/g_std/stl_galloc.h:30,
from build/opt/g_std/g_vector.h:30,
from build/opt/event_recorder.h:29,
from build/opt/core_recorder.h:29,
from build/opt/core_recorder.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from build/opt/debug_harness.cpp:27:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/config.h:36,
from build/opt/config.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/config.h:36,
from build/opt/config.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from /usr/include/c++/7/bitset:47,
from build/opt/coherence_ctrls.h:29,
from build/opt/coherence_ctrls.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/malloc.h:42,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/string.h:49,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdlib.h:49,
from build/opt/galloc.h:29,
from build/opt/g_std/stl_galloc.h:30,
from build/opt/g_std/g_vector.h:30,
from build/opt/memory_hierarchy.h:32,
from build/opt/cache_arrays.h:29,
from build/opt/cache.h:29,
from build/opt/cache.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/malloc.h:42,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/string.h:49,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdlib.h:49,
from build/opt/galloc.h:29,
from build/opt/g_std/stl_galloc.h:30,
from build/opt/g_std/g_vector.h:30,
from build/opt/memory_hierarchy.h:32,
from build/opt/cache_arrays.h:29,
from build/opt/cache_arrays.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
g++ -o build/opt/debug_zsim.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/debug_zsim.cpp
g++ -o build/opt/decoder.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/decoder.cpp
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/bits/stl_algobase.h:59,
from /usr/include/c++/7/vector:60,
from build/opt/decoder.h:30,
from build/opt/decoder.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from /home/steffen/Documents/research_stuff/pin/source/include/pin/level_base.PLH:64,
from /home/steffen/Documents/research_stuff/pin/source/include/pin/pin.H:23,
from build/opt/decoder.h:31,
from build/opt/decoder.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
g++ -o build/opt/detailed_mem.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/detailed_mem.cpp
scons: *** [build/opt/core_recorder.os] Error 1
scons: *** [build/opt/debug_harness.o] Error 1
scons: *** [build/opt/access_tracing.ot] Error 1
g++ -o build/opt/detailed_mem_params.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -Wno-unused-function -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/steffen/Documents/research_stuff/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/steffen/Documents/research_stuff/zsim_old/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/steffen/Documents/research_stuff/pin/extras/xed-intel64/include/xed -I/home/steffen/Documents/research_stuff/pin/source/include/pin -I/home/steffen/Documents/research_stuff/pin/source/include/pin/gen -I/home/steffen/Documents/research_stuff/pin/extras/components/include -I/usr/include/hdf5/serial -I/usr/include -I/home/steffen/Documents/research_stuff/pin/extras/crt/include -Ibuild/opt build/opt/detailed_mem_params.cpp
scons: *** [build/opt/cache.os] Error 1
scons: *** [build/opt/coherence_ctrls.os] Error 1
scons: *** [build/opt/ddr_mem.os] Error 1
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from build/opt/g_std/g_string.h:31,
from build/opt/detailed_mem_params.h:29,
from build/opt/detailed_mem.h:29,
from build/opt/detailed_mem.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
scons: *** [build/opt/config.os] Error 1
scons: *** [build/opt/config.o] Error 1
scons: *** [build/opt/cache_arrays.os] Error 1
scons: *** [build/opt/access_tracing.os] Error 1
scons: *** [build/opt/contention_sim.os] Error 1
scons: *** [build/opt/config.ot] Error 1
scons: *** [build/opt/decoder.os] Error 1
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/g_std/g_string.h:31,
from build/opt/detailed_mem_params.h:29,
from build/opt/detailed_mem.h:29,
from build/opt/detailed_mem.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [build/opt/detailed_mem.os] Error 1
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++config.h:533:0,
from /usr/include/c++/7/string:38,
from build/opt/g_std/g_string.h:31,
from build/opt/detailed_mem_params.h:29,
from build/opt/detailed_mem_params.cpp:26:
/usr/include/x86_64-linux-gnu/c++/7/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
^
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/malloc.h:42,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/string.h:49,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/signal.h:50,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/select.h:50,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/unistd.h:50,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/fcntl.h:56,
from build/opt/debug_zsim.cpp:27:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis/ipc.h:28:0,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/os-apis.h:54,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/stdio.h:73,
from /home/steffen/Documents/research_stuff/pin/extras/crt/include/wchar.h:47,
from /usr/include/c++/7/cwchar:44,
from /usr/include/c++/7/bits/postypes.h:40,
from /usr/include/c++/7/bits/char_traits.h:40,
from /usr/include/c++/7/string:40,
from build/opt/g_std/g_string.h:31,
from build/opt/detailed_mem_params.h:29,
from build/opt/detailed_mem_params.cpp:26:
/home/steffen/Documents/research_stuff/pin/extras/crt/include/sys/socket.h:65:10: fatal error: linux/compiler.h: No such file or directory
#include <linux/compiler.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scons: *** [build/opt/debug_zsim.os] Error 1
scons: *** [build/opt/detailed_mem_params.os] Error 1
scons: building terminated because of errors.

I tried switching to a different versio of gcc, but that didnt seem to fix anything.
Additionally In order to fix the no such file issues, I manually added the path to a compiler.h file I found in my linux headers, but it creates a new dependency, when I solve that dependency, it creates a new one and so on. Also I'm seeing some other compilation errors with these files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant