Project

General

Profile

Bug #2992

wrong file permissions in gcc4 package

Added by Piotr Jasiukajtis over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
OI-Userland
Target version:
Start date:
2012-07-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

At least one file in has wrong permission.

In this case gcc4 from oi_151a5 is unable to build illumos, for example:

/illumos-gcc/illumos-gate/usr/src/tools/cw$ /opt/gcc/4.4.4//bin/gcc -O -D__sun -Wall -Wno-unknown-pragmas -Werror  -std=gnu89 -nodefaultlibs -D_TS_ERRNO -DDEFAULT_CC_DIR='"/opt/SUNWspro/bin"' -DDEFAULT_GCC_DIR='"/opt/gcc/4.4.4//bin"' -DDEFAULT_CPLUSPLUS_DIR='"/opt/SUNWspro/bin"' -DDEFAULT_GPLUSPLUS_DIR='"/opt/gcc/4.4.4//bin"' -Wl,-M/illumos-gcc/illumos-gate/usr/src/common/mapfiles/common/map.noexstk -o cw cw.c -lc
gcc: error trying to exec 'cc1': execvp: No such file or directory
14341:  stat("/opt/gcc/4.4.4//libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1", 0x08045E68) = 0
14341:  access("/opt/gcc/4.4.4//libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1", X_OK) Err#13 EACCES [file_dac_execute]
14341:  stat("/opt/gcc/4.4.4/libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1", 0x08045E68) = 0
14341:  access("/opt/gcc/4.4.4/libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1", X_OK) Err#13 EACCES [file_dac_execute]
$ ls -alh /opt/gcc/4.4.4//libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1
-r--r--r--   1 root     bin          29M Jul 12 12:08 /opt/gcc/4.4.4//libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1

A simple workaround (at least for the illumos 'dmake setup' stage):

# chmod 755 /opt/gcc/4.4.4//libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1
#1

Updated by Piotr Jasiukajtis over 8 years ago

The same with cc1plus:

# ls -alh /opt/gcc/4.4.4/libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1plus
-r--r--r--   1 root     bin          31M Jul 12 12:08 /opt/gcc/4.4.4/libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1plus
# chmod 755 /opt/gcc/4.4.4/libexec/gcc/i386-pc-solaris2.11/4.4.4/cc1plus 
#2

Updated by Jon Tibble over 8 years ago

  • Category set to 35
  • Status changed from New to In Progress
  • Assignee set to Jon Tibble
  • Target version set to oi_151_stable
  • % Done changed from 0 to 90
  • Difficulty changed from Medium to Bite-size
#3

Updated by Jon Tibble over 8 years ago

  • % Done changed from 90 to 100

This should be fixed now. The developer/illumos/gcc package has been obsoleted so it should be suitable hidden from accidental installation. The updated package with fixed permissions and assembler is developer/illumos-gcc.

If people could test and confirm this is fixed that would be appreciated.

#4

Updated by Jon Tibble over 8 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF