GithubHelp home page GithubHelp logo

Build failure on Manjaro 64-bit about litebsd HOT 11 OPEN

sergev avatar sergev commented on August 15, 2024
Build failure on Manjaro 64-bit

from litebsd.

Comments (11)

majenkotech avatar majenkotech commented on August 15, 2024

Why build with sudo? That can only break things.

Certain environment variables need to be set. If those aren't set (or they aren't getting through sudo) then you can expect it to fail.

from litebsd.

 avatar commented on August 15, 2024

I built again without sudo. Here is what I get.

[kpapak@parthenopi LiteBSD]$ bmake kernel
bmake -Csys/compile all
bmake -C../../usr.sbin/config
gcc  -o config config.o main.o lang.o mkioconf.o mkmakefile.o mkglue.o mkheaders.o mkswapconf.o -ll
/usr/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake[2]: stopped in /home/kpapak/LiteBSD/usr.sbin/config
*** Error code 1

Stop.
bmake[1]: stopped in /home/kpapak/LiteBSD/sys/compile
*** Error code 1

Stop.
bmake: stopped in /home/kpapak/LiteBSD

from litebsd.

majenkotech avatar majenkotech commented on August 15, 2024

Install libfl-dev (or whatever your mungeara equivalent is).

from litebsd.

wu-lei avatar wu-lei commented on August 15, 2024

macDeMacBook-Pro:LiteBSD mac$ bmake kernel
bmake -Csys/compile all
bmake -C../../usr.sbin/config
byacc -d config.y
bmake[2]: exec(byacc) failed (No such file or directory)
*** Error code 1

Stop.
bmake[2]: stopped in /Users/mac/LiteBSD/usr.sbin/config
*** Error code 1

Stop.
bmake[1]: stopped in /Users/mac/LiteBSD/sys/compile
*** Error code 1

Stop.
bmake: stopped in /Users/mac/LiteBSD
macDeMacBook-Pro:LiteBSD mac$

from litebsd.

majenkotech avatar majenkotech commented on August 15, 2024

Install byacc?

from litebsd.

wu-lei avatar wu-lei commented on August 15, 2024

Yes, Thanks

from litebsd.

wu-lei avatar wu-lei commented on August 15, 2024

mkdep: error: unable to find utility "mkdep", not a developer tool or in PATH
*** Error code 72
Stop.
bmake[3]: stopped in /Users/mac/LiteBSD/sys/compile/SNADPIC.pic32
*** Error code 1

from litebsd.

majenkotech avatar majenkotech commented on August 15, 2024

Install mkdep...?

To forestall future questions, if you get a "not found" like that first check to see if there is a package that provides it (with port or homebrew, whatever you use).

from litebsd.

wu-lei avatar wu-lei commented on August 15, 2024

Also produced some new error, from which one?

1748: #TODO: something wrong with nested interrupts
^ (107) illegal # directive "TODO" (warning)
'mips32r2' is not a recognized processor for this target (ignoring processor)
'mips32r2' is not a recognized processor for this target (ignoring processor)
../../mips/pic32/locore.s:3:16: error: unexpected token in '.set' directive
.set noreorder # Don't allow the assembler to reorder instructions.
...
...
../../mips/pic32/locore.s:1547:1: error: invalid instruction mnemonic 'lw'
lw $27, 0xffffc000+0+(34 * 4)
^~
../../mips/pic32/locore.s:1548:1: error: invalid instruction mnemonic 'mtc0'
mtc0 $27, $14 # Restore EPC.
^~~~
../../mips/pic32/locore.s:1549:1: error: invalid instruction mnemonic 'eret'
eret # Return from the interrupt.
^~~~
*** Error code 1
Stop.
bmake[3]: stopped in /Users/mac/LiteBSD/sys/compile/SNADPIC.pic32
*** Error code 1
Stop.
bmake[2]: stopped in /Users/mac/LiteBSD/sys/compile
*** Error code 1
Stop.
bmake[1]: stopped in /Users/mac/LiteBSD/sys/compile
*** Error code 1
Stop.
bmake: stopped in /Users/mac/LiteBSD

from litebsd.

majenkotech avatar majenkotech commented on August 15, 2024

It sounds like you're not using the MIPS cross compiler. TBH I am not sure if compiling on MacOS works or not. I do all development (and in fact everything) on Linux.

from litebsd.

wu-lei avatar wu-lei commented on August 15, 2024

The problem is in $ export MIPS_GCC_ROOT = / usr / local / mips-2014.05.
Thank you very much majenkotech.
sh ../../conf/newvers.sh; /usr/local/mips-2014.05/bin/mips-elf-gcc -g -mips32r2 -EL -msoft-float -nostdinc -fno-builtin -Werror -Wall -O -I. -I../.. -DSNADPIC -DPIC32MZ -DCONS_MINOR=1 -DCONS_MAJOR=17 -DINET -DPROCFS -DFDESC -DKERNFS -DUNION -DFFS -DFIFO -DHZ=100 -DCPU_KHZ=200000 -DBUFPAGES=18 -DNBUF=18 -DNMBCLUSTERS=64 -DNKMEMCLUSTERS=64 -DDEBUG -DDIAGNOSTIC -DDEVPAGER -DVNODEPAGER -DSWAPPAGER -DBUTTON1_PORT=TRISD -DBUTTON1_PIN=15 -DBUTTON1_INVERT -DSD_LED_PORT=TRISF -DSD_LED_PIN=8 -DKERNEL -D_KERNEL -c vers.c; rm -f vmunix.elf
/usr/local/mips-2014.05/bin/mips-elf-gcc -mips32r2 -EL -nostdlib -T ../../mips/pic32/bare-mz.ld -Wl,-Map=vmunix.map -Wl,--oformat=elf32-littlemips ${SYSTEM_OBJ} vers.o -L../../libkern -lkern -o vmunix.elf
/usr/local/mips-2014.05/bin/mips-elf-size vmunix.elf; /usr/local/mips-2014.05/bin/mips-elf-objcopy -O ihex --change-addresses=0x80000000 vmunix.elf vmunix.hex; /usr/local/mips-2014.05/bin/mips-elf-objdump -d -S vmunix.elf > vmunix.dis
text data bss dec hex filename
496148 14360 17872 528380 80ffc vmunix.elf
macDeMacBook-Pro:LiteBSD mac$

from litebsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.