PDA

View Full Version : What the heck is lipo!?!? (compiling darwin)



dragos240
October 25th, 2009, 01:15 AM
harley@linux:~/darwin$ ./archs.sh
./archs.sh: 7: lipo: not found
./archs.sh: 8: lipo: not found
./archs.sh: 9: lipo: not found
./archs.sh: 10: lipo: not found

make
*** Making all in darwinbuild ***
../archs.sh: 7: lipo: not found
../archs.sh: 8: lipo: not found
../archs.sh: 9: lipo: not found
../archs.sh: 10: lipo: not found
make[1]: Entering directory `/home/harley/darwin/darwinbuild'

Anyone know what this is?

schauerlich
October 25th, 2009, 01:17 AM
You're trying to compile Darwin?

Oh dear...

dragos240
October 25th, 2009, 01:19 AM
Heheh. I like to compile stuff. Anyone know where I can get this "lipo" program?

schauerlich
October 25th, 2009, 01:19 AM
Also:

http://www.google.com/search?client=safari&rls=en&q=lipo+darwin&ie=UTF-8&oe=UTF-8

Bachstelze
October 25th, 2009, 01:24 AM
You're trying to compile Darwin on Linux?

Oh dear...

Fixed that for you.

dragos240
October 25th, 2009, 01:52 AM
Anyone know where I can get it??

Bachstelze
October 25th, 2009, 01:54 AM
Anyone know where I can get it??

Do you honestly think you can build Darwin on Linux? Of course you can't, just like you can't build FreeBSD, or Windows.

schauerlich
October 25th, 2009, 01:59 AM
1) Download PureDarwin
2) Install PureDarwin
3) Retain your sanity
4) ???
5) PROFIT

-grubby
October 25th, 2009, 02:01 AM
Heheh. I like to compile stuff.

That hobby could get painful fast.

dragos240
October 25th, 2009, 02:07 AM
1) Download PureDarwin
2) Install PureDarwin
3) Retain your sanity
4) ???
5) PROFIT

I've been trying to do that for ages. It says I need a working darwin system.

dragos240
October 25th, 2009, 04:09 PM
Ohai. Move to the general support. It's now a support question. I asked 'what is lipo?'. But now I need to find out how to get it.

Warpnow
October 25th, 2009, 04:38 PM
Just download the PureDarwin ISO.

Not that I can see why you'd want to. Would be much more fun to toy with HURD imo, as it has a slightly better chance of ever being usable day to day.

dragos240
October 25th, 2009, 04:49 PM
Just download the PureDarwin ISO.

Not that I can see why you'd want to. Would be much more fun to toy with HURD imo, as it has a slightly better chance of ever being usable day to day.

Even Stallman said that he doesn't think that'll be going anywhere. I should know. I asked him at software freedom day.

The Toxic Mite
October 25th, 2009, 06:20 PM
lipo is a Mac OS X (http://en.wikipedia.org/wiki/Mac_OS_X) command line (http://en.wikipedia.org/wiki/Command_line) utility for the manipulation of Mach-O (http://en.wikipedia.org/wiki/Mach-O) universal binary (http://en.wikipedia.org/wiki/Universal_binary) object files (http://en.wikipedia.org/wiki/Object_file). lipo performs nondestructive (http://en.wikipedia.org/w/index.php?title=Nondestructive&action=edit&redlink=1) manipulations of the file. It can show info on the file or extract a particular executable (http://en.wikipedia.org/wiki/Executable) format into a new file.

That should answer your question ;)

Bachstelze
October 25th, 2009, 06:22 PM
Ohai. Move to the general support. It's now a support question. I asked 'what is lipo?'. But now I need to find out how to get it.

/facepalm

I told you you can't build Darwin on Linux.

crazedgremlin
October 25th, 2009, 06:26 PM
/facepalm

I told you you can't build Darwin on Linux.

Why can't you build Darwin on Linux?

Tipped OuT
October 25th, 2009, 06:29 PM
Even Stallman said that he doesn't think that'll be going anywhere. I should know. I asked him at software freedom day.

Wow, you've actually talked to Stallman? Cool.

Bachstelze
October 25th, 2009, 06:30 PM
Why can't you build Darwin on Linux?

Because Darwin is Darwin, and Linux is Linux. You can't build FreeBSD or Windows in Linux, either. As the thread demonstrates, the build process relies on Darwin-specific command and functions.

RATM_Owns
October 25th, 2009, 08:47 PM
What is lipo?

Well, it's when people feel that they're too overweight.
It's a special procedure that can remove fat from many different parts of the body.

dragos240
October 25th, 2009, 08:50 PM
/facepalm

I told you you can't build Darwin on Linux.

Nothing is impossible. You think I can find the source to the tools needed to build darwin. I think it can be done with a few headaches.

Jesus_Valdez
October 25th, 2009, 09:15 PM
Some things are impossible.

CJ Master
October 25th, 2009, 09:38 PM
Do it in a virtual machine. That way you are technically compiling it while using Linux.

schauerlich
October 25th, 2009, 09:40 PM
Nothing is impossible. You think I can find the source to the tools needed to build darwin. I think it can be done with a few headaches.

Good luck. You'll need it.


Do it in a virtual machine. That way you are technically compiling it while using Linux.

A virtual machine of what?

Tipped OuT
October 25th, 2009, 10:19 PM
Do it in a virtual machine. That way you are technically compiling it while using Linux.

/fail

forrestcupp
October 25th, 2009, 11:16 PM
Do it in a virtual machine. That way you are technically compiling it while using Linux.

I don't think you can run MacOS in a vm.

Hey, if dragos thinks he can do it, let him try.

schauerlich
October 25th, 2009, 11:23 PM
I don't think you can run MacOS in a vm.

I suppose if he wanted to, he could try installing PureDarwin Nano in a VM. I'm not sure just how Nano it is, though. It may not include all of the build tools needed.

dragos240
October 26th, 2009, 12:41 AM
/fail

Win ;)

jaxxstorm
October 26th, 2009, 01:12 AM
Nothing is impossible. You think I can find the source to the tools needed to build darwin. I think it can be done with a few headaches.

Forgive me if I'm wrong, but you're trying to build a kernel on a kernel?

That just won't work.

schauerlich
October 26th, 2009, 01:15 AM
Forgive me if I'm wrong, but you're trying to build a kernel on a kernel?

Darwin is more than just a kernel. It's more similar to the base system of *BSD.

dragos240
October 26th, 2009, 01:15 AM
Forgive me if I'm wrong, but you're trying to build a kernel on a kernel?

That just won't work.

Come again? Do you mean I am building a the darwin kernel while using the linux kernel? If so, how could that not work??

jaxxstorm
October 26th, 2009, 01:27 AM
Darwin is more than just a kernel. It's more similar to the base system of *BSD.

Well yeah but it includes a Kernel.


Come again? Do you mean I am building a the darwin kernel while using the linux kernel? If so, how could that not work??


Well you're building them on top of each other. the kernel has access to parts of your hardware. What you're essentially doing is


Darwin Kernel + OS
|
Linux Kernel + OS
|
Hardware

Which as far as I'm aware just won't work. The kernel will need direct access to your hardware components, it provides device drivers and all other manner of wizardry

schauerlich
October 26th, 2009, 01:37 AM
The kernel will need direct access to your hardware components, it provides device drivers and all other manner of wizardry

I don't think that's what he's trying to do. He wants to compile Darwin, and then install it on another partition. The problem is, Linux doesn't have the build tools necessary to compile Darwin to start with. It pretty much needs to be built from OS X or an already existing existing Darwin install.

dragos240
October 26th, 2009, 01:58 AM
I don't think that's what he's trying to do. He wants to compile Darwin, and then install it on another partition. The problem is, Linux doesn't have the build tools necessary to compile Darwin to start with. It pretty much needs to be built from OS X or an already existing existing Darwin install.

Are the tools needed to build darwin open source? A large part of osx is.

Skripka
October 26th, 2009, 01:58 AM
Nothing is impossible. You think I can find the source to the tools needed to build darwin. I think it can be done with a few headaches.

Isn't this how most Darwin Awards start?


PS-WAM! Pun unintentional!

dragos240
October 26th, 2009, 02:00 AM
Isn't this how most Darwin Awards start?


PS-WAM! Pun unintentional!

Ah. The darwin awards. People helping to improve the gene pool........ by removing themselves from it.

schauerlich
October 26th, 2009, 02:32 AM
Are the tools needed to build darwin open source? A large part of osx is.

These are all good questions for google. As I said: Happy hacking.

renkinjutsu
October 26th, 2009, 02:41 AM
harley@linux:~/darwin$ ./archs.sh
./archs.sh: 7: lipo: not found
./archs.sh: 8: lipo: not found
./archs.sh: 9: lipo: not found
./archs.sh: 10: lipo: not found

make
*** Making all in darwinbuild ***
../archs.sh: 7: lipo: not found
../archs.sh: 8: lipo: not found
../archs.sh: 9: lipo: not found
../archs.sh: 10: lipo: not found
make[1]: Entering directory `/home/harley/darwin/darwinbuild'

Anyone know what this is?

how are you building Darwin on linux?
I thought Darwin needed it's build environment to be on a UFS volume, and the linux kernel only has read-only support for it?


edit: pureDarwin on vm (http://7447233378926839072-a-puredarwin-org-s-sites.googlegroups.com/a/puredarwin.org/puredarwin/screenshots/pd-vmwareplayer.png?attachauth=ANoY7cqm071Egg7Kq12ikV r0BZvoxPSosxE78ylp4o-9wjDGChz2MJQFRw2ckEg9zqkphfIaBH3dDX-Ii7EgboP0qHXXkt2negmi13gzpH9764z-7aQYA5soH2QHNLV4QcQ4EIBXZvuTztmJYrqAw7NGlrDEqsumKd VblKGbjz1FAtL8C2mZ40JnPt_-y82fdHsmFpSuE9KPKB0EkCKBKkR3WnxEqrJBDOonOU5sKnkBcr orAgPrmWI%3D&attredirects=0)
So, what are you going to do exactly, after you compile?

forrestcupp
October 26th, 2009, 07:06 PM
It pretty much needs to be built from OS X or an already existing existing Darwin install.

How did they compile it the first time? :)

schauerlich
October 26th, 2009, 07:29 PM
How did they compile it the first time? :)

How was the first compiler compiled? :)

This is pure conjecture, but I'm guessing they built on on a NeXTSTEP system (since Darwin was based off of that). What was NeXTSTEP built on? No idea.

koenn
October 26th, 2009, 07:51 PM
How was the first compiler compiled? :)

it was build, with an assembler

tuahaa
October 26th, 2009, 07:54 PM
I thought this was a debate on evolution.

schauerlich
October 26th, 2009, 07:56 PM
it was build, with an assembler

I know, it was a joke. Hence the smiley. :)

RiceMonster
October 26th, 2009, 07:58 PM
I thought this was a debate on evolution.

Ba-doom-chsssss

nubimax
October 26th, 2009, 08:10 PM
Dragos 240 you are a constant delight to me in my declining years.
Best regards M.

dragos240
October 26th, 2009, 11:58 PM
Dragos 240 you are a constant delight to me in my declining years.
Best regards M.

Eh? How am I a delight? ;)

Excedio
October 27th, 2009, 12:26 AM
Eh? How am I a delight? ;)

Isn't it enough that you are. :-)

dragos240
October 27th, 2009, 12:28 AM
Isn't it enough that you are. :-)

I suppose. :D

forrestcupp
October 27th, 2009, 01:59 AM
Eh? How am I a delight? ;)

We get a good laugh out of you. :)

dragos240
October 27th, 2009, 02:02 AM
We get a good laugh out of you.
:)

Well. That makes sense!

sliketymo
October 27th, 2009, 02:11 AM
harley@linux:~/darwin$ ./archs.sh
./archs.sh: 7: lipo: not found
./archs.sh: 8: lipo: not found
./archs.sh: 9: lipo: not found
./archs.sh: 10: lipo: not found

make
*** Making all in darwinbuild ***
../archs.sh: 7: lipo: not found
../archs.sh: 8: lipo: not found
../archs.sh: 9: lipo: not found
../archs.sh: 10: lipo: not found
make[1]: Entering directory `/home/harley/darwin/darwinbuild'

Anyone know what this is?

:popcorn:liposuction-suction

dragos240
October 27th, 2009, 02:13 AM
:popcorn:liposuction-suction
>.>

stinger30au
October 27th, 2009, 02:16 AM
lipo

lithium polymer batteries

if not charged correctly the explode and catch on fire

very spectacular to watch

many videos on youtube of this

Machnikowski
October 27th, 2009, 02:27 AM
Trying is the first step toward failure.

The lesson: Don't try.

CJ Master
October 27th, 2009, 03:03 AM
Lipo SUCKS!


[/cornyjoke]

Frak
October 27th, 2009, 04:15 AM
How was the first compiler compiled? :)

This is pure conjecture, but I'm guessing they built on on a NeXTSTEP system (since Darwin was based off of that). What was NeXTSTEP built on? No idea.

I know the first C compiler was a mini compiler that could only compile enough C to create a compiler written in C.

For your question on NeXTSTEP, it was compiled on BSD. In the development builds, you can get your hands on some build notes that describe the build process. EDIT: Just checked, development builds of Rhapsody also say they were built on BSD.

As for the OP:
Why do you need lipo?

To answer your question, lipo involves a multitude of tools that Linux doesn't have.

Skripka
October 27th, 2009, 04:18 AM
I know the first C compiler was a mini compiler that could only compile enough C to create a compiler written in C.

For your question on NeXTSTEP, it was compiled on BSD. In the development builds, you can get your hands on some build notes that describe the build process. EDIT: Just checked, development builds of Rhapsody also say they were built on BSD.

As for the OP:
Why do you need lipo?

To answer your question, lipo involves a multitude of tools that Linux doesn't have.

Party Pooper. Nothing is impossible! ;)

Frak
October 27th, 2009, 04:20 AM
Party Pooper. Nothing is impossible! ;)
It is possible. All the tools needed are open source and able to be ported. It's just... well...

Why spend years to compile tools to compile tools in able to compile an OS. :P

forrestcupp
October 27th, 2009, 03:44 PM
It is possible. All the tools needed are open source and able to be ported. It's just... well...
dragos, it looks like you'd better get to work and start porting it to work with Linux.

KiwiNZ
October 27th, 2009, 07:21 PM
@dragos240

As many have counseled this will not work using the methods you are using. I suggest you jump over to any Darwin Forums to discuss this.

I am closing this thread