Opened 6 years ago
Closed 6 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 6 years ago by
comment:2 Changed 6 years ago by
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 6 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
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.
Both
divccanddiosccprint "error: no input files" for me when invoked with no arguments. Which version do you have?