Coder Social home page Coder Social logo

pulsarx's People

Contributors

ypmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pulsarx's Issues

compile issue on RHEL8

Hi Yunpeng,

I had issues compiling and was able to fix them by two small changes. One is for recent versions of Python. And the other is to get libboost to link correctly:

diff --git a/config/ax_python.m4 b/config/ax_python.m4
index 05efd1c..e66cd55 100644
--- a/config/ax_python.m4
+++ b/config/ax_python.m4
@@ -55,7 +55,7 @@
 AC_DEFUN([AX_PYTHON],
 [AC_MSG_CHECKING(for python build information)
 AC_MSG_RESULT([])
-for python in python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
+for python in python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
 AC_CHECK_PROGS(PYTHON_BIN, [$python])
 ax_python_bin=$PYTHON_BIN
 if test x$ax_python_bin != x; then
diff --git a/configure.ac b/configure.ac
index 3f5ba4d..48aee8a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ CXXFLAGS='-std=c++11 -O3'
 LT_INIT
 
 # Checks for libraries.
-AX_BOOST_BASE([1.56], [LIBS="$LIBS -lboost_program_options -lboost_log"], [echo "Boost library was not found!";exit -1])
+AX_BOOST_BASE([1.56], [LIBS="$LIBS -lboost_system -lboost_program_options -lboost_log"], [echo "Boost library was not found!";exit -1])
 AC_CHECK_LIB([cfitsio], [ffgky], [], [echo "cfitsio library was not found!";exit -1])
 AC_CHECK_LIB([png], [png_set_flush], [], [echo "library not found!";exit -1])
 AX_PTHREAD([LIBS+=" -lpthread"], [echo "library not found!";exit -1])

compile issue with ymw16

Just tried to email you this, but it bounced! It isn't really your problem, but you should know about it.

Hi Jumei and Dick (cc'ing Yunpeng)

So I'm using a new gcc compiler (v10.2.0) and it is not liking how the global variables (for example, the m_# variables defined in one of the headers) are being handled in the code.

I'm attaching the results of trying to compile. It seems like newer compilers are being more strict about how these things are being handled.

Scott

PS: I'm cc'ing Yunpeng since this affects the compilation of PulsarX as well

And here is some of the error output from ld:

ar: creating ymw16.a
a - dmdtau.o
a - dora.o
a - fermibubble.o
a - frb_d.o
a - galcen.o
a - gum.o
a - lmc.o
a - localbubble.o
a - ne_crd.o
a - nps.o
a - smc.o
a - spiral.o
a - thick.o
a - thin.o
a - ymw16par.o
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_3'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `ww'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_5'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_6'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dmdtau.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_7'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here
/usr/bin/ld: ymw16.a(dora.o):/home/sransom/src/ymw16_v1.3.2/cn.h:38: multiple definition of `m_3'; /tmp/cce7Y1nW.o:/home/sransom/src/ymw16_v1.3.2/cn.h:38: first defined here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.