RE: Build L4::Pistachio on FC5
"Jan Stoess" <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.l4ka.general |
|---|---|
| Message-ID | <[email protected]> |
Hi MingyanGuo, > Hi all, > > I use gcc32/g++32 on FC5 to build L4::Pistachio(default CC and CXX on FC5 > are gcc4, so I > set CC and CXX environment variables to gcc32 and g++32) but failed. > The error message is below. > ---------------------<<<<cut>>>>------------------------------- > of src/api/v4/space.o: defined in discarded section > `.gnu.linkonce.t._ZN8cpu_mb_t5allocEv' of src/api/v4/space.o > `.gnu.linkonce.t._ZN8cpu_mb_t5allocEv' referenced in section `.spinlock' Is your gcc4 version 4.1.X? Then I suspect that you're still using that compiler. Your debug output looks like it's a (known but still) unresolved compiler issue that occurs when using recent gcc 4.1 compilers, some versions of ld, and the SMP version of pistachio. So if you need SMP support I'd suggest to use an older version of gcc, e.g. via "make CC=gcc3". You could also try switching to a different version of ld. It compiles for me with gcc 4.1 and ld 2.16.1 with linker warnings, but not with gcc 4.1 and ld 2.16.91.X. gcc3 does not cause problems with both linker versions. By the way, I do only have that problem if I disable debugging symbols being included within the binary in pistachio's menu config as well. If you don't need SMP, just try disable it; you can do so in the config menu. You also might want to have a look at http://l4ka.org/projects/pistachio/buildstatus/ a webpage that lists the weekly build status of pistachio on different architectures and with different compilers. Regards, -Jan