necpp icon indicating copy to clipboard operation
necpp copied to clipboard

Build Failure on Arch Linux

Open fisik-yum opened this issue 3 years ago • 5 comments

Hello there, I'm trying to build this project to no avail. Using the steps outlined in #70, the build proceeds further but still fails with this error. I am using the steps from Install.md to build necpp. This is not the AUR package. I've tried using build flags "-j4" and changing the C++ that gcc is to use. Any help would be appreciated. Thanks.

In file included from c_geometry.h:30,
                 from c_geometry.cpp:19:
nec_wire.h: In constructor ‘nec_wire::nec_wire(const nec_3vector&, const nec_3vector&, nec_float, int)’:
nec_wire.h:31:19: error: implicitly-declared ‘constexpr nec_3vector::nec_3vector(const nec_3vector&)’ is deprecated [-Werror=deprecated-copy]
   31 |                 : x0(a), x1(b), radius(in_radius), _tag_id(id)
      |                   ^~~~~
In file included from c_geometry.h:20:
math_util.h:219:23: note: because ‘nec_3vector’ has user-provided ‘nec_3vector& nec_3vector::operator=(const nec_3vector&)’
  219 |   inline nec_3vector& operator=(const nec_3vector& copy) {
      |                       ^~~~~~~~
nec_wire.h:31:26: error: implicitly-declared ‘constexpr nec_3vector::nec_3vector(const nec_3vector&)’ is deprecated [-Werror=deprecated-copy]
   31 |                 : x0(a), x1(b), radius(in_radius), _tag_id(id)
      |                          ^~~~~
math_util.h:219:23: note: because ‘nec_3vector’ has user-provided ‘nec_3vector& nec_3vector::operator=(const nec_3vector&)’
  219 |   inline nec_3vector& operator=(const nec_3vector& copy) {
      |                       ^~~~~~~~
nec_wire.h: In member function ‘nec_3vector nec_wire::parametrize(nec_float) const’:
nec_wire.h:37:35: error: implicitly-declared ‘constexpr nec_3vector::nec_3vector(const nec_3vector&)’ is deprecated [-Werror=deprecated-copy]
   37 |                 nec_3vector ret = x0;
      |                                   ^~
math_util.h:219:23: note: because ‘nec_3vector’ has user-provided ‘nec_3vector& nec_3vector::operator=(const nec_3vector&)’
  219 |   inline nec_3vector& operator=(const nec_3vector& copy) {
      |                       ^~~~~~~~
nec_wire.h:39:24: error: implicitly-declared ‘constexpr nec_3vector::nec_3vector(const nec_3vector&)’ is deprecated [-Werror=deprecated-copy]
   39 |                 return ret;
      |                        ^~~
math_util.h:219:23: note: because ‘nec_3vector’ has user-provided ‘nec_3vector& nec_3vector::operator=(const nec_3vector&)’
  219 |   inline nec_3vector& operator=(const nec_3vector& copy) {
      |                       ^~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:798: test_manager-c_geometry.o] Error 1

fisik-yum avatar Dec 13 '22 23:12 fisik-yum

Likely fixed with https://github.com/tmolteno/necpp/commit/4d6be66d79e737620f796e5073f60d0940f4384e

Unfortunately, there is no release which includes this change ...

StefanBruens avatar Feb 15 '23 04:02 StefanBruens

I'm happy to do a release. if this helps. Are you building from the master branch?

git pull
make -f Makefile.git
make -j 4

This works on debian linux.

tmolteno avatar Feb 16 '23 22:02 tmolteno

Hi. Yes, if I remember correctly, I'm building from the master branch. I would be thankful if you could do a release.

On Thursday, February 16, 2023, Tim Molteno @.***> wrote:

I'm happy to do a release. if this helps. Are you building from the master branch?

git pull make -f Makefile.git make -j 4

This works on debian linux.

— Reply to this email directly, view it on GitHub https://github.com/tmolteno/necpp/issues/74#issuecomment-1433847822, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM47ELPA2MBYOCAH3WQYROTWX2V6DANCNFSM6AAAAAAS5ZUATY . You are receiving this because you authored the thread.Message ID: @.***>

fisik-yum avatar Feb 18 '23 15:02 fisik-yum

math_util.h:219:23: note: because ‘nec_3vector’ has user-provided ‘nec_3vector& nec_3vector::operator=(const nec_3vector&)’
  219 |   inline nec_3vector& operator=(const nec_3vector& copy) {

This ^ matches the line numbers of 1.6.1, but not the master branch for anything more recent than ~2016.

StefanBruens avatar Feb 18 '23 16:02 StefanBruens

The error no longer appears when building the current master branch.

StefanBruens avatar Feb 19 '23 18:02 StefanBruens