RetroBSD

2.11BSD operating system for microcontrollers
It is currently Thu Nov 14, 2019 1:23 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Oct 14, 2011 10:55 am 

Joined: Fri Oct 14, 2011 5:38 am
Posts: 1
Hi:
I was very excited to see this project and recently pulled down the source.
after running make I got this: (after looking around some more that looks like a problem with gcc)
[b]EDIT:[/b] Ok, I got pcc to build and install and that runs, and I modified the cc lines in the make files to use it, but it keeps getting stuck at building the objects in unix.elf because the switches are in the wrong order. The error I'm getting looks like this:
Stephen-Wileys-MacBook-Pro:ubw32 swly$ make
pcc -EL -g -mips32r2 -nostdinc -fno-builtin -Werror -Wall -fno-dwarf2-cfi-asm -I. -I../../include -DKERNEL -DUCB_METER -DPIC32MX7 -DCPU_KHZ=80000 -DBUS_KHZ=80000 -DCONSOLE_UART1 -DSD_PORT=SPI1CON -DSD_CS0_PORT=TRISA -DSD_CS0_PIN=9 -DLED_AUX_PORT=TRISE -DLED_AUX_PIN=0 -DLED_DISK_PORT=TRISE -DLED_DISK_PIN=1 -DLED_KERNEL_PORT=TRISE -DLED_KERNEL_PIN=2 -DLED_TTY_PORT=TRISE -DLED_TTY_PIN=3 -MT startup.o -MD -MP -MF .deps/startup.dep -c -o startup.o ../startup.S
-o given with -c || -E || -S and more than one file
make: *** [startup.o] Error 8
Stephen-Wileys-MacBook-Pro:ubw32 swly$

I can get the individual objects to build by hand,(by copying and pasting the output of make and moving the switches around) but when I edit and save the make file nothing changes



I thought it was line 130 that I needed to change. it looks like this (starting from line 129)

unix.elf: $(KERNOBJ) using-bootloader.ld
$(CC) $(LDFLAGS) $(KERNOBJ) -o $@
chmod -x $@
$(OBJDUMP) -d -S $@ > unix.dis
$(OBJCOPY) -O binary $@ unix.bin
$(OBJCOPY) -O ihex --change-addresses=0x80000000 $@ unix.hex
chmod -x $@ unix.bin


But absolutely nothing changes when I do that.
I know my edits are saved because I can edit other pieces of the file and see changes.

also, I don't think development tools was the correct topic for this, so I moved it to bug reports.
(I think it's something I'm doing wrong though, not a bug)


Top
 Profile  
 
PostPosted: Wed Oct 26, 2011 12:51 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Hi Stephen,
It looks like pcc does not support assembler-with-preprocessor mode, which is assumed when compiling startup.S file.
--
Regards,
Serge

_________________
--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