RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Jan 19, 2019 9:59 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Jul 29, 2015 8:40 am 

Joined: Wed Jul 29, 2015 8:32 am
Posts: 2
Hello,

Sorry if this is an elementary question but I do not know what to do. I've been following the guide here:
wiki/doku.php/doc/install

When I started to compile using make, it ran for a while then stopped here:
Code:
/usr/local/pic32-tools/bin/pic32-gcc -EL -g -mips32r2 -nostdinc -fno-builtin -Werror -Wall -fno-dwarf2-cfi-asm -Wl,--oformat=elf32-tradlittlemips -nostdlib -T ../../../tools/configsys/../../sys/pic32/cfg/bootloader-maximite.ld -Wl,-Map=unix.map clock.o cons.o devsw.o exception.o exec_aout.o exec_conf.o exec_elf.o exec_script.o exec_subr.o gpio.o init_main.o init_sysent.o kern_clock.o kern_descrip.o kern_exec.o kern_exit.o kern_fork.o kern_mman.o kern_proc.o kern_prot.o kern_prot2.o kern_resource.o kern_sig.o kern_sig2.o kern_subr.o kern_synch.o kern_sysctl.o kern_time.o machdep.o mem.o rd_sd.o rdisk.o signal.o spi_bus.o startup.o subr_prf.o subr_rmap.o swap.o sys_generic.o sys_inode.o sys_pipe.o sys_process.o syscalls.o sysctl.o tty.o tty_subr.o tty_tty.o uart.o ufs_alloc.o ufs_bio.o ufs_bmap.o ufs_dsort.o ufs_fio.o ufs_inode.o ufs_mount.o ufs_namei.o ufs_subr.o ufs_syscalls.o ufs_syscalls2.o vers.o vfs_vnops.o vm_sched.o vm_swap.o vm_swp.o  -o unix.elf
/usr/local/pic32-tools/bin/../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/lib/debug-exception-return.o: In function `__DbgExecReturn':
(._debug_exception+0x8): undefined reference to `__pic32_software_reset'
/usr/local/pic32-tools/bin/../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/lib/debug-exception-return.o: In function `__DbgExecReturn':
(._debug_exception+0xc): undefined reference to `__pic32_software_reset'
collect2: ld returned 1 exit status
make[2]: *** [unix.elf] Error 1
make[2]: Leaving directory `/root/retrobsd/sys/pic32/duinomite-uart'
make[1]: *** [kernel] Error 2
make[1]: Leaving directory `/root/retrobsd'
make: *** [all] Error 2



Again, I apologize if this is elementary but I am sure someone else has had the same question down the line. Messing with linkers is something I have put off, and I have no idea how to fix this. I would have used one of the prebuilt binary packages for the Duinomite-Mini but the build server/mirror seems to be down!

Thanks


Top
 Profile  
 
PostPosted: Sat Aug 01, 2015 11:49 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1079
Location: Sunnyvale, CA
Hi,

It's something related to your version of GCC toolchain. I just double-checked - the kernel builds fine on Linux and Mac OS with the latest Jason's toolchain (https://github.com/jasonkajita/chipKIT-cxx/downloads).

The issue is that the compiler tries to link in the __DbgExecReturn function from /usr/local/pic32-tools/pic32mx/lib/debug-exception-return.o file. This file is not present in Jason's toolchain. The RetroBSD kernel by itself does not require this file to be linked.

Best wishes,
--Serge


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission