Toolchain build is broken
pedward
Posts: 1,642
propeller-elf-gcc -Wall -Werror -m64bit-doubles -Os -nostdinc -I./include -r -mcog -Wl,--defsym,__i2c_driver=1 -o ../../build/lib/obj/lmm/i2c_driver.cog sys/propeller/i2c_driver.c
/opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find spinboot.o: No such file or directory
/opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find crt0_cog.o: No such file or directory
/opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find -lgcc
/opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find -lcog
/opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find -lgcc
/opt/parallax/lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld: cannot find crtend_cog.o: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [../../build/lib/obj/lmm/i2c_driver.cog] Error 1
make[1]: Leaving directory `/home/pedward/workspace/propgcc/propgcc/lib'
make: *** [all] Error 2
library build failed - make
I get this on a virgin clone of the repo.
Build env is Fedora 15, Core i5-2310
Linux pooh.apsoft.com 2.6.42.3-2.fc15.x86_64 #1 SMP Thu Feb 9 01:42:06 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Comments
1) the build/gcc build fails apparently due to some change in the way configuration scripts work
2) the jbuild.sh script doesn't notice that the build fails and proceeds to other things that later fail when they need the results of the gcc support code builds
I installed fedora-17 (x86_64) VM and get a gcc script build failure. This needs to be fixed, there is a patch for this part which we can probably push to our repository. Will look at this.
I don't see any other build errors that would account for the OP problem. David, please point them out for me.
As for the OP issue, I've removed building the i2c stuff and everything builds no problems. The thing is without that library support, certain features that we added will not work - that would be using "eCOG" loading. The eCOG loader library builds fine the default build virtual machines for distributions that I've tried so far.
Below are diffs to get a build working. The second one should be considered optional at this point. If you apply it, the propgcc/demos/cog_loader and other programs using eCOG will not work.
We are looking into what it takes to make all this work the way it should so source builder folks can also use eCOG.
We will probably go to beta with binary distributions that will be feature complete.
Thanks,
--Steve
So, the support files are not being build prior to actually building this.
Thanks Eric!!!!