Skip to content

FAISS on Raspberry Pi #1071

@sharma-n

Description

@sharma-n

Summary

Installing FAISS for python (from source) on raspberry pi throws an error:
Makefile:22: recipe for target 'swigfaiss.o' failed
The above error is thrown after a long list of errors, the first of which is:
swigfaiss.cpp:3348:3: error: #error "SWIG wrapped code invalid in 32 bit architecture, regenerate code using -DSWIGWORDSIZE32"
I have also attached the complete log.txt.

Any help would be appreciated.

Platform

Raspberry Pi 3B+

OS: Raspbian

Running on:

  • CPU
  • GPU

Interface:

  • C++
  • Python

Reproduction instructions

  1. Configured FAISS by ./configure --without-cuda (configuration file successfully recognizes python)
  2. Compiled and installed using: make -j4 & make install (Successfully compiles and installs)
  3. Try to install python wrapper using: make -C python (throws error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions