Compile Error: ld: cannot find -lgcc C compiler cannot create execut
I've just get my system change to arch64 from arch32.
When I try to build wine. It shows:
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No rule to make target `depend'. Stop.
==> ERROR: Build Failed. Aborting...
and see this part of config.log
gcc: '-V' must come at the start of the command line
configure:2366: $? = 1
configure:2389: checking for C compiler default output file name
configure:2416: gcc -m32 -march=x86-64 -O2 -pipe conftest.c >&5
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/./libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/./libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:2419: $? = 1
configure:2457: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "0.9.22"
| #define PACKAGE_STRING "Wine 0.9.22"
| #define PACKAGE_BUGREPORT "[email protected]"
| /* end confdefs.h. */
|
| int
| main ()
| {
I run "ld -lgcc"
[root@sgu wine0922]# ld -lgcc
ld: cannot find -lgcc
When i was building another package, i get this err info:
conftest.cc:14:28: error: ac_nonexistent.h: No such file or directory
wine needs a 32bit environment to run/get compiled or a multilib x86_64 system. watch the gcc -m32 call - so no way without touching the pure 64bit philosophy behind arch64!
Similar Messages
-
Libx32-glibc fails to build - /usr/bin/ld: cannot find -lgcc
I am trying to run steam using my own runtime libraries, however I'm missing libcrypt.so.11
After trawling through a chain of dependencies, I'm stuck on libx32-glibc.
When attmpting to build libx32-glibc I encounter an error while gcc is trying to compile elf/librtld.mapT
[myusername@hostname libx32-glibc]$ makepkg -R
==> Making package: libx32-glibc 2.18_12-1 (Sun Feb 9 18:12:22 NZDT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting package()...
LANGUAGE=C LC_ALL=C; export LANGUAGE LC_ALL; \
make -r PARALLELMFLAGS="" -C /home/myusername/aur/libx32-glibc/src/glibc-2.18 objdir=`pwd` install
make[1]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18'
make subdir=csu -C csu ..=../ subdir_lib
make subdir=iconv -C iconv ..=../ subdir_lib
make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/iconv'
make[2]: Nothing to be done for 'subdir_lib'.
make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/iconv'
make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/login'
make[2]: Nothing to be done for 'subdir_lib'.
make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/login'
make subdir=elf -C elf ..=../ subdir_lib
make[2]: Entering directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/elf'
/opt/gcc-x32-seed/bin/gcc -mx32 -B/opt/gcc-x32-seed/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/ -Wl,-O1,--sort-common,--as-needed,-z,relro -nostdlib -nostartfiles -r -o /home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map.o '-Wl,-(' /home/myusername/aur/libx32-glibc/src/glibc-build/elf/dl-allobjs.os /home/myusername/aur/libx32-glibc/src/glibc-build/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.mapT
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
Makefile:285: recipe for target '/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map' failed
make[2]: *** [/home/myusername/aur/libx32-glibc/src/glibc-build/elf/librtld.map] Error 1
make[2]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18/elf'
Makefile:236: recipe for target 'elf/subdir_lib' failed
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory '/home/myusername/aur/libx32-glibc/src/glibc-2.18'
Makefile:12: recipe for target 'install' failed
make: *** [install] Error 2
==> ERROR: A failure occurred in package().
Aborting...
In accordance with this solved topic for a similar issue, I have ensured that options=('staticlibs') is present in PKGBUILD:
options=('!strip' '!emptydirs' 'staticlibs')
I have tried re downloading and compiling all the src but the same issue occurs.
Here is a list of gcc/glibc/multilib packages that I have installed:
[mephage@tws01 exercise1]$ pacman -Q | grep -E -e 'multilib|gcc|glibc'
binutils-multilib 2.24-1
gcc-libs-multilib 4.8.2-7
gcc-multilib 4.8.2-7
gcc-x32-seed 4.8.2_7-1
glibc 2.18-12
glibc-x32-seed 0.1.0-1
lib32-gcc-libs 4.8.2-7
lib32-glibc 2.18-12
libtool-multilib 2.4.2-12
Here is a list of aur packages that I have installed:
[mephage@tws01 exercise1]$ pacman -Qm
gcc-x32-seed 4.8.2_7-1
glibc-x32-seed 0.1.0-1
linux-ck 3.12.9-3
linux-ck-headers 3.12.9-3
nvidia-ck 331.38-2
xdm-arch-theme 2.3.1-3Still haven't resolved this. However, I did see that there is more information in /home/myusername/dir-where-i-extract-aur-tarballs/libx32-glibc/src/glibc-build/config.log:
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find -lgcc
collect2: error: ld returned 1 exit status
My guess is that I need a compatible libc.so so that /usr/bin/ld can create the links using gcc.
Edit: Removed a line that was incorrect
Last edited by mephage (2014-02-23 04:54:07) -
[SOLVED] gcc-4.6 cannot find -lgcc
I am trying to get the MSP430 development toolchain (gcc-msp430, msp430-libc, msp430-binutils, msp430mcu, mspdebug) installed in a fresh Arch Linux install.
For this I need gcc46, because gcc-msp430 doesn't build with GCC 4.8. I successfully built gcc46 from AUR using the PKGBUILD from here, but it cannot compile anything, not even a Hello World program:
/tmp $ gcc-4.6 -o hello hello.c
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
I tried the PKGBUILDs from here, which are recommended in the AUR page for gcc-msp430, but still doesn't work.
What to do?
Last edited by Renan Birck (2013-11-05 20:23:42)Renan Birck wrote:It works! Marking as solved. Thanks!
How did you compile gcc-msp430 ? I've tryed but it failed the ./configure of libgcc
make[2]: uscita dalla directory "/home/campo/System/Aur/gcc-msp430/src/build/gcc"
Checking multilib configuration for libgcc...
mkdir -p -- msp430/libgcc
Configuring in msp430/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... msp430-unknown-none
checking for msp430-ar... msp430-ar
checking for msp430-lipo... msp430-lipo
checking for msp430-nm... /home/campo/System/Aur/gcc-msp430/src/build/./gcc/nm
checking for msp430-ranlib... msp430-ranlib
checking for msp430-strip... msp430-strip
checking whether ln -s works... yes
checking for msp430-gcc... /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include
checking for suffix of object files... configure: error: in `/home/campo/System/Aur/gcc-msp430/src/build/msp430/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:12255: set di istruzioni per l'obiettivo "configure-target-libgcc" non riuscito
make[1]: *** [configure-target-libgcc] Errore 1
make[1]: uscita dalla directory "/home/campo/System/Aur/gcc-msp430/src/build"
Makefile:872: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta...
makepkg 454,81s user 23,85s system 93% cpu 8:34,53 total
I checked the config.log but I didn't find anything :
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ /home/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/libgcc/configure --cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --disable-libssp --disable-nls --with-gnu-as --with-gnu-ld --with-as=/usr/bin/msp430-as --with-ld=/usr/bin/msp430-ld --with-pkgversion=mspgcc_20120406 --enable-languages=c,c++,lto --program-transform-name=s&^&msp430-& --disable-option-checking --with-target-subdir=msp430 --build=i686-pc-linux-gnu --host=msp430 --target=msp430 --srcdir=/home/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/libgcc
## Platform. ##
hostname = enterprise
uname -m = i686
uname -r = 3.12.0-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Nov 6 09:22:18 CET 2013
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /opt/android-sdk/platform-tools
PATH: /opt/android-sdk/tools
PATH: /usr/local/xenon/bin
PATH: /usr/local/xenon/usr/bin
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
PATH: /usr/local/xenon/bin
PATH: /usr/local/xenon/usr/bin
PATH: /opt/android-sdk/tools
PATH: /platform-tools
## Core tests. ##
configure:1742: creating cache ./config.cache
configure:1903: checking for --enable-version-specific-runtime-libs
configure:1916: result: no
configure:1964: checking for a BSD-compatible install
configure:2032: result: /usr/bin/install -c
configure:2048: checking for gawk
configure:2075: result: gawk
configure:2095: checking build system type
configure:2109: result: i686-pc-linux-gnu
configure:2129: checking host system type
configure:2142: result: msp430-unknown-none
configure:2245: checking for msp430-ar
configure:2272: result: msp430-ar
configure:2337: checking for msp430-lipo
configure:2364: result: msp430-lipo
configure:2429: checking for msp430-nm
configure:2456: result: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/nm
configure:2521: checking for msp430-ranlib
configure:2548: result: msp430-ranlib
configure:2613: checking for msp430-strip
configure:2640: result: msp430-strip
configure:2702: checking whether ln -s works
configure:2706: result: yes
configure:2723: checking for msp430-gcc
configure:2750: result: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include
configure:3019: checking for C compiler version
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include --version >&5
xgcc (mspgcc_20120406) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
Copyright (C) 2011 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:3039: $? = 0
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -v >&5
Reading specs from /home/campo/System/Aur/gcc-msp430/src/build/./gcc/specs
Reading specs from /usr/msp430/lib/msp430mcu.spec
COLLECT_GCC=/home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/home/campo/System/Aur/gcc-msp430/src/build/./gcc/lto-wrapper
Target: msp430
Configured with: /home/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/configure CFLAGS_FOR_TARGET=-Os --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --disable-libssp --disable-nls --target=msp430 --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-as=/usr/bin/msp430-as --with-ld=/usr/bin/msp430-ld --with-pkgversion=mspgcc_20120406
Thread model: single
gcc version 4.6.3 20120301 (mspgcc LTS 20120406 unpatched) (mspgcc_20120406)
configure:3039: $? = 0
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -V >&5
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -qversion >&5
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -o conftest -Os conftest.c >&5
Known MCU names:
msp1
msp2
msp430x110
msp430x112
msp430x1101
msp430x1111
msp430x1121
msp430x1122
msp430x1132
msp430x122
msp430x123
msp430x1222
msp430x1232
msp430x133
msp430x135
msp430x1331
msp430x1351
msp430x147
msp430x148
msp430x149
msp430x155
msp430x156
msp430x157
msp430x167
msp430x168
msp430x169
msp430x1610
msp430x1611
msp430x1612
msp430x2101
msp430x2111
msp430x2121
msp430x2131
msp430x311
msp430x312
msp430x313
msp430x314
msp430x315
msp430x323
msp430x325
msp430x336
msp430x337
msp430x412
msp430x413
msp430x415
msp430x417
msp430xE423
msp430xE425
msp430xE427
msp430xW423
msp430xW425
msp430xW427
msp430xG437
msp430xG438
msp430xG439
msp430x435
msp430x436
msp430x437
msp430x447
msp430x448
msp430x449
Assembler messages:
Fatal error: unknown MCU: cpu=430
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -c -Os conftest.c >&5
Known MCU names:
msp1
msp2
msp430x110
msp430x112
msp430x1101
msp430x1111
msp430x1121
msp430x1122
msp430x1132
msp430x122
msp430x123
msp430x1222
msp430x1232
msp430x133
msp430x135
msp430x1331
msp430x1351
msp430x147
msp430x148
msp430x149
msp430x155
msp430x156
msp430x157
msp430x167
msp430x168
msp430x169
msp430x1610
msp430x1611
msp430x1612
msp430x2101
msp430x2111
msp430x2121
msp430x2131
msp430x311
msp430x312
msp430x313
msp430x314
msp430x315
msp430x323
msp430x325
msp430x336
msp430x337
msp430x412
msp430x413
msp430x415
msp430x417
msp430xE423
msp430xE425
msp430xE427
msp430xW423
msp430xW425
msp430xW427
msp430xG437
msp430xG438
msp430xG439
msp430x435
msp430x436
msp430x437
msp430x447
msp430x448
msp430x449
Assembler messages:
Fatal error: unknown MCU: cpu=430
configure:3272: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3286: error: in `/home/campo/System/Aur/gcc-msp430/src/build/msp430/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
## Cache variables. ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-Os
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=msp430
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=msp430
ac_cv_host=msp430-unknown-none
ac_cv_prog_AR=msp430-ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include '
ac_cv_prog_LIPO=msp430-lipo
ac_cv_prog_NM=/home/campo/System/Aur/gcc-msp430/src/build/./gcc/nm
ac_cv_prog_RANLIB=msp430-ranlib
ac_cv_prog_STRIP=msp430-strip
## Output variables. ##
AR='msp430-ar'
AWK='gawk'
CC='/home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include '
CFLAGS='-Os'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='msp430-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/home/campo/System/Aur/gcc-msp430/src/build/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB='msp430-ranlib'
SHELL='/bin/sh'
STRIP='msp430-strip'
ac_ct_CC=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='msp430-unknown-none'
host_alias='msp430'
host_cpu='msp430'
host_noncanonical='msp430'
host_os='none'
host_subdir='.'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='/home/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&msp430-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='msp430'
target_noncanonical='msp430'
target_subdir='msp430'
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
vis_hide=''
## confdefs.h. ##
/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
configure: exit 1
Can you help me ? -
Javac = "cannot find symbol" when compiling class referencing other classes
I have several Java files in a directory which is declared as a package at the start of the files
package filemanager;
This program works perfectly in an IDE, however I'm having problems with compiling in command line.
I have set the classpath as I understand to be right for my computer to:
C:\Program Files\Java\jdk1.6.0_02\bin
I can compile a class that references no other classes in this package/directory.
However files which reference other classes bring up such errors:
javac AllFiles.javaAllFiles.java:174: cannot find symbol
symbol : variable Bob
location : class filesmanager.AllFiles
Bob.getItem(itemRef);
Where Bob is an example of another class. Even though I can say, compile Bob on it's own as it doesnt have any such reference.
I've tried:
javac -cp "C:\Program Files\Java\jdk1.6.0_02\bin" AllFiles.javaThis also failed.
Any ideas?
Edited by: ajr87 on Feb 8, 2008 10:26 AMI've tried spoon_'s suggestion, but I'm still getting the error ("cannot find symbol"). Here is my code:
File Hello/Fred.java:
package Hello;
public class Fred
public int age;
public Fred()
this.age = 1;
} // public class FredFile Hello/Hello.java:
package Hello;
public class Hello
public static void main(String args[])
Fred fred = new Fred();
System.out.println("Fred is " + fred.age);
} // public class HelloAnd here is my attempt to compile Fred.java and Hello.java:
C:/Users/levner/programs[219]javac -cp c:\users\levner\programs\hello Hello\Fred.java
C:/Users/levner/programs[220]javac -cp c:\users\levner\programs\hello Hello\Hello.java
Hello\Hello.java:14: cannot find symbol
symbol : class Fred
location: class Hello.Hello
Fred fred = new Fred();
^
Hello\Hello.java:14: cannot find symbol
symbol : class Fred
location: class Hello.Hello
Fred fred = new Fred();
^
2 errorsI am doing this work on a PC running Vista using javac 1.6.0_10. I've tried various combinations of upper and lower case names for the package and file names, and I always get the same errors.
Thanks in advance for your help. David -
FPGA Compile error - Actual of formal out port cout cannot be an expression
Details:
ERROR:HDLCompiler:192 - "C:\NIFPGA\jobs\BPO5kq2_O6tyN2U\OC4_Sine_Cosine_LUT_Constant_Amplitude_dash_optimised_vi_c.vhd" Line 1408: Actual of formal out port cout cannot be an expression
ERROR:HDLCompiler:854 - "C:\NIFPGA\jobs\BPO5kq2_O6tyN2U\OC4_Sine_Cosine_LUT_Constant_Amplitude_dash_optimised_vi_c.vhd" Line 69: Unit <vhdl_labview> ignored due to previous errors.
VHDL file C:\NIFPGA\jobs\BPO5kq2_O6tyN2U\OC4_Sine_Cosine_LUT_Constant_Amplitude_dash_optimised_vi_c.vhd ignored due to errors
-->
The compilation gets to the "Estimated device utilisation" stage but then stops shortly after with a compilation error.
The Line in question (1408) relates to the output of a "Reinterpret FXP" node with the text
cOut => (others => '0'),
in the port map portion of the code. This corresponds to the output of the FXP reinterpret node being directly connected to an indicator in a sub VI whose output is then input directly to a high thoughput multiply node. The code is part of a sinus cosinus LUT I have programmed. It used to compile no problem but I think I know where the problem is. In one instance I only utilise the Sinus output of the algorithm and theoretically, Xilinx can optimise away the Cosinus part. I have two instances of this VI in my code and looking at the one NOT generating errors, the output is associated with a Cosinus indicator.
cOut => s_Cosine_2434,
It would seem that the pathway is essentially optimised away but the Xilinx compiler has a problem with the indicator being present on the sub-VI but the idnicator not being utilised anywhere. As such, the cOut gets set to an invalid value. I assume the immediate proximity of the FXP Reinterpret to the output of the sub-VI is an important aspect of this problem.
I think I know enough now to fix this problem (manually remove the path by duplicating the sub-vi) but this is perhaps a useful feedback for future bugfixes in the FPGA module. This isn't the first time this kind of incorrect code removal has given me problems but it's the first time I've been able to clearly locate the problem.
Shane
Say hello to my little friend.
RFC 2323 FHE-Compliant
Solved!
Go to Solution.I am currently attempting a compile after changing some things.
Just a side question. Is this particular to the Reinterpret node or are other "pink nodes" also affected by this? If I don't connect the output of a high throughput add, will it result in the same behaviour?
PS OK, it seems to be compiling now. I managed to juggle around the nodes a bit in my sub-VI to make sure the "reinterpret" is not the last node before the indicator. It seems to be compiling now. A question which is in my head at this time is: Does the "reinterpret" node prevent anything before it from being optimised away by the Xilinx compiler? Are there other nodes which cannot be removed, even if the outputs are not being used? This would immediately seem to suggest to me that such nodes need to be as close to the source as possible in order to reduce the amount of code which cannot be removed as "dead code" during the Xilinx compile process.
Say hello to my little friend.
RFC 2323 FHE-Compliant -
TRIM() not found? Compile error: Can't find project or library in Excel 2007
I am preparing to make a few alterations to a spreadsheet that another person built. I have NOT made any changes to it yet.
They put in a button that allows portions of the worksheet to print. I am now using Excel 2007. Their code ran fine in 2003.
The button had worked in Excel 2003- but now (without any changes) throws an error "Compile Error: Cant find project or library."
TRIM is highlighted in the following code: (See below for the whole sub)
If Trim(Worksheets("Measurements").Cells(RowCounter, ColumnCounter).Value) <> "" Then
If RowCounter > PrintRowMarker Then
PrintRowMarker = RowCounter
End If
If ColumnCounter > PrintColumnMarker Then
PrintColumnMarker = ColumnCounter + 1
End If
End If
I have added in the following references into Excel via the big button in the upper left and the "Excel Options" screens:
Analysis Toolpak and Analysis Toolpak-VBA. The sheet "Measurements" is present.
1) Are these the right packages for the TRIM function?
2) Is there a different Add-in that is needed?
3) Is there an additional step I must use to actually add in these packages?
4) Is there something else I should do?
Thanks-
Loralee
P.S. Access 2003 finds (it's version of) TRIM fine- so a version is on the machine. This spreadsheet if failing in the same way on 2 machines- both with Office 2007 installed.
Private Sub BtnPrint_Click()
Dim RowStarter As Integer 'Where to start checking rows for content
Dim RowCounter As Integer 'The current row being checked
Dim ColumnCounter As Integer 'The current column being checked
Dim PrintRowMarker As Long 'The last row with data
Dim PrintColumnMarker As Long 'The last column with data
Dim NoMoreData As Boolean 'Look for a blank record
Dim RangeValue As String 'Define the range string value
Dim EndRangeValue As String
PrintColumnMarker = 0
PrintRowMarker = 0 'Initialize the row printing marker
RowStarter = 5 'Print Starting Point
For RowCounter = 2005 To RowStarter Step -1
For ColumnCounter = 50 To 2 Step -1
If Trim(Worksheets("Measurements").Cells(RowCounter, ColumnCounter).Value) <> "" Then
If RowCounter > PrintRowMarker Then
PrintRowMarker = RowCounter
End If
If ColumnCounter > PrintColumnMarker Then
PrintColumnMarker = ColumnCounter + 1
End If
End If
Next ColumnCounter
If PrintRowMarker > 0 Then
End If
Next RowCounter
EndRangeValue = IndexToString(PrintRowMarker, PrintColumnMarker)
RangeValue = "$A$1:" & EndRangeValue
Worksheets("Measurements").PageSetup.PrintArea = RangeValue
Worksheets("Measurements").PageSetup.PrintGridlines = True 'Turn on gridlines
Worksheets("Measurements").PrintPreview 'PRINT THAT PUPPY!
End SubAppears OK to me but the error message " Cant find project or library." suggests it could possibly be the references in VBA.
In VBA select menu item Tools - References.
Ensure that the following are checked:-
Visual Basic for Applications
Microsoft Excel 12.0 Object Library
OLE Automation
Microsoft Office 12.0 Object Library
It there are any references displayed as Missing then scroll down to find the equivalent reference and check it and then uncheck the Missing one/s.
Regards, OssieMac -
Compile error : "unable to find javac compiler"
Hello,
I've got this problem compiling my java project: the error that I get is :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
init:
compile:
[javac] Compiling 9 source files to H:\project\class
BUILD FAILED
H:\project\build.sml:8: Unable to find a javac compiler;
com.sun.tools.Main is not on the classpath.
Perhaps JAVA_HOME does not point to th JDK
I'm using the following product:
a) MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
b) MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
c) JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
d) Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
In the C:\Program Files\JAVA map are the following maps:
- jdk1.5.0_05
- jre1.5.0_05
the settings in windows:
ANT_HOME C:\java\apache-ant-1.6.5
JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
Why doesn't it work ? And more important, How can I fix it ?
Thanks
NickHello,
I've got this problem compiling my java project: the error that I get is :
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
init:
compile:
[javac] Compiling 9 source files to H:\project\class
BUILD FAILED
H:\project\build.sml:8: Unable to find a javac compiler;
com.sun.tools.Main is not on the classpath.
Perhaps JAVA_HOME does not point to th JDK
I'm using the following product:
a) MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
b) MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
c) JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
d) Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
In the C:\Program Files\JAVA map are the following maps:
- jdk1.5.0_05
- jre1.5.0_05
the settings in windows:
ANT_HOME C:\java\apache-ant-1.6.5
JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
Why doesn't it work ? And more important, How can I fix it ?
Thanks
Nick -
Ant Build Error - Unable to find a javac compiler
I downloaded and installed the Sun Java Toolkit 1.0 for CDC. I can build and run the examples with no problem.
When I create my own project -- either by using the Create from Example option or the Create a New Project from Scratch option, I consistently receive this error message:
C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:295: The following error occurred while executing this line:
C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:148: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
BUILD FAILED (total time: 0 seconds)
Unfortunately, I'm not an Ant jock.
I'd like to go fiddling with the JAVA_HOME environmental variable on my system, but something tells me I shouldn't have to touch it; why would the examples work if JAVA_HOME weren't set properly?
Any ideas?I had the JDK installed and the JAVA_HOME set correctly to point to the JDK but it still gave the same error.
As I'm using Windows, I thought the problem may have been the spaces in the JAVA_HOME path, so I changed it to the old DOS style path e.g with the ~1. But that didn't work
Someone else suggested adding the JDK bin to the PATH, so I did that, but it didn't fix the problem.
Doing a search on the web, someone else using ANT had a similar problem, though not with the CDC, and added the tools.jar to the classpath
So I tried adding tool.jar to the classpath, and it worked !!
There is probably a better solution, but I couldn't find it, so I'll stick with this one until someone comes up with a better fix -
"cannot find this class" erro while creating Background Callable Object.
Hi All,
I am facing "cannot find this class" while creating Background Callable Object.
I followed the following document for Creating Background Callable Object.
[Creating Callable Objects for Background Execution|http://help.sap.com/saphelp_nwce10/helpdata/en/53/cde385301f4aa3b8e77a92cd46bff3/frameset.htm]
After giving the fully qualified java class name in the Implementation Class Name when i press next i am getting the error.
Please suggets me in solving this issue.
Regards,
S.V.Satish Kumar
Edited by: Sathish Kumar SV on Apr 4, 2009 10:34 AMHi, kavita.
First, make sure you choosed the correct container when you created the background CO.
Second, make sure your package name was "com.examples.bckgco" and class name was "UserDetailsCallableObject". The exception which you got just means you entered incorrect name.
It doesn`t relate to your program.
Best Regards.
Louis Huang. -
I recently installed iTunes 11.4.0 and cannot find how to view the files created by some apps on my iPhone (and iPad). There appears to be no way to view them as there was in the previous version. Also can't view screens and icon positons to manipulate them in iTunes. Any one no how to find them, or if they have been purposely removed from 11.4.0?
First, take a deep breath ... enjoy life.
Upgrade to the latest version 1.4.1. It's a free upgrade. It however will not alleviate your frustrations.
You can move a directory in Lr by clicking and dragging to a new location within the Folders panel. To create a new folder on a new drive ensure that no folders are selected (hint: click All Photographs in the Catalog panel) then click the + icon in the Folders panel. You will be presented with a dialog to choose or create a new folder.
To move selected photos to a new directory first select the images then right click the destination folder. You will be presented with several options including moving to the destination folder or creating a new folder under the destination folder.
You can also move images outside of Lr. Review these links:
http://www.adobeforums.com/webx/.3bc42055
http://livedocs.adobe.com/en_US/Lightroom/1.0/help.html?content=WS46FF9C0B-36EA-4271-B1D0- 07B6B46EE011.html
http://photo.net/bboard/q-and-a-fetch-msg?msg_id=00NqWO
http://luckhurst.wordpress.com/2007/08/21/lightroom-with-an-external-hard-drive/ -
Cannot find profile...cannot open newly downloaded thunderbird
download Thunderbird...get the message cannot find profile" and Thunderbird won't open, just shows the cannot find profile messae.
I uninstall, download again T
The download previously uninstalled shows in the list of programs (3 now) and I get the same message each time.do you have anything in a Thunderbird profile to save? I assume not and this advice will completely remove everything so you can install again.
in your start menu type %appdata%\roaming and press enter.
Delete the Thunderbird folder in the windows explorer window that opens
Rerun the Thunderbird installer. -
Cannot find the labview runtime when creating installer
I'm trying to create an installer and to add the labview 8.2.1 runtime. When I build the installer, a window pop and ask me to find where the runtime is located.
I have the runtime installed on my computer, but it doesn't seem to find it. What can I do to solve this problem?
Thnak you in advanceHere they are.
Thank you,
Attachments:
Error Labview1.jpg 52 KB
Error Labview21.jpg 84 KB -
HT1926 itunes cannot find itunes64.msi - help - cannot update or re-install
I first had trouble updating itunes. The installer couldn't find itunes64.msi. I uninstalled itunes and downloaded a new version. I still get the same message.
Please help. Thank you
[email protected]Well, I was finally able to delete all traces of the old itunes. Once that was done, I was able to install version 11.0.4.4 for Windows. Thanks to some messages on this board, I was able to solve my problem.
-
Cannot find database AIR says was created successfully
Hi,
I'm new to AIR development so maybe I'm not understanding
this correctly.
Following the example at
http://help.adobe.com/en_US/AIR/1.1/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7d49. html
Does the "DBSample.db" only exist while the application is
running?
I can't find the database anywhere on my system even though I
get the trace message "the database was created successfully"?
I'm using Eclipse Ganymede, FlexSDK3, AIR 1.0 on a Mac OSX
10.5.4
Thank youChange the creation success message to:
air.trace("the database was created successfully at: " +
air.File.applicationStorageDirectory.nativePath);
to see where the file is. I'm guessing that you just don't
realize how deeply buried the application storage directory
is. -
I had my MacBook Pro running Mt Lion OS X 10.8.3 disconnected from my Time Capsule, gen4 for a month. Upon returning, I get the message that my computer cannot connect to the Time Capsule for backup. It does however, pick up the wireless internet. How do I reconnect for backup?
Just pretend you are setting it up for the first time, and follow the directions here:
http://support.apple.com/kb/HT1178
Maybe you are looking for
-
Display sleeps only for a moment and then wakes up again
Since some days my display will go to sleep when pressing ctrl cmd eject keys. BUT is wakes up after just 5-15 seconds. It will not sleep automatically. Screensaver is working fine. Also sleeping of the whole iMac. Found work around: when I put setti
-
Adding one day to a oracle.jbo.domain.Date and truncating the time part
JDev 11.1.1.4.0 Hello I need to add a day to oracle.jbo.domain.Date and get back a oracle.jbo.domain.Date without the time part. So far I've got Date valueDate = (Date)rowCpt.getAttribute("ValueDate"); Calendar
-
Report on Annual leave details
Dear All, Would you please give a hint on the REPORT of giving all the annual leave details of the employees. Also, please advise the report name on leave balance. Thanks and best regards, Sophie Que
-
Hi! My turn to ask a question. I read some- and everywhere the Athlon XP has a MHz limit of 2500. It seems to be so, but is it? I tried on my own to find an answer, and below is a result of that, but... Why I don't ask AMD?! Before asking well-paid a
-
Get month and year from date type
Hi all, I need to get the month and year from the date type. For example select to_date('2011-01-17', 'yyyy-mm-dd') from dual;Result needed: 01-2011Any ideas? thanks in advance, Bahchevanov.