Closed ghost closed 7 years ago
Hi,
That's strange it would default to the reg.gc grade. You can check what grades are installed in /usr/lib/mercury/lib. The common ones are hlc.gc or asm_fast.gc. Create a file bower/src/Mercury.params with a line like
CFLAGS += --grade hlc.gc
then it ought to work.
Hi,
sorry that it took me ages to respond. Your proposition did not work for me and since I had lots of stuff to do I left it for a bit. I finally came back to trying to resolve the issue today and I believe I found out what the issue on Arch Linux is: The mercury package I installed does not seem to include some of the archive (.a) files gcc wants to use for static linking. Do you know how to have gcc use dynamic linking instead (i. e. through mmc, of course)? There are .so files present for the missing packages, so using dynamic-linking might just solve it.
Comment out this line in Mercury.options:
MCFLAGS-bower += --mercury-linkage static
I don't see anything in the PKGBUILD that excludes static libraries, so perhaps it something in the Arch packaging system.
That did it, thanks a lot.
I have no idea why the .a files are missing either but please feel free to close the issue.
In case you are interested in putting this info somewhere: I did upload the working PKGBUILD to the AUR as bower-mail (it would conflict with community/bower
otherwise, which is something entirely different).
Ok, cool.
Looking at your PKGBUILD reminded me to tag version 0.8.
v0.8 works great for me, thanks
Hi wangp,
from what I could find in the repository I really liked bower - especially the clean interface and the straightforward config file - so I wanted to try it out myself.
Unfortunately
make
failed due to some sort of missing libraries and since I don't know anything about mercurylang I don't even know for sure whether the problem lies with bower or mercury. I was hoping you might be able to give me a hint as to what the problem could be and maybe even some ideas for fixing it.Regards
You can find the output from compiling bower with
make PARALLEL=-j6
here. This is the output from trying to compile the current (as of March 26th) git version, but release 0.7 produced the same error.To compile mercury 14.01.1 I used the package from the aur. This package basically runs this to compile mercury:
I also tried this in a second run:
Afterwards the package installs mercury as follows: