* [bug #28442] Compiler not seeing module define in load-extension
@ 2009-12-30 15:21 anonymous
2009-12-30 16:04 ` anonymous
0 siblings, 1 reply; 3+ messages in thread
From: anonymous @ 2009-12-30 15:21 UTC (permalink / raw)
To: bug-guile
URL:
<http://savannah.gnu.org/bugs/?28442>
Summary: Compiler not seeing module define in load-extension
Project: Guile
Submitted by: None
Submitted on: Wed 30 Dec 2009 03:21:47 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Attached is a module fashioned after those currently generated by swig. It
uses a scheme wrapper that uses a module import with a rename to import a
module via an extension.
All code still works but the compiler compains that that module provided by
the load-extension does not exist
untar the attached archive and run make. The output I get from git master
is...
gcc -fpic -L/usr/local/include -c test-module.c
gcc -shared test-module.o -o test-module.so
LD_LIBRARY_PATH=. guile -L . test-script.scm
;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-autocompile argument to disable.
;;; compiling ./dir/mymodule.scm
;;; WARNING: compilation of ./dir/mymodule.scm failed:
;;; key misc-error, throw args (#f "~A ~S" ("no code for module" (dir
mymodule-prim)) #f)
see, it does still work: 32
The code has run and worked, the symbols are all there, but the compiler
still warns of "no code for module"
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 30 Dec 2009 03:21:47 PM UTC Name: modexample.tgz Size: 787B By:
None
sample module code
<http://savannah.gnu.org/bugs/download.php?file_id=19395>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28442>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug #28442] Compiler not seeing module define in load-extension
2009-12-30 15:21 [bug #28442] Compiler not seeing module define in load-extension anonymous
@ 2009-12-30 16:04 ` anonymous
2010-01-03 11:41 ` Andy Wingo
0 siblings, 1 reply; 3+ messages in thread
From: anonymous @ 2009-12-30 16:04 UTC (permalink / raw)
To: bug-guile
Follow-up Comment #1, bug #28442 (project guile):
A strace does show guile stat'ing for mymodule-prim(.scm),
...
[pid 3056] stat64("./dir/mymodule-prim.scm", 0xbfcda24c) = -1 ENOENT (No
such file or directory)
[pid 3056] stat64("./dir/mymodule-prim", 0xbfcda24c) = -1 ENOENT (No such
file or directory)
[pid 3056] stat64("/usr/local/share/guile/1.9/dir/mymodule-prim.scm",
0xbfcda24c) = -1 ENOENT (No such file or directory)
[pid 3056] stat64("/usr/local/share/guile/1.9/dir/mymodule-prim",
0xbfcda24c) = -1 ENOENT (No such file or directory)
[pid 3056] stat64("/usr/local/share/guile/site/dir/mymodule-prim.scm",
0xbfcda24c) = -1 ENOENT (No such file or directory)
[pid 3056] stat64("/usr/local/share/guile/site/dir/mymodule-prim",
0xbfcda24c) = -1 ENOENT (No such file or directory)
[pid 3056] stat64("/usr/local/share/guile/dir/mymodule-prim.scm",
0xbfcda24c) = -1 ENOENT (No such file or directory)
[pid 3056] stat64("/usr/local/share/guile/dir/mymodule-prim", 0xbfcda24c) =
-1 ENOENT (No such file or directory)
[pid 3056] stat64("/usr/local/lib/guile/1.9/ccache/dir/mymodule-prim.go",
0xbfcda28c) = -1 ENOENT (No such file or directory)
...
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28442>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug #28442] Compiler not seeing module define in load-extension
2009-12-30 16:04 ` anonymous
@ 2010-01-03 11:41 ` Andy Wingo
0 siblings, 0 replies; 3+ messages in thread
From: Andy Wingo @ 2010-01-03 11:41 UTC (permalink / raw)
To: Andy Wingo, bug-guile
Update of bug #28442 (project guile):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
See discussion in http://article.gmane.org/gmane.lisp.guile.devel/9815.
Closing as invalid, as it appears that the module in question needs to have an
eval-when (or eval-case if 1.8 compatibility is needed). Thanks for the
report, and let us know if you have further problems.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28442>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-03 11:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-30 15:21 [bug #28442] Compiler not seeing module define in load-extension anonymous
2009-12-30 16:04 ` anonymous
2010-01-03 11:41 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).