Skip to content

sudo make install not installing all required files to the prefix #149

@mbyzhang

Description

@mbyzhang

sudo make install is not installing all required files to the prefix. For example, when I tried to install to prefix /opt/liballocs [1], here is what I got

$ tree /opt/liballocs
/opt/liballocs
├── bin
│   ├── allocsites
│   ├── alloctypes
│   ├── cufiles
│   ├── dumpptrs
│   ├── dumpsyscalls
│   ├── dwarftypes
│   ├── extrasyms
│   ├── find-allocated-type-size
│   ├── frametypes
│   ├── frametypes2
│   ├── ifacetypes
│   ├── metavector
│   ├── noopgen
│   ├── pervasive-types
│   └── usedtypes
└── lib
    └── liballocs
        └── libroottypes.a

Many things are missing, e.g. (a non-exhaustive list)

  • Compiler wrappers like allocscc, allocsc++, etc.
  • CIL as required by allocscc
  • allocsld.so, liballocs.so, and liballocs_preload.so
  • /usr/lib/meta directory with the correct permissions.

Having a functional make install would significantly reduce the size of the minimal Docker image required to use liballocs to build and run applications.

[1] During the sudo make install, here is the log I got:

make  install-recursive
make[1]: Entering directory '/home/peter/liballocs'
Making install in tools/lang
make[2]: Entering directory '/home/peter/liballocs/tools/lang'
# nothing
make[2]: Leaving directory '/home/peter/liballocs/tools/lang'
Making install in .
make[2]: Entering directory '/home/peter/liballocs'
make[3]: Entering directory '/home/peter/liballocs'
 /usr/bin/mkdir -p '/opt/liballocs/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c tools/dwarftypes tools/alloctypes tools/frametypes tools/frametypes2 tools/extrasyms tools/metavector tools/dumpptrs tools/allocsites tools/usedtypes tools/ifacetypes tools/find-allocated-type-size tools/cufiles tools/pervasive-types tools/noopgen tools/dumpsyscalls '/opt/liballocs/bin'
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/dwarftypes /opt/liballocs/bin/dwarftypes
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/alloctypes /opt/liballocs/bin/alloctypes
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/frametypes /opt/liballocs/bin/frametypes
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/frametypes2 /opt/liballocs/bin/frametypes2
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/extrasyms /opt/liballocs/bin/extrasyms
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/metavector /opt/liballocs/bin/metavector
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/dumpptrs /opt/liballocs/bin/dumpptrs
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/allocsites /opt/liballocs/bin/allocsites
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/usedtypes /opt/liballocs/bin/usedtypes
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/ifacetypes /opt/liballocs/bin/ifacetypes
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/find-allocated-type-size /opt/liballocs/bin/find-allocated-type-size
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/cufiles /opt/liballocs/bin/cufiles
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/pervasive-types /opt/liballocs/bin/pervasive-types
libtool: warning: '/home/peter/liballocs/contrib/liballocstool/contrib/dwarfidl/contrib/libantlr3c/.libs/libantlr3c.la' has not been installed in '/usr/local/lib'
libtool: install: /usr/bin/install -c tools/.libs/noopgen /opt/liballocs/bin/noopgen
libtool: install: /usr/bin/install -c tools/dumpsyscalls /opt/liballocs/bin/dumpsyscalls
 /usr/bin/mkdir -p '/opt/liballocs/lib/liballocs'
 /usr/bin/install -c -m 644  tools/libroottypes.a '/opt/liballocs/lib/liballocs'
 ( cd '/opt/liballocs/lib/liballocs' && ranlib libroottypes.a )
 /usr/bin/mkdir -p '/opt/liballocs/lib/liballocs'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   tools/gold-plugin.la '/opt/liballocs/lib/liballocs'
libtool:   error: error: cannot install 'tools/gold-plugin.la' to a directory not ending in /usr/local/lib/liballocs
make[3]: *** [Makefile:1127: install-pkglibLTLIBRARIES] Error 1
make[3]: Leaving directory '/home/peter/liballocs'
make[2]: *** [Makefile:2203: install-am] Error 2
make[2]: Leaving directory '/home/peter/liballocs'
make[1]: *** [Makefile:1884: install-recursive] Error 1
make[1]: Leaving directory '/home/peter/liballocs'
make: *** [Makefile:2196: install] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions