Comments (9)
May it be the usual issue with previously compiled Scheme code? Have you tried to wholly remove ~/.cache/guile
? Have you used make precompile
previously with lepton. Some .go
files may still exist then in your installation directory.
from lepton-eda.
Do you have the same problem when building with just
./configure && make && make install
on your system
(i.e. not using the rpmbuild procedure)?
from lepton-eda.
It is related to ldconfig and not finding the proper libs including .so.major. We had a hack for this which no longer works but it was pointed out that you had included code to try to solve the problem here: 2f9c7ae#diff-2466c34d3613b509adae8681c3b463e4d8874839028f7c43709da385ed8faaea
However exporting USE_LDCONFIG does get past the problem we were seeing above and now we have:
[baz@localhost ~]$ lepton-schematic
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /usr/bin/lepton-schematic
;;; compiling /usr/share/lepton-eda/scheme/lepton/srfi-37.scm
;;; compiling /usr/share/lepton-eda/scheme/lepton/core/gettext.scm
;;; compiling /usr/share/lepton-eda/scheme/lepton/m4.scm
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/share/lepton-eda/scheme/lepton/m4.scm.go
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/share/lepton-eda/scheme/lepton/core/gettext.scm.go
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/share/lepton-eda/scheme/lepton/srfi-37.scm.go
;;; compiling /usr/share/lepton-eda/scheme/lepton/ffi.scm
;;; compiling /usr/share/lepton-eda/scheme/lepton/ffi/lib.scm
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/share/lepton-eda/scheme/lepton/ffi/lib.scm.go
;;; WARNING: compilation of /usr/share/lepton-eda/scheme/lepton/ffi.scm failed:
;;; In procedure dlopen: file "libglib-2.0.so", message "libglib-2.0.so: cannot open shared object file: No such file or directory"
;;; WARNING: compilation of /usr/bin/lepton-schematic failed:
;;; Unbound variable: libglib
Backtrace:
3 (primitive-load "/usr/bin/lepton-schematic")
In ice-9/eval.scm:
187:27 2 (_ _)
223:20 1 (proc #<directory (guile-user) 7ff0e6daac80>)
In unknown file:
0 (%resolve-variable (7 . liblepton_init) #<directory (gu…>)
ERROR: In procedure %resolve-variable:
Unbound variable: liblepton_init
[baz@localhost ~]$
Do you have the same problem when building with just
./configure && make && make install
on your system (i.e. not using the rpmbuild procedure)?
If you really feel it will help I will test in a VM snapshot.
from lepton-eda.
Manual build in Mageia cauldron fully updated produces the same error as the package build.
I had to force gtk3 with --with-gtk3 and I exported USE_LDCONFIG before running ./configure.
[baz@localhost ~]$ lepton-schematic
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /usr/local/bin/lepton-schematic
;;; compiling /usr/local/share/lepton-eda/scheme/lepton/srfi-37.scm
;;; compiling /usr/local/share/lepton-eda/scheme/lepton/core/gettext.scm
;;; compiling /usr/local/share/lepton-eda/scheme/lepton/m4.scm
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/local/share/lepton-eda/scheme/lepton/m4.scm.go
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/local/share/lepton-eda/scheme/lepton/core/gettext.scm.go
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/local/share/lepton-eda/scheme/lepton/srfi-37.scm.go
;;; compiling /usr/local/share/lepton-eda/scheme/lepton/ffi.scm
;;; compiling /usr/local/share/lepton-eda/scheme/lepton/ffi/lib.scm
;;; compiled /home/baz/.cache/guile/ccache/3.0-LE-8-4.5/usr/local/share/lepton-eda/scheme/lepton/ffi/lib.scm.go
;;; WARNING: compilation of /usr/local/share/lepton-eda/scheme/lepton/ffi.scm failed:
;;; In procedure dlopen: file "liblepton.so", message "liblepton.so: cannot open shared object file: No such file or directory"
;;; WARNING: compilation of /usr/local/bin/lepton-schematic failed:
;;; Unbound variable: liblepton
Backtrace:
3 (primitive-load "/usr/local/bin/lepton-schematic")
In ice-9/eval.scm:
187:27 2 (_ _)
223:20 1 (proc #<directory (guile-user) 7fda481d3c80>)
In unknown file:
0 (%resolve-variable (7 . liblepton_init) #<directory (gu…>)
ERROR: In procedure %resolve-variable:
Unbound variable: liblepton_init
[baz@localhost ~]$
from lepton-eda.
Use of USE_LDCONFIG
is described in NEWS, you may want to do: ./configure USE_LDCONFIG=/sbin/ldconfig
. At the make
stage, it should create m4.scm
with library definitions, that will be installed e.g. in /usr/local/share/lepton-eda/scheme/lepton/m4.scm
. Please check if that file contains non-empty strings in definitions of %ldconfig-something
variables and that those files really exist.
from lepton-eda.
Reading the notes again with that patch I realized that it was expecting more than just USE_LDCONFIG so I corrected that with: export USE_LDCONFIG=/usr/sbin/ldconfig before running ./configure
It made no difference to the manual build (I preceded it with make clean). Runtime errors were the same.
However rebuilding the package with the corrected USE_LDCONFIG=... and installing it (after doing a make uninstall of the local package) it now runs!
I will push this to our build system and go to bed. I will test it in the morning and let you know.
I have a couple of schematics to draw and was hitting an issue with copy/pasting which was what prompted me to try the latest version, so I will be doing some testing once it's up and running :)
Thanks for your help.
from lepton-eda.
My pleasure. Glad to hear it worked for you. As for make clean
, it won't work if the package was configured before with wrong USE_LDCONFIG
setting. It's better to do autoreconf -ifv && ./configure ...
before make
in such a case.
from lepton-eda.
Hi,
Thanks for the tips - I never build on my machine except for packages so it's a long time since I used make; make install ;)
Something odd is happening.
Today I have tested the package built overnight which ran OK in my VM from my local test package.
On first run I was back with the original error in the top post - ;;; no code for module (lepton srfi-37)
I logged out and logged in to a clean user and it ran OK - I logged back into my regular cauldron test user and it also ran OK.
So it appears to have needed a log out/in after install. Any thoughts?
from lepton-eda.
I have only one guess. After installation, your environment/paths were not updated to use new Lepton dynamic libraries, thus the error. Usually, sudo ldconfig
cures this in place. After log out and in those things were set up from scratch by your shell/wm, which fixed it. (Disclaimer: I may be wrong ;-) )
from lepton-eda.
Related Issues (20)
- Links to gitter.im are broken HOT 7
- Cannot load lepton-schematic configuration HOT 22
- LM317 has pinseq visible instead of pinnumber HOT 2
- Segfault after multiple opening/closing of Edit Attributes dialog box HOT 19
- Custom Color Maps? HOT 2
- lepton-schematic not starting HOT 9
- Behavioral source in Lepton-eda HOT 4
- lepton-tragesym fails HOT 2
- *wishlist* Customizable net/bus width and junction cue sizes HOT 1
- segfault crash is lepton-schematic HOT 2
- Switcap backend doesn't work completely, like it does in gEDA/gaf HOT 8
- lepton-eda_1.9.11 from https://packages.ubuntu.com/groovy/lepton-eda cannot be installed on Ubuntu 20.04.3 HOT 3
- make and make install not working HOT 16
- lepton-schematic ubuntu impish fails to run HOT 7
- Gtk3 port: issue with zooming when gui::warp-cursor=true
- Q: Is this Functional Electronic Computer-Aided Design (fECAD) solution? (Basically OpenSCAD for electronics?) HOT 2
- lepton-archive --extract behavior
- Failure to compile schema at first start HOT 1
- lepton-netlist will not run HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lepton-eda.