Trepan-Debuggers / Trepan-Debuggers/remake
Failed to compile the source code
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 850
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am trying to use remake from the source code. But there is a build error while doing the compile.
The error information is as below. I just run ./configure and make. Could you help with this? Thanks a lot!
gcc -DLOCALEDIR="/usr/local/share/locale" -DLIBDIR="/usr/local/lib" -DINCLUDEDIR="/usr/local/include" -DHAVE_CONFIG_H -I. -g -O2 -MT main.o -MD -MP -MF $depbase.Tpo -c -o main.o main.c &&
mv -f $depbase.Tpo $depbase.Po
main.c: In function ‘main’:
main.c:1493:14: warning: passing argument 2 of ‘error’ makes integer from pointer without a cast [-Wint-conversion]
"warning: you specified a debugger option, but you don't have readline support");
^
In file included from main.c:18:0:
makeint.h:470:6: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘char *’
void error (const gmk_floc *flocp, size_t length, const char *fmt, ...)
^
main.c:1492:7: error: too few arguments to function ‘error’
error (NILF,
^
In file included from main.c:18:0:
makeint.h:470:6: note: declared here
void error (const gmk_floc *flocp, size_t length, const char *fmt, ...)
^
main.c:1495:14: warning: passing argument 2 of ‘error’ makes integer from pointer without a cast [-Wint-conversion]
"debugger support compiled in. Debugger options will be ignored.");
^
In file included from main.c:18:0:
makeint.h:470:6: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘char *’
void error (const gmk_floc *flocp, size_t length, const char *fmt, ...)
^
main.c:1494:7: error: too few arguments to function ‘error’
error (NILF,
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with ./configure && make. Inspect main.c around lines 1492-1495 and compare the error calls with the declaration in makeint.h; done means the source compiles successfully without the reported argument-count errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100