Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646294 - dev-lisp/clisp-2.49-r9 - In file included from ../src/lispbibl.d:1983:0, from ../src/spvw.d:23: ../src/unix.d:139:56: fatal error: asm/page.h: No such file or directory
Summary: dev-lisp/clisp-2.49-r9 - In file included from ../src/lispbibl.d:1983:0, from...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Common Lisp Bugs
URL: https://git.alpinelinux.org/cgit/apor...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-01 12:48 UTC by Kevin Vigouroux
Modified: 2018-03-09 22:22 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,60.05 KB, text/plain)
2018-02-01 12:48 UTC, Kevin Vigouroux
Details
emerge -pqv '=dev-lisp/clisp-2.49-r9::gentoo' (emerge.log,154 bytes, text/plain)
2018-02-01 13:02 UTC, Kevin Vigouroux
Details
environment (environment.log,86.93 KB, text/plain)
2018-02-01 13:03 UTC, Kevin Vigouroux
Details
emerge --info '=dev-lisp/clisp-2.49-r9::gentoo' (info.log,14.25 KB, text/plain)
2018-02-01 13:04 UTC, Kevin Vigouroux
Details
Alpine Linux patch: remove #include <asm/page.h> directive. (clisp-2.49-no_page.h.patch,536 bytes, patch)
2018-03-01 08:32 UTC, Kevin Vigouroux
Details | Diff
(compile phase): unrecognized command line option '-R' (build.log,136.79 KB, text/x-log)
2018-03-01 08:40 UTC, Kevin Vigouroux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Vigouroux 2018-02-01 12:48:05 UTC
Created attachment 517360 [details]
build.log

dev-lisp/clisp-2.49 fails to compile due to a missing include file /usr/include/asm/page.h:

rm -f spvw_calendar.c
ln -s ../src/spvw_calendar.c spvw_calendar.c
rm -f localcharset.h
ln -s ../src/gllib/localcharset.h localcharset.h
gcc -I/var/tmp/portage/dev-lisp/clisp-2.49-r9/work/clisp-2.49/builddir/gllib -O2 -march=native -pipe -fno-pie -Wa,--noexecstack -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -O -DENABLE_UNICODE -DDYNAMIC_FFI -DNO_GETTEXT -I. -c spvw.c
In file included from ../src/lispbibl.d:1983:0,
                 from ../src/spvw.d:23:
../src/unix.d:139:56: fatal error: asm/page.h: No such file or directory
     #include <asm/page.h> /* for SHMLBA on Linux 2.0 */
                                                        ^
compilation terminated.
make: *** [Makefile:1372: spvw.o] Error 1
Comment 1 Kevin Vigouroux 2018-02-01 13:02:55 UTC
Created attachment 517362 [details]
emerge -pqv '=dev-lisp/clisp-2.49-r9::gentoo'
Comment 2 Kevin Vigouroux 2018-02-01 13:03:54 UTC
Created attachment 517364 [details]
environment
Comment 3 Kevin Vigouroux 2018-02-01 13:04:40 UTC
Created attachment 517366 [details]
emerge --info '=dev-lisp/clisp-2.49-r9::gentoo'
Comment 4 Kevin Vigouroux 2018-02-02 07:14:05 UTC
The header page.h is used for linux or kernel modules. The software (clisp) should not rely on internal kernel header.
Comment 5 Kevin Vigouroux 2018-03-01 08:32:02 UTC
Created attachment 521536 [details, diff]
Alpine Linux patch: remove #include <asm/page.h> directive.

Alpine Linux (based on musl libc) provides a patch to solve the issue with <asm/page.h>. This patch seems to be designed for clisp-2.49-r2 (cf. URL above).
Comment 6 Kevin Vigouroux 2018-03-01 08:40:25 UTC
Created attachment 521538 [details]
(compile phase): unrecognized command line option '-R'

Unfortunately, there is a new compilation failure. I believe this error is not related to the current bug report.
Comment 7 Kevin Vigouroux 2018-03-03 09:22:16 UTC
Note: the ebuild "clisp" is not suited for musl-based system.

For example: clisp-2.49-r9.ebuild

line 92 	use elibc_glibc && enable_modules bindings/glibc

(In reply to Kevin Vigouroux from comment #4)
> The header page.h is used for linux or kernel modules. The software (clisp)
> should not rely on internal kernel header.

This comment is still valid but concerns upstream developers.
Comment 8 Chema Alonso Josa (RETIRED) gentoo-dev 2018-03-08 15:32:34 UTC
Can you reproduce this error in the latest clisp release =dev-lisp/clisp-2.49.90?
Comment 9 Kevin Vigouroux 2018-03-09 18:45:06 UTC
I cannot reproduce the error using dev-lisp/clisp-2.49.90. The package installed on my system (musl libc) without problems.
Comment 10 Chema Alonso Josa (RETIRED) gentoo-dev 2018-03-09 22:22:58 UTC
(In reply to Kevin Vigouroux from comment #9)
> I cannot reproduce the error using dev-lisp/clisp-2.49.90. The package
> installed on my system (musl libc) without problems.

Ok, closing then. thx.