Skip to content

libgetput link error #5

@davidozog

Description

@davidozog

When building bale from scratch, with the following changes to install.sh:

  • fromscratch=1
  • option="--with-upc=no --with-shmem CC=oshcc"

I get the following error during thelibgetput "make" step:

libtool: compile:  oshcc -DHAVE_CONFIG_H -I. -I../../libgetput -g -O2 -DUSE_SHMEM -g -O2 -MT liblibgetput_la-libgetput__c.lo -MD -MP -MF .deps/liblibgetput_la-libgetput__c.Tpo -c libgetput__c.c -o liblibgetput_la-libgetput__c.o >/dev/null 2>&1
mv -f .deps/liblibgetput_la-libgetput__c.Tpo .deps/liblibgetput_la-libgetput__c.Plo
/bin/bash ./libtool    --mode=link      -o liblibgetput.la -rpath /home/dave/Repos/bale/build_ubuntu/lib liblibgetput_la-libgetput__c.lo  
Usage: /home/dave/Repos/bale/build_ubuntu/libgetput/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-o'
Makefile:545: recipe for target 'liblibgetput.la' failed
make[1]: *** [liblibgetput.la] Error 1
make[1]: Leaving directory '/home/dave/Repos/bale/build_ubuntu/libgetput'
Makefile:423: recipe for target 'all' failed
make: *** [all] Error 2
build of libgetput failed!

Strangely, I can avoid this error by setting either of the flags, AM_LDFLAGS or AM_UPCFLAGS, to any string. This is true even separately from the install script:

$ cd libgetput
$ autoreconf -if
$ ./configure --prefix=<install_dir> --with-upc=no --with-shmem CC=oshcc
$ AM_UPCFLAGS=foobar make

I'm not quite sure if this is expected, if I'm doing something wrong, or if there may be some cleaner solution... I can reproduce the issue in Ubuntu and Mac OSX. Thanks in advance for you help!

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