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

[Solaris 11.4] fd2sfd configuration fails, leading to install failure #258

Closed
nbriggs opened this issue Nov 30, 2021 · 9 comments
Closed
Labels
invalid This doesn't seem right

Comments

@nbriggs
Copy link

nbriggs commented Nov 30, 2021

% make fd2sfd                   
configure fd2sfd...
configure fd2sfd...done
make fd2sfd...
make fd2sfd...done
install fd2sfd...
install fd2sfd...failed
make[1]: Entering directory '/export/home/briggs/amiga-gcc/build-SunOS/fd2sfd'
/usr/gnu/bin/install -c -d /opt/amiga/bin /opt/amiga/share/fd2sfd
# Install tools
/usr/gnu/bin/install -c -s fd2sfd /opt/amiga/bin
/usr/gnu/bin/install -c cross/bin/gg-fix-includes /opt/amiga/bin
install: cannot stat 'cross/bin/gg-fix-includes': No such file or directory
make[1]: *** [Makefile:44: install] Error 1
install fd2sfd...failed
use less "log/install fd2sfd.log" to view the full log and search for ***
make: *** [Makefile:486: /opt/amiga/bin/fd2sfd] Error 2

which likely stems from (contents of configure fd2sfd.log):

creating cache ./config.cache
checking host system type... sparc-sun-solaris2.11
checking target system type... m68k-unknown-amigaos
checking build system type... sparc-sun-solaris2.11
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -Os ) works... yes
checking whether the C compiler (gcc -Os ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/gnu/bin/install -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating fd2sfd.readme
creating gg-fd2sfd.spec
mkdir: cannot create directory 'cross/bin': No such file or directory
creating cross/bin/gg-fix-includes
./config.status: line 170: cross/bin/gg-fix-includes: cannot create [No such file or directory]
@bebbo bebbo added the invalid This doesn't seem right label Dec 1, 2021
@bebbo
Copy link
Owner

bebbo commented Dec 1, 2021

please report this here: https://github.com/cahirwpz/fd2sfd

@bebbo
Copy link
Owner

bebbo commented Dec 1, 2021

guess:

$(INSTALL_SCRIPT) cross/bin/gg-fix-includes $(bindir) 

should be

$(INSTALL_SCRIPT) $(srcdir)/cross/bin/gg-fix-includes $(bindir) 

@isoriano1968
Copy link

@nbriggs this one compiles now fine on Solaris 11.4.42 CBE

But it would be great if you could share the configs you did to build on Solaris.

@nbriggs
Copy link
Author

nbriggs commented May 27, 2023

@isoriano1968 - hmm, I updated to the latest amiga-gcc (master, f10c225) and things fail in different ways -- binutils/gdbsupport/agent.o won't build (../gnulib/config.h:1693:72: error: ‘malloc’ attribute argument 1 is ambiguous) and fd2sfd still doesn't install (bebbo's guess about the fix is not right, and cahirwpz hasn't fixed it).

@isoriano1968
Copy link

isoriano1968 commented May 27, 2023

@isoriano1968 - hmm, I updated to the latest amiga-gcc (master, f10c225) and things fail in different ways -- binutils/gdbsupport/agent.o won't build (../gnulib/config.h:1693:72: error: ‘malloc’ attribute argument 1 is ambiguous) and fd2sfd still doesn't install (bebbo's guess about the fix is not right, and cahirwpz hasn't fixed it).

You are right, I was mislead by the circumstance that fd2sfd is in /opt/amiga/bin .. in gdb I do get the same error as you.

Btw. did you had to change aout-amiga.c as well due to the "extern PTR" declaration? That was failing first.

IMG_4419

@nbriggs
Copy link
Author

nbriggs commented May 27, 2023

Yes, I did have to change the "extern PTR" declaration to get to the point that other things failed.
I'm starting again from a completely clean repo (and sub projects) and doing "make min" instead of "make all" to see how far it gets.

@isoriano1968
Copy link

Sounds good, Bebbo has also a more "recent" gcc cc in the works ..but I think we would have to update our pre-installed gcc toolchain first.

@nbriggs
Copy link
Author

nbriggs commented May 27, 2023

The Solaris system I'm using has gcc 12.2.0 installed (along with 7.5.0, 9.3.0, 10.3.0, and 11.2.0). I'm told by an Oracle dude that they plan (but do not yet have a schedule for) another Solaris 11.4 CBE release, since 11.4.42 CBE is getting pretty long in the tooth now. It's a bit of a pain to build more recent versions of open source software in their "userland" checked out from git, so a precompiled set of packages would be very welcome.

@nbriggs
Copy link
Author

nbriggs commented May 27, 2023

@isoriano1968 - "make min" in a pristine repo (and sub project repos) seems to be OK. I'll open another issue for the oddities I noticed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants