Bug 1255543

Summary: confusing error message with eu-strip (Only one input file allowed together with '-o' and '-f')
Product: [Fedora] Fedora Reporter: Johnny Robeson <johnny>
Component: elfutilsAssignee: Mark Wielaard <mjw>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: aoliva, fche, jakub, jan.kratochvil, me, mjw, mjw, roland
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-22 08:01:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Johnny Robeson 2015-08-20 21:31:49 UTC
Description of problem:

with elfutils-0.163.1.fc21 and this command:
usr/bin/eu-strip  --remove-comment -f /home/johnny/hhvm-repo/hhvm/BUILDROOT/hhvm-3.9.0-1.fc21.x86_64/usr/lib/debug/usr/bin/hh_format.debug /home/johnny/hhvm-repo/hhvm/BUILDROOT/hhvm-3.9.0-1.fc21.x86_64/usr/bin/hh_format

I'm getting this error:
/usr/bin/eu-strip: Only one input file allowed together with '-o' and '-f'

I think this behaviour has changed in recent Fedora 21 builds, but I'm not entirely sure.

Do you see anything wrong with that command?

Comment 1 Mark Wielaard 2015-08-21 12:29:22 UTC
(In reply to Johnny Robeson from comment #0)
> with elfutils-0.163.1.fc21 and this command:
> usr/bin/eu-strip  --remove-comment -f
> /home/johnny/hhvm-repo/hhvm/BUILDROOT/hhvm-3.9.0-1.fc21.x86_64/usr/lib/debug/
> usr/bin/hh_format.debug
> /home/johnny/hhvm-repo/hhvm/BUILDROOT/hhvm-3.9.0-1.fc21.x86_64/usr/bin/
> hh_format
> 
> I'm getting this error:
> /usr/bin/eu-strip: Only one input file allowed together with '-o' and '-f'
> 
> I think this behaviour has changed in recent Fedora 21 builds, but I'm not
> entirely sure.
>
> Do you see anything wrong with that command?

That should be fine. If I do the following everything goes as expected:

$ echo "int main() { return 0; }" | gcc -g -o prog -xc -
$ eu-strip --remove-comment -f prog.debug prog

maybe there is an unexpected space or newline in your command line?

Comment 2 Johnny Robeson 2015-08-22 08:00:59 UTC
yep, it was some space. i removed the quoting of the arguments that get passed to the script and it went away.