Menu

Compile error

Stefan
2014-04-21
2014-04-28
  • Stefan

    Stefan - 2014-04-21

    Running bootstrap/host_scripts/complete_bootstrap.sh with vmware and
    slackware

    /common_functions.shinc: line 395: systemd-detect-virt: command not found
    and package "make" failes

    KX_PKG_FAIL Host pass bootstrap_3 package make FAILED [2]
    Command exited with non-zero status 2

    What do I do when I get failures like this.

    --
    Regards

    Stephen Petersen


    This email is free from viruses and malware because avast! Antivirus protection is active.
    http://www.avast.com

     
  • KaarPoSoft

    KaarPoSoft - 2014-04-21

    Hi Stephen,

    Sorry for the late reply (I was offline trying to overclock my rig).

    /common_functions.shinc: line 395: systemd-detect-virt: command not found

    You can safely ignore this message.

    I shall remove it in the next release: https://sourceforge.net/p/kaarpux/tickets/3/

    KX_PKG_FAIL Host pass bootstrap_3 package make FAILED [2]

    Have a look at
    bootstrap/log/bootstrap_3/make.log

    If you do not spot the problem, please post the file here,
    and I will try to help out...

    (I have build with Fedora and Ubuntu as hosts, not slackware)

    /Henrik

     
  • KaarPoSoft

    KaarPoSoft - 2014-04-22

    I have been able to reproduce and fix the issue:
    See ticket #4

    Fixed in commit 44c806f4

    So, please try again with latest git.

    Thank you for reporting this issue, and apologies for the bug.

     
  • Anonymous

    Anonymous - 2014-04-22

    Busy week work wise, I probably won't get back to it until the weekend.
    the error was in the log file.
    In file included from guile.c:25:0:
    /usr/include/guile/2.0/libguile.h:25:17: fatal error: gmp.h: No such file or directory
    #include <gmp.h>
    ^
    compilation terminated.

    Also downloading bootstrap, the download breaks at http://pkg-shadow.alioth.debian.org/releases/shadow-4.1.5.1.tar.bz2 I had to edit it to the latest location as in the LFS docs.

    Steve

     

    Last edit: Anonymous 2014-04-23
  • Anonymous

    Anonymous - 2014-04-24

    BTW whats the procedure after I fix, do I just rerun the install or should I delete and start again.

    Steve

     

    Last edit: Stephen 2014-04-24
  • KaarPoSoft

    KaarPoSoft - 2014-04-24

    1) if you change anything in the master directory, run master/make_scripts.sh

    2) you can edit bootstrap/host_scripts/complete_bootstrap.sh and comment out anything after cd "${KX_BASE}" and before kx_build_host_pkg <package_that_failed> or before the kx_parallel_start before the kx_build_host_pkg_parallel <package_that_failed>

    3) this procedure sucks, but that's how it is for the bootstrap phase.
    After you have a bootable KaarPux and build the linux phase, you can do things like linux/scripts/complete_linux_gnome.sh <start-from-this-package>

    4) Although I sometimes use (2) and often use (3), I always do a complete re-build afterwards.

     
  • Stephen

    Stephen - 2014-04-24

    Too late I deleted (kept a backup of the downloads directory), but I will use above next time (very soon).

    Steve

     
  • Stephen

    Stephen - 2014-04-24

    BTW
    I get this error root@kaarPux:/mnt/kxmnt/home/kaarpux/kaarpux# bootstrap/host_scripts/complete_bootstrap.sh: line 20: /bin/time: No such file or directory
    Slackware location is /usr/bin/time , I edited complete_bootstrap.sh to suit.
    Steve

     
  • Stephen

    Stephen - 2014-04-26

    Updated Fixed, it was the localdef line, bad command*
    Damm, thought it would compile that time, got to bootstrap 4 and got th error on the postconfigure_bootstrap_4.sh , this from the log.

    KAARPUX: ------------------------------------------------------------
    KAARPUX: Installing locales
    KAARPUX: ------------------------------------------------------------

    mkdir: created directory '/usr/lib/locale'
    Try localedef --help' orlocaledef --usage' for more information.

    Ok, I used this in custom_definitions.shinc

    ============================================================

    Target definitions - LOCALIZATION

    ============================================================

    KX_LOCALE="Australia/Brisbane"
    KX_LOCALEDEF="localedef -i en_AU -f UTF-8"
    KX_GROFF_PAGE="A4"
    KX_CONSOLE_KEYMAP="dk-latin1"
    KX_CONSOLE_UNICODE="1"
    KX_LANG="en_AU.UTF-8"
    KX_XKB_LAYOUT="en"

    Would that be the problem?

    Steve

     

    Last edit: Stephen 2014-04-26
  • Stephen

    Stephen - 2014-04-26

    Ok, now its a flex error at bootstrap 7,
    errors at this
    E 2014-04-26_19:55:30 KX_PKG_FAIL Chroot pass [bootstrap_7] package [flex] FAILED [2]
    Command exited with non-zero status 2
    D 2014-04-26_16:16:42 KX_BLD_TIME 3:38:48 = 13128.15 elapsed; 9531.45 user; 1776.28 sys; 86% cpu

    flex log
    Results:
    Tests succeeded: 44
    Tests FAILED: 2
    Makefile:685: recipe for target 'check-local' failed
    make[4]: [check-local] Error 1
    make[4]: Leaving directory '/home/kaarpux/kaarpux/bootstrap/build/bootstrap_7/flex-2.5.37/tests'
    Makefile:569: recipe for target 'check-am' failed
    make[3]:
    [check-am] Error 2
    make[3]: Leaving directory '/home/kaarpux/kaarpux/bootstrap/build/bootstrap_7/flex-2.5.37/tests'
    Makefile:382: recipe for target 'check-recursive' failed
    make[2]: [check-recursive] Error 1
    make[2]: Target 'check' not remade because of errors.
    make[2]: Leaving directory '/home/kaarpux/kaarpux/bootstrap/build/bootstrap_7/flex-2.5.37/tests'
    Makefile:742: recipe for target 'check-recursive' failed
    make[1]:
    [check-recursive] Error 1
    make[1]: Leaving directory '/home/kaarpux/kaarpux/bootstrap/build/bootstrap_7/flex-2.5.37'
    Makefile:1053: recipe for target 'check' failed
    make: *** [check] Error 2

    Steve

     
  • KaarPoSoft

    KaarPoSoft - 2014-04-26

    localedef

    I would appreciate if you could let me know what the localedef problem was and how you solved it. Maybe I could update the documentation with some hints...

    Flex check error

    I must admit that I have been lazy and run with KX_DISABLE_TEST="Y" only for a long time.

    Now rebuilding with testing, to see if I can recreate your flex check error.

    PS: You may try to set KX_DISABLE_TEST="Y" and rebuild from where it failed.

     
  • Stephen

    Stephen - 2014-04-26

    Ok I will do that, the localedef command I needed was localedef -i en_AU -f UTF-8 en_AU.UTF-8, the one I used (above) caused a error.

    Steve

     
  • Stephen

    Stephen - 2014-04-27

    Ok, the build finished with
    I 2014-04-27_10:52:53 KX_BLD_DONE Building phase [bootstrap] complete
    D 2014-04-27_07:40:58 KX_BLD_TIME 3:11:55 = 11515.09 elapsed; 8085.68 user; 1040.82 sys; 79% cpu
    /mnt/kxmnt/home/kaarpux/kaarpux/bootstrap/shinc/common_functions.shinc: line 424: 18261 Terminated ${KX_SAR_CMD} -S XALL 60 "${KX_BASE}/log/${PHASE}.sar"

    Is that correct?

     
  • KaarPoSoft

    KaarPoSoft - 2014-04-27

    Yes, that is fine.
    I will see if I can remove the "... Terminated ..." output.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.