Im new to FreeBSD and I'm attempting to install PHP-Eclipse. During the installation process I get the following error. Does anyone know what it mean and how to fix it? Thanks.
Below is the the output:
[echo] +---------------------------------------+
[echo] + Finishing ant project jaxws
[echo] +---------------------------------------+
BUILD SUCCESSFUL
Total time: 12 seconds
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/jaxws/make'
/bin/mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
/bin/mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/import
cd ./hotspot/make && \
gmake JDK_TOPDIR=/usr/ports/java/openjdk6/work/jdk JDK_MAKE_SHARED_DIR=/usr/ports/java/openjdk6/work/jdk/make/common/shared EXTERNALSANITYCONTROL=true TARGET_CLASS_VERSION=5 MILESTONE=fcs BUILD_NUMBER=b24 JDK_BUILD_NUMBER=b24 FULL_VERSION=1.6.0_30-b24 PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.6.0_30 JDK_MKTG_VERSION=6u30 JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=6 JDK_MICRO_VERSION=0 ARCH_DATA_MODEL=64 COOKED_JDK_UPDATE_VERSION=300 COOKED_BUILD_NUMBER=24 ANT_HOME="/usr/ports/java/openjdk6/work/apache-ant-1.8.2" ALT_OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir ALT_EXPORT_PATH=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/import ALT_SLASH_JAVA=/NOT-SET ALT_BOOTDIR=/usr/local/jdk1.6.0 ALT_LANGTOOLS_DIST=/usr/ports/java/openjdk6/work/build/bsd-i386/langtools/dist all_product
gmake[2]: Entering directory `/usr/ports/java/openjdk6/work/hotspot/make'
Makefile:375: target `/Xusage.txt' given more than once in the same rule.
cd /usr/ports/java/openjdk6/work/hotspot/make; \
gmake VM_TARGET=product generic_build2 ALT_OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
gmake[3]: Entering directory `/usr/ports/java/openjdk6/work/hotspot/make'
Makefile:375: target `/Xusage.txt' given more than once in the same rule.
mkdir -p /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir
cd /usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir; \
gmake -f /usr/ports/java/openjdk6/work/hotspot/make/bsd/Makefile \
LP64=1 JAVA_HOME=/usr/local/jdk1.6.0 OUTPUTDIR=/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir GAMMADIR=/usr/ports/java/openjdk6/work/hotspot MAKE_VERBOSE=y HOTSPOT_RELEASE_VERSION=20.0-b12 JRE_RELEASE_VERSION=1.6.0_30-b24 HOTSPOT_BUILD_VERSION= product
gmake[4]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
cd bsd_amd64_compiler2/product && gmake -w " LP64=1 "
gmake[5]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[6]: Entering directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
Compiling /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
rm -f ../generated/adfiles/adlparse.o
/usr/bin/g++ -D_ALLBSD_SOURCE -D_GNU_SOURCE -DAMD64 -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/prims -I/usr/ports/java/openjdk6/work/hotspot/src/cpu/x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os/bsd/vm -I/usr/ports/java/openjdk6/work/hotspot/src/os_cpu/bsd_x86/vm -I/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc -I../generated -DASSERT -O2 -pipe -fno-strict-aliasing -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -DTARGET_OS_FAMILY_bsd -DTARGET_ARCH_x86 -DTARGET_ARCH_MODEL_x86_64 -DTARGET_OS_ARCH_bsd_x86 -DTARGET_OS_ARCH_MODEL_bsd_x86_64 -DTARGET_COMPILER_gcc -DCOMPILER2 -DCOMPILER1 -fno-rtti -fno-exceptions -pthread -fcheck-new -m64 -pipe -Werror -g -c -o ../generated/adfiles/adlparse.o /usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp
/usr/ports/java/openjdk6/work/hotspot/src/share/vm/adlc/adlparse.cpp:1: sorry, unimplemented: 64-bit mode not compiled in
gmake[6]: *** [../generated/adfiles/adlparse.o] Error 1
gmake[6]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[5]: *** [ad_stuff] Error 2
gmake[5]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir/bsd_amd64_compiler2/product'
gmake[4]: *** [product] Error 2
gmake[4]: Leaving directory `/usr/ports/java/openjdk6/work/build/bsd-i386/hotspot/outputdir'
gmake[3]: *** [generic_build2] Error 2
gmake[3]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[2]: *** [product] Error 2
gmake[2]: Leaving directory `/usr/ports/java/openjdk6/work/hotspot/make'
gmake[1]: *** [hotspot-build] Error 2
gmake[1]: Leaving directory `/usr/ports/java/openjdk6/work'
gmake: *** [build_product_image] Error 2
*** Error code 1
Stop in /usr/ports/java/openjdk6.
*** Error code 1
Stop in /usr/ports/java/openjdk6.
*** Error code 1
Stop in /usr/ports/java/eclipse.
*** Error code 1
Stop in /usr/ports/java/eclipse.
*** Error code 1
Stop in /usr/ports/java/phpeclipse.
The problem seems to be the -m64 in the compiler flags.
Did you have set any custom CFLAGS or CPUTYPE in /etc/make.conf? If yes remove them
If not, you might try to install openjdk from a binart package with pkg_add
Related
I am using the cross compile environemt from the Intel Site and have successfully compiled several other libraries using it (libsndfile, alsa, fftw) but when I try to compile portaudio it refuses to link to the proper directories. Here is the error I get:
if test -n " bindings/cpp" ; then for dir in " bindings/cpp"; do make -C $dir all; done ; fi
make[1]: Entering directory '/home/theslat/Downloads/portaudio/bindings/cpp'
Making all in lib
make[2]: Entering directory '/home/theslat/Downloads/portaudio/bindings/cpp/lib'
/bin/sh ../libtool --tag=CXX --mode=link i586-poky-linux-g++ -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=/usr/edison/sysroots/core2-32-poky-linux -O2 -pipe -g -feliminate-unused-debug-types -version-info 0:12:0 -no-undefined -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o libportaudiocpp.la -rpath /usr/local/lib BlockingStream.lo CallbackInterface.lo CallbackStream.lo CFunCallbackStream.lo CppFunCallbackStream.lo Device.lo DirectionSpecificStreamParameters.lo Exception.lo HostApi.lo InterfaceCallbackStream.lo MemFunCallbackStream.lo Stream.lo StreamParameters.lo System.lo SystemDeviceIterator.lo SystemHostApiIterator.lo ../../../lib/libportaudio.la
libtool: link: i586-poky-linux-g++ -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=/usr/edison/sysroots/core2-32-poky-linux -fPIC -DPIC -shared -nostdlib /usr/edison/sysroots/core2-32-poky-linux/usr/lib/crti.o /usr/edison/sysroots/core2-32-poky-linux/usr/lib/i586-poky-linux/4.9.1/crtbeginS.o .libs/BlockingStream.o .libs/CallbackInterface.o .libs/CallbackStream.o .libs/CFunCallbackStream.o .libs/CppFunCallbackStream.o .libs/Device.o .libs/DirectionSpecificStreamParameters.o .libs/Exception.o .libs/HostApi.o .libs/InterfaceCallbackStream.o .libs/MemFunCallbackStream.o .libs/Stream.o .libs/StreamParameters.o .libs/System.o .libs/SystemDeviceIterator.o .libs/SystemHostApiIterator.o -Wl,-rpath -Wl,/home/theslat/Downloads/portaudio/lib/.libs -Wl,-rpath -Wl,/usr/local/lib ../../../lib/.libs/libportaudio.so -L/usr/edison/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/../../lib/i586-poky-linux/gcc/i586-poky-linux/4.9.1 -L/usr/edison/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/../../lib/i586-poky-linux/gcc -L/usr/edison/sysroots/core2-32-poky-linux/lib -L/usr/edison/sysroots/core2-32-poky-linux/usr/lib/i586-poky-linux/4.9.1 -L/usr/edison/sysroots/core2-32-poky-linux/usr/lib /usr/lib/libstdc++.so -lm -lc -lgcc_s /usr/edison/sysroots/core2-32-poky-linux/usr/lib/i586-poky-linux/4.9.1/crtendS.o /usr/edison/sysroots/core2-32-poky-linux/usr/lib/crtn.o -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign --sysroot=/usr/edison/sysroots/core2-32-poky-linux -O2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-soname -Wl,libportaudiocpp.so.0 -o .libs/libportaudiocpp.so.0.0.12
/usr/lib/libstdc++.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:311: libportaudiocpp.la] Error 1
make[2]: Leaving directory '/home/theslat/Downloads/portaudio/bindings/cpp/lib'
make[1]: *** [Makefile:333: all-recursive] Error 1
make[1]: Leaving directory '/home/theslat/Downloads/portaudio/bindings/cpp'
make: *** [Makefile:251: all-recursive] Error 2
It seems like it is trying to link against my computers normal libstdc++ and I don't know why. I have tried feedin configure a variaty of LDFLAG with the right directories and have reinstalled the toolchain and all my multilibs but no luck.
I also ran into this issue and the easiest way is to source the environment file again after doing a sudo su on the same command line and then do a make install.
Here are the steps I followed to cross compile portaudio for intel edison:
Download the cross compiler edison-toolchain-20150120-linux64.tar.bz2 and the script toolchain-20140724-linux64.sh from this link
Extract the toolchain, run the script (you can put it in your home directory somewhere if you wish) and set up the cross-compile environment
$ tar -xvf edison-toolchain-20150120-linux64.tar.bz2
$ chmod +x toolchain-20140724-linux64.sh
$ ./toolchain-20140724-linux64.sh
$ source /opt/poky-edison/1.6/environment-setup-core2-32-poky-linux
Check the environment on your shell:
$ echo $CC
$ i586-poky-linux-gcc -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=/opt/poky-edison/1.6/sysroots/core2-32-poky-linux
Configure, compile and install portaudio:
$ ./configure
$ make
$ sudo su
# source /opt/poky-edison/1.6/environment-setup-core2-32-poky-linux
# make install
I am suprised that nobody grabbed this but also that it was difficult to find the proper answer anywhere else despite seeing many other people with similar (unresolved issues). The answer is frankly so simple I am embarrased that I overlooked it, but here it is so maybe someone else can find it.
make install required root privilages if the cross-compile SDK is in /opt or somewhere else you do not own. But... sudo does not preserve the environmental variable I had set up for the toolchain! Very simple, also su -m does not work the way I thought it did. Working solutions as follows:
Just install the SDK somewhere in your home directory. you now have write permissions, problem solved.
Run a single command as root while preserving the environment: su -m <yourUserName> -c '$CC main.cpp -lfoo -lbar ...'
The key in numer 2 is the username after -m, at least on my system leaving out the username there produced no errors but failed to preserve my environment.
I am a newbie to Linux and ubuntu, but i am trying to install John the Ripper on a new server running ubuntu 15.04. i have it downloaded using:
wget http://www.openwall.com/john/j/john-1.8.0.tar.xz
then i unpacked it with:
tar -xzvf john-1.8.0.tar.gz
then, i cd into the src directory as per the instructions and run:
sudo make clean linux-x86-64
and this error is being returned (and i am trying to figure out what it means/ how to fix it)
rm -f ../run/john ../run/unshadow ../run/unafs ../run/unique
../run/john.bin ../run/john.com ../run/unshadow.com ../run/unafs.com
../run/unique.com ../run/john.exe ../run/unshadow.exe ../run/unafs.exe
../run/unique.exe
rm -f ../run/john.exe john-macosx-* *.o *.bak core
rm -f detect bench generic.h arch.h tmp.s
cp /dev/null Makefile.dep
ln -sf x86-64.h arch.h
make ../run/john ../run/unshadow ../run/unafs ../run/unique \
JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o BSDI_fmt.o MD5_fmt.o
MD5_std.o BF_fmt.o BF_std.o AFS_fmt.o LM_fmt.o trip_fmt.o dummy.o
batch.o bench.o charset.o common.o compiler.o config.o cracker.o
crc32.o external.o formats.o getopt.o idle.o inc.o john.o list.o
loader.o logger.o math.o memory.o misc.o options.o params.o path.o
recovery.o rpp.o rules.o signals.o single.o status.o tty.o wordlist.o
unshadow.o unafs.o unique.o c3_fmt.o x86-64.o" \
CFLAGS="-c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer
-DHAVE_CRYPT" \
LDFLAGS="-s -lcrypt"
make[1]: Entering directory '/home/mike/john-1.8.0/src'
gcc -c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer -
DHAVE_CRYPT -funroll-loops DES_fmt.c
make[1]: gcc: Command not found
Makefile:896: recipe for target 'DES_fmt.o' failed
make[1]: *** [DES_fmt.o] Error 127
make[1]: Leaving directory '/home/mike/john-1.8.0/src'
Makefile:183: recipe for target 'linux-x86-64' failed
make: *** [linux-x86-64] Error 2
You need to install the C compiler, GCC.
sudo apt-get install gcc
You will probably bump into missing libraries next. Read the documentation in the tarball to find out what else you need. (Probably at least libcrypt-dev.)
When I try to install yuvmotionfps-1.6 (http://jcornet.free.fr/linux/yuvmotionfps.html).
I run into the following error when running make, it seems like (gcc: error: unrecognized command line option '-march') is the problem.
How do I fix this?
Here is the output of my install process (I truncated some of the seemingly unnecessary output):
sudo ./configure
.....................
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating yuvmotionfps/Makefile
config.status: creating utils/Makefile
config.status: creating utils/altivec/Makefile
config.status: creating utils/mmxsse/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing mjpegtools-config.h commands
config.status: creating mjpegtools-config.h (prefix MJPEGTOOLS for config.h)
config.status: mjpegtools-config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
configure: MJPEG tools 1.7.0 build configuration :
configure:
configure: - X86 Optimizations:
configure: - MMX/3DNow!/SSE enabled : true
configure: - arch/cpu compiler flags : Your does not even support "i386" for '-march' and '-mcpu'.
configure: - video4linux recording/playback: true
configure: - software MJPEG playback : true
configure: - MPEG Z/Alpha : false
configure: - Quicktime playback/recording : false
configure: - PNG input support : true
configure: - AVI MJPEG playback/recording : true (always)
configure: - libDV (digital video) support : false
configure: - Gtk+ support for glav : true
configure:
sudo sh autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
utils/Makefile.am:14: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
utils/altivec/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
utils/mmxsse/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
yuvmotionfps/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
sudo make
................
make[1]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6'
Making all in utils
make[2]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
Making all in mmxsse
make[3]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils Your does not even support "i386" for '-march' and '-mcpu'. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c -o build_sub22_mests.lo build_sub22_mests.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils Your does not even support i386 for -march and -mcpu. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c build_sub22_mests.c -fPIC -DPIC -o .libs/build_sub22_mests.o
gcc: error: Your: No such file or directory
gcc: error: does: No such file or directory
gcc: error: not: No such file or directory
gcc: error: even: No such file or directory
gcc: error: support: No such file or directory
gcc: error: i386: No such file or directory
gcc: error: for: No such file or directory
gcc: error: and: No such file or directory
gcc: error: unrecognized command line option '-march'
gcc: error: unrecognized command line option '-mcpu.'
make[3]: *** [build_sub22_mests.lo] Error 1
make[3]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6'
make: *** [all] Error 2
sudo make install
Making install in utils
make[1]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
Making install in mmxsse
make[2]: Entering directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils Your does not even support "i386" for '-march' and '-mcpu'. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c -o build_sub22_mests.lo build_sub22_mests.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../utils Your does not even support i386 for -march and -mcpu. -g -O2 -pthread -Wall -Wunused -MT build_sub22_mests.lo -MD -MP -MF .deps/build_sub22_mests.Tpo -c build_sub22_mests.c -fPIC -DPIC -o .libs/build_sub22_mests.o
gcc: error: Your: No such file or directory
gcc: error: does: No such file or directory
gcc: error: not: No such file or directory
gcc: error: even: No such file or directory
gcc: error: support: No such file or directory
gcc: error: i386: No such file or directory
gcc: error: for: No such file or directory
gcc: error: and: No such file or directory
gcc: error: unrecognized command line option '-march'
gcc: error: unrecognized command line option '-mcpu.'
make[2]: *** [build_sub22_mests.lo] Error 1
make[2]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils/mmxsse'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/simon/Applications/yuvmotionfps-1.6/utils'
make: *** [install-recursive] Error 1
It seems like for some reason the following error message crept in the makefiles when autogen.sh was run:
CFLAGS='Your does not even support "i386" for '-march' and '-mcpu'. -g -O2 -pthread -Wall -Wunused'
I removed the sentence 'Your does not even support "i386" for '-march' and '-mcpu'. from all the makefiles. That lead to a successful compilation.
I want ask " how to manual install sendmail in CentOS " .
I can install it by command "yum install" , but i need install manual .
I went to the homepage http://www.sendmail.com/sm/open_source/download/
and download the "sendmail.8.14.9.tar.gz" but do not know how to install It . I try unrar and type the command "./Build" but it is't work
Here is error :
/home/duc/Desktop/sendmail-8.14.9/libsm
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[1]: cc: Command not found
make[1]: *** [assert.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmutil
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o debug.o debug.c
make[1]: cc: Command not found
make[1]: *** [debug.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmdb
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o smdb.o smdb.c
make[1]: cc: Command not found
make[1]: *** [smdb.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/sendmail
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/editmap
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'
Please help me !! Sorry for my bad english
It can't find C compiler:
make[1]: cc: Command not found
The build system is reading value of CC environment variable, so assign it a path to your compiler, e.g.
export CC=/usr/bin/gcc
As Oleksandr Kravchuk said, you need to link your gcc to cc. First try to execute below commands.
$ which gcc
If you have gcc packages on your server, you can see the output of your commands.
$ which gcc
/usr/bin/gcc
$
If you have root privileges, please make symbolic link of gcc to /usr/bin/cc.
$ sudo ln -s /usr/bin/gcc /usr/bin/cc
Then it'll be works.
I want to write a program to read from an FTDI device using the D2XX library in ezsdk 6.0 BeagleBoard.
I use Ubuntu 12.04 LTS (Precise Pangolin) for compilation.
I downloaded libftd2xx1.1.12.tar.gz from http://www.ftdichip.com
Unpacked the archive
Copied arm926 lib files to \usr\local\lib
Created a symbolic link with proper permission and
cross compiled
with the arm-linux-gnueabihf-gcc toolchain
I followed (http://www.ftdichip.com/Drivers/D2XX/Linux/ReadMe-linux.txt) and on cross compiling it shows the error 'cannot find -lftd2xx'
shihab#shihab:~/Downloads/release/examples$ make -B CC=arm-linux-gnueabihf-gcc
for n in BitMode EEPROM/erase EEPROM/read EEPROM/write EEPROM/user/read EEPROM/user/size EEPROM/user/write Events LargeRead MultiThread SetVIDPID Simple Timeouts ; do make -C $n || exit 1; done
make[1]: Entering directory `/home/shihab/Downloads/release/examples/BitMode'
arm-linux-gnueabihf-gcc main.c -o bitmode -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lftd2xx
collect2: ld returned 1 exit status
make[1]: *** [bitmode] Error 1
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/BitMode'
make: *** [subdirs] Error 1
shihab#shihab:~/Downloads/release/examples$
But when I followed it for i386 architecture it compiles fine
Unpacked the archive
Copied i386 lib files to \usr\local\lib
Created a symbolic link with proper permission and
compiled gcc
it compiles fine.
shihab#shihab:~/Downloads/release/examples$ make -B
for n in BitMode EEPROM/erase EEPROM/read EEPROM/write EEPROM/user/read EEPROM/user/size EEPROM/user/write Events LargeRead MultiThread SetVIDPID Simple Timeouts ; do make -C $n || exit 1; done
make[1]: Entering directory `/home/shihab/Downloads/release/examples/BitMode'
gcc main.c -o bitmode -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/BitMode'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/erase'
gcc main.c -o erase -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/erase'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/read'
gcc main.c -o read -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/read'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/write'
gcc main.c -o write -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/write'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/user/read'
gcc main.c -o readua -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/user/read'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/user/size'
gcc main.c -o sizeua -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/user/size'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/EEPROM/user/write'
gcc main.c -o writeua -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/EEPROM/user/write'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/Events'
gcc main.c -o events -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/Events'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/LargeRead'
gcc main.c -o largeread -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/LargeRead'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/MultiThread'
gcc main.c -o multi -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/MultiThread'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/SetVIDPID'
gcc main.c -o setVIDPID -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/SetVIDPID'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/Simple'
gcc main.c -o simple -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/Simple'
make[1]: Entering directory `/home/shihab/Downloads/release/examples/Timeouts'
gcc main.c -o timeouts -Wall -Wextra -L. -lftd2xx -Wl,-rpath /usr/local/lib
make[1]: Leaving directory `/home/shihab/Downloads/release/examples/Timeouts'
shihab#shihab:~/Downloads/release/examples$ cd EEPROM/read/
shihab#shihab:~/Downloads/release/examples/EEPROM/read$ ./read
Library version = 0x10112
Opening port 0
FT_Open(0) failed
shihab#shihab:~/Downloads/release/examples/EEPROM/read$
There is no 'cannot find -lftd2xx' error, and it compiles fine.
I am new to Linux; what is wrong with my steps?
You need to unload ftdi_ser module (by rmmod ftdi_sio before you can use the ftd2xx library. As the kernel loads the ftdi_sio module automatically, you may need to put it on a blacklist.
The library published on the FTDI homepage is not compiled for arm-hf. A version compiled for arm_hf is available here
Kernel versions are different..
arm926 built for kernel version 2.6.32
Ezsdk 6.0 for beagleboard XM uses kernel version 3.3.7
I think, need to use open source library (http://www.intra2net.com/en/developer/libftdi/)