#327 closed enhancement (fixed)

Compilation of C++ fails (when using --enable-cxx)

Reported by: eric.valette Owned by: Joel Sherrill
Priority: normal Milestone: 2
Component: unspecified Version: unknown
Severity: minor Keywords:
Cc: bugs@… Blocked By:
Blocking:

Description

ake[5]: Entering directory `/home/valette/local/local-src/rtems/build_rt
ems/i386-rtems/c/pc386/tests/samples/cdtest'
mkdir o-optimize

test -d o-optimize
mkdir o-optimize

i386-rtems-gcc --pipe -B../../../../../lib/ -B../../../../../pc386/lib/ -
specs bsp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src-tests-samples\" -DPA
CKAGE_TARNAME=\"rtems-c-src-tests-samples\" -DPACKAGE_VERSION=\"ss-200211
18\" -DPACKAGE_STRING=\"rtems-c-src-tests-samples\ ss-20021118\" -DPACKAG
E_BUGREPORT=\"rtems-bugs@…\" -ansi -fasm -O4 -g -O2
-o o-optimize/init.o -c ../../../../../../../rtems-ss-20021118/c/src/test
s/samples/cdtest/init.c

test -d o-optimize
mkdir o-optimize

i386-rtems-g++ -B../../../../../lib/ -B../../../../../pc386/lib/ -specs b
sp_specs -qrtems -DPACKAGE_NAME=\"rtems-c-src-tests-samples\" -DPACKAGE_T
ARNAME=\"rtems-c-src-tests-samples\" -DPACKAGE_VERSION=\"ss-20021118\" -D
PACKAGE_STRING=\"rtems-c-src-tests-samples\ ss-20021118\" -DPACKAGE_BUGRE
PORT=\"rtems-bugs@…\" -ansi -fasm -O4 -g -O2 -o o-op
timize/main.o -c ../../../../../../../rtems-ss-20021118/c/src/tests/sampl
es/cdtest/main.cc
i386-rtems-g++ -B../../../../../lib/ -B../../../../../pc386/lib/ -specs b
sp_specs -qrtems -g -O2 -ansi -fasm -L ../../../../../pc386/lib

-O4 -O4 -Wl,-Ttext,0x00100000 -o o-optimize/cdtest.obj o-optimize/init

.o o-optimize/main.o
/usr/local/rtems-ix86-dev-tools/lib/gcc-lib/i386-rtems/3.2.1/../../../../
i386-rtems/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[5]: * [o-optimize/cdtest.exe] Error 1

Note that the C++ compiler is build and installed the libraries in $(prefix)/c++/lib as shown below :

/usr/local/rtems-ix86-dev-tools/c++/lib# pwd
/usr/local/rtems-ix86-dev-tools/c++/lib
ls -l
total 7424
drwxr-sr-x 2 root staff 1024 Dec 10 15:11 athlon
drwxr-sr-x 2 root staff 1024 Dec 10 15:11 k6
-rw-r--r-- 1 root staff 7144222 Dec 10 15:11 libstdc++.a
-rwxr-xr-x 1 root staff 1050 Dec 10 15:11 libstdc++.la
-rw-r--r-- 1 root staff 414180 Dec 10 15:11 libsupc++.a
-rwxr-xr-x 1 root staff 1034 Dec 10 15:11 libsupc++.la
drwxr-sr-x 3 root staff 1024 Dec 10 15:12 m486
drwxr-sr-x 2 root staff 1024 Dec 10 15:11 mpentium
drwxr-sr-x 2 root staff 1024 Dec 10 15:11 mpentiumpro
drwxr-sr-x 3 root staff 1024 Dec 10 15:12 soft-float

Release:
RTEMS CVS

Environment:
Linux debian 3.0

Change History (2)

comment:1 Changed on Dec 11, 2002 at 1:12:05 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: --enable-languages must have comma not space between languages.

comment:2 Changed on Oct 10, 2017 at 6:35:44 AM by Sebastian Huber

Component: miscunspecified
Note: See TracTickets for help on using tickets.