Opened 5 years ago

Closed 5 years ago

#80 closed defect (fixed)

dioscc without any arguments fails with ld error

Reported by: Lukáš Zaoral Owned by: blurrymoi
Priority: major Milestone: 4.3
Component: divcc Keywords:
Cc: kdudka@…, jamartis@…, lzaoral@…

Description

Hi, running dioscc without any arguments results in ld complaining about a missing main function. The reason is, that dioscc tries to link "nothing" into an executable. A "no input files" error message should be shown instead.

Change History (3)

comment:1 Changed 5 years ago by blurrymoi

Both divcc and dioscc print "error: no input files" for me when invoked with no arguments. Which version do you have?

comment:2 Changed 5 years ago by Kamil Dudka

I am able to reproduce it with divine-4.3.5-2.fc30.x86_64 installed from https://copr.fedorainfracloud.org/coprs/lzaoral/Divine/ :

$ divcc
error: no input files
failed to get linker arguments, aborting

$ dioscc
failed to link, ld exited with exitcode = 1, signal = 0
stderr:
    /usr/bin/ld: /../lib/gcc/x86_64-redhat-linux/9/../../../../lib64/crt1.o: in function `_start':
    (.text+0x24): undefined reference to `main'

comment:3 Changed 5 years ago by Lukáš Zaoral

Resolution: fixed
Status: newclosed

I have just tested the 4.3.6 release and this issue has been fixed. Both divcc and dioscc now print "error: no input files" as they should. Thank you.

Note: See TracTickets for help on using tickets.