build failure on i386 32 bit system
- Dominant language
- C
- Stars
- 22.7k
- Forks
- 4.1k
- Avg merge
- 10d 4h
- Merged PRs (30d)
- 3
Description
I'm hitting the following build error on 32 bit systems:
In file included from /home/king/bcc/snapcraft/parts/bcc/src/src/cc/frontends/b/codegen_llvm.cc:39:0:
/home/king/bcc/snapcraft/parts/bcc/src/src/cc/frontends/b/type_helper.h: In function 'size_t ebpf::cc::enum_to_size(ebpf::cc::FieldType)':
/home/king/bcc/snapcraft/parts/bcc/src/src/cc/frontends/b/type_helper.h:39:35: error: '__uint128_t' was not declared in this scope
case UINT128_T: return sizeof(__uint128_t);
^~~~~~~~~~~
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/6/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6.2.0-5ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=i686-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)
(Ubuntu yakkety).
Does bcc officially support i386 architectures?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported build on an i386 system with the shown GCC configuration, then inspect src/cc/frontends/b/type_helper.h around enum_to_size and the __uint128_t reference. Done means confirming whether i386 is supported and, if it is, verifying that the build completes after the compatibility issue is addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux, ubuntu
- Domain
- build-system, compilers, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100