Comments (11)
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.
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.
Install libfl-dev (or whatever your mungeara equivalent is).
from litebsd.
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.
Install byacc?
from litebsd.
Yes, Thanks
from litebsd.
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.
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.
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.
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.
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)
- va_args bug
- New more(1) bug
- Zoneinfo failing to compile (breaks subsequent termcap installation) HOT 3
- #! not working properly HOT 1
- Ramp up getaddrinfo(3) and friends to modern versions
- long long printf fun
- Mg doesn't work on real hardware HOT 2
- Build failure on Slackware 32bit HOT 4
- as(1) instructions to work with pcc(1) (and lcc) HOT 7
- FPU support HOT 3
- PIC32-EMZ64 virtual com port HOT 6
- Assigning Pins to CAN controller HOT 1
- How to debug litebsd kernel with gdb on qemu? HOT 3
- Majenko SDZL board equivalent HOT 8
- C Compiler Problem HOT 7
- Error compiling kernel ""minor" "major" HOT 8
- Error running LiteBSD in QEMU HOT 1
- RISC-V support like CH32V307 MCU HOT 3
- Support for ESP32 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litebsd.