NsJail 32 bits

31 views
Skip to first unread message

Matteo Bertucci

unread,
Aug 2, 2020, 1:16:02 PM8/2/20
to nsjail
Hi!

I'm currently having an issue with compiling NsJail in a 32 bits container, here is the compiler output I'm having 

g++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 caps.cc -o caps.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 cgroup.cc -o cgroup.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 cgroup2.cc -o cgroup2.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 cmdline.cc -o cmdline.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 config.pb.cc -o config.pb.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 config.cc -o config.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 contain.cc -o contain.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 cpu.cc -o cpu.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 logs.cc -o logs.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 mnt.cc -o mnt.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 net.cc -o net.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 nsjail.cc -o nsjail.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 pid.cc -o pid.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 sandbox.cc -o sandbox.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 subproc.cc -o subproc.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 uts.cc -o uts.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 user.cc -o user.o
g
++ -O2 -c -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -fPIE -Wformat -Wformat-security -Wno-format-nonliteral -Wall -Wextra -Werror -Ikafel/include -pthread -std=c++11 -fno-exceptions -Wno-unused -Wno-unused-parameter -I/usr/include/libnl3 util.cc -o util.o
g
++ -o nsjail caps.o cgroup.o cgroup2.o cmdline.o config.o contain.o cpu.o logs.o mnt.o net.o nsjail.o pid.o sandbox.o subproc.o uts.o user.o util.o config.pb.o kafel/libkafel.a -pie -Wl,-z,noexecstack -lpthread -lprotobuf -pthread -lnl-route-3 -lnl-3
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.ax' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.ax[__x86.get_pc_thunk.ax]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.ax' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.ax[__x86.get_pc_thunk.ax]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.si' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.si[__x86.get_pc_thunk.si]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bp' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bp[__x86.get_pc_thunk.bp]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bp' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bp[__x86.get_pc_thunk.bp]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
`__x86.get_pc_thunk.bx' referenced in section `.text' of kafel/libkafel.a(libkafel.o): defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of kafel/libkafel.a(libkafel.o)
collect2
: error: ld returned 1 exit status
make
: *** [Makefile:70: nsjail] Error 1

I also tried to disable position-independent code, it does make it link but the executable will always segfault. Any help would be really appreciated, I'm working under a tight limit for a code jam. 

Robert Święcki

unread,
Aug 3, 2020, 2:48:29 PM8/3/20
to Matteo Bertucci, nsjail
Hi,

fyi: this is being discussed in https://github.com/google/nsjail/issues/149

--
You received this message because you are subscribed to the Google Groups "nsjail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nsjail+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nsjail/001e2562-d06e-4f74-baf8-b89416c8966ao%40googlegroups.com.


--
Robert Święcki
Reply all
Reply to author
Forward
0 new messages