bugSimulavr: an AVR simulator - Bugs: bug #57430, Compiling Source from git with...

 
 

bug #57430: Compiling Source from git with clang on FreeBSD

Submitter:  holm <holm>
Submitted:  Tue 17 Dec 2019 10:21:43 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tomk
Open/Closed:  Closed Component Version:  * simulavr
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 Dec 2019 01:29:36 PM UTC, comment #2: 

Bug reproduced with FreeBSD 12.1, will be fixed with release 1.1. (branch dev-cmake already updated)

Thomas K. <tomk>
Group administrator
Thu 19 Dec 2019 07:24:44 AM UTC, comment #1: 

Hi Holm,

that repository is out of order is maybe because the guys from savannah have to do some maintenance. (I don't know, but it's possible)

Yust to know (and to be able to reproduce it): you use FreeBSD, which release? And do you use the compiler out of the box from your distro or and special one?

And one point more: try instead of master branch the dev-cmake branch. For instructions, how to build, see http://download.savannah.nongnu.org/releases/simulavr/manual-1.1.0-rc1.pdf. Let me know, if you see the same problem there!

cu, Thomas

Thomas K. <tomk>
Group administrator
Tue 17 Dec 2019 10:21:43 AM UTC, original submission:  

Hi,
I've pulled master from git and tried to compile the package on FreeBSD.
(In the moment it seems that your repository is out of order (ngix 502) so I'm trying to restore from sh history what I've done)

sh bootstrap.sh
./configure --prefix=/usr/local --enable-tcl --enable-python=/usr/local/bin/python3.6 --with-tclconfig=/usr/local/lib/tcl8.6

gmake

.. is stopping at compiling cmd/gdbserver.cpp:

cmd/gdbserver.cpp:184:8: error: value of type '__bind<int &, sockaddr *,
unsigned long>' is not contextually
      convertible to 'bool'
    if(bind(sock, (struct sockaddr *)address, sizeof(address)))
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Source:

 if(bind(sock, (struct sockaddr *)address, sizeof(address)))
        avr_error("Can not bind socket: %s", strerror(errno));


bind hast to be preceded with ::

if(::bind(sock, (struct sockaddr *)address, sizeof(address)))
        avr_error("Can not bind socket: %s", strerror(errno));

works.

Next thing is that some generated gtest code is referencing tr1/tuple....it doesn't exit on my system. tr1 is a little bit outdated, please convert to c++11 and tuple.

Regards,

Holm

holm <holm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tomk (Posted a comment)
  • -email is unavailable- added by holm (Submitted the item)
  • -email is unavailable- added by holm
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-20 tomk StatusNone Fixed
        Assigned toNone tomk
        Open/ClosedOpen Closed
    2019-12-17 holm Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code