Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error: ./minimal: Operation not supported #29

Open
barracuda156 opened this issue Aug 8, 2024 · 1 comment
Open

Build error: ./minimal: Operation not supported #29

barracuda156 opened this issue Aug 8, 2024 · 1 comment

Comments

@barracuda156
Copy link

Trying to build this for ppc, I got the following error:

Making all in images
make[2]: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_hivex/hivex/work/hivex-1.3.23/images'
/opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I..  -I../gnulib/lib -I../include -I../gnulib/lib -I. -I/opt/local/include -Wall  -pipe -Os -arch ppc -MT mklarge-mklarge.o -MD -MP -MF .deps/mklarge-mklarge.Tpo -c -o mklarge-mklarge.o `test -f 'mklarge.c' || echo './'`mklarge.c
mv -f .deps/mklarge-mklarge.Tpo .deps/mklarge-mklarge.Po
/bin/sh ../libtool  --tag=CC   --mode=link /opt/local/bin/gcc-mp-14 -Wall  -pipe -Os -arch ppc  -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o mklarge mklarge-mklarge.o ../lib/libhivex.la 
libtool: link: /opt/local/bin/gcc-mp-14 -Wall -pipe -Os -arch ppc -Wl,-headerpad_max_install_names -arch ppc -o .libs/mklarge mklarge-mklarge.o  -L/opt/local/lib ../lib/.libs/libhivex.dylib /opt/local/lib/libiconv.dylib -lintl -pthread
cmp -s ./minimal ./minimal || \
	    cp ./minimal ./minimal
./mklarge ./minimal ./large
./minimal: Operation not supported
make[2]: *** [large] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_hivex/hivex/work/hivex-1.3.23/images'
make[1]: *** [all-recursive] Error 1

What goes wrong?

@rwmjones
Copy link
Member

rwmjones commented Aug 8, 2024

It's running this program:
https://github.com/libguestfs/hivex/blob/master/images/mklarge.c
but it's unclear where the ENOTSUP error comes from exactly. Obviously that error is not expected to happen at all but for some reason it is.

You might try modifying this line:

h = hivex_open (argv[1], HIVEX_OPEN_WRITE);

to add | HIVEX_OPEN_VERBOSE to the flags, in the hope that you'll see more information.

But basically it needs someone with a Mac and plenty of time to debug the problem.

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

No branches or pull requests

2 participants