Skip to content

re2.v0.11.0 build fails on armv6l because gcc doesn't have the -m32 flag #26

@kevin1

Description

@kevin1

While compiling this package on my armv6 (32-bit) Raspberry Pi, gcc gave this error:

g++: error: unrecognized command line option ‘-m32’
Makefile:160: recipe for target 'obj/util/arena.o' failed

The -m32 and -m64 flags aren't available on ARM because (unlike on Intel), there are separate 32/64-bit gcc toolchains. (source)

I tracked down where the flag gets added in src/re2_c/jbuild:

if ! ${ARCH_SIXTYFOUR}; then
  CXX=\"$CXX -m32\"
fi

But I wasn't sure what the best way to exclude ARM without breaking the existing functionality. Thanks in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugforwarded-to-js-devsThis report has been forwarded to Jane Street's internal review system.help-wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions