I'm trying to compile Barrelfish for SCC, and I use the cross-compiler located in this directory:
I'm accessing the datacenter in Wuxi, China, so the path maybe different with the MARC data center. Anyway, this gcc's -v shows these info:
When I compile the Barrelfish, a whole bunch of errors bumped up, I've to manually fix a lot of thing that were not mentioned at all in these posts (http://marcbug.scc-dc.com/bugzilla3/show_bug.cgi?id=324
For example, the gcc-3.4.5 will not recognize the -fno-stack-protector and build-id option, and will not accept binary constants (e.g. 0b111 in the eMAC driver code). But after all this modifications, it still complain that "undefined reference to `__sync_bool_compare_and_swap`", and stop linking. And these __sync_bool_compare_and_swap stuff seems to be added to gcc after 4.1...
All these compiler errors almost drive me crazy. I was wondering are there any special reasons to choose such an old version of gcc ? More specifically, does the crosscompiler have any source code change for the SCC's P54C core? If not, can I use a new version of gcc and configured the same as the 3.4.5 provided, and use the new gcc to compile Barrelfish ?
BTW, I saw a few posts in the forum say that they've ported Barrelfish to SCC. So can you give any hints about how to do it? Use what compiler?
Thanks in advance!