RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Oct 15, 2019 11:32 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Nov 27, 2013 3:32 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Hi,
I installed the Codebench Lite for MIPS under ubuntu:

https://sourcery.mentor.com/GNUToolchain/release2476

set the path, and added to the top target.mk:

Code:
ifndef GCCPREFIX
    GCCPREFIX   = mips-sde-elf-
    LDFLAGS     =
    INCLUDES    =
endif


Now the whole stuff builds somehow with following errors:

Code:
pito@ubuntu:~/RETROCURRENT/retrobsd$ make > log.txt
as.o: In function `startup':
/home/pito/RETROCURRENT/retrobsd/src/cmd/as/as.c:523: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
ld.o: In function `setupout':
/home/pito/RETROCURRENT/retrobsd/src/cmd/ld/ld.c:1288: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
as: /home/pito/RETROCURRENT/retrobsd/include, too many input files
make[2]: *** [../crt0.o] Error 1
as: /home/pito/RETROCURRENT/retrobsd/include, too many input files
make[2]: *** [__sysctl.o] Error 1
as: /home/pito/RETROCURRENT/retrobsd/include, too many input files
make[2]: *** [addch.o] Error 1
as: /home/pito/RETROCURRENT/retrobsd/include, too many input files
make[2]: *** [termcap.o] Error 1
as: /home/pito/RETROCURRENT/retrobsd/include, too many input files
make[2]: *** [w5100.o] Error 1
make[1]: [all] Error 2 (ignored)
mips-sde-elf-ar: creating ../libcurses.a
mips-sde-elf-ar: creating ../libvmf.a
mips-sde-elf-ar: creating ../libwiznet.a
/home/pito/CodeSourcery/Sourcery_CodeBench_Lite_for_MIPS_ELF/bin/../lib/gcc/mips-sde-elf/4.7.3/../../../../mips-sde-elf/bin/ld: target elf32-littlemips not found
collect2: error: ld returned 1 exit status
make[3]: *** [adb] Error 1
make[2]: *** [adb] Error 2
/home/pito/CodeSourcery/Sourcery_CodeBench_Lite_for_MIPS_ELF/bin/../lib/gcc/mips-sde-elf/4.7.3/../../../../mips-sde-elf/bin/ld: target elf32-littlemips not found
collect2: error: ld returned 1 exit status
make[3]: *** [adventure] Error 1
make[2]: *** [adventure] Error 2
make[1]: [install] Error 2 (ignored)
/home/pito/RETROCURRENT/retrobsd/tools/configsys/../../sys/pic32/spi.c: In function 'spidev_ioctl':
/home/pito/RETROCURRENT/retrobsd/tools/configsys/../../sys/pic32/spi.c:116:9: error: variable 'mask' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors
make[1]: *** [spi.o] Error 1
make: *** [kernel] Error 2
pito@ubuntu:~/RETROCURRENT/retrobsd$


Any hint what is missing there?

Thanks.

_________________
Pukao Hats Cleaning Services Ltd.


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

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