Bug 208475

Summary: [new port]: devel/simavr Simulator for several Atmel AVR chips
Product: Ports & Packages Reporter: Felix Palmen <zirias>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Only Me CC: pi, zirias
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
the devel/simavr port
none
the devel/simavr port (fixed) none

Description Felix Palmen freebsd_committer freebsd_triage 2016-04-03 01:29:36 UTC
Created attachment 168913 [details]
the devel/simavr port

simavr is an AVR simulator useful for prototyping of an AVR project. It uses avr-gcc's own register definition to simplify creating new targets for supported AVR devices.

In the port, I added an optional, disabled-by-default patch for now that's pending as a pull request and will probably be included in the next release, it makes the debugging output facility of simavr thread-safe.
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2016-04-03 10:31:03 UTC
testbuilds@work
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2016-04-03 14:28:55 UTC
Building the port using poudriere fails to build. On 9.3 the build fails really hard:

93a [00:00:05] ====>> Warning: (devel/simavr): "Makefile", line 59: missing `in' in for
[00:00:05] ====>> Warning: (devel/simavr): ELF in  hd77480 charlcd  i2ctest i2ctest  ledramp ledramp  simduino simduino  ssd1306 ssd1306demo  timer_64led timer_64led
[00:00:05] ====>> Warning: (devel/simavr): "Makefile", line 68: for-less endfor
[00:00:05] ====>> Warning: (devel/simavr): make: fatal errors encountered -- cannot continue
"Makefile", line 59: missing `in' in for
ELF in  hd77480 charlcd  i2ctest i2ctest  ledramp ledramp  simduino simduino  ssd1306 ssd1306demo  timer_64led timer_64led
"Makefile", line 68: for-less endfor
make: fatal errors encountered -- cannot continue

The other build failures see:

http://people.freebsd.org/~pi/logs/devel__simavr-10a-1459689915.txt
http://people.freebsd.org/~pi/logs/devel__simavr-10i-1459689915.txt
http://people.freebsd.org/~pi/logs/devel__simavr-cur-1459689915.txt
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2016-04-03 14:29:30 UTC
Can you check, maybe test with poudriere and update the port ?
Comment 4 Felix Palmen freebsd_committer freebsd_triage 2016-04-03 18:15:52 UTC
Hi, thanks a lot for the logs, I already have a pretty good idea what's causing this. If it's true, I'll have to find a better way of installing the examples because I'm obviously using some newer "make" feature. Sorry for not using poudriere myself, it's planned as soon as my main server is switched to FreeBSD (in a few months) -- but in this case I feel quite positive about fixing the issue properly from the logs. Expect a corrected version soon.
Comment 5 Felix Palmen freebsd_committer freebsd_triage 2016-04-06 09:12:13 UTC
Created attachment 169028 [details]
the devel/simavr port (fixed)

Here's the fixed version. It took me a bit longer because, although the 9.3 build error was pretty obvious, the others weren't, so I had to setup a vm for poudriere testing.

Changes:
  * use Makefile syntax 9.3 make understands
  * patch upstream Makefile for parallel builds
  * add missing dependencies on bash and pkgconf

Build logs:
http://palmen-it.de/paste/fbsd-ports/simavr/20160406_1.3_9.3-RELEASE_amd64.log
http://palmen-it.de/paste/fbsd-ports/simavr/20160406_1.3_11.0-CURRENT_amd64.log
Comment 6 Kurt Jaeger freebsd_committer freebsd_triage 2016-04-06 12:46:14 UTC
testbuilds are fine.
Comment 7 commit-hook freebsd_committer freebsd_triage 2016-04-06 16:09:53 UTC
A commit references this bug:

Author: pi
Date: Wed Apr  6 16:09:06 UTC 2016
New revision: 412631
URL: https://svnweb.freebsd.org/changeset/ports/412631

Log:
  New port: devel/simavr

  This is a port of simavr, an AVR simulator using avr-gcc's register
  definitions.

  WWW: https://github.com/buserror/simavr

  PR:		208475
  Submitted by:	Felix Palmen <felix@palmen-it.de>

Changes:
  head/devel/Makefile
  head/devel/simavr/
  head/devel/simavr/Makefile
  head/devel/simavr/distinfo
  head/devel/simavr/files/
  head/devel/simavr/files/patch-examples_Makefile.opengl
  head/devel/simavr/files/patch-examples_parts_uart__pty.c
  head/devel/simavr/files/patch-simavr_Makefile
  head/devel/simavr/pkg-descr
  head/devel/simavr/pkg-plist
Comment 8 Kurt Jaeger freebsd_committer freebsd_triage 2016-04-06 16:11:44 UTC
Committed, thanks!