Bug 208475 - [new port]: devel/simavr Simulator for several Atmel AVR chips
Summary: [new port]: devel/simavr Simulator for several Atmel AVR chips
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kurt Jaeger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-03 01:29 UTC by Felix Palmen
Modified: 2016-04-06 16:11 UTC (History)
2 users (show)

See Also:


Attachments
the devel/simavr port (12.04 KB, application/x-shar)
2016-04-03 01:29 UTC, Felix Palmen
no flags Details
the devel/simavr port (fixed) (12.24 KB, text/plain)
2016-04-06 09:12 UTC, Felix Palmen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Palmen 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 2016-04-03 10:31:03 UTC
testbuilds@work
Comment 2 Kurt Jaeger freebsd_committer 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 2016-04-03 14:29:30 UTC
Can you check, maybe test with poudriere and update the port ?
Comment 4 Felix Palmen 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 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 2016-04-06 12:46:14 UTC
testbuilds are fine.
Comment 7 commit-hook freebsd_committer 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 2016-04-06 16:11:44 UTC
Committed, thanks!