detectron2_repo/detectron2/layers/csrc/vision.o: file not recognized: file format not recognized

Created on 2 Nov 2019  路  6Comments  路  Source: facebookresearch/detectron2

I have trouble installing detectron2

To Reproduce

  1. install requirements as mentioned in 'INSTALL.md'
  2. git clone https://github.com/facebookresearch/detectron2 detectron2_repo
  3. cd detectron2_repo
  4. python setup.py build develop

Expected behavior

Succeed in installing.
But I met errors, said "......./detectron2_repo/detectron2/layers/csrc/vision.o: file not recognized: file format not recognized"

Environment

  • manjaro 18.1.2
  • g++ (GCC) 9.2.0
  • torch 1.3
  • python 3.6.9
duplicate

Most helpful comment

@FantDing You need to downgrade binutils to 2.30-5. Check #23

All 6 comments

Please post full error logs and environment information following the issue template.

@FantDing You need to downgrade binutils to 2.30-5. Check #23

Seems a duplicate. Thanks for flagging this

Thank you !!! I solved it

Hi, am commenting on this because binutils 2.30 has been expired from the Arch Linux Archive. I'm looking for another workaround, ideally one that does not require downgrading binutils system-wide.

Maybe this issue needs to be reopened?

Either downgrade or upgrade, to avoid a version of binutils that has bugs.

I don't think it needs to be reopened since it's unrelated to detectron2 and there isn't much we can do

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soumik12345 picture soumik12345  路  3Comments

marcoippolito picture marcoippolito  路  4Comments

RomRoc picture RomRoc  路  4Comments

danielgordon10 picture danielgordon10  路  3Comments

invisprints picture invisprints  路  4Comments