pluggable-output-processor icon indicating copy to clipboard operation
pluggable-output-processor copied to clipboard

handling errors from `ld`

Open GitMensch opened this issue 2 years ago • 0 comments

gcc internally calls the linker, currently its messages are not handled. Example:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status

it would be nice to have that handled, too. For the first line the change is easy (add the lowercase variant around line 310)

         # TODO Transform into a container of strings and a predicate evaluation
         is_look_like_notice = line.find(' In instantiation of') != -1 \
           or line.find(' In function') != -1                          \
+          or line.find(' in function') != -1                          \
           or line.find(' In member function') != -1                   \
           or line.find(' In lambda function') != -1                   \

GitMensch avatar Oct 09 '23 09:10 GitMensch