delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2018/03/20/16:57:20

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 20 Mar 2018 21:55:18 +0100 (CET)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] current gnetlist from git and hierarchy
In-Reply-To: <20180312013908.3dbbb5bc@swips.iqo.uni-hannover.de>
Message-ID: <alpine.DEB.2.20.1803202117510.2530@nimbus>
References: <20180312013908 DOT 3dbbb5bc AT swips DOT iqo DOT uni-hannover DOT de>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 12 Mar 2018, Kai-Martin Knaak wrote:
> This is the gnetlistrc I originally used to set up netlisting:
> --------- $PROJECT/gnetlistrc -------------
> (hierarchy-uref-mangle "enabled")
> (hierarchy-uref-separator "")
> (hierarchy-netname-mangle "enabled")
> (hierarchy-netname-separator "/")
> (hierarchy-netattrib-mangle "disabled")
> (hierarchy-netattrib-separator "/")
> --------------------------------------------

This looks perfectly fine and should work with the current development 
version of gEDA/gaf (which I assume you are using).

> With this set-up I get (gda-gaf freshly compiled from git master):
> /-----------------------------------
> $ gnetlist -g PCB  lasertreiber_0_master.sch
> WARNING: The RC file function 'hierarchy-uref-mangle' is deprecated.
>
> RC configuration functions will be removed in an upcoming gEDA
> release.  Please use configuration files instead.

This warning should probably be removed (or reversed): it refers to the 
"new" configuration format which has never been finished.  Using these 
Scheme procedures is currently the recommended way to configure hierarchy.


> ERROR: no code for module (geda core smob)

This is the actual error message.  I'm not sure what exactly went wrong, 
but it looks like an issue with the installation of the Guile modules.

I'd suggest removing the current installation of gEDA/gaf, re-installing 
(it shouldn't be necessary to re-build the package), and then running 
gschem before you invoke gnetlist for the first time (in theory, this 
shouldn't matter, but apparently, the order in which packages are loaded 
changes the way the packages are compiled--one more reason why I'm not too 
fond of Guile).  If that doesn't help, try the same plus removing the 
Guile cache directories (~/.cache/guile/).


> grep-ing through the source of gnetlist I found a list of hierarchy
> related options in netlist.py . These include
> 	--hierarchy-refdes-separator
> 	--hierarchy-netattrib-mangle
> 	--hierarchy-netname-separator
> So the options I need seem to be available. But how do I activate them?

There are two ways to invoke the netlister: the traditional "gnetlist" and 
the new "xorn netlist".  When the netlister is invoked as "gnetlist", it 
executes the Guile configuration files and gets its information from 
there.  When it is invoked as "xorn netlist", it does not read any 
configuration files but gets its information via the command line (run 
"xorn netlist --help" for more infomation).

Both ways of invoking the netlister are (approximately) equivalent; it's a 
matter of whether you prefer having a long invocation (e.g. when using 
Makefiles) or using a gnetlistrc file.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019