Re: clang and static linking?

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/16 (看更多)
On 2012-11-09 00:13, Steve Kargl wrote: > Upgraded my amd64 system, yesterday. Needed to rebuild one > of my projects, and hit > > /usr/local/openmpi-1.6.3/bin/mpif90 -static -O2 -pipe -march=native -mtune=native -funroll-loops -ftree-vectorize -Wall -rpath /usr/local/lib/gcc46 -I/home/kargl/modules -o sasmp sasmp.f90 -L/home/kargl/lib -L. -L/usr/local/lib -L. -loa -lm90 -llapack -lblas > //usr/lib/libc.a(isnan.o): In function `isnanf': > /usr/src/lib/libc/gen/isnan.c:(.text+0x40): multiple definition of `__isnanf' > //usr/lib/libm.a(s_isnan.o):/usr/src/lib/msun/src/s_isnan.c:(.text+0x0): > first defined here > collect2: ld returned 1 exit status > *** [sasmp] Error code 1 Can you please post a reduced testcase? I cannot reproduce this error on -current, however much I tried. My testcases attempted calling isnan() and isnanf(), then I tried statically linking with libc and libm, but it worked just fine... _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrJyPp (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrJyPp (FB_current)