Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

problems with libopenlibm.dylib.0.1 -- make does not work

130 views
Skip to first unread message

Federico Calboli

unread,
Jan 13, 2014, 9:37:10 AM1/13/14
to juli...@googlegroups.com
Hi All, 

I am on OS X 10.8.5 (i.e. Mountain Lion), with XCode 5, gfortran from gcc48 installed through macports and symlinked to /usr/local/bin/gfortran.  Today I did:

git fetch; git merge origin
make 

and got 

Submodule path 'deps/openlibm': checked out '4689cf133ec94e2619528b4702176adba6a5fa7a'
amd64/fenv.c:51:15: warning: attribute declaration must precede
      definition [-Wignored-attributes]
extern inline DLLEXPORT int feclearexcept(int __excepts);
              ^
/usr/local/julia/deps/openlibm/src/math_private.h:452:35: note:
      expanded from macro 'DLLEXPORT'
#define DLLEXPORT __attribute__ ((visibility("default")))
                                  ^
/usr/local/julia/deps/openlibm/amd64/fenv.h:97:1: note: previous
      definition is here
feclearexcept(int __excepts)
^
amd64/fenv.c:52:15: warning: attribute declaration must precede
      definition [-Wignored-attributes]
extern inline DLLEXPORT int fegetexceptflag(fexcept_t *__flagp...
              ^
/usr/local/julia/deps/openlibm/src/math_private.h:452:35: note:
      expanded from macro 'DLLEXPORT'
#define DLLEXPORT __attribute__ ((visibility("default")))
                                  ^
/usr/local/julia/deps/openlibm/amd64/fenv.h:115:1: note: previous
      definition is here
fegetexceptflag(fexcept_t *__flagp, int __excepts)
^
amd64/fenv.c:82:15: warning: attribute declaration must precede
      definition [-Wignored-attributes]
extern inline DLLEXPORT int fetestexcept(int __excepts);
              ^
/usr/local/julia/deps/openlibm/src/math_private.h:452:35: note:
      expanded from macro 'DLLEXPORT'
#define DLLEXPORT __attribute__ ((visibility("default")))
                                  ^
/usr/local/julia/deps/openlibm/amd64/fenv.h:130:1: note: previous
      definition is here
fetestexcept(int __excepts)
^
amd64/fenv.c:83:15: warning: attribute declaration must precede
      definition [-Wignored-attributes]
extern inline DLLEXPORT int fegetround(void);
              ^
/usr/local/julia/deps/openlibm/src/math_private.h:452:35: note:
      expanded from macro 'DLLEXPORT'
#define DLLEXPORT __attribute__ ((visibility("default")))
                                  ^
/usr/local/julia/deps/openlibm/amd64/fenv.h:141:1: note: previous
      definition is here
fegetround(void)
^
amd64/fenv.c:84:15: warning: attribute declaration must precede
      definition [-Wignored-attributes]
extern inline DLLEXPORT int fesetround(int __round);
              ^
/usr/local/julia/deps/openlibm/src/math_private.h:452:35: note:
      expanded from macro 'DLLEXPORT'
#define DLLEXPORT __attribute__ ((visibility("default")))
                                  ^
/usr/local/julia/deps/openlibm/amd64/fenv.h:156:1: note: previous
      definition is here
fesetround(int __round)
^
amd64/fenv.c:115:15: warning: attribute declaration must precede
      definition [-Wignored-attributes]
extern inline DLLEXPORT int fesetenv(const fenv_t *__envp);
              ^
/usr/local/julia/deps/openlibm/src/math_private.h:452:35: note:
      expanded from macro 'DLLEXPORT'
#define DLLEXPORT __attribute__ ((visibility("default")))
                                  ^
/usr/local/julia/deps/openlibm/amd64/fenv.h:181:1: note: previous
      definition is here
fesetenv(const fenv_t *__envp)
^
6 warnings generated.
ln: libopenlibm.dylib: File exists
make[3]: *** [libopenlibm.dylib] Error 1
make[2]: *** [openlibm/libopenlibm.dylib] Error 2
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

make clean or make cleanall did not solve it, though the build attempt after make cleanall gave:

 /bin/sh ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
  GEN    include/uv-dtrace.h
  CC     src/libuv_la-fs-poll.lo
  CC     src/libuv_la-inet.lo
  CC     src/libuv_la-uv-common.lo
  CC     src/libuv_la-version.lo
  CC     src/unix/libuv_la-async.lo
  CC     src/unix/libuv_la-core.lo
  CC     src/unix/libuv_la-dl.lo
  CC     src/unix/libuv_la-fs.lo
  CC     src/unix/libuv_la-getaddrinfo.lo
  CC     src/unix/libuv_la-loop-watcher.lo
  CC     src/unix/libuv_la-loop.lo
  CC     src/unix/libuv_la-pipe.lo
  CC     src/unix/libuv_la-poll.lo
  CC     src/unix/libuv_la-process.lo
  CC     src/unix/libuv_la-signal.lo
  CC     src/unix/libuv_la-stream.lo
  CC     src/unix/libuv_la-tcp.lo
  CC     src/unix/libuv_la-thread.lo
  CC     src/unix/libuv_la-threadpool.lo
  CC     src/unix/libuv_la-timer.lo
  CC     src/unix/libuv_la-tty.lo
  CC     src/unix/libuv_la-udp.lo
  CC     src/unix/libuv_la-darwin.lo
  CC     src/unix/libuv_la-darwin-proctitle.lo
  CC     src/unix/libuv_la-fsevents.lo
  CC     src/unix/libuv_la-kqueue.lo
  CC     src/unix/libuv_la-proctitle.lo
  CCLD   libuv.la
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   libuv.la '/usr/local/julia/usr/lib'
libtool: install: /usr/bin/install -c .libs/libuv.11.dylib /usr/local/julia/usr/lib/libuv.11.dylib
libtool: install: (cd /usr/local/julia/usr/lib && { ln -s -f libuv.11.dylib libuv.dylib || { rm -f libuv.dylib && ln -s libuv.11.dylib libuv.dylib; }; })
libtool: install: /usr/bin/install -c .libs/libuv.lai /usr/local/julia/usr/lib/libuv.la
libtool: install: /usr/bin/install -c .libs/libuv.a /usr/local/julia/usr/lib/libuv.a
libtool: install: chmod 644 /usr/local/julia/usr/lib/libuv.a
libtool: install: ranlib /usr/local/julia/usr/lib/libuv.a
 /usr/bin/install -c -m 644 include/uv.h include/uv-errno.h include/tree.h include/uv-unix.h include/uv-darwin.h '/usr/local/julia/usr/include'
ln: libopenlibm.dylib.0.1: File exists
make[3]: *** [libopenlibm.dylib] Error 1
make[2]: *** [openlibm/libopenlibm.dylib] Error 2
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2


BW

F

Ivar Nesje

unread,
Jan 13, 2014, 10:13:55 AM1/13/14
to juli...@googlegroups.com
I also got this and the problem was solved by

rm /usr/lib/libopenlibm.so
rm /deps/openlibm/libopenlibm.so*

I am not sure what is happening or if this is the right solution. Probably you could fix it by finding the right clean command in deps/openlibm, but I did not bother to check.

Ivar

Jiahao Chen

unread,
Jan 13, 2014, 2:02:53 PM1/13/14
to juli...@googlegroups.com
I encountered this problem today as well. Ordinarily one would wipe a dependency build with

make -C deps clean-openlibm

but this didn't solve the problem.

Jiahao Chen

unread,
Jan 13, 2014, 2:03:44 PM1/13/14
to juli...@googlegroups.com
This issue also popped up on julia-users.

Kevin Squire

unread,
Jan 13, 2014, 2:08:53 PM1/13/14
to juli...@googlegroups.com
I just updated julia and openlibm to fix this.

Cheers, Kevin

Federico Calboli

unread,
Jan 14, 2014, 5:38:24 AM1/14/14
to juli...@googlegroups.com
The fix worked for me, compilation works cleanly.
Reply all
Reply to author
Forward
0 new messages