Skip Menu |

This queue is for tickets about the Device-USB CPAN distribution.

Report information
The Basics
Id: 100852
Status: open
Priority: 0/
Queue: Device-USB

People
Owner: cpan.wade [...] anomaly.org
Requestors: royunderwood7 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Failure to Install/Compile
Date: Wed, 10 Dec 2014 21:56:13 -0500
To: bug-Device-USB [...] rt.cpan.org
From: Roy Underwood <royunderwood7 [...] gmail.com>
OS: Fedora 20 Kernel: 3.17.3-200.fc20.x86_64 Running install for module 'Device::USB' Fetching with LWP: http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/Device-USB-0.36.tar.gz Fetching with LWP: http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/G/GW/GWADEJ/Device-USB-0.36.tar.gz ok Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Device::USB Writing MYMETA.yml and MYMETA.json Failed to find module path for 'USB.pm' at Makefile.PL line 50. Warning: No success on command[/usr/bin/perl Makefile.PL] GWADEJ/Device-USB-0.36.tar.gz /usr/bin/perl Makefile.PL -- NOT OK Failed during this command: GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 6400 -- Roy Underwood (248) 721-7854 http://www.royunderwood.com Sent From my iMac
On Wed Dec 10 21:56:22 2014, royunderwood7@gmail.com wrote: Show quoted text
> OS: Fedora 20 > Kernel: 3.17.3-200.fc20.x86_64 > > Running install for module 'Device::USB' > > Fetching with LWP: > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/Device-USB- > 0.36.tar.gz > > Fetching with LWP: > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/CHECKSUMS > > Checksum for > /root/.cpan/sources/authors/id/G/GW/GWADEJ/Device-USB-0.36.tar.gz ok > > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > > Checking if your kit is complete... > > Looks good > > Generating a Unix-style Makefile > > Writing Makefile for Device::USB > > Writing MYMETA.yml and MYMETA.json > > Failed to find module path for 'USB.pm' at Makefile.PL line 50. > > Warning: No success on command[/usr/bin/perl Makefile.PL] > > GWADEJ/Device-USB-0.36.tar.gz > > /usr/bin/perl Makefile.PL -- NOT OK > > Failed during this command: > > GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO > '/usr/bin/perl Makefile.PL' returned status 6400
I haven't seen that exact error message before. But, I expect it might have to do with not having Inline::MakeMaker installed. This is one of the difficulties with getting Inline modules to install. You might also check your libusb.so version. This code only works with version 0.14. The 1.0 version has completely changed the API. Device::USB has never been upgraded to the new API. G. Wade
From: muxas [...] mail.ru
On Wed Dec 10 22:18:22 2014, GWADEJ wrote: Show quoted text
> On Wed Dec 10 21:56:22 2014, royunderwood7@gmail.com wrote:
> > OS: Fedora 20 > > Kernel: 3.17.3-200.fc20.x86_64 > > > > Running install for module 'Device::USB' > > > > Fetching with LWP: > > > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/Device-USB- > > 0.36.tar.gz > > > > Fetching with LWP: > > > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/CHECKSUMS > > > > Checksum for > > /root/.cpan/sources/authors/id/G/GW/GWADEJ/Device-USB-0.36.tar.gz ok > > > > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > > > > Checking if your kit is complete... > > > > Looks good > > > > Generating a Unix-style Makefile > > > > Writing Makefile for Device::USB > > > > Writing MYMETA.yml and MYMETA.json > > > > Failed to find module path for 'USB.pm' at Makefile.PL line 50. > > > > Warning: No success on command[/usr/bin/perl Makefile.PL] > > > > GWADEJ/Device-USB-0.36.tar.gz > > > > /usr/bin/perl Makefile.PL -- NOT OK > > > > Failed during this command: > > > > GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO > > '/usr/bin/perl Makefile.PL' returned status 6400
> > I haven't seen that exact error message before. But, I expect it might > have to do with not having Inline::MakeMaker installed. This is one of > the difficulties with getting Inline modules to install. > > You might also check your libusb.so version. This code only works with > version 0.14. The 1.0 version has completely changed the API. > Device::USB has never been upgraded to the new API. > > G. Wade
Hi, I've got the same error while installing the module for Win 8.1: Show quoted text
cpan> make Device::USB
Fetching with LWP: http://cpan.strawberryperl.com/authors/01mailrc.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Database was generated on Fri, 26 Dec 2014 14:21:30 GMT Updating database file ... Done! Running make for module 'Device::USB' Checksum for C:\SPerl\5.20.1.1\cpan\sources\authors\id\G\GW\GWADEJ\Device-USB-0.36.tar.gz ok Scanning cache C:\SPerl\5.20.1.1\cpan\build for sizes ............................................................................DONE Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Device::USB Writing MYMETA.yml and MYMETA.json Failed to find module path for 'USB.pm' at Makefile.PL line 50. Warning: No success on command[c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL] GWADEJ/Device-USB-0.36.tar.gz c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL -- NOT OK Stopping: 'make' failed for 'Device::USB'. Failed during this command: GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO 'c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL' returned status 6400 I guess it's connected to changes in ExtUtils::MakeMaker. When I print attributes PM and PMLIBDIRS in Inline::MakeMaker function WriteMakefile() I see the next output: Show quoted text
pan> make Device::USB
Running make for module 'Device::USB' Checksum for C:\SPerl\5.20.1.1\cpan\sources\authors\id\G\GW\GWADEJ\Device-USB-0.36.tar.gz ok Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Device::USB Writing MYMETA.yml and MYMETA.json PM content: USB.pm => $(INST_LIB)\Device\USB.pm dump_usb.pl => $(INST_LIB)\Device\dump_usb.pl lib/Device/USB/DevEndpoint.pm => blib\lib\Device\USB\DevEndpoint.pm lib/Device/USB/Bus.pm => blib\lib\Device\USB\Bus.pm lib/Device/USB/DevInterface.pm => blib\lib\Device\USB\DevInterface.pm lib/Device/USB/Device.pm => blib\lib\Device\USB\Device.pm lib/Device/USB/FAQ.pod => blib\lib\Device\USB\FAQ.pod lib/Device/USB/DevConfig.pm => blib\lib\Device\USB\DevConfig.pm lib/Device/USB.pm => blib\lib\Device\USB.pm PMLIBDIRS content: lib Failed to find module path for 'USB.pm' at Makefile.PL line 50. Warning: No success on command[c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL] GWADEJ/Device-USB-0.36.tar.gz c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL -- NOT OK Stopping: 'make' failed for 'Device::USB'. Failed during this command: GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO 'c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL' returned status 65280 So as I see from WriteMakefile() code, the error occurs when checking that all files that are going to be installed are located under lib/. These are USB.pm and dump_usb.pl in the distribution root directory. Why are they placed there? That's one question. When I deleted them and modified MANIFEST accordingly, I got another error: Show quoted text
cpan> make Device::USB
Running make for module 'Device::USB' GWADEJ/Device-USB-0.36.tar.gz Has already been unwrapped into directory C:\SPerl\5.20.1.1\cpan\build\Device-USB-0.36-kWi6Ud Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a dmake-style Makefile Writing Makefile for Device::USB Writing MYMETA.yml and MYMETA.json PM content: lib/Device/USB/FAQ.pod => blib\lib\Device\USB\FAQ.pod lib/Device/USB/DevConfig.pm => blib\lib\Device\USB\DevConfig.pm lib/Device/USB/DevInterface.pm => blib\lib\Device\USB\DevInterface.pm lib/Device/USB/Bus.pm => blib\lib\Device\USB\Bus.pm lib/Device/USB/DevEndpoint.pm => blib\lib\Device\USB\DevEndpoint.pm lib/Device/USB.pm => blib\lib\Device\USB.pm lib/Device/USB/Device.pm => blib\lib\Device\USB\Device.pm PMLIBDIRS content: lib GWADEJ/Device-USB-0.36.tar.gz c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL -- OK Running make for G/GW/GWADEJ/Device-USB-0.36.tar.gz cp lib/Device/USB/Bus.pm blib\lib\Device\USB\Bus.pm cp lib/Device/USB.pm blib\lib\Device\USB.pm cp lib/Device/USB/DevEndpoint.pm blib\lib\Device\USB\DevEndpoint.pm cp lib/Device/USB/FAQ.pod blib\lib\Device\USB\FAQ.pod cp lib/Device/USB/Device.pm blib\lib\Device\USB\Device.pm cp lib/Device/USB/DevInterface.pm blib\lib\Device\USB\DevInterface.pm cp lib/Device/USB/DevConfig.pm blib\lib\Device\USB\DevConfig.pm "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB::DevConfig -e"Inline::satis fy_makefile_dep({API => {modinlname => 'Device-USB-DevConfig.inl', module => 'Device::USB::DevConfig'}});" 0.36 $(INST_ARCHLIB) "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB::DevInterface -e"Inline::sa tisfy_makefile_dep({API => {modinlname => 'Device-USB-DevInterface.inl', module => 'Device::USB::DevInterface'} });" 0.36 $(INST_ARCHLIB) "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB::Bus -e"Inline::satisfy_mak efile_dep({API => {modinlname => 'Device-USB-Bus.inl', module => 'Device::USB::Bus'}});" 0.36 $(INST_ARCHLIB) "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB::DevEndpoint -e"Inline::sat isfy_makefile_dep({API => {modinlname => 'Device-USB-DevEndpoint.inl', module => 'Device::USB::DevEndpoint'}}); " 0.36 $(INST_ARCHLIB) "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ -MDevice::USB -e"Inline::satisfy_makefile _dep({API => {modinlname => 'Device-USB.inl', module => 'Device::USB'}});" 0.36 $(INST_ARCHLIB) validate Stage Starting Build Preprocess Stage get_maps Stage Finished Build Preprocess Stage Starting Build Parse Stage Finished Build Parse Stage Starting Build Glue 1 Stage Finished Build Glue 1 Stage Starting Build Glue 2 Stage Finished Build Glue 2 Stage Starting Build Glue 3 Stage Finished Build Glue 3 Stage Starting Build Compile Stage Starting "perl Makefile.PL" Stage Generating a dmake-style Makefile Writing Makefile for Device::USB Writing MYMETA.yml and MYMETA.json Finished "perl Makefile.PL" Stage Starting "make" Stage Running Mkbootstrap for Device::USB () "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "USB.bs" "C:\SPerl\5.20.1.1\perl\bin\perl.exe" "C:\SPerl\5.20.1.1\perl\lib\ExtUtils\xsubpp" -typemap "C:\SPerl\5.20.1.1 \perl\lib\ExtUtils\typemap" USB.xs > USB.xsc && "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -MExtUtils::Command -e m v -- USB.xsc USB.c gcc -c -I"C:/SPerl/5.20.1.1/cpan/build/Device-USB-0.36-kWi6Ud" -I"C:\dev\libusb-1.0.19-rc1-win\include\libusb- 1.0\" -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_S YS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.36\" -DXS_VERSION=\" 0.36\" "-IC:\SPerl\5.20.1.1\perl\lib\CORE" USB.c gcc: fatal error: no input files compilation terminated. dmake: Error code 129, while making 'USB.o' A problem was encountered while attempting to compile and install your Inline C code. The command that failed was: "dmake" with error code 255 The build directory was: C:\SPerl\5.20.1.1\cpan\build\Device-USB-0.36-kWi6Ud\_Inline\build\Device\USB To debug the problem, cd to the build directory, and inspect the output files. at C:\SPerl\5.20.1.1\cpan\build\Device-USB-0.36-kWi6Ud\blib\lib/Device/USB.pm line 20. ...propagated at C:/SPerl/5.20.1.1/perl/site/lib/Inline/C.pm line 829. Compilation failed in require. BEGIN failed--compilation aborted. dmake.exe: Error code 153, while making 'Device-USB.inl' GWADEJ/Device-USB-0.36.tar.gz C:\SPerl\5.20.1.1\c\bin\dmake.exe -- NOT OK Stopping: 'make' failed for 'Device::USB'. Failed during this command: GWADEJ/Device-USB-0.36.tar.gz : make NO Have no idea why gcc is missing some input file(s) for compilation. Could you point me to the right direction? Regards, Maxim
Subject: environment.log
Download environment.log
application/octet-stream 5.3k

Message body not shown because it is not plain text.

Thanks for looking into this. I know USB.pm was in the project directory because the Inline::C or Inline::MakeMaker code used to not be able to find it in the lib directory. To fix it, I symlinked the real code to the project directory. (The details are fuzzy, that was back in 2006 after all.) The dump_usb.pl script had originally not been shipped. I was going to move it to a bin directory eventually, but that never happened. I don't have a Windows environment to work in, so testing that part is pretty difficult. On Sat Dec 27 11:08:32 2014, muxas@mail.ru wrote: Show quoted text
> On Wed Dec 10 22:18:22 2014, GWADEJ wrote:
> > On Wed Dec 10 21:56:22 2014, royunderwood7@gmail.com wrote:
> > > OS: Fedora 20 > > > Kernel: 3.17.3-200.fc20.x86_64 > > > > > > Running install for module 'Device::USB' > > > > > > Fetching with LWP: > > > > > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/Device-USB- > > > 0.36.tar.gz > > > > > > Fetching with LWP: > > > > > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/CHECKSUMS > > > > > > Checksum for > > > /root/.cpan/sources/authors/id/G/GW/GWADEJ/Device-USB-0.36.tar.gz > > > ok > > > > > > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > > > > > > Checking if your kit is complete... > > > > > > Looks good > > > > > > Generating a Unix-style Makefile > > > > > > Writing Makefile for Device::USB > > > > > > Writing MYMETA.yml and MYMETA.json > > > > > > Failed to find module path for 'USB.pm' at Makefile.PL line 50. > > > > > > Warning: No success on command[/usr/bin/perl Makefile.PL] > > > > > > GWADEJ/Device-USB-0.36.tar.gz > > > > > > /usr/bin/perl Makefile.PL -- NOT OK > > > > > > Failed during this command: > > > > > > GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO > > > '/usr/bin/perl Makefile.PL' returned status 6400
> > > > I haven't seen that exact error message before. But, I expect it > > might > > have to do with not having Inline::MakeMaker installed. This is one > > of > > the difficulties with getting Inline modules to install. > > > > You might also check your libusb.so version. This code only works > > with > > version 0.14. The 1.0 version has completely changed the API. > > Device::USB has never been upgraded to the new API. > > > > G. Wade
> > > Hi, > > I've got the same error while installing the module for Win 8.1:
> cpan> make Device::USB
> Fetching with LWP: > http://cpan.strawberryperl.com/authors/01mailrc.txt.gz > Fetching with LWP: > http://cpan.strawberryperl.com/modules/02packages.details.txt.gz > Fetching with LWP: > http://cpan.strawberryperl.com/modules/03modlist.data.gz > Database was generated on Fri, 26 Dec 2014 14:21:30 GMT > > Updating database file ... > Done! > Running make for module 'Device::USB' > Checksum for > C:\SPerl\5.20.1.1\cpan\sources\authors\id\G\GW\GWADEJ\Device-USB- > 0.36.tar.gz ok > Scanning cache C:\SPerl\5.20.1.1\cpan\build for sizes > ............................................................................DONE > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > Checking if your kit is complete... > Looks good > Generating a dmake-style Makefile > Writing Makefile for Device::USB > Writing MYMETA.yml and MYMETA.json > Failed to find module path for 'USB.pm' at Makefile.PL line 50. > Warning: No success on command[c:\SPerl\5.20.1.1\perl\bin\perl.exe > Makefile.PL] > GWADEJ/Device-USB-0.36.tar.gz > c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL -- NOT OK > Stopping: 'make' failed for 'Device::USB'. > Failed during this command: > GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO > 'c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL' returned status 6400 > > I guess it's connected to changes in ExtUtils::MakeMaker. When I print > attributes PM and PMLIBDIRS in Inline::MakeMaker function > WriteMakefile() I see the next output:
> pan> make Device::USB
> Running make for module 'Device::USB' > Checksum for > C:\SPerl\5.20.1.1\cpan\sources\authors\id\G\GW\GWADEJ\Device-USB- > 0.36.tar.gz ok > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > Checking if your kit is complete... > Looks good > Generating a dmake-style Makefile > Writing Makefile for Device::USB > Writing MYMETA.yml and MYMETA.json > PM content: > USB.pm => $(INST_LIB)\Device\USB.pm > dump_usb.pl => $(INST_LIB)\Device\dump_usb.pl > lib/Device/USB/DevEndpoint.pm => blib\lib\Device\USB\DevEndpoint.pm > lib/Device/USB/Bus.pm => blib\lib\Device\USB\Bus.pm > lib/Device/USB/DevInterface.pm => blib\lib\Device\USB\DevInterface.pm > lib/Device/USB/Device.pm => blib\lib\Device\USB\Device.pm > lib/Device/USB/FAQ.pod => blib\lib\Device\USB\FAQ.pod > lib/Device/USB/DevConfig.pm => blib\lib\Device\USB\DevConfig.pm > lib/Device/USB.pm => blib\lib\Device\USB.pm > PMLIBDIRS content: > lib > Failed to find module path for 'USB.pm' at Makefile.PL line 50. > > Warning: No success on command[c:\SPerl\5.20.1.1\perl\bin\perl.exe > Makefile.PL] > GWADEJ/Device-USB-0.36.tar.gz > c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL -- NOT OK > Stopping: 'make' failed for 'Device::USB'. > Failed during this command: > GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO > 'c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL' returned status > 65280 > > So as I see from WriteMakefile() code, the error occurs when checking > that all files that are going to be installed are located under lib/. > These are USB.pm and dump_usb.pl in the distribution root directory. > Why are they placed there? That's one question. > > When I deleted them and modified MANIFEST accordingly, I got another > error:
> cpan> make Device::USB
> Running make for module 'Device::USB' > GWADEJ/Device-USB-0.36.tar.gz > Has already been unwrapped into directory > C:\SPerl\5.20.1.1\cpan\build\Device-USB-0.36-kWi6Ud > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > Checking if your kit is complete... > Looks good > Generating a dmake-style Makefile > Writing Makefile for Device::USB > Writing MYMETA.yml and MYMETA.json > PM content: > lib/Device/USB/FAQ.pod => blib\lib\Device\USB\FAQ.pod > lib/Device/USB/DevConfig.pm => blib\lib\Device\USB\DevConfig.pm > lib/Device/USB/DevInterface.pm => blib\lib\Device\USB\DevInterface.pm > lib/Device/USB/Bus.pm => blib\lib\Device\USB\Bus.pm > lib/Device/USB/DevEndpoint.pm => blib\lib\Device\USB\DevEndpoint.pm > lib/Device/USB.pm => blib\lib\Device\USB.pm > lib/Device/USB/Device.pm => blib\lib\Device\USB\Device.pm > PMLIBDIRS content: > lib > GWADEJ/Device-USB-0.36.tar.gz > c:\SPerl\5.20.1.1\perl\bin\perl.exe Makefile.PL -- OK > Running make for G/GW/GWADEJ/Device-USB-0.36.tar.gz > cp lib/Device/USB/Bus.pm blib\lib\Device\USB\Bus.pm > cp lib/Device/USB.pm blib\lib\Device\USB.pm > cp lib/Device/USB/DevEndpoint.pm blib\lib\Device\USB\DevEndpoint.pm > cp lib/Device/USB/FAQ.pod blib\lib\Device\USB\FAQ.pod > cp lib/Device/USB/Device.pm blib\lib\Device\USB\Device.pm > cp lib/Device/USB/DevInterface.pm blib\lib\Device\USB\DevInterface.pm > cp lib/Device/USB/DevConfig.pm blib\lib\Device\USB\DevConfig.pm > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ > -MDevice::USB::DevConfig -e"Inline::satis > fy_makefile_dep({API => {modinlname => 'Device-USB-DevConfig.inl', > module => 'Device::USB::DevConfig'}});" 0.36 > $(INST_ARCHLIB) > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ > -MDevice::USB::DevInterface -e"Inline::sa > tisfy_makefile_dep({API => {modinlname => 'Device-USB- > DevInterface.inl', module => 'Device::USB::DevInterface'} > });" 0.36 $(INST_ARCHLIB) > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ > -MDevice::USB::Bus -e"Inline::satisfy_mak > efile_dep({API => {modinlname => 'Device-USB-Bus.inl', module => > 'Device::USB::Bus'}});" 0.36 $(INST_ARCHLIB) > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ > -MDevice::USB::DevEndpoint -e"Inline::sat > isfy_makefile_dep({API => {modinlname => 'Device-USB-DevEndpoint.inl', > module => 'Device::USB::DevEndpoint'}}); > " 0.36 $(INST_ARCHLIB) > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -Mblib -MInline=NOISY,_INSTALL_ > -MDevice::USB -e"Inline::satisfy_makefile > _dep({API => {modinlname => 'Device-USB.inl', module => > 'Device::USB'}});" 0.36 $(INST_ARCHLIB) > validate Stage > Starting Build Preprocess Stage > get_maps Stage > Finished Build Preprocess Stage > > Starting Build Parse Stage > Finished Build Parse Stage > > Starting Build Glue 1 Stage > Finished Build Glue 1 Stage > > Starting Build Glue 2 Stage > Finished Build Glue 2 Stage > > Starting Build Glue 3 Stage > Finished Build Glue 3 Stage > > Starting Build Compile Stage > Starting "perl Makefile.PL" Stage > Generating a dmake-style Makefile > Writing Makefile for Device::USB > Writing MYMETA.yml and MYMETA.json > Finished "perl Makefile.PL" Stage > > Starting "make" Stage > Running Mkbootstrap for Device::USB () > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- > 644 "USB.bs" > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" > "C:\SPerl\5.20.1.1\perl\lib\ExtUtils\xsubpp" -typemap > "C:\SPerl\5.20.1.1 > \perl\lib\ExtUtils\typemap" USB.xs > USB.xsc && > "C:\SPerl\5.20.1.1\perl\bin\perl.exe" -MExtUtils::Command -e m > v -- USB.xsc USB.c > gcc -c -I"C:/SPerl/5.20.1.1/cpan/build/Device-USB-0.36-kWi6Ud" > -I"C:\dev\libusb-1.0.19-rc1-win\include\libusb- > 1.0\" -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_S > YS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 > -DVERSION=\"0.36\" -DXS_VERSION=\" > 0.36\" "-IC:\SPerl\5.20.1.1\perl\lib\CORE" USB.c > gcc: fatal error: no input files > compilation terminated. > dmake: Error code 129, while making 'USB.o' > > A problem was encountered while attempting to compile and install your > Inline C code. The command that failed was: > "dmake" with error code 255 > > The build directory was: > C:\SPerl\5.20.1.1\cpan\build\Device-USB-0.36- > kWi6Ud\_Inline\build\Device\USB > > To debug the problem, cd to the build directory, and inspect the > output files. > > at C:\SPerl\5.20.1.1\cpan\build\Device-USB-0.36- > kWi6Ud\blib\lib/Device/USB.pm line 20. > ...propagated at C:/SPerl/5.20.1.1/perl/site/lib/Inline/C.pm > line 829. > Compilation failed in require. > BEGIN failed--compilation aborted. > dmake.exe: Error code 153, while making 'Device-USB.inl' > GWADEJ/Device-USB-0.36.tar.gz > C:\SPerl\5.20.1.1\c\bin\dmake.exe -- NOT OK > Stopping: 'make' failed for 'Device::USB'. > Failed during this command: > GWADEJ/Device-USB-0.36.tar.gz : make NO > > Have no idea why gcc is missing some input file(s) for compilation. > Could you point me to the right direction? > > Regards, > Maxim
On Sat Dec 27 11:08:32 2014, muxas@mail.ru wrote: Show quoted text
> On Wed Dec 10 22:18:22 2014, GWADEJ wrote:
> > You might also check your libusb.so version. This code only works > > with > > version 0.14. The 1.0 version has completely changed the API. > > Device::USB has never been upgraded to the new API. > > > > G. Wade
But there's a 0.x compatible library that allows you to build Device::USB against 1.0.9 (and perhaps other 1.0.x versions): http://sourceforge.net/projects/libusb/files/libusb-compat-0.1/libusb-compat-0.1.4/libusb-compat-0.1.4.tar.bz2 You build and install both the 1.0 and the compat libraries (in that order) and then have the Device::USB build link to both libusb.a and libusb-1.0.a. (Their respective header files, usb.h and libusb.h, also need to be found.) On Windows, I had to patch USB.pm: http://www.sisyphusion.tk/ppm/patches/Device-USB-diff.txt Show quoted text
> gcc -c -I"C:/SPerl/5.20.1.1/cpan/build/Device-USB-0.36-kWi6Ud" > -I"C:\dev\libusb-1.0.19-rc1-win\include\libusb- > 1.0\" -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_S > YS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2 > -DVERSION=\"0.36\" -DXS_VERSION=\" > 0.36\" "-IC:\SPerl\5.20.1.1\perl\lib\CORE" USB.c > gcc: fatal error: no input files
I can only think that USB.c did not get created for some reason. Go to the "build directory" (specified below) and check that USB.c exists. Show quoted text
> The build directory was: > C:\SPerl\5.20.1.1\cpan\build\Device-USB-0.36- > kWi6Ud\_Inline\build\Device\USB
For the record, I used ExtUtils::MakeMaker-7.04 and Inline::C-0.73. Cheers, Rob
RT-Send-CC: muxas [...] mail.ru
On 2014-12-10 21:56:22, royunderwood7@gmail.com wrote: Show quoted text
> OS: Fedora 20 > Kernel: 3.17.3-200.fc20.x86_64 > > Running install for module 'Device::USB' > > Fetching with LWP: > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/Device-USB- > 0.36.tar.gz > > Fetching with LWP: > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/CHECKSUMS > > Checksum for > /root/.cpan/sources/authors/id/G/GW/GWADEJ/Device-USB-0.36.tar.gz ok > > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > > Checking if your kit is complete... > > Looks good > > Generating a Unix-style Makefile > > Writing Makefile for Device::USB > > Writing MYMETA.yml and MYMETA.json > > Failed to find module path for 'USB.pm' at Makefile.PL line 50. > > Warning: No success on command[/usr/bin/perl Makefile.PL] > > GWADEJ/Device-USB-0.36.tar.gz > > /usr/bin/perl Makefile.PL -- NOT OK > > Failed during this command: > > GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO > '/usr/bin/perl Makefile.PL' returned status 6400
I see the same problem on all my linux & freebsd smokers. An easy fix: - remove the toplevel USB.pm - move dump_usb.pl somewhere else (e.g. to a newly created directory "examples") If I do this then everything compiles and tests fine on a Debian/stretch (9.x) system (did not check other debian & freebsd systems).
On 2017-03-02 14:12:16, SREZIC wrote: Show quoted text
> On 2014-12-10 21:56:22, royunderwood7@gmail.com wrote:
> > OS: Fedora 20 > > Kernel: 3.17.3-200.fc20.x86_64 > > > > Running install for module 'Device::USB' > > > > Fetching with LWP: > > > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/Device-USB- > > 0.36.tar.gz > > > > Fetching with LWP: > > > > http://mirrors.ibiblio.org/CPAN/authors/id/G/GW/GWADEJ/CHECKSUMS > > > > Checksum for > > /root/.cpan/sources/authors/id/G/GW/GWADEJ/Device-USB-0.36.tar.gz ok > > > > Configuring G/GW/GWADEJ/Device-USB-0.36.tar.gz with Makefile.PL > > > > Checking if your kit is complete... > > > > Looks good > > > > Generating a Unix-style Makefile > > > > Writing Makefile for Device::USB > > > > Writing MYMETA.yml and MYMETA.json > > > > Failed to find module path for 'USB.pm' at Makefile.PL line 50. > > > > Warning: No success on command[/usr/bin/perl Makefile.PL] > > > > GWADEJ/Device-USB-0.36.tar.gz > > > > /usr/bin/perl Makefile.PL -- NOT OK > > > > Failed during this command: > > > > GWADEJ/Device-USB-0.36.tar.gz : writemakefile NO > > '/usr/bin/perl Makefile.PL' returned status 6400
> > > I see the same problem on all my linux & freebsd smokers. An easy fix: > - remove the toplevel USB.pm > - move dump_usb.pl somewhere else (e.g. to a newly created directory > "examples") > > If I do this then everything compiles and tests fine on a > Debian/stretch (9.x) system (did not check other debian & freebsd > systems).
CPAN.pm users may use this distroprefs file for automatic fixing: https://github.com/eserte/srezic-cpan-distroprefs/blob/master/Device-USB.yml