tcsh-org / tcsh

This is a read-only mirror of the tcsh code repository.
https://www.tcsh.org/
Other
232 stars 42 forks source link

compilation with GCC 10.2 fails due to -fno-common being used by default #33

Closed boegel closed 3 years ago

boegel commented 3 years ago

When compiling tcsh 6.22.02 (latest release to date), I'm hitting the following problem:

/usr/bin/ld.gold: error: tc.sig.o: multiple definition of 'handle_interrupt'
/usr/bin/ld.gold: sh.o: previous definition here
collect2: error: ld returned 1 exit status                                                                                                                                                                  make: *** [Makefile:434: tcsh] Error 1

This is probably due to GCC 10.2 enabling -fno-common by default, see https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common .

boegel commented 3 years ago

Ah, seems like this is already fixed in master, via 6974bc35a5cda6eab748e364bd76a860ca66968b...

So, closing.