Re: g++ on freebsd
- In reply to: Herbert J. Skuhra: "Re: g++ on freebsd"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 May 2022 16:56:50 UTC
On Mon, May 2, 2022 at 11:54 AM Herbert J. Skuhra <herbert@gojira.at> wrote: > > On Mon, May 02, 2022 at 11:40:58AM -0500, Antonio Olivares wrote: > > I want to create 3d platonic solids using gnuplot. A source code can be found at > > > > http://math.lbl.gov/voro++/download/ > > > > However, compilation fails with > > > > olivares@coolermaster:~/tmp/kerTeX/Documents/voro++-0.4.6 $ make all > > make -C src > > g++ -Wall -ansi -pedantic -O3 -c cell.cc -o cell.o > > make[1]: exec(g++) failed (No such file or directory) > > *** Error code 1 > > > > Stop. > > make[1]: stopped in /usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/src > > *** Error code 1 > > > > Stop. > > make: stopped in /usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6 > > olivares@coolermaster:~/tmp/kerTeX/Documents/voro++-0.4.6 $ gmake all > > gmake -C src > > gmake[1]: Entering directory > > '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/src' > > g++ -Wall -ansi -pedantic -O3 -c cell.cc > > gmake[1]: g++: No such file or directory > > gmake[1]: *** [Makefile:31: cell.o] Error 127 > > gmake[1]: Leaving directory > > '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/src' > > gmake: *** [Makefile:14: all] Error 2 > > > > > > How can I make it work with clang on FreeBSD? > > Try 'gmake CXX=clang++' or modify config.mk. > > -- > Herbert > That did the job! Thank you for your help. olivares@coolermaster:~/tmp/kerTeX/Documents/voro++-0.4.6 $ gmake CXX=clang++ gmake -C src gmake[1]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/src' clang++ -Wall -ansi -pedantic -O3 -c cell.cc clang++ -Wall -ansi -pedantic -O3 -c common.cc clang++ -Wall -ansi -pedantic -O3 -c container.cc clang++ -Wall -ansi -pedantic -O3 -c unitcell.cc clang++ -Wall -ansi -pedantic -O3 -c v_compute.cc clang++ -Wall -ansi -pedantic -O3 -c c_loops.cc clang++ -Wall -ansi -pedantic -O3 -c v_base.cc clang++ -Wall -ansi -pedantic -O3 -c wall.cc clang++ -Wall -ansi -pedantic -O3 -c pre_container.cc clang++ -Wall -ansi -pedantic -O3 -c container_prd.cc rm -f libvoro++.a ar rs libvoro++.a cell.o common.o container.o unitcell.o v_compute.o c_loops.o v_base.o wall.o pre_container.o container_prd.o ar: warning: creating libvoro++.a clang++ -Wall -ansi -pedantic -O3 -L. -o voro++ cmd_line.cc -lvoro++ gmake[1]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/src' gmake -C examples gmake[1]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples' gmake -C basic gmake[2]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/basic' clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o single_cell single_cell.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o platonic platonic.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o random_points random_points.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o import import.cc -lvoro++ gmake[2]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/basic' gmake -C walls gmake[2]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/walls' clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o cylinder cylinder.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o tetrahedron tetrahedron.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o frustum frustum.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o torus torus.cc -lvoro++ gmake[2]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/walls' gmake -C custom gmake[2]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/custom' clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o cell_statistics cell_statistics.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o custom_output custom_output.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o radical radical.cc -lvoro++ gmake[2]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/custom' gmake -C extra gmake[2]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/extra' clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o box_cut box_cut.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o cut_region cut_region.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o superellipsoid superellipsoid.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o irregular irregular.cc -lvoro++ irregular.cc:17:14: warning: unused variable 'phi' [-Wunused-const-variable] const double phi=0.5*(1-sqrt(5.0)); ^ 1 warning generated. gmake[2]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/extra' gmake -C degenerate gmake[2]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/degenerate' clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o degenerate degenerate.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o degenerate2 degenerate2.cc -lvoro++ gmake[2]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/degenerate' gmake -C interface gmake[2]: Entering directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/interface' clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o loops loops.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o polygons polygons.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o odd_even odd_even.cc -lvoro++ clang++ -Wall -ansi -pedantic -O3 -I../../src -L../../src -o find_voro_cell find_voro_cell.cc -lvoro++ gmake[2]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples/interface' gmake[1]: Leaving directory '/usr/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6/examples' olivares@coolermaster:~/tmp/kerTeX/Documents/voro++-0.4.6 $ su - Password: root@coolermaster:~ # cd /home/olivares/tmp/kerTeX/Documents/v v3.4.tar.gz values.dat vort-2022-01-20.mp4 v5.3-and-v2.3.tar.gz venn.eps vygotsky-master.tar.bz2 v6.1.tar.gz venn3.eps vygotsky-master/ vPHlo2P3TG22.mp4 voro++-0.4.6.tar.gz vac.jpg voro++-0.4.6/ root@coolermaster:~ # cd /home/olivares/tmp/kerTeX/Documents/vor voro++-0.4.6.tar.gz voro++-0.4.6/ vort-2022-01-20.mp4 root@coolermaster:~ # cd /home/olivares/tmp/kerTeX/Documents/voro++-0.4.6 root@coolermaster:/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6 # make install make -C src install -d -m 0755 /usr/local/bin install -d -m 0755 /usr/local/lib install -d -m 0755 /usr/local/man install -d -m 0755 /usr/local/man/man1 install -d -m 0755 /usr/local/include install -d -m 0755 /usr/local/include/voro++ install -m 0755 src/voro++ /usr/local/bin install -m 0644 man/voro++.1 /usr/local/man/man1 install -m 0644 src/libvoro++.a /usr/local/lib install -m 0644 src/voro++.hh /usr/local/include/voro++ install -m 0644 src/c_loops.hh /usr/local/include/voro++ install -m 0644 src/cell.hh /usr/local/include/voro++ install -m 0644 src/common.hh /usr/local/include/voro++ install -m 0644 src/config.hh /usr/local/include/voro++ install -m 0644 src/container.hh /usr/local/include/voro++ install -m 0644 src/container_prd.hh /usr/local/include/voro++ install -m 0644 src/rad_option.hh /usr/local/include/voro++ install -m 0644 src/pre_container.hh /usr/local/include/voro++ install -m 0644 src/unitcell.hh /usr/local/include/voro++ install -m 0644 src/v_base.hh /usr/local/include/voro++ install -m 0644 src/v_compute.hh /usr/local/include/voro++ install -m 0644 src/wall.hh /usr/local/include/voro++ install -m 0644 src/worklist.hh /usr/local/include/voro++ root@coolermaster:/home/olivares/tmp/kerTeX/Documents/voro++-0.4.6 # cd .. Best Regards, Antonio