Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101919 - app-emulation/simulavrxx: new package
Summary: app-emulation/simulavrxx: new package
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Default Assignee for New Packages
URL: http://www.nongnu.org/simulavr/
Whiteboard:
Keywords: EBUILD
: 81686 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-09 17:28 UTC by Oliver Regenfelder
Modified: 2021-03-22 00:44 UTC (History)
15 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for simulavr 0.8.006 (simulavrxx-0.8.006.ebuild,751 bytes, text/plain)
2005-08-09 17:30 UTC, Oliver Regenfelder
Details
simulavrxx-0.8.006.ebuild (simulavrxx-0.8.006.ebuild,1.08 KB, text/plain)
2005-11-18 07:27 UTC, Henrik Brix Andersen
Details
ebuild for simulavrxx w/ fix for HWPort errror (simulavrxx-0.8.006.ebuild,1.14 KB, text/plain)
2007-04-12 09:51 UTC, Eckard Brauer
Details
simulavrxx complains about -fPIC with Eckard Brauer fix. (simulavrxx_error-fPIC.log,2.93 KB, text/plain)
2007-04-12 20:09 UTC, Pablo Trabajos
Details
skelet for ebuild for development version of simulavr (simulavr-9999.ebuild,1.30 KB, text/plain)
2010-07-29 03:14 UTC, Pinky
Details
dev-embedded/simulavr-99999999.ebuild (simulavr-99999999.ebuild,1.36 KB, text/plain)
2010-08-25 21:38 UTC, Richard Westwell
Details
dev-embedded/simulavr-20100719.ebuild (simulavr-20100719.ebuild,1.41 KB, text/plain)
2010-08-25 21:40 UTC, Richard Westwell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Regenfelder 2005-08-09 17:28:58 UTC
Hi,

Please find attached the ebuild for simulavrxx-0.8.006.

It uses RESTRICT="nomirror", as simulavrxx is not (yet) available from any mirror. 

Availability of avr-binutils ist checked by "which avr-ld", as there is
no package to be checked for avr-binutils (they are build by crossdev)

I suggest dev-embedded/simulavrxx as category.

Oliver
Comment 1 Oliver Regenfelder 2005-08-09 17:30:18 UTC
Created attachment 65565 [details]
ebuild for simulavr 0.8.006
Comment 2 Stefan Cornelius (RETIRED) gentoo-dev 2005-10-06 07:30:50 UTC
Tried to emerge, doesn't work with gcc 4.0.2-r1. Used another gcc, worked fine
until: 

make[1]: Entering directory
`/var/tmp/portage/simulavrxx-0.8.006/work/simulavrxx-0.8.006/doc'
TEXINPUTS="../config:$TEXINPUTS" \
MAKEINFO='/bin/sh
/var/tmp/portage/simulavrxx-0.8.006/work/simulavrxx-0.8.006/config/missing --run
makeinfo   -I .' \
texi2dvi --pdf --batch simulavrxx.texinfo
You don't have a working TeX binary (tex) installed anywhere in
your PATH, and texi2dvi cannot proceed without one.  If you want to use
this script, you'll need to install TeX (if you don't have it) or change
your PATH or TEX environment variable (if you do).  See the --help
output for more details.

For information about obtaining TeX, please see http://www.tug.org.  If
you happen to be using Debian, you can get it with this command:
  apt-get install tetex-bin
make[1]: *** [simulavrxx.pdf] Error 1
make[1]: Leaving directory
`/var/tmp/portage/simulavrxx-0.8.006/work/simulavrxx-0.8.006/doc'
make: *** [all-recursive] Error 1
Comment 3 Henrik Brix Andersen 2005-11-12 08:26:16 UTC
*** Bug 81686 has been marked as a duplicate of this bug. ***
Comment 4 Henrik Brix Andersen 2005-11-12 08:27:07 UTC
I'll try to find the time to get this into portage soon.
Comment 5 Henrik Brix Andersen 2005-11-18 07:27:42 UTC
Created attachment 73135 [details]
simulavrxx-0.8.006.ebuild

Please test this ebuild before I include it in portage.
Comment 6 Sandro Bonazzola (RETIRED) gentoo-dev 2006-01-30 11:19:51 UTC
--- ../../simulavrxx-0.8.006.ebuild     2006-01-30 19:59:35.000000000 +0100
+++ simulavrxx-0.8.006.ebuild   2006-01-30 19:59:46.000000000 +0100
@@ -1,4 +1,4 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $


The ebuild compile cleanly on ~x86. I've no time to test it on any app, sorry.
Comment 7 Ian Hubbertz 2006-03-15 07:31:54 UTC
Does not work for me. bfd.h is not found.

Fix for me: 

Remove the sed command in frontof configure:

-sed -i -e "s:/usr/binutils/avr/:/usr/lib/binutils/avr/:" ${S}/configure
+${S}/configure


At my system, the avr binutils are installed in /usr/binutils/avr/ and not in /usr/lib/binutils/avr/



------------- Output ----------------
[...]
checking for python >= 2.1.1... yes
checking bfd search- /usr/lib/binutils/avr/2.16.1/i686-pc-linux-gnu/avr in "include" and "lib"... no
checking bfd search- /usr/lib/binutils/avr/2.16.1/avr in "include" and "lib"... no
checking bfd search- /usr/lib/binutils/avr/2.16.1 in "" and ""... no
checking bfd search- /usr/lib/binutils/avr/2.16.1 in "bfd" and "bfd"... no
checking bfd search- /usr/lib/binutils/avr/2.16.1 in "include" and "lib"... no
checking bfd search- /usr/lib/binutils/avr/2.16.1 in "include" and ""... no
checking bfd search- /usr  /2.16.1/i686-pc-linux-gnu/avr in "include" and "lib"... ./configure: line 22578: /2.16.1/i686-pc-linux-gnu/avr/include: No such file or directory
./configure: line 22579: /2.16.1/i686-pc-linux-gnu/avr/lib: No such file or directory
no
checking bfd search- /usr  /2.16.1/avr in "include" and "lib"... ./configure: line 22597: /2.16.1/avr/include: No such file or directory
./configure: line 22598: /2.16.1/avr/lib: No such file or directory
no
checking bfd search- /usr  /2.16.1 in "" and ""... ./configure: line 22616: /2.16.1/: No such file or directory
./configure: line 22617: /2.16.1/: No such file or directory
no
checking bfd search- /usr  /2.16.1 in "bfd" and "bfd"... ./configure: line 22635: /2.16.1/bfd: No such file or directory
./configure: line 22636: /2.16.1/bfd: No such file or directory
no
checking bfd search- /usr  /2.16.1 in "include" and "lib"... ./configure: line 22654: /2.16.1/include: No such file or directory
./configure: line 22655: /2.16.1/lib: No such file or directory
no
checking bfd search- /usr  /2.16.1 in "include" and ""... ./configure: line 22673: /2.16.1/include: No such file or directory
./configure: line 22674: /2.16.1/: No such file or directory
no
checking bfd search- /usr/i686-pc-linux-gnu/avr/i686-pc-linux-gnu/avr in "include" and "lib"... no
checking bfd search- /usr/i686-pc-linux-gnu/avr/avr in "include" and "lib"... no
checking bfd search- /usr/i686-pc-linux-gnu/avr in "" and ""... no
checking bfd search- /usr/i686-pc-linux-gnu/avr in "bfd" and "bfd"... no
checking bfd search- /usr/i686-pc-linux-gnu/avr in "include" and "lib"... no
checking bfd search- /usr/i686-pc-linux-gnu/avr in "include" and ""... no
checking bfd search- /usr/i686-pc-linux-gnu/avr in "include" and "lib"... no
checking bfd search- /usr/avr in "include" and "lib"... no
checking bfd search- /usr in "" and ""... no
checking bfd search- /usr in "bfd" and "bfd"... no
checking bfd search- /usr in "include" and "lib"... no
checking bfd search- /usr in "include" and ""... no
configure: error:

*** ERROR ***

Provide --with-bfd-path=path-to-your-avr-bfd.h to ".\configure" or ensure
your AVR cross-compiler toolset is in the path (read-elf is used to auto-detect
where your AVR-build libbfd library is).

For example, use the --enable-install-libbfd flag when configuring binutils for
the AVR or execute "make install_libbfd" from your AVR-binutils' bfd subdirectory.
Observe where the files are installed. For example:

  ./configure --with-bfd-path=/home/someuser/build-avr-binutils/bfd

This will make include/bfd.h and lib/libbfd.a available as required
by this package.

Alternatively, you may just keep your AVR-binutils build files around
and point to the bfd subdirectory there.

GNU locate may be useful: locate bfd.h
and see if there's a bfd.h in any of
the AVR directories.



!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/simulavrxx-0.8.006/work/simulavrxx-0.8.006/config.log

!!! ERROR: dev-embedded/simulavrxx-0.8.006 failed.
Call stack:
  ebuild.sh, line 1933:   Called dyn_compile
  ebuild.sh, line 971:   Called src_compile
  simulavrxx-0.8.006.ebuild, line 45:   Called econf

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
---------------------------------------------
Comment 8 Radovid Drobnjak 2007-01-04 12:43:42 UTC
Hi!

I've tried to emerge this ebuild with gcc ver. 4.1.1-r1:4.1

and I got this:

at4433.h:42: error: ISO C++ forbids declaration of 'HWPort' with no type
at4433.h:42: error: expected ';' before '*' token
at4433.h:43: error: ISO C++ forbids declaration of 'HWPort' with no type
at4433.h:43: error: expected ';' before '*' token
at4433.h:44: error: ISO C++ forbids declaration of 'HWPort' with no type
at4433.h:44: error: expected ';' before '*' token
at4433.h:45: error: ISO C++ forbids declaration of 'HWPort' with no type
at4433.h:45: error: expected ';' before '*' token
at4433.h:47: error: ISO C++ forbids declaration of 'HWPort' with no type
at4433.h:47: error: expected ';' before '*' token
at4433.cpp: In constructor 'AvrDevice_at90s4433::AvrDevice_at90s4433()':
at4433.cpp:51: error: 'portb' was not declared in this scope
at4433.cpp:52: error: 'portc' was not declared in this scope
at4433.cpp:53: error: 'portd' was not declared in this scope
at4433.cpp:55: error: 'portx' was not declared in this scope
at4433.cpp:57: error: 'porty' was not declared in this scope
make[3]: *** [at4433.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/simulavrxx-0.8.006/work/simulavrxx-0.8.006/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/simulavrxx-0.8.006/work/simulavrxx-0.8.006/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/simulavrxx-0.8.006/work/simulavrxx-0.8.006/src'
make: *** [all-recursive] Error 1

!!! ERROR: dev-embedded/simulavrxx-0.8.006 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  simulavrxx-0.8.006.ebuild, line 46:   Called die

------------------------------------------------------------------------------

I see here, that somebody got an clean instalation with another version of gcc.
Which one?

does somebody know how to fix this? I-ve got a similar print making the original source.

thx
Radovid
Comment 9 Pablo Trabajos 2007-01-28 11:41:34 UTC
I'm getting the same as Radovid Drobnjak. GCC 4.1.1-r1.
Comment 10 Eckard Brauer 2007-04-12 09:51:32 UTC
Created attachment 116059 [details]
ebuild for simulavrxx w/ fix for HWPort errror

Inserting a one line patch (forward declaring HWPort) fixes the HWPort issue in at4433.h for me.

Please try it out.

Eckard
Comment 11 Pablo Trabajos 2007-04-12 20:09:14 UTC
Created attachment 116089 [details]
simulavrxx complains about -fPIC with Eckard Brauer fix.

Last fix did solve the problem with at4433.h but brought a new problem over the table. See attached log. I tried:
>CXXFLAGS="${CFLAGS} -fPIC" paludis -ia simulavrxx
but spits same error.

I didn't know if it was complaining about avr-gcc or simulavrxx because there are references to avr-gcc somewhere at the output, so I recompiled 'crossdev -t avr' with -fPIC but no luck.

This happens with paludis and also emerge (with and without -fPIC in both cases).
Comment 12 Thomas Capricelli 2009-06-30 21:09:43 UTC
untouched for more than two years.... i guess it's dead, right? 
Comment 13 Pinky 2010-07-29 03:07:15 UTC
Project seems be alive. Is renamed back to simulavr.
Comment 14 Pinky 2010-07-29 03:14:48 UTC
Created attachment 240539 [details]
skelet for ebuild for development version of simulavr

This is proposal for ebuild of GIT version (no final release yet).

This is not intended to be put directly into portage because of some unresolved problems:

NEED FIX
* path to libbfd is hardcoded and set to single binutils version!
* depends on bug 147155
* seems there is another problem with crossbuild binutils, does not install bfd.h (BUG ?)

and it should be checked also:
* create USE doc
* create USE examples
* probably is not installed some DOC files
Comment 15 Pinky 2010-07-29 03:29:12 UTC
missing bfd.h reported as bug 330299
Comment 16 Richard Westwell 2010-08-25 21:38:47 UTC
Created attachment 244611 [details]
dev-embedded/simulavr-99999999.ebuild

slightly tweaked the ebuild to get it to build, and added swig v2 to the depend
the doc generation seems a bit broken though
Comment 17 Richard Westwell 2010-08-25 21:40:13 UTC
Created attachment 244613 [details]
dev-embedded/simulavr-20100719.ebuild

slightly tweaked the ebuild to get it to build, and added swig v2 to the depend
the doc generation seems a bit broken though
Comment 18 W. Trevor King 2012-08-13 20:40:07 UTC
I've touched up the latest live ebuild and added it to my `wtk` overlay.  I haven't tested out all the use flags yet; I'll probably get to that tonight.
Comment 19 Thomas Capricelli 2015-10-28 13:47:54 UTC
Any chance of having this in the main tree at one point ?
Comment 20 Thomas Capricelli 2015-11-16 13:40:23 UTC
1.0.0 was released in february 2012, btw.