Giter Club home page Giter Club logo

Comments (7)

jtextor avatar jtextor commented on July 25, 2024 8

Hi, thanks again for this amazing software. I also ran into this problem and I believe it is because you defined an inline function in a .cpp file, which I think is not supposed to be done this way. See here:

https://stackoverflow.com/questions/5057021/why-are-c-inline-functions-in-the-header

For me, simply removing the "inline" keyword from the definition of the function "comp_nt_int" fixed this issue, and I was able to compile Igor without having to downgrade my compiler. (This was on a Linux system.)

I think the compiler can decide for itself whether or not to inline this function, so it's not too bad to remove this keyword. Another solution would be to move the definition of this function too Aligner.h, and then include that in Deletion.h

from igor.

wenjie1991 avatar wenjie1991 commented on July 25, 2024 1

I tried gcc-7 (Homebrew GCC 7.5.0_1) 7.5.0, it also works.

from igor.

gszep avatar gszep commented on July 25, 2024 1

I got the same error with gcc-11 would be great to update the code for modern compilers

from igor.

qmarcou avatar qmarcou commented on July 25, 2024

Hi @zacmontague ,
Thank your for submitting a bug report. It's the second time this error is reported and I was not able to diagnose the exact reason the first time. Last time the user also had a Mac (although more recent) and GCC 8.1. I had asked whether downgrading to a more ancient version of, e.g GCC 7.3 (the one I'm personally using) solved the problem and did not hear back from the problem. Could you try downgrading your GCC see if this solves your problem?

Also: does your make.log file also contain the error stream? If not could you create a log file containing both the stdout and error stream using:
make >>make.log 2>&1

Thanks!

from igor.

zacmon avatar zacmon commented on July 25, 2024

Hi,

I attached two logs, one using GCC 8.1 and one using GCC 7.3, using the command you instructed me to use. I think the make and make install have been successful now by using GCC 7.3. Executing make check gives an error, however:

Making check in cdf
/Library/Developer/CommandLineTools/usr/bin/make test
gcc-7 -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po
make[4]: *** No rule to make target ../randist/libgslrandist.la', needed by test'. Stop.
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1

Navigating to igor_src and doing igor -help returns the manual and igor run_demo executes fine. So I'm guessing that, despite the make check error, things will work.

Therefore, I suppose it's the new GCC that causes whatever not to be linked correctly.

Thanks,
Zach

makeGCC-8.log
makeGCC-7.log

from igor.

qmarcou avatar qmarcou commented on July 25, 2024

Great to hear that changing your compiler did "solve" your problem!
I had a quick look at the new logs, I'm still not sure why this compilation fails with GCC 8, i'll try and look into it, I'll leave this issue open meanwhile.
Thanks!
Quentin

from igor.

pdtrang avatar pdtrang commented on July 25, 2024

I got the same error and was able to fix it with @jtextor suggestion. Thank you!

from igor.

Related Issues (20)

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.