https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86383

--- Comment #15 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to coypu from comment #14)
> Also, after these two patches, my own build of arm--netbsdelf is failing
> from this:
> configure: error: Pthreads are required to build libgomp
> 
> Looking at config.log, the error is actually:
> configure:15118: /tmp/build/./gcc/xgcc -B/tmp/build/./gcc/
> -B/usr/local/arm--netbsdelf/bin/ -B/usr/local/arm--netbsdelf/lib/ -isystem
> /usr/local/arm--netbsdelf/include -isystem
> /usr/local/arm--netbsdelf/sys-include
> --sysroot=/home/fly/shark/destdir.shark/   -o conftest -g -O2   conftest.c
> -lpthread  >&5
> /home/fly/shark/destdir.shark/usr/lib/libpthread.so: undefined reference to
> `__modsi3@GCC_3.0'
> collect2: error: ld returned 1 exit status
> 
> I'm not sure what is the cause of that.

My guess is that it's something to do with the symbol versioning.  IIRC netbsd
provides its own versions of __modsi3 and it probably doesn't have a GCC_3.0
symbol version on it, which then confuses the linker.

However, this bug is getting confused as it seems to be a hybrid of oabi and
eabi issues.

Please separate the two issues out and keep this one for the existing oabi
port.

Reply via email to