[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#780657: libcc1-0: broken regex when calculating compiler



Package: gcc-5
Version: 5-20150314-1
Severity: normal

Hello,

  gcc-5: /usr/lib/gcc/i586-linux-gnu/5/libcc1.so

  GNU GDB 7.9 attempts to dlopen such library, but it is not found on ld search path, libcc1.so should probably be placed within ld search path.

  Even if library is properly loaded, when issuing GDB command:

  (gdb) compile code printf("Hello world\n");
  Could not find a compiler matching "^(x86_64|i.86)-[^-]*-linux(-gnu)?-gcc-5$"

  My system has i586-linux-gnu-gcc-5, but regex does not match, there seems to be a bug and it matches i586--linux-[...]. The check seems to be part of libcc1/libcc1.cc file from GCC sources.

  After regex is fixed, or work around it
  (gdb) compile code printf("Hello world\n");
  cc1: fatal error: inaccessible plugin file plugin/libcc1plugin.so expanded from short plugin name libcc1plugin: No such file or directory

  libcc1 code attempts to access plugin/libcc1plugin.so, so that needs to be installed, it is currently found in development package, gcc-5-plugin-dev.

  I would suggest to create gcc-5-plugin with libcc1.so and plugin/libcc1plugin.so so gdb binaries can recommend it in order to use the plugin.

Regards,
  -- Hector Oron

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


Reply to: