Skip Menu |

This queue is for tickets about the Unix-Processors CPAN distribution.

Report information
The Basics
Id: 130369
Status: resolved
Priority: 0/
Queue: Unix-Processors

People
Owner: Nobody in particular
Requestors: warren [...] etr-usa.com
Cc:
AdminCc:

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



Subject: Unix::Processors compile error on CentOS 7.5
Date: Thu, 22 Aug 2019 21:31:27 -0600
To: bug-Unix-Processors [...] rt.cpan.org
From: Warren Young <warren [...] etr-usa.com>
I’m getting the following from $ sudo cpanm --look Unix::Processors $ perl Makefile.PL $ make Processors.c: In function ‘XS_Unix__Processors__Info_clock’: Processors.c:696:7: warning: unused variable ‘RETVAL’ [-Wunused-variable] SV * RETVAL; ^ Processors.c:695:18: warning: variable ‘cpu’ set but not used [-Wunused-but-set-variable] CpuNumFromRef_t cpu; ^ Processors.c: In function ‘XS_Unix__Processors__Info_state’: Processors.c:794:7: warning: unused variable ‘RETVAL’ [-Wunused-variable] SV * RETVAL; ^ Processors.c:793:18: warning: variable ‘cpu’ set but not used [-Wunused-but-set-variable] CpuNumFromRef_t cpu; ^ Processors.c: In function ‘XS_Unix__Processors__Info_type’: Processors.c:883:7: warning: unused variable ‘RETVAL’ [-Wunused-variable] SV * RETVAL; ^ Running Mkbootstrap for Unix::Processors () chmod 644 Processors.bs rm -f blib/arch/auto/Unix/Processors/Processors.so gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro Processors.o -o blib/arch/auto/Unix/Processors/Processors.so \ \ /bin/ld: line 5: syntax error near unexpected token `$'\232r\376\350\316\360d\214\372\310\344\331\002\376h]\001\177\253\250v\005\312`\222\343\344\307Z\006]G\230\271\372\360\207\325p\275\022\230\373:\253\030\200M;\261\254\273Q9o\002\320\353c\221\257^\003)\206\242W\331\356Mň^\030\001\177\E\213\226\364\231\214\317;$\301Hm\257\234"_\321\320\001\177Q\001\177\235\374\001\177Vp\036"\325_\250\365V\325\345\341p\245#\375\221\rw_\306Sa\364V~\221\331\311Plۭ,U{\016\r\203%\325]\244\215\361˱\206\266n\314O\250\026\210+Y\251\003\205\251ٔ\317\371\362]k\a\255R\344(\016ˆF\240\004sÒ,\034\270\356ӗ\266\323\312\301\312\300\\\374\240\324U\365\034\261∃\027\004a\271U\005H\366\212\355\240\305\362\262\'d\274\255\r\347h\305\332}2=\266\334l+H(q\032\323grn\343$]\315\270\376\205\340\326L\221i)\334w\247\272ִ\f\322\001\177JL\314n\215o\005\317\302G\037Eo\305\310bB\352\223Yu\362\211\201\215\202R\301<\005\310\377\001\001H\236g\330\315\034ݑh\220\255\214^\034V\362Md\250\001\177H\342|\360\253\255\234\257\212խ\204\345\201A\274]\004\355\242\201l\252\f毆\240\035\313\025\021\031FOL>u\273K[h\232\245]\001\177\225\307\342\335\020\216\v\326q\227v[\331\006"\370+\265#a٪\277̖A-\023\362Ya\b\031\307\fn\303\036\255\304걠\225o\004ytʭi\340\343+\207\226]<\'pD*i\225\353\302\204\032\223-l*"\t\315[w3\006\205c.T\267\313:\235z\265\201a\335%\235\246]\235\206\341]\005\344\360\321.\025\341e\025\003v\311)\337\a|hϕY\336\377.\313x\027\331\372\226\034o\275]\017zH2\364\274\035v\254\372`A\026\240\254\005\202\017\003W\b\016\214\370\207\315\035h\032\016\021we\003'' %]+O+Y�]+R(ˆF_Ò,\UaUH'd h}2=++H(-g_+$]͸Li)+ JL+-GE-bBY+򉁍R<Hgݑh^VMdH|𫭜A]+ 毆FOL>+K[h] -+["+#a٪A-Y +-y+ʭi+]<'-D*i-+*" [+3c.T:za%]].e+)|hϕY.|-]zH2`Ah+e |=[8+[z;ßB69!<[C}bYR Z' c-++ec+2: e__-_: +d _e++_+ed 2 e|i+ _+a++_ +a+e: *** [b+ib/a_ch/a++-/U+i|/P_-ce__-__/P_-ce__-__._-] E__-_ 1 [_--+@Med+ay U+i|-P_-ce__-__-2.046]# I include the warnings just in case you want to fix them. The real issue is the link error. As you can see, the output trashes my terminal. For what it’s worth, I’m not using your module directly. I’m using it only as a dependency of Sys::Info, and I only dug down to this level to diagnose the failure of cpanm to install that module. System details, in case it helps: # gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # uname -a Linux NAME 3.10.0-862.11.6.el7.x86_64 #1 SMP Tue Aug 14 21:49:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux # perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi (with 33 registered patches, see perl -V for more detail)
Thanks for the report. If you can debug it down to a patch I'd be glad to apply it. Note as far as I can tell the package works on all tested distros under 5.16.3, and it looks like some of the lines are likely also CentOS (based on uname): http://matrix.cpantesters.org/?dist=Unix-Processors%202.046;perl=5.16.3;reports=1 Perhaps there is something wrong in the Unix::Processor makefile, but this still shouldn't result in the type of failure you are seeing, I would think that error could only be from something broken in your compiler tool chain.
Subject: Re: [rt.cpan.org #130369] Unix::Processors compile error on CentOS 7.5
Date: Thu, 29 Aug 2019 00:01:16 -0600
To: bug-Unix-Processors [...] rt.cpan.org
From: Warren Young <warren [...] etr-usa.com>
On Aug 26, 2019, at 6:17 PM, Wilson Snyder via RT <bug-Unix-Processors@rt.cpan.org> wrote: Show quoted text
> > I would think that error could only be from something broken in your compiler tool chain.
That looks to be the case. After an OS package upgrade pass, the symptom has disappeared. Sorry for the noise.