pereraa / iphone-dev

Automatically exported from code.google.com/p/iphone-dev
0 stars 0 forks source link

make odcctools fails on fedora x86_64 #37

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. follow build steps  on wiki
2. when you get to "Build odcctools." step, and do $ make

output of the last 2 commands
---------------------------
$ uname -a
Linux myhostname 2.6.22.5-76.fc7 #1 SMP Thu Aug 30 13:08:59 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux

$ pwd 
/home/gax/opt/iphone-dev/iphone-dev/odcctools

$ make
cd libstuff && make
make[1]: Entering directory
`/home/gax/opt/iphone-dev/iphone-dev/odcctools/libstuff'
gcc -Wall -Wno-import  -DHAVE_CONFIG_H -D__LITTLE_ENDIAN__=1  
-I..//include -I../include -include ../include/extern.h
-I../include/foreign -g -O2 -fno-builtin-round -fno-builtin-trunc   -c -o
allocate.o allocate.c
In file included from ..//include/mach/i386/vm_types.h:67,
                 from ..//include/mach/machine/vm_types.h:30,
                 from ..//include/mach/port.h:80,
                 from ..//include/mach/std_types.h:64,
                 from ..//include/mach/mach.h:61,
                 from allocate.c:27:
..//include/i386/_types.h:40: error: conflicting types for ‘__int64_t’
/usr/include/bits/types.h:47: error: previous declaration of ‘__int64_t’
was here
..//include/i386/_types.h:41: error: conflicting types for ‘__uint64_t’
/usr/include/bits/types.h:48: error: previous declaration of ‘__uint64_t’
was here
make[1]: *** [allocate.o] Error 1
make[1]: Leaving directory
`/home/gax/opt/iphone-dev/iphone-dev/odcctools/libstuff'
make: *** [libstuff] Error 2

Original issue reported on code.google.com by gaxze...@gmail.com on 14 Sep 2007 at 6:15

GoogleCodeExporter commented 8 years ago
output of "./configure --target=arm-apple-darwin --disable-ld64 "

Original comment by gaxze...@gmail.com on 14 Sep 2007 at 6:16

Attachments:

GoogleCodeExporter commented 8 years ago
Heard of this before. It's one of several issues when building on 64-bit linux.

Original comment by nightwat...@gmail.com on 15 Sep 2007 at 2:10

GoogleCodeExporter commented 8 years ago

Original comment by nightwat...@gmail.com on 15 Sep 2007 at 2:50

GoogleCodeExporter commented 8 years ago
just in case this is relevant, fedora doesn't come with flex 2.5.4 yet
$ flex --version
flex 2.5.33

Original comment by gaxze...@gmail.com on 15 Sep 2007 at 9:28

GoogleCodeExporter commented 8 years ago
In order to compile odcctools on a x86-64 fedora linux machine, I did the 
following:

before the configure step do

{{{
; setarch i386 
; export CFLAGS="-m32" 
; export LDFLAGS="-m32"
}}}

then go ahead and follow the steps as normal. this was tested on a x86-64 
install of
fedora.

Original comment by john.mea...@gmail.com on 18 Sep 2007 at 11:43

GoogleCodeExporter commented 8 years ago
still no luck

$ setarch i386
-sh-3.2$ export CFLAGS="-m32"
-sh-3.2$ export LDFLAGS="-m32"
-sh-3.2$ gcc --version
gcc (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
-sh-3.2$ pwd
/home/gax/opt/iphone-dev/llvm-svn
-sh-3.2$ ./configure --enable-optimized
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking type of operating system we're going to host on... Linux
checking target architecture... x86
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

llvm-svn build fine with the default arch (x86_64),
so I applied the serarch i386 in odcctools where it was failing again with the 
same
"C compiler cannot create executables" error see attached config.log

strangely, i was able to have gcc compile a trivial main() and run it.

Original comment by gaxze...@gmail.com on 19 Sep 2007 at 7:41

GoogleCodeExporter commented 8 years ago
the config.log (since googlecode craps on attachements)
-------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by odcctools configure 622.3od16, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --target=arm-apple-darwin --disable-ld64

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

hostname = gax-vaio
uname -m = i686
uname -r = 2.6.22.5-76.fc7
uname -s = Linux
uname -v = #1 SMP Thu Aug 30 13:08:59 EDT 2007

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

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

PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/kerberos/bin
PATH: /usr/lib64/ccache
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /home/gax/bin

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

configure:1373: checking build system type
configure:1391: result: i686-pc-linux-gnu
configure:1399: checking host system type
configure:1413: result: i686-pc-linux-gnu
configure:1421: checking target system type
configure:1435: result: arm-apple-darwin
configure:1509: checking for gcc
configure:1525: found /usr/lib64/ccache/gcc
configure:1535: result: gcc
configure:1779: checking for C compiler version
configure:1782: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
Copyright (C) 2006 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:1785: $? = 0
configure:1787: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile
--enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)
configure:1790: $? = 0
configure:1792: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1795: $? = 1
configure:1818: checking for C compiler default output file name
configure:1821: gcc -m32  -m32 conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1824: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "odcctools"
| #define PACKAGE_TARNAME "odcctools"
| #define PACKAGE_VERSION "622.3od16"
| #define PACKAGE_STRING "odcctools 622.3od16"
| #define PACKAGE_BUGREPORT "odcctools@opendarwin.org"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:1863: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-m32
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-m32
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-apple-darwin
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=arm-apple-darwin
ac_cv_target_alias=arm-apple-darwin

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

ASLIBEXECDIR=''
ASTARGETS=''
CC='gcc'
CFLAGS='-m32'
COMPONENTS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EMULATED_OBJ=''
ENDIAN_FLAG=''
EXEEXT=''
HAVE_FOREIGN_HEADERS=''
HAVE_PRIVEXT=''
HOST_AR=''
HOST_RANLIB=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-m32'
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MDYNAMICNOPIC=''
OBJC=''
OBJEXT=''
PACKAGE_BUGREPORT='odcctools@opendarwin.org'
PACKAGE_NAME='odcctools'
PACKAGE_STRING='odcctools 622.3od16'
PACKAGE_TARNAME='odcctools'
PACKAGE_VERSION='622.3od16'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
WARNINGS=''
YACC=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_HOST_AR=''
ac_ct_HOST_RANLIB=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-apple-darwin'
target_alias='arm-apple-darwin'
target_cpu='arm'
target_os='darwin'
target_vendor='apple'

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

#define PACKAGE_BUGREPORT "odcctools@opendarwin.org"
#define PACKAGE_NAME "odcctools"
#define PACKAGE_STRING "odcctools 622.3od16"
#define PACKAGE_TARNAME "odcctools"
#define PACKAGE_VERSION "622.3od16"

configure: exit 77
-------------------

Original comment by gaxze...@gmail.com on 19 Sep 2007 at 7:42

GoogleCodeExporter commented 8 years ago
Unfortunately setarch is not avaiable for Debian/Ubuntu?  Hrmm... looks like 
I'll have to wait this one out.

Original comment by insanita...@yahoo.com on 22 Sep 2007 at 10:13

GoogleCodeExporter commented 8 years ago
I see this is an old issue, but no answer posted. This may help.

I'm going through the steps in the book "iPhone Open Application Development" 
and had
this same error when running "./configure --enable-optimized" on llvm-svn.
To get around this error on a fresh install of Debian (latest ver. as of this 
post) I
also ran these commands:

credit to
http://www.asteriskguru.com/tutorials/asterisk_installation_compilation_debian.h
tml 
for libc-dev answer to error "C compiler cannot create executables"

apt-get install libc-dev
apt-get install g++
apt-get install make

then run:
./configure --enable-optimized

YMMV :)

Original comment by Nick...@gmail.com on 1 Aug 2008 at 6:55

GoogleCodeExporter commented 8 years ago
any ideas ?
I'm still stuck with ODCCTOOLS :-(

with
export CFLAGS="-m32" 
export LDFLAGS="-m32"
./configure --target=arm-apple-darwin --disable-ld64

it doesn't do the conf:
[root@asino odcctools]# ../../odcctools/configure --target=arm-apple-darwin
--disable-ld64
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... arm-apple-darwin
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler
cannot create executables
See `config.log' for more details.

without CFLAGS etc export ... it configures but libstuff problem when making 

x86-64 FEDORA 10 machine

any ideas ?!

Original comment by julien.bayle on 5 Jan 2009 at 12:55

GoogleCodeExporter commented 8 years ago
File crt1.o belongs to glibc-devel-2.3.4-2.19.i386. The make fail to locate 
this file
which could be related the installed version is 64-bit, while the compiler is 
looking
for 32-bit.

Use following command to find out the version install:
rpm -qa --queryformat "%{NAME}-%{VERSION}.%{RELEASE} (%{ARCH})\n" | grep 
glibc-devel

If neither 64-bit nor 32-bit install, try install 64-bit first. If 64-bit 
installed,
then install 32-bit

Hope this help.

Sing-Cheong CHEN
singcheong@bigfoot.com

Original comment by singcheo...@gmail.com on 7 Jan 2009 at 7:19

GoogleCodeExporter commented 8 years ago
make CFLAGS="-m32" LDFLAGS='-m32'

Original comment by dogb...@gmail.com on 6 Feb 2010 at 4:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
See issue #14 Comment 12 by justin.w.harris about installing gcc-multilib

Original comment by johan.bo...@retropaganda.info on 13 May 2010 at 8:53

GoogleCodeExporter commented 8 years ago
Thanks to dogber1 for comment 12; this solved the problem for me (Ubuntu Lucid)

$ uname -a
Linux hostname 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010 
x86_64 GNU/Linux

Original comment by david.le...@gmail.com on 11 Jan 2011 at 3:37

GoogleCodeExporter commented 8 years ago
See issue 212 - its working natively

Original comment by florian...@googlemail.com on 16 Jun 2011 at 9:31