Undefined symbols for architecture x86_64

Mark Brethen mark.brethen at gmail.com
Tue Sep 18 13:25:41 UTC 2018

Yep, here is his response:

> Aha - when I look at your macports log you do not seem to be fetching Reduce from subversion, you are fetching a source .tar file for it. Well that has not up to now contained profile.dat because one can regenerate what is needed by going (in a build directory where csl.img etc get created)
>  make profile
> which first builds bootstrapreduce (twice over probably so that forward refereces get optimised), then runs all the Reduce test scripts using it (and because that is in profiling mod it is slower than a regular test run). Subsequent to that "make c-code" will use the new profile info to recreate generated-c/u*.cpp etc. Those steps make the file in cslbuild/generated-c and so the copy of a prebuilt set from csl/gene4rated-c would be unnecessary. So this is sort of rational but is a consequence of the difference between the way macports is building stuff and my expectations! I think I have just changed things so that maybe csl/generated-c/profile.dat should get included in the tar source file - making it yet bigger! 

I explained that only a single make command is issued when a port is installed (not counting subports). In this particular case those steps he mentions would need to be in the top-level makefile, correct?

Mark Brethen
mark.brethen at gmail.com

> On Sep 18, 2018, at 7:57 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Sep 17, 2018, at 17:01, Mark Brethen wrote:
>> Adding "-lintl" to configure.ldflags seems to have worked however new errors popped up:
>> :info:build make[3]: *** No rule to make target `/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-csl/work/Reduce-source_4717/csl/cslbase/../generated-c/profile.dat', needed by `/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-csl/work/Reduce-source_4717/csl/cslbase/../../cslbuild/generated-c/profile.dat'.  Stop.
>> :info:build make[2]: *** [all] Error 2
>> :info:build make[1]: *** [/opt/local/var/macports/build/_Users_marbre_ports_math_reduce/reduce-csl/work/Reduce-source_4717/m4/libtool.m4] Error 2
> It's difficult to say why there is no rule to make that target, without looking at the build system. It pretty much always means the Makefile is wrong, so it's something you should ask the developers of reduce-csl.

More information about the macports-dev mailing list