Skip to content

Error installing segdread #187

@jingxuan-wei

Description

@jingxuan-wei

Hello,

I am installing SU on Mac OS Sequoia 15.1. The installation was successful for SU to run. But I also need the SFIO component to process some SEGD data.

After ran make sfinstall, I got the following errors:

cd ./Sfio; /Applications/Xcode.app/Contents/Developer/usr/bin/make
cd ./src/lib/vthread; /Applications/Xcode.app/Contents/Developer/usr/bin/make install
cp vthread.h ast_common.h ../../../include;
cp libvthread.a ../../../lib;
(ranlib ../../../lib/libvthread.a; exit 0) >/dev/null 2>&1
cd ./src/lib/sfio; /Applications/Xcode.app/Contents/Developer/usr/bin/make install
echo""; echo "BUILDING UNI-THREADED libsfio.a"

BUILDING UNI-THREADED libsfio.a
/bin/sh ./Makestate.sh unithreaded
/Applications/Xcode.app/Contents/Developer/usr/bin/make LIBTYPE="-Dvt_threaded=0" SHELL="/bin/sh" CC="cc"
CCMODE="-O" CXFLAGS="" install_unithreaded
../../../bin/iffe set cc cc -I. -P -O -Dvt_threaded=0 : run features/sfinit.c
./MC6P67864.c:9:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
9 | main()
| ^
| int
1 error generated.
iffe: 0: features/sfinit.c: cannot run
make[3]: *** [FEATURE/sfinit] Error 2
make[2]: *** [install] Error 2
make[1]: *** [INSTALL] Error 2
make: *** [sfinstall] Error 2

I did some research. It seems to be caused by the wrong version of Xcode. The Xcode compatible with Sequoia is 16, but it does not allow me to downgrade to Xcode 15.

I did went into sfinit.c to add int in front of main(), but some other errors popped up later.

Any suggestions? Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions