radareorg / r2pm

Radare2 cross platform package manager
GNU Lesser General Public License v3.0
34 stars 12 forks source link

doesnt build #30

Closed radare closed 5 years ago

radare commented 5 years ago
pmb:r2pm pancake$ make
go build
go: finding github.com/kr/pretty v0.1.0
go: finding github.com/urfave/cli v1.21.0
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/kr/text v0.1.0
go: finding github.com/BurntSushi/toml v0.3.1
go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
go: finding github.com/kr/pty v1.1.1
go: downloading github.com/urfave/cli v1.21.0
go: downloading golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: downloading gopkg.in/yaml.v2 v2.2.2
go: extracting golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: extracting github.com/urfave/cli v1.21.0
go: extracting gopkg.in/yaml.v2 v2.2.2
go build -o libr2pm.so -buildmode=c-shared ./lib
# runtime/cgo
cgo-builtin-prolog:1:10: fatal error: 'stddef.h' file not found
#include <stddef.h> /* for ptrdiff_t and size_t below */
         ^~~~~~~~~~
1 error generated.
make: *** [libr2pm.so] Error 2
pmb:r2pm pancake$
qbarrand commented 5 years ago

Hi @radare,

On which OS / architecture did this fail?

radare commented 5 years ago

Mac

On 18 Aug 2019, at 21:53, Quentin Barrand notifications@github.com wrote:

Hi @radare,

On which OS / architecture did this fail?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

qbarrand commented 5 years ago

:thinking: on my Fedora that is provided by multiple packages, such as gcc and clang-libs. Maybe @Maijin can help us here, I think he can build it on his Mac.
The CI also happily builds on macOS, FWIW.

radare commented 5 years ago

i think thats a bug in cgo for mac, clang and gcc find this internal include properly. this is go 1.12.9

On 18 Aug 2019, at 22:02, Quentin Barrand notifications@github.com wrote:

🤔 on my Fedora that is provided by multiple packages, such as gcc and clang-libs. Maybe @Maijin https://github.com/Maijin can help us here, I think he can build it on his Mac. The CI also happily builds on macOS https://travis-ci.org/radareorg/r2pm/jobs/573113057, FWIW.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/radareorg/r2pm/issues/30?email_source=notifications&email_token=AAG75FXZBUXI3GATHUSOHV3QFGTEZA5CNFSM4IMTSJ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RHBWQ#issuecomment-522350810, or mute the thread https://github.com/notifications/unsubscribe-auth/AAG75FUOMCCKEGP6VR324X3QFGTEZANCNFSM4IMTSJ5Q.

Maijin commented 5 years ago

I have

go version go1.12.7 darwin/amd64

and it builds fine for me 🤔

marcograss commented 5 years ago

builds fine here

go version go1.12.9 darwin/amd64

qbarrand commented 5 years ago

Can we close this?

radare commented 5 years ago

Builds fine in another mac with the sMe version of everythng. So lets assume i have something broken in there

On 20 Aug 2019, at 12:14, xarkes notifications@github.com wrote:

Closed #30.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.