qemu on Solaris
Hi,
I just sent a fair amount of time trying to figure out problems
with the qemu build and resulting binary. The first problem (which is no longer a problem due to the shell OpenSolaris uses) was that `sh' was used in rules.mak to perform commands -- I had a /bin/sh that was not bash-compatible. That's a minor problem. The more-serious problem was that once qemu was built, it would die almost immediately, complaining about smbus-eeprom not being an I2C device. That problem appears to be due to an issue with gcc's use of the Solaris native linker (/usr/ccs/bin/ld) -- the linker is not including all .o's in the .a's, even though the --whole-archive switch was passed to it. The linker team is looking into that problem right now, but in the meantime, manually performing the link step by specifying all the required .o's yields a usable qemu executable.
Thanks,
--S
Hey Seth,
Do you know if it builds on Sparc at all? On Oracle Solaris ;)
jonathan
Quoted 22 lines · Seth G
Hi,
I just sent a fair amount of time trying to figure out problems
with the qemu build and resulting binary. The first problem (which is no longer a problem due to the shell OpenSolaris uses) was that `sh' was used in rules.mak to perform commands -- I had a/bin/shthat was not bash-compatible. That's a minor problem. The more-serious problem was that once qemu was built, it would die almost immediately, complaining about smbus-eeprom not being an I2C device. That problem appears to be due to an issue with gcc's use of the Solaris native linker (/usr/ccs/bin/ld) -- the linker is not including all .o's in the .a's, even though the --whole-archive switch was passed to it. The linker team is looking into that problem right now, but in the meantime, manually performing the link step by specifying all the required .o's yields a usable qemu executable.Thanks,
--S
Signature · 8 lines
-- Jonathan Kalbfeld ThoughtWave Technologies LLC www.thoughtwave.com LA: +1 818.306.5353 NY: +1 212.202.0698 Direct: +1 818 495 2139 FAX: +1 818 495 2140 Learn UNIX For Free at unixlessons.com
Quoting Jonathan Kalbfeld, who wrote the following on Wed, 3 Mar 2010:
Quoted 3 lines
Hey Seth,
Do you know if it builds on Sparc at all? On Oracle Solaris ;)
Yes, with the below caveats, it does build and operate on SPARC as well :).
--S
Quoted 40 lines
jonathan
Quoted 22 lines · Seth G
Hi,
I just sent a fair amount of time trying to figure out problems
with the qemu build and resulting binary. The first problem (which is no longer a problem due to the shell OpenSolaris uses) was that `sh' was used in rules.mak to perform commands -- I had a/bin/shthat was not bash-compatible. That's a minor problem. The more-serious problem was that once qemu was built, it would die almost immediately, complaining about smbus-eeprom not being an I2C device. That problem appears to be due to an issue with gcc's use of the Solaris native linker (/usr/ccs/bin/ld) -- the linker is not including all .o's in the .a's, even though the --whole-archive switch was passed to it. The linker team is looking into that problem right now, but in the meantime, manually performing the link step by specifying all the required .o's yields a usable qemu executable.Thanks,
--SSignature · 8 lines
-- Jonathan Kalbfeld ThoughtWave Technologies LLC www.thoughtwave.com LA: +1 818.306.5353 NY: +1 212.202.0698 Direct: +1 818 495 2139 FAX: +1 818 495 2140 Learn UNIX For Free at unixlessons.com
Quoted 7 lines · Seth G
Hi,
I just sent a fair amount of time trying to figure out problems
with the qemu build and resulting binary. The first problem (which is no longer a problem due to the shell OpenSolaris uses) was that `sh' was used in rules.mak to perform commands -- I had a/bin/shthat was not bash-compatible. That's a minor problem. The
Please report the errors so that we can fix the bashisms.
Quoted 8 lines
more-serious problem was that once qemu was built, it would die almost immediately, complaining about smbus-eeprom not being an I2C device. That problem appears to be due to an issue with gcc's use of the Solaris native linker (
/usr/ccs/bin/ld) -- the linker is not including all .o's in the .a's, even though the --whole-archive switch was passed to it. The linker team is looking into that problem right now, but in the meantime, manually performing the link step by specifying all the required .o's yields a usable qemu executable.
--whole-archive is no longer used since0e8c9214ba1d4128cf92442cd343bc3733478261.