LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cross compile program for alpha architecture on i686-pc-linux-gnu (https://www.linuxquestions.org/questions/linux-software-2/cross-compile-program-for-alpha-architecture-on-i686-pc-linux-gnu-861033/)

owjian 02-06-2011 10:39 AM

Cross compile program for alpha architecture on i686-pc-linux-gnu
 
Hi all ,,

I try to cross compile a program for alpha architecture on i686-pc-linux-gnu...

Below is the output in my terminal when i run ./configure

root@ongwenjian-VPCCW25FG:~/Desktop/glide/glide3x# ./configure --prefix=/home/ongwenjian/Desktop/glide/build --enable-fx-glide-hw=h3 --enable-shared --enable-static --host=alphaev67-unknown-linux-gnu --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for alphaev67-unknown-linux-gnu-gcc... alphaev67-unknown-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether alphaev67-unknown-linux-gnu-gcc accepts -g... yes
checking for alphaev67-unknown-linux-gnu-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... alphaev67-unknown-linux-gnu-gcc -E
checking for alphaev67-unknown-linux-gnu-as... alphaev67-unknown-linux-gnu-as
checking for alphaev67-unknown-linux-gnu-objdump... alphaev67-unknown-linux-gnu-objdump
checking for alphaev67-unknown-linux-gnu-dlltool... no
checking for dlltool... no
checking for alphaev67-unknown-linux-gnu-cp... no
checking for cp... cp
configure: WARNING: using cross tools not prefixed with host triplet
configure: error: cannot run /bin/bash ./config.sub

I was wondering ,, how does the last two lines above could happen

configure: WARNING: using cross tools not prefixed with host triplet
configure: error: cannot run /bin/bash ./config.sub

Problem with automake ??

The program above required automake version 1.5 & below,,
so , i install the automake version 1.5 & below in $HOME/automake-temp and the existing automake stays at /usr/share/automake

the configure script was generated by using aclocal && automake && autoconf

I try to run /bin/bash , it has no problem at all

Pls advice ...

business_kid 02-07-2011 03:13 AM

No, I wouldn't worry about dlltool. alphaev67-unknown-linux-gnu-cp is a different matter. It should be referenced in where you have all the other cross compile tools. check if you can use gnu cp as installed and then put in the symlink. You may have to do that for many things.

owjian 02-07-2011 06:06 AM

I attach a config.log file for your reference ,, I really cant find out where I missed

Same comment from my lecturer (supervisor) that dlltool is not the matter and same goes to cp ...

Here is the config.log file

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.67. Invocation command line was

$ ./configure --prefix=/home/ongwenjian/Desktop/glide/build --enable-fx-glide-hw=h3 --enable-shared --enable-static --enable-build-architecture=alpha --host=alphaev67-unknown-linux-gnu --build=i686-pc-linux-gnu --target=alphaev67-unknown-linux-gnu

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

hostname = ongwenjian-VPCCW25FG
uname -m = i686
uname -r = 2.6.35-24-generic
uname -s = Linux
uname -v = #42-Ubuntu SMP Thu Dec 2 01:41:57 UTC 2010

/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: /home/ongwenjian/alphaev67-unknown-linux-gnu/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


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

configure:2459: checking for a BSD-compatible install
configure:2527: result: /usr/bin/install -c
configure:2538: checking whether build environment is sane
configure:2575: result: yes
configure:2587: checking whether make sets $(MAKE)
configure:2609: result: yes
configure:2639: checking for working aclocal
configure:2646: result: found
configure:2654: checking for working autoconf
configure:2661: result: found
configure:2669: checking for working automake
configure:2676: result: found
configure:2684: checking for working autoheader
configure:2691: result: found
configure:2699: checking for working makeinfo
configure:2706: result: found
configure:3113: checking for alphaev67-unknown-linux-gnu-gcc
configure:3129: found /home/ongwenjian/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-gcc
configure:3140: result: alphaev67-unknown-linux-gnu-gcc
configure:3409: checking for C compiler version
configure:3418: alphaev67-unknown-linux-gnu-gcc --version >&5
alphaev67-unknown-linux-gnu-gcc (crosstool-NG-1.3.3) 4.3.2
Copyright (C) 2008 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:3429: $? = 0
configure:3418: alphaev67-unknown-linux-gnu-gcc -v >&5
Using built-in specs.
Target: alphaev67-unknown-linux-gnu
Configured with: /home/neo/work/alphaev67-unknown-linux-2.6.26/targets/src/gcc-4.3.2/configure --build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu --target=alphaev67-unknown-linux-gnu --prefix=/home/neo/work/x-tools/alphaev67-unknown-linux-gnu --with-sysroot=/home/neo/work/x-tools/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root --enable-languages=c,c++,fortran --disable-multilib --with-cpu=ev67 --with-tune=ev67 --with-gmp=/home/neo/work/x-tools/alphaev67-unknown-linux-gnu --with-mpfr=/home/neo/work/x-tools/alphaev67-unknown-linux-gnu --with-pkgversion=crosstool-NG-1.3.3 --enable-__cxa_atexit --with-local-prefix=/home/neo/work/x-tools/alphaev67-unknown-linux-gnu/alphaev67-unknown-linux-gnu/sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.3.2 (crosstool-NG-1.3.3)
configure:3429: $? = 0
configure:3418: alphaev67-unknown-linux-gnu-gcc -V >&5
alphaev67-unknown-linux-gnu-gcc: '-V' option must have argument
configure:3429: $? = 1
configure:3418: alphaev67-unknown-linux-gnu-gcc -qversion >&5
alphaev67-unknown-linux-gnu-gcc: unrecognized option '-qversion'
alphaev67-unknown-linux-gnu-gcc: no input files
configure:3429: $? = 1
configure:3449: checking whether the C compiler works
configure:3471: alphaev67-unknown-linux-gnu-gcc conftest.c >&5
configure:3475: $? = 0
configure:3523: result: yes
configure:3526: checking for C compiler default output file name
configure:3528: result: a.out
configure:3534: checking for suffix of executables
configure:3541: alphaev67-unknown-linux-gnu-gcc -o conftest conftest.c >&5
configure:3545: $? = 0
configure:3567: result:
configure:3589: checking whether we are cross compiling
configure:3627: result: yes
configure:3632: checking for suffix of object files
configure:3654: alphaev67-unknown-linux-gnu-gcc -c conftest.c >&5
configure:3658: $? = 0
configure:3679: result: o
configure:3683: checking whether we are using the GNU C compiler
configure:3702: alphaev67-unknown-linux-gnu-gcc -c conftest.c >&5
configure:3702: $? = 0
configure:3711: result: yes
configure:3720: checking whether alphaev67-unknown-linux-gnu-gcc accepts -g
configure:3740: alphaev67-unknown-linux-gnu-gcc -c -g conftest.c >&5
configure:3740: $? = 0
configure:3781: result: yes
configure:3798: checking for alphaev67-unknown-linux-gnu-gcc option to accept ISO C89
configure:3862: alphaev67-unknown-linux-gnu-gcc -c -g -O2 conftest.c >&5
configure:3862: $? = 0
configure:3875: result: none needed
configure:3900: checking how to run the C preprocessor
configure:3931: alphaev67-unknown-linux-gnu-gcc -E conftest.c
configure:3931: $? = 0
configure:3945: alphaev67-unknown-linux-gnu-gcc -E conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:3945: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "glide"
| #define VERSION "3.0"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3970: result: alphaev67-unknown-linux-gnu-gcc -E
configure:3990: alphaev67-unknown-linux-gnu-gcc -E conftest.c
configure:3990: $? = 0
configure:4004: alphaev67-unknown-linux-gnu-gcc -E conftest.c
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
configure:4004: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "glide"
| #define VERSION "3.0"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4035: checking for alphaev67-unknown-linux-gnu-as
configure:4051: found /home/ongwenjian/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-as
configure:4062: result: alphaev67-unknown-linux-gnu-as
configure:4127: checking for alphaev67-unknown-linux-gnu-objdump
configure:4143: found /home/ongwenjian/alphaev67-unknown-linux-gnu/bin/alphaev67-unknown-linux-gnu-objdump
configure:4154: result: alphaev67-unknown-linux-gnu-objdump
configure:4219: checking for alphaev67-unknown-linux-gnu-dlltool
configure:4249: result: no
configure:4259: checking for dlltool
configure:4289: result: no
configure:4311: checking for alphaev67-unknown-linux-gnu-cp
configure:4341: result: no
configure:4351: checking for cp
configure:4367: found /bin/cp
configure:4378: result: cp
configure:4390: WARNING: using cross tools not prefixed with host triplet
configure:4428: error: cannot run /bin/bash ./config.sub

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

ac_cv_c_compiler_gnu=yes
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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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=alphaev67-unknown-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=alphaev67-unknown-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AS=alphaev67-unknown-linux-gnu-as
ac_cv_prog_CC=alphaev67-unknown-linux-gnu-gcc
ac_cv_prog_CPP='alphaev67-unknown-linux-gnu-gcc -E'
ac_cv_prog_OBJDUMP=alphaev67-unknown-linux-gnu-objdump
ac_cv_prog_ac_ct_CP=cp
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes

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

ACLOCAL='aclocal'
AR=''
AS='alphaev67-unknown-linux-gnu-as'
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake'
CC='alphaev67-unknown-linux-gnu-gcc'
CFLAGS='-g -O2'
CP='cp'
CPP='alphaev67-unknown-linux-gnu-gcc -E'
CPPFLAGS=''
DEFS=''
DLLTOOL='false'
DRI_BUILD='true'
DRI_BUILD_FALSE='#'
DRI_BUILD_TRUE=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
FX_CHRIS_DENIS_ANTHONY_HACK_FALSE=''
FX_CHRIS_DENIS_ANTHONY_HACK_TRUE='#'
FX_DLL_BUILD_FALSE=''
FX_DLL_BUILD_TRUE='#'
FX_GLIDE3_FALSE='#'
FX_GLIDE3_TRUE=''
FX_GLIDE_ALT_TAB_FALSE=''
FX_GLIDE_ALT_TAB_TRUE='#'
FX_GLIDE_BUILD_ARCHITECTURE='alpha'
FX_GLIDE_CTRISETUP_FALSE=''
FX_GLIDE_CTRISETUP_TRUE='#'
FX_GLIDE_CVG_FALSE=''
FX_GLIDE_CVG_TRUE='#'
FX_GLIDE_DEBUG_FIFO_FALSE=''
FX_GLIDE_DEBUG_FIFO_TRUE='#'
FX_GLIDE_DIRECT_WRITE_FALSE=''
FX_GLIDE_DIRECT_WRITE_TRUE='#'
FX_GLIDE_H3_FALSE='#'
FX_GLIDE_H3_TRUE=''
FX_GLIDE_H5_FALSE=''
FX_GLIDE_H5_TRUE='#'
FX_GLIDE_HW='h3'
FX_GLIDE_HW_CULL_FALSE=''
FX_GLIDE_HW_CULL_TRUE='#'
FX_GLIDE_NO_FIFO_FALSE=''
FX_GLIDE_NO_FIFO_TRUE='#'
FX_GLIDE_NO_PLUG_FALSE=''
FX_GLIDE_NO_PLUG_TRUE='#'
FX_GLIDE_NO_SPLASH_FALSE=''
FX_GLIDE_NO_SPLASH_TRUE='#'
FX_GLIDE_PACKET_FIFO_FALSE='#'
FX_GLIDE_PACKET_FIFO_TRUE=''
FX_GLIDE_SW_SETUP_FALSE=''
FX_GLIDE_SW_SETUP_TRUE='#'
FX_GLIDE_VERTEX_TABLE_FALSE=''
FX_GLIDE_VERTEX_TABLE_TRUE='#'
FX_HOOPTI_TRI_SETUP_COMPARE_FALSE=''
FX_HOOPTI_TRI_SETUP_COMPARE_TRUE='#'
FX_HW_PROJECTS='glide3'
GLIDE_DEBUG='false'
GLIDE_DEBUG_FALSE=''
GLIDE_DEBUG_TRUE='#'
GLIDE_SANITY_ALL_FALSE=''
GLIDE_SANITY_ALL_TRUE='#'
GLIDE_SANITY_SIZE_FALSE=''
GLIDE_SANITY_SIZE_TRUE='#'
GL_AMD3D_FALSE=''
GL_AMD3D_TRUE='#'
GREP=''
HAL_CSIM_FALSE=''
HAL_CSIM_TRUE='#'
HAL_HW_FALSE=''
HAL_HW_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKE=''
MAKEINFO='makeinfo'
NM=''
NMEDIT=''
OBJDUMP='alphaev67-unknown-linux-gnu-objdump'
OBJEXT='o'
OTOOL64=''
OTOOL=''
PACKAGE='glide'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
TEXTURE_UTILITIES_DIR='texus2'
VERSION='3.0'
XMKMF=''
ac_ct_CC=''
ac_ct_DUMPBIN=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='alphaev67-unknown-linux-gnu'
host_alias='alphaev67-unknown-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include/glide3'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/ongwenjian/Desktop/glide/build'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='alphaev67-unknown-linux-gnu'

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "glide"
#define VERSION "3.0"

configure: exit 2

business_kid 02-08-2011 02:40 AM

There's really no need to post all of everything. Post the snippets, wrapped in tags. I don't have cross compile tools to hand, but I do have compile tools. In /usr/i486-slackware-linux/bin there are symlinks to all the required tools. It is looking for a symlink there called cp to a program that functions as a copy in yopur environment. In the fictional words of Luc Picard, "Make it so."


All times are GMT -5. The time now is 04:28 AM.