Jump to content

Error while compiling Darwin_Tulip driver


aggiedave
 Share

3 posts in this topic

Recommended Posts

I am trying to get internet access through my LAN, and have a linksys LNE100 network card. I have read the guide for the darwin_tulip driver, and several related posts in the forum, but have not found anything dealing with the error I am receiving while compiling the driver. I downloaded the tuilip driver from Sourceforge, and extracted the files into /Users/davidshcneider/Documents/darwin_tulip/

From the directory /Users/davidshcneider/Documents/darwin_tulip/scr I ran the command 'sudo make' from the termial command prompt, and recieved the following error:

 

 

 

cc1plus: error: unrecognized command line option "-arch ppc"

 cc1plus: error: unrecognized command line option "-arch i386"

 make[1]: *** [dec2114x_eeprom.o] Error 1

 

I have posted the full output below, but first here is some info about my machine:

processor: Intel Pentium 4, SSE2

manufacturer/model: Dell Dimension 4300

network card: linksys LNE100

OSX86: 10.4.8 by Jas

I installed XCode Tools 2.2.1 which I downloaded from the apple developers website

 

 

 

david-schneiders-computer:~/documents/darwin_tulip/src davidschneider$ sudo makePassword:

 set +e; for x in /tmp/od/tulip.dst//System/Library/Extensions/tulip.kext/Contents/MacOS /tmp/od/tulip.dst//System/Library/Extensions/tulip.kext/Contents /tmp/od/tulip.dst//System/Library/Extensions/tulip.kext/Contents/Resources/English.lproj /tmp/od/tulip.obj /tmp/od/tulip.dst; do \

	  test -d $x || mkdir -p $x; \

 done

 set +e; for x in / / / /tmp/od/tulip.obj /tmp/od/tulip.dst; do \

	  test -d $x || mkdir -p $x; \

 done

 /usr/bin/c++ -c -I. -I/System/Library/Frameworks/Kernel.framework/Headers -I/System/Library/Frameworks/Kernel.framework/Headers/bsd  -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders  -DKERNEL  -DKERNEL_PRIVATE  -DDRIVER_PRIVATE  -DAPPLE -DNeXT -D__MBUF_TRANSITION_ -I..  "-arch ppc" "-arch i386" -pipe  "-fmessage-length=0"   -fno-common  -nostdinc  -mlong-branch -O3 -Wmost  -Wno-four-char-constants  -Wno-unknown-pragmas  -fno-builtin  -finline  -fno-keep-inline-functions  -force_cpusubtype_ALL  -static -g  "-fpermissive"  -fno-rtti -fno-exceptions -fcheck-new -msoft-float -fapple-kext /Users/davidschneider/Documents/darwin_tulip/src/admtek/admtek981_eeprom.cpp -o /tmp/od/tulip.obj/admtek981_eeprom.o

 cc1plus: error: unrecognized command line option "-arch ppc"

 cc1plus: error: unrecognized command line option "-arch i386"

 make[1]: *** [admtek981_eeprom.o] Error 1

 set +e; for x in / / / /tmp/od/tulip.obj /tmp/od/tulip.dst; do \

	  test -d $x || mkdir -p $x; \

 done

 /usr/bin/c++ -c -I. -I/System/Library/Frameworks/Kernel.framework/Headers -I/System/Library/Frameworks/Kernel.framework/Headers/bsd  -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders  -DKERNEL  -DKERNEL_PRIVATE  -DDRIVER_PRIVATE  -DAPPLE -DNeXT -D__MBUF_TRANSITION_ -I..  "-arch ppc" "-arch i386" -pipe  "-fmessage-length=0"   -fno-common  -nostdinc  -mlong-branch -O3 -Wmost  -Wno-four-char-constants  -Wno-unknown-pragmas  -fno-builtin  -finline  -fno-keep-inline-functions  -force_cpusubtype_ALL  -static -g  "-fpermissive"  -fno-rtti -fno-exceptions -fcheck-new -msoft-float -fapple-kext /Users/davidschneider/Documents/darwin_tulip/src/dec2114x/dec2114x_eeprom.cpp -o /tmp/od/tulip.obj/dec2114x_eeprom.o

 cc1plus: error: unrecognized command line option "-arch ppc"

 cc1plus: error: unrecognized command line option "-arch i386"

 make[1]: *** [dec2114x_eeprom.o] Error 1

 set +e; for x in / / / /tmp/od/tulip.obj /tmp/od/tulip.dst; do \

	  test -d $x || mkdir -p $x; \

 done

 /usr/bin/c++ -c -I. -I/System/Library/Frameworks/Kernel.framework/Headers -I/System/Library/Frameworks/Kernel.framework/Headers/bsd  -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders  -DKERNEL  -DKERNEL_PRIVATE  -DDRIVER_PRIVATE  -DAPPLE -DNeXT -D__MBUF_TRANSITION_ -I..  "-arch ppc" "-arch i386" -pipe  "-fmessage-length=0"   -fno-common  -nostdinc  -mlong-branch -O3 -Wmost  -Wno-four-char-constants  -Wno-unknown-pragmas  -fno-builtin  -finline  -fno-keep-inline-functions  -force_cpusubtype_ALL  -static -g  "-fpermissive"  -fno-rtti -fno-exceptions -fcheck-new -msoft-float -fapple-kext /Users/davidschneider/Documents/darwin_tulip/src/pnic/pnic_eeprom.cpp -o /tmp/od/tulip.obj/pnic_eeprom.o

 cc1plus: error: unrecognized command line option "-arch ppc"

 cc1plus: error: unrecognized command line option "-arch i386"

 make[1]: *** [pnic_eeprom.o] Error 1

 /usr/bin/c++ -c -I. -I/System/Library/Frameworks/Kernel.framework/Headers -I/System/Library/Frameworks/Kernel.framework/Headers/bsd  -I/System/Library/Frameworks/Kernel.framework/PrivateHeaders  -DKERNEL  -DKERNEL_PRIVATE  -DDRIVER_PRIVATE  -DAPPLE -DNeXT -D__MBUF_TRANSITION_  "-arch ppc" "-arch i386" -pipe  "-fmessage-length=0"   -fno-common  -nostdinc  -mlong-branch -O3 -Wmost  -Wno-four-char-constants  -Wno-unknown-pragmas  -fno-builtin  -finline  -fno-keep-inline-functions  -force_cpusubtype_ALL  -static -g  "-fpermissive"  -fno-rtti -fno-exceptions -fcheck-new -msoft-float -fapple-kext /Users/davidschneider/Documents/darwin_tulip/src/base_eeprom.cpp -o /tmp/od/tulip.obj/base_eeprom.o

 cc1plus: error: unrecognized command line option "-arch ppc"

 cc1plus: error: unrecognized command line option "-arch i386"

 make: *** [base_eeprom.o] Error 1

 

 

Please let me know what I am doing wrong.

Thanks for the help!

-aggiedave

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...

I have found the problem!

 

It must be to do with the versions of the c++ and cc compilers. The versions in my installation didn't like the quotation marks around the -arch argument.

 

To fix this go into Make.rules and remove the quotes around "-arch i386" so your file now looks like this:

 

--- BEGINNING OF FILE REMOVED FOR CLARITY ---

#first, set up all the compiler flags

# need quotes around this

TARGET = FAT

PRE_TIGER_DARWIN = 0

 

ifeq "$(TARGET)" "PPC"

ARCH = "-arch ppc"

else

ifeq "$(TARGET)" "X86"

ARCH = -arch i386

else

ifeq "$(TARGET)" "FAT"

ARCH = "-arch ppc" "-arch i386"

endif

endif

endif

--- END OF FILE REMOVED FOR CLARITY ---

 

Then when you run the following it *should* work

 

make clean; make TARGET="X86" ; make install

Link to comment
Share on other sites

 Share

×
×
  • Create New...