Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

cpanm AI::MXNetCAPI fails: error: mxnet_wrap.o: No such file or directory #18008

Closed
sysdef opened this issue Apr 9, 2020 · 3 comments
Closed
Labels

Comments

@sysdef
Copy link

sysdef commented Apr 9, 2020

Description

installing AI::MXNetCAPI fails

Error Message

cpanm AI::MXNetCAPI fails

To Reproduce

type: sudo cpanm -v AI::MXNetCAPI

Environment

debian 10 stable, 64 bit

sudo cpanm -v AI::MXNetCAPI
cpanm (App::cpanminus) 1.7044 on perl 5.028001 built for x86_64-linux-gnu-thread-multi
Work directory is /root/.cpanm/work/1586466130.25207
You have make /usr/bin/make
You have LWP 6.36
You have /usr/bin/tar: tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching AI::MXNetCAPI () on cpanmetadb ...
--> Working on AI::MXNetCAPI
Fetching http://www.cpan.org/authors/id/S/SK/SKOLYCHEV/AI-MXNetCAPI-1.5.tar.gz ... OK
Unpacking AI-MXNetCAPI-1.5.tar.gz
AI-MXNetCAPI-1.5/
AI-MXNetCAPI-1.5/README
AI-MXNetCAPI-1.5/mxnet.i
AI-MXNetCAPI-1.5/lib/
AI-MXNetCAPI-1.5/lib/AI/
AI-MXNetCAPI-1.5/lib/AI/MXNetCAPI.pm
AI-MXNetCAPI-1.5/Makefile.PL
AI-MXNetCAPI-1.5/META.yml
AI-MXNetCAPI-1.5/Changes
AI-MXNetCAPI-1.5/mxnet_typemaps.i
AI-MXNetCAPI-1.5/META.json
AI-MXNetCAPI-1.5/MANIFEST
AI-MXNetCAPI-1.5/t/
AI-MXNetCAPI-1.5/t/AI-MXNetCAPI.t
Entering AI-MXNetCAPI-1.5
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.34)
Running Makefile.PL
Configuring AI-MXNetCAPI-1.5 ... Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lmxnet
Generating a Unix-style Makefile
Writing Makefile for AI::MXNetCAPI
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.34)
Checking if you have Test::More 0 ... Yes (1.302170)
Building and testing AI-MXNetCAPI-1.5 ... cp lib/AI/MXNetCAPI.pm blib/lib/AI/MXNetCAPI.pm
Running Mkbootstrap for MXNetCAPI ()
chmod 644 "MXNetCAPI.bs"
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- MXNetCAPI.bs blib/arch/auto/AI/MXNetCAPI/MXNetCAPI.bs 644
rm -f blib/arch/auto/AI/MXNetCAPI/MXNetCAPI.so
x86_64-linux-gnu-gcc  -shared -L/usr/local/lib -fstack-protector-strong  mxnet_wrap.o  -o blib/arch/auto/AI/MXNetCAPI/MXNetCAPI.so  \
      \
  
x86_64-linux-gnu-gcc: error: mxnet_wrap.o: No such file or directory
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
make: *** [Makefile:479: blib/arch/auto/AI/MXNetCAPI/MXNetCAPI.so] Error 1
FAIL
! Installing AI::MXNetCAPI failed. See /root/.cpanm/work/1586466130.25207/build.log for details. Retry with --force to force install it.

@sysdef sysdef added the Bug label Apr 9, 2020
@sysdef sysdef closed this as completed Apr 9, 2020
@imyaman
Copy link
Contributor

imyaman commented May 18, 2020

It doesn't seem solved yet.

@navoj
Copy link

navoj commented Mar 15, 2021

I still get this error when I compile in Ubuntu 20.04.02

@imyaman
Copy link
Contributor

imyaman commented Mar 16, 2021

@navoj Try "apt install swig"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants