Seeking feedback for error: "undefined reference to `main', ld returned 1 exit status"
Hi there,
I'm giving a try to this greatly promising package.
Here's the error I'm getting. What's your feeling about it?
What software configuration do you guys run linux-packaging with?
To load "bookshops":
Load 1 ASDF system:
bookshops
; Loading "bookshops"
........
Switching to the BALLAND2006 optimizer
..........................................
[package bookshops.datasources.dilicom]...........
[package bookshops.datasources.dilicom-flat-text].
[package bookshops.datasources.scraper-fr]........
[package bookshops.parameters]....................
[package bookshops.utils].........................
[package bookshops.models]........................
[package bookshops]...............................
[package bookshops-web]...........................
[package bookshops.manager].......................
[package bookshops.commands]......................
[package bookshops.management]....................
[package bookshops.messages].........
; cc -o /home/vince/.cache/common-lisp/sbcl-1.4.5.debian-linux-x64/home/vince/projets/openbookstore/openbookstore/bookshops-runtime-tmpGHU3ALSV -g -Wl,--export-dynamic -no-pie -ldl -lpthread -lz -lm -lm
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
Unhandled UIOP/RUN-PROGRAM:SUBPROCESS-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING
{10005E85B3}>:
Subprocess #<UIOP/LAUNCH-PROGRAM::PROCESS-INFO {10079F3B73}>
with command ("cc" "-o"
"/home/vince/.cache/common-lisp/sbcl-1.4.5.debian-linux-x64/home/vince/projets/openbookstore/openbookstore/bookshops-runtime-tmpGHU3ALSV"
"-g" "-Wl,--export-dynamic" "-no-pie" "-ldl" "-lpthread" "-lz"
"-lm" "-lm")
exited with error code 1
My .asd:
(asdf:defsystem "bookshops"
:defsystem-depends-on ("linux-packaging")
:class "linux-packaging:deb"
:package-name "bookshops"
…
:build-operation "linux-packaging:build-op"
:build-pathname "bookshops"
:entry-point "bookshops:main"
Building with '(asdf:make :bookshops)'
.
(building a binary with asdf:make was working)
I'm on Mint 19, gcc 7.5, ld 2.30. Here SBCL 1.4.5 (2.0.10 installed with Guix gives me some other issues, though probably minor)
linux-packaging deps:
ruby is already the newest version (1:2.5.1).
ruby-dev is already the newest version (1:2.5.1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-0ubuntu2).
sbcl is already the newest version (2:1.4.5-1).
curl is already the newest version (7.58.0-2ubuntu3.13).
dpkg-dev is already the newest version (1.19.0.5ubuntu2.3).
git is already the newest version (1:2.17.1-1ubuntu0.8).
My CL dependencies:
:dexador
:plump
:lquery
:clss ;; might do with lquery only
;; DB
:mito
:mito-auth
;; readline
:unix-opts
:replic
;; utils
:can
:rutils
:str
:listopia ;; list manipulation
:local-time
:local-time-duration
:cl-ppcre
:parse-float
;; cache
:cacle
:cl-json
;; web app
:hunchentoot
:easy-routes
:djula
:cl-slug
:log4cl
:cl-i18n)
Best,