Issue Details (XML | Word | Printable)

Key: STDCXX-800
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[EDG eccp 3.9] build error on the -shared option

Created: 27/Mar/08 06:25 PM   Updated: 02/Dec/08 03:05 AM
Return to search
Component/s: Build and Installation
Affects Version/s: 4.2.0, 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 1h
Original Estimate - 1h
Remaining Estimate: 1h
Remaining Estimate - 1h
Time Spent: Not Specified
Remaining Estimate - 1h

Environment: EDG eccp

Severity: Linker Error


 Description  « Hide
Trying to build a shared library with EDG eccp on Linux or Solaris fails with an error like the one below. The EDG front end apparently doesn't understand the -shared option. We need to see if there is an option that works. If not, shared library builds with the compiler cannot be supported (and should be removed from our nightly build schedule on Solaris – on Linux we're already doing only archive builds).
### gmake  config   BUILDMODE=,shared,debug,narrow CONFIG=eccp.config 2>&1 | sed -e "s/\/build2\/batman\/5.0.0\/builds\/34590588\/source-buildspace\/build/\$(BUILDDIR)/g;s/\/build2\/batman\/5.0.0\/builds\/34590588\/source-buildspace/\$(TOPDIR)/g" | tee /tmp/build.17642.log:
gmake[1]: Entering directory `$(BUILDDIR)'
gmake[2]: Entering directory `$(BUILDDIR)/include'
gmake config
gmake[3]: Entering directory `$(BUILDDIR)/include'

configuring stdcxx 4.2.0 for eccp-3.9 on sunos-5.10-sparc

checking if the compiler is sane                   ok (invoked with eccp)
checking if the linker is sane                     no

int main () { return 0; }
eccp -D_RWSTDDEBUG -D_RWSTD_SHARED_LIB -I. -A -x --template_directory=$(BUILDDIR)/lib -g   --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815  -c a.cpp -o a.o
eccp a.o --template_directory=$(BUILDDIR)/lib -shared    -lm   -o a.out
eccp: unknown option: -shared
gmake[3]: *** [sane] Error 1
gmake[3]: Leaving directory `$(BUILDDIR)/include'
gmake[2]: *** [config.h] Error 2
gmake[2]: Leaving directory `$(BUILDDIR)/include'
gmake[1]: *** [config] Error 2
gmake[1]: Leaving directory `$(BUILDDIR)'
gmake: *** [config] Error 2


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 20/May/08 06:52 PM
Let's see if we can resolve this in 4.2.2.