Skip to content

Conversation

@elbiazo
Copy link
Collaborator

@elbiazo elbiazo commented Jan 21, 2023

We should be able to build this project under mac with this update.

@elbiazo elbiazo requested a review from tokatoka January 21, 2023 01:58
@elbiazo elbiazo linked an issue Jan 21, 2023 that may be closed by this pull request
@elbiazo elbiazo self-assigned this Jan 21, 2023
@elbiazo elbiazo mentioned this pull request Jan 21, 2023
3 tasks
@tokatoka
Copy link
Member

Hi, nice work!

but I still have problem building this.
I get

toka@a tinyinst-rs % cargo build --release
   Compiling tinyinst v0.1.0 (/Users/toka/tinyinst-rs)
warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst
error: could not find native static library `xed`, perhaps an -L flag is missing?

The following warnings were emitted during compilation:

warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst

and there's no xed library when I looked into TinyInst's directory after I followed their build instruction.
Did you see this error too?

@elbiazo
Copy link
Collaborator Author

elbiazo commented Jan 21, 2023

Hi, nice work!

but I still have problem building this. I get

toka@a tinyinst-rs % cargo build --release
   Compiling tinyinst v0.1.0 (/Users/toka/tinyinst-rs)
warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst
error: could not find native static library `xed`, perhaps an -L flag is missing?

The following warnings were emitted during compilation:

warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst

and there's no xed library when I looked into TinyInst's directory after I followed their build instruction. Did you see this error too?

No but i think if you do cargo build --release -vv, you might see that if you dont run under developer powershell or environment without msvc, xed won't compile. i tried to compile Tinyinst on regular powershell and it will give you the same result.

@elbiazo
Copy link
Collaborator Author

elbiazo commented Jan 21, 2023

Hi, nice work!

but I still have problem building this. I get

toka@a tinyinst-rs % cargo build --release
   Compiling tinyinst v0.1.0 (/Users/toka/tinyinst-rs)
warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst
error: could not find native static library `xed`, perhaps an -L flag is missing?

The following warnings were emitted during compilation:

warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst

and there's no xed library when I looked into TinyInst's directory after I followed their build instruction. Did you see this error too?

sorry i read your question wrong. If xed isn't on third party it means it didnt git submodule update --init --recursive to pull down dependencies. in rust code it is this line that is responsible for doing that

// do git submodule --init --recursive on Tinyinst

@elbiazo
Copy link
Collaborator Author

elbiazo commented Jan 21, 2023

Hi, nice work!

but I still have problem building this. I get

toka@a tinyinst-rs % cargo build --release
   Compiling tinyinst v0.1.0 (/Users/toka/tinyinst-rs)
warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst
error: could not find native static library `xed`, perhaps an -L flag is missing?

The following warnings were emitted during compilation:

warning: Generating Bridge files. and building for /Users/toka/tinyinst-rs/target/release/build/tinyinst-15611e53ec155fe2/out/Tinyinst

and there's no xed library when I looked into TinyInst's directory after I followed their build instruction. Did you see this error too?

here are some screen shot

image
image
image

@tokatoka
Copy link
Member

yup windows works, but on macos I can't find xed lib

@tokatoka
Copy link
Member

Um, ok. I got it. xed is intel's xed
I'm testing this on m1mac so xed is not supposed to be there

https://github.com/googleprojectzero/TinyInst/blob/master/CMakeLists.txt#L121

@tokatoka
Copy link
Member

Now this builds for me.

If this change is good for you too, then let's merge
Are you developing with x64 macos btw?

@elbiazo
Copy link
Collaborator Author

elbiazo commented Jan 21, 2023

Now this builds for me.

If this change is good for you too, then let's merge

Are you developing with x64 macos btw?

as long as it works on windows after the new commit i am okay with merging. And yes I was developing on x64 macos

@tokatoka
Copy link
Member

Okay let's merge

@tokatoka tokatoka merged commit b74af96 into main Jan 21, 2023
@tokatoka tokatoka deleted the macos branch January 21, 2023 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macos support

3 participants