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/)
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
I can't compile thrift properly, when I use make, this is the output:
make all
make all-recursive
make[1]: Entering directory `/root/thrift'
Making all in compiler/cpp
make[2]: Entering directory `/root/thrift/compiler/cpp'
make all-am
make[3]: Entering directory `/root/thrift/compiler/cpp'
g++ -DHAVE_CONFIG_H -I. -I../.. -Wall -I./src -D PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE -MT thrift-thrifty.o -MD -MP -MF .deps/thrift-thrifty.Tpo -c -o thrift-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc
In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:41,
from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
from /usr/include/c++/4.4/ext/atomicity.h:34,
from /usr/include/c++/4.4/bits/basic_string.h:41,
from /usr/include/c++/4.4/string:53,
from ./src/main.h:23,
from thrifty.yy:33:
/usr/include/pthread.h:55: error: redefinition of 'PTHREAD_MUTEX_RECURSIVE'
/usr/include/pthread.h:49: error: 'PTHREAD_MUTEX_RECURSIVE' previously defined here
make[3]: *** [thrift-thrifty.o] Error 1
make[3]: Leaving directory `/root/thrift/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/thrift/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/thrift'
make: *** [all] Error 2
Any ideas? thanks :)