cwalls251 / iphone-dev

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

odcctools fails to compile on Ubuntu 8.04 #136

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. follow the steps in the Building wiki page
2. ../../odcctools/configure --target=arm-apple-darwin --disable-ld64
3. cc1: error: unrecognised command line option "-Wno-long-double"

What is the expected output? What do you see instead?
Successfully compiled

What version of the product are you using? On what operating system?
Ubuntu 8.04 Hardy Heron i686

Please provide any additional information below.

after:
../../odcctools/configure --target=arm-apple-darwin --disable-ld64
then try 'make':
daniel@mars:~/programs/iphone-dev/build/odcctools$ make
cd libstuff && make
make[1]: Entering directory
`/home/daniel/programs/iphone-dev/build/odcctools/libstuff'
gcc -Wall -Wno-long-double -Wno-import  -DHAVE_CONFIG_H
-D__LITTLE_ENDIAN__=1   -I..//include -I../../../odcctools/include -include
../../../odcctools/include/extern.h -I../../../odcctools/include/foreign -g
-O2 -fno-builtin-round -fno-builtin-trunc   -c -o ofile.o
../../../odcctools/libstuff/ofile.c
In file included from ../../../odcctools/libstuff/ofile.c:44:
../../../odcctools/include/mach/ppc/thread_status.h:44:1: warning:
"THREAD_STATE_NONE" redefined
In file included from
../../../odcctools/include/mach/machine/thread_status.h:29,
                 from ../../../odcctools/include/mach/thread_status.h:70,
                 from ../../../odcctools/include/mach/exception_types.h:147,
                 from ../../../odcctools/include/mach/mach_types.h:75,
                 from ../../../odcctools/include/mach/mach.h:61,
                 from ../../../odcctools/libstuff/ofile.c:32:
../../../odcctools/include/mach/i386/thread_status.h:110:1: warning: this
is the location of the previous definition
In file included from ../../../odcctools/libstuff/ofile.c:44:
../../../odcctools/include/mach/ppc/thread_status.h:53:1: warning:
"VALID_THREAD_STATE_FLAVOR" redefined
In file included from
../../../odcctools/include/mach/machine/thread_status.h:29,
                 from ../../../odcctools/include/mach/thread_status.h:70,
                 from ../../../odcctools/include/mach/exception_types.h:147,
                 from ../../../odcctools/include/mach/mach_types.h:75,
                 from ../../../odcctools/include/mach/mach.h:61,
                 from ../../../odcctools/libstuff/ofile.c:32:
../../../odcctools/include/mach/i386/thread_status.h:127:1: warning: this
is the location of the previous definition
In file included from ../../../odcctools/libstuff/ofile.c:44:
../../../odcctools/include/mach/ppc/thread_status.h:155:1: warning:
"MACHINE_THREAD_STATE" redefined
In file included from
../../../odcctools/include/mach/machine/thread_status.h:29,
                 from ../../../odcctools/include/mach/thread_status.h:70,
                 from ../../../odcctools/include/mach/exception_types.h:147,
                 from ../../../odcctools/include/mach/mach_types.h:75,
                 from ../../../odcctools/include/mach/mach.h:61,
                 from ../../../odcctools/libstuff/ofile.c:32:
../../../odcctools/include/mach/i386/thread_status.h:523:1: warning: this
is the location of the previous definition
In file included from ../../../odcctools/libstuff/ofile.c:44:
../../../odcctools/include/mach/ppc/thread_status.h:156:1: warning:
"MACHINE_THREAD_STATE_COUNT" redefined
In file included from
../../../odcctools/include/mach/machine/thread_status.h:29,
                 from ../../../odcctools/include/mach/thread_status.h:70,
                 from ../../../odcctools/include/mach/exception_types.h:147,
                 from ../../../odcctools/include/mach/mach_types.h:75,
                 from ../../../odcctools/include/mach/mach.h:61,
                 from ../../../odcctools/libstuff/ofile.c:32:
../../../odcctools/include/mach/i386/thread_status.h:524:1: warning: this
is the location of the previous definition
../../../odcctools/libstuff/ofile.c: In function ‘ofile_map’:
../../../odcctools/libstuff/ofile.c:747: warning: dereferencing type-punned
pointer will break strict-aliasing rules
../../../odcctools/libstuff/ofile.c:3765:8: warning: extra tokens at end of
#endif directive
At top level:
cc1: error: unrecognised command line option "-Wno-long-double"
make[1]: *** [ofile.o] Error 1
make[1]: Leaving directory
`/home/daniel/programs/iphone-dev/build/odcctools/libstuff'
make: *** [libstuff] Error 2

Original issue reported on code.google.com by DanielMe...@gmail.com on 6 May 2008 at 1:42

GoogleCodeExporter commented 8 years ago
since it's just a compiling warning option, a possible way is just deleting all
'-Wno-long-double' from all the Makefiles, then the compiling can go on.

Original comment by DanielMe...@gmail.com on 6 May 2008 at 2:21

GoogleCodeExporter commented 8 years ago
For people too lazy to go to modify all the Makefiles themselves:

$ for each in `find . -print | grep Makefile`; do sed -i 's|-Wno-long-double||g'
$each; done

At the odcctools root.

Original comment by penguin...@gmail.com on 25 Nov 2008 at 2:46

GoogleCodeExporter commented 8 years ago
Having the same problem as OP, penguin's code output this:

$ for each in `find . -print | grep Makefile`; do sed -i 's|-Wno-long-double||g'
> each; done
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found
sed: no input files
bash: each: command not found

Also running Ubuntu 8.04 on i386.  Help appreciated.

Original comment by v1n...@live.com on 3 Mar 2009 at 10:02

GoogleCodeExporter commented 8 years ago
I got it running, I didn't realize that penguin's code was just another way of
removing the line from all the Makefiles

Original comment by v1n...@live.com on 4 Mar 2009 at 8:03

GoogleCodeExporter commented 8 years ago
# for each in `find . -print | grep Makefile`; do sed -i 
's|-Wno-long-double||g' $each; done

Missing $ for usage of each variable

Original comment by mortimus...@gmail.com on 20 Sep 2010 at 7:36