LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2011, 09:23 PM   #1
Ztif
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Rep: Reputation: Disabled
/usr/bin/ld: cannot find -lcr


I am currently trying to build some finite difference code with a parallel compiler (MPICH2) but I continue to get the following error message when trying to configure the code:

checking for C++ compiler default output... configure: error: C++ compiler cannot create executables

I then checked to see if my compiler was linked to mpicc (using the -cc option) but upon trying I get the message:

/usr/bin/ld: cannot find -lcr

I am new to configuring linux systems and am unsure what this means.
Thanks for the help.


Also in case something else is the issue here is the config.log contents:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ../SAMRAI/configure --prefix=~/SAMRAI-v2.1.0 --with-CC=mpicc --with-CXX=mpicc --with-pvode=~/SAMRAI/CVODE.10.2000-noreal --with-kinsol=~/SAMRAI/kinsol.4.2000-noreal --with-hdf5=/usr/local/hdf5_parallel

## --------- ##
## Platform. ##
## --------- ##

hostname = ubuntu
uname -m = x86_64
uname -r = 2.6.38-8-generic
uname -s = Linux
uname -v = #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1429: CONFIG_SHELL is '/bin/bash'
configure:1467: checking build system type
configure:1485: result: x86_64-unknown-linux-gnu
configure:1493: checking host system type
configure:1507: result: x86_64-unknown-linux-gnu
configure:1515: checking target system type
configure:1529: result: x86_64-unknown-linux-gnu
configure:1553: target_cpu is 'x86_64'
configure:1553: target_vendor is 'unknown'
configure:1553: target_os is 'linux-gnu'
configure:1723: LD_LIBRARY_PATH is unset
configure:1730: checking the architecture
configure:1761: result: LINUX
configure:1782: ARCH is 'LINUX'
configure:1811: before running compiler search: with_CXX is 'mpicc'
configure:1811: before running compiler search: CXX is 'mpicc'
configure:1811: before running compiler search: CCC is unset
configure:1909: checking for C++ compiler version
configure:1912: mpicc --version </dev/null >&5
gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1915: $? = 0
configure:1917: mpicc -v </dev/null >&5
mpicc for MPICH2 version 1.3.1
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib/x86_64-linux-gnu --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
configure:1920: $? = 0
configure:1922: mpicc -V </dev/null >&5
gcc: '-V' must come at the start of the command line
configure:1925: $? = 1
configure:1949: checking for C++ compiler default output
configure:1952: mpicc conftest.cc -lm >&5
/usr/bin/ld: cannot find -lcr
collect2: ld returned 1 exit status
configure:1955: $? = 1
configure: failed program was:
| #line 1928 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1994: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_build_alias=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_host_alias=x86_64-unknown-linux-gnu
ac_cv_target=x86_64-unknown-linux-gnu
ac_cv_target_alias=x86_64-unknown-linux-gnu

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
ARCH='LINUX'
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='mpicc'
CXXCPP=''
CXXFLAGS=''
CXXLD_FLAGS=''
CXX_FLAGS=''
C_FLAGS=''
DEFS=''
DEPENDS_ON_TEMPLATE_IMPLEMENTATION=''
DEVELOPER_MAKEFILE=''
DOT_PATH=''
DOXYGEN_BIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
F77LIBFLAGS=''
F77_FLAGS=''
FFLAGS=''
HAVE_DOT=''
INC_PATH=''
INSTDIR=''
LDFLAGS=''
LD_FLAGS=''
LIBOBJS=''
LIBS='-lm'
LIB_NAME='-lm'
LIB_PATH=''
LIB_SUFFIX='.a'
LTLIBOBJS=''
M4=''
MPICC=''
MPIFLAGS=''
MPIINCLUDE=''
MPILIBDIRS=''
MPILIBS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PARALLEL_RUN_BIN=''
PATH_SEPARATOR=':'
PVODE_C_FILES=''
SAMRAI_OPTIONAL_LIBS=''
SAMRAI_PERL=''
SAMRAI_TARGET=''
SHELL='/bin/bash'
SRCDIR_COMPILE_PREFIX=''
TAU_INCLUDE=''
TEST_NPROCS=''
XARGS=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${prefix}/share'
dox_output_dir=''
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/home/nick/SAMRAI-v2.1.0'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-unknown-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='unknown'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 77
 
Old 06-20-2011, 12:50 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Hello and welcome to LQ.

Blind guess: your system seems to have a 64 bit architecture. May be some parts of it are for 32 bit though ?

Or maybe you are missing some needed program ? See his thread for instance.

Last edited by Didier Spaier; 06-20-2011 at 12:54 AM.
 
Old 06-20-2011, 01:16 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

No libcr ? ( lcr = libcr.so ) And no g++ ?


sudo apt-get install g++ libcr-dev
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/bin/ld: cannot find -lm ahmed amine Linux - Software 5 07-23-2010 12:26 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 10:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration