Lines Matching full:gcc
30 'Launches gcc dejagnu test in chroot for chromeos toolchain, compares '
40 help=('Specify gcc source to mount instead of "auto". '
41 'Under "auto" mode, which is the default - gcc is '
45 'root/chroot/usr/local/toolchain_root/gcc", which is '
47 'gcc-build-dir then is computed as '
49 'a complete gcc build must be performed in the '
50 'computed gcc-build-dir beforehand.'))
75 '\'mount\' (unmount gcc source and '
83 default='gcc,g++',
87 'Defaults to "gcc,g++".'))
119 self._gcc_source_dir = path.join(constants.MOUNTED_TOOLCHAIN_ROOT, 'gcc')
175 print 'Warning: failed to unmount gcc source/build directory.'
236 self._l.LogOutput('Gcc source dir - {0}'.format(self._gcc_source_dir))
237 self._l.LogOutput('Gcc build dir - {0}'.format(self._gcc_top_build_dir))
240 """Prepare gcc source, build directory from mounted source."""
243 # e.g. '/usr/local/toolchain_root/gcc'
245 # e.g. '/somewhere/chromeos.live/chroot/usr/local/toolchain_root/gcc'
247 # e.g. '/somewhere/gcc'
256 path.isdir(path.join(self._gcc_source_dir_to_mount, 'gcc'))):
257 raise RuntimeError('{0} is not a valid gcc source tree.'.format(
262 # e.g. '/usr/local/toolchain_root/gcc-build-x86_64-cros-linux-gnu'
265 # gcc-build-x86_64-cros-linux-gnu'
267 # e.g. '/usr/local/toolchain_root/gcc-build-x86_64-cros-linux-gnu/gcc'
269 # e.g. '/somewhere/gcc-build-x86_64-cros-linux-gnu'
272 self._gcc_build_dir = path.join(self._gcc_top_build_dir, 'gcc')
283 self._gcc_build_dir_to_mount, 'gcc')):
284 raise RuntimeError('{0} is not a valid gcc build tree.'.format(
287 # All check passed. Now mount gcc source and build directories.
291 """Auto emerging gcc for building purpose only."""
293 self._chromeos_root, 'equery w cross-%s/gcc' % self._target)[1]
295 # ret is expected to be something like 'gcc-4.6.2-r11.ebuild' or
296 # 'gcc-9999.ebuild' parse it.
300 elif ret == 'gcc-9999.ebuild':
301 gccrevision = 'gcc-9999'
302 gccversion = 'gcc-9999'
304 raise RuntimeError('Failed to get gcc version.')
311 self._gcc_build_dir = path.join(self._gcc_top_build_dir, 'gcc')
316 'ebuild $(equery w cross-%s/gcc) clean prepare compile' % (
319 raise RuntimeError('ebuild gcc failed.')