Opened 12 months ago

Last modified 6 days ago

#67425 assigned defect

bmake fails on Rosetta

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: snowleopard, powerpc, rosetta Cc: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: bmake

Description

It configures with -DMACHINE="x86_64" -DMACHINE_ARCH="i386" though use -arch ppc after that. Build fails badly on tests.

:notice:build --->  Building bmake
:debug:build Executing org.macports.build (bmake)
:debug:build Environment: 
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build DEVELOPER_DIR='/Developer'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.6'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake" && ./boot-strap op=build 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake" && ./boot-strap op=build 
:info:build NOTE: default prefix=/usr/local 
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -DMAKE_VERSION="20230414" -DMACHINE="x86_64" -DMACHINE_ARCH="i386" -D_PATH_DEFSYSPATH="/opt/local/share/mk" -o main.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/main.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o arch.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/arch.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o buf.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/buf.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o compat.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/compat.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o cond.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/cond.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o dir.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/dir.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o for.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/for.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o hash.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/hash.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o lst.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/lst.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o make.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/make.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o make_malloc.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/make_malloc.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o metachar.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/metachar.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o parse.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/parse.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o sigcompat.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/sigcompat.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o str.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/str.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o suff.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/suff.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o targ.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/targ.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o trace.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/trace.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o var.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/var.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o util.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/util.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o stresep.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/stresep.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o meta.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/meta.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -o job.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/job.c
:info:build /usr/bin/gcc-4.2 -std=gnu99 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o bmake main.o job.o meta.o arch.o buf.o compat.o cond.o dir.o for.o hash.o lst.o make.o make_malloc.o metachar.o parse.o sigcompat.o str.o suff.o targ.o trace.o var.o util.o stresep.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/unit-tests &&  MAKEFLAGS= /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/darwin10-x86_64/bmake -r -m / test 
:info:build bmake[1]: "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/unit-tests/makefile" line 492: warning: Skipping broken tests: shell-ksh
. . .
:info:build --- /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/unit-tests/cmd-errors-jobs.exp	2022-09-29 00:41:42.000000000 +0800
:info:build +++ cmd-errors-jobs.out	2023-05-14 21:14:28.000000000 +0800
:info:build @@ -1,9 +1,2 @@
:info:build  : undefined--eol
:info:build -make: Unclosed variable "UNCLOSED"
:info:build -: unclosed-variable-
:info:build -make: Unclosed variable expression (expecting '}') for "UNCLOSED"
:info:build -: unclosed-modifier-
:info:build -make: Unknown modifier "Z"
:info:build -: unknown-modifier--eol
:info:build -: end-eol
:info:build -exit status 0
:info:build +exit status 1
:info:build --- /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/unit-tests/depsrc-meta.exp	2022-01-27 14:49:09.000000000 +0800
:info:build +++ depsrc-meta.out	2023-05-14 21:14:33.000000000 +0800
:info:build @@ -2,6 +2,8 @@
:info:build  Skipping meta for .END: .SPECIAL
:info:build  Targets from meta mode:
:info:build  | TARGET depsrc-meta-target
:info:build -Targets from meta mode in jobs mode:
:info:build -| TARGET depsrc-meta-target
:info:build -exit status 0
:info:build +*** Error code 1 (continuing)
:info:build +
:info:build +Stop.
:info:build +make: stopped in unit-tests
:info:build +exit status 1
:info:build --- /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/unit-tests/depsrc-wait.exp	2022-06-13 08:25:54.000000000 +0800
:info:build +++ depsrc-wait.out	2023-05-14 21:14:34.000000000 +0800
:info:build @@ -1,18 +1,7 @@
:info:build  echo a
:info:build  a
:info:build -echo b1
:info:build -b1
:info:build -echo b
:info:build -b
:info:build -echo x
:info:build -x
:info:build -: Making 3a
:info:build -: Making 3a
:info:build -: Making 3a
:info:build -: Making 3b
:info:build -: Making 3b
:info:build -: Making 3b
:info:build -: Making 3c
:info:build -: Making 3c
:info:build -: Making 3c
:info:build -exit status 0
:info:build +*** Error code 1 (continuing)
:info:build +
:info:build +Stop.
:info:build +make: stopped in unit-tests
:info:build +exit status 1
. . .

Attachments (2)

bmake_rosetta_log.txt (175.4 KB) - added by barracuda156 12 months ago.
bmake_20240414_rosetta.txt (176.7 KB) - added by barracuda156 8 days ago.

Download all attachments as: .zip

Change History (24)

Changed 12 months ago by barracuda156

Attachment: bmake_rosetta_log.txt added

comment:1 Changed 12 months ago by barracuda156

Apparently broken on native PPC too, differently (cannot check 10.5.8 now, but 10.6 should behave identically here):

/usr/bin/gcc-4.2 -std=gnu99 -c -pipe -Os -arch ppc -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake -DHAVE_CONFIG_H -I/opt/local/include -DMAKE_NATIVE -DUSE_META -DBMAKE_PATH_MAX=1024 -DMAKE_VERSION="20230414" -DMACHINE="power macintosh" -DMACHINE_ARCH="powerpc" -D_PATH_DEFSYSPATH="/opt/local/share/mk" -o main.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_bmake/bmake/work/bmake/main.c
powerpc-apple-darwin10-gcc-4.2.1: macintosh": No such file or directory
<command-line>: warning: missing terminating " character

comment:2 Changed 12 months ago by barracuda156

os.sh is broken: it uses MACHINE=uname -m, which gives out Power Macintosh, and that value fails to work.

Passing --with-machine= or --with-force-machine= does not help.

Last edited 12 months ago by barracuda156 (previous) (diff)

comment:3 Changed 12 months ago by barracuda156

This fixes machine on native PPC:

platform powerpc {
    post-patch {
        reinplace "s|uname -m|uname -p|" ${worksrcpath}/os.sh
    }
}

And then tests pass.

comment:4 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Please report the issue to the developer of bmake. If they agree that's the fix, I'm happy to apply a patch. But I don't think that's the right general fix, since for 64-bit Intel it would change the result from "x86_64" to "i386". I don't know why this build system is trying to infer anything based on output from uname; that's probably a faulty design.

comment:5 in reply to:  4 ; Changed 12 months ago by barracuda156

Replying to ryandesign:

Please report the issue to the developer of bmake. If they agree that's the fix, I'm happy to apply a patch. But I don't think that's the right general fix, since for 64-bit Intel it would change the result from "x86_64" to "i386". I don't know why this build system is trying to infer anything based on output from uname; that's probably a faulty design.

Well, I opened the issue there, but no one responded so far: https://github.com/arichardson/bmake/issues/5

I propose to make this fix conditional on PowerPC: then it cannot possibly affect anything else.

comment:6 Changed 12 months ago by barracuda156

Or if you have a better solution, please. But atm it is just broken on PPC.

comment:7 in reply to:  5 ; Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to barracuda156:

Well, I opened the issue there, but no one responded so far: https://github.com/arichardson/bmake/issues/5

That repository is not owned by the developer of bmake. To contact the developer of bmake, use the email address at the bottom of the bmake homepage.

comment:8 in reply to:  5 ; Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to barracuda156:

I propose to make this fix conditional on PowerPC: then it cannot possibly affect anything else.

My point is, if uname -m was wrong, uname -p isn't any more right. What information is the build system trying to determine by running uname? I can almost guarantee that uname is not the right tool for the job. uname tells you what machine you're building on. It doesn't tell you what machine you're building for. (Consider what would happen when building for i386 on PowerPC, or for ppc on Intel.)

comment:9 in reply to:  7 Changed 12 months ago by barracuda156

Replying to ryandesign:

Replying to barracuda156:

Well, I opened the issue there, but no one responded so far: https://github.com/arichardson/bmake/issues/5

That repository is not owned by the developer of bmake. To contact the developer of bmake, use the email address at the bottom of the bmake homepage.

Sent an e-mail, will update, if get a reply.

comment:10 in reply to:  8 Changed 12 months ago by barracuda156

Replying to ryandesign:

Replying to barracuda156:

I propose to make this fix conditional on PowerPC: then it cannot possibly affect anything else.

My point is, if uname -m was wrong, uname -p isn't any more right. What information is the build system trying to determine by running uname? I can almost guarantee that uname is not the right tool for the job. uname tells you what machine you're building on. It doesn't tell you what machine you're building for. (Consider what would happen when building for i386 on PowerPC, or for ppc on Intel.)

Yes, in fancy scenarios it won’t work, and that is a typical problem of uname, as it is often used – it breaks the build. I cannot subscribe to “isn’t any more right” part – at least that fixes a native build on PPC, but anyway, let’s wait if the developer fixes it appropriately.

comment:11 in reply to:  7 Changed 11 months ago by barracuda156

Replying to ryandesign:

Replying to barracuda156:

Well, I opened the issue there, but no one responded so far: https://github.com/arichardson/bmake/issues/5

That repository is not owned by the developer of bmake. To contact the developer of bmake, use the email address at the bottom of the bmake homepage.

It has been fixed by the developer in v. 20230522. I can confirm native PPC now builds. (I did not bother upstream with Rosetta matter.)

comment:12 Changed 11 months ago by barracuda156

Could we update Macports version to it, so that PPC is fixed?

comment:13 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

In 80ec7d88385450b891dce84baaafbac935b731fc/macports-ports (master):

bmake: Update to 20230522

See: #67425

comment:14 in reply to:  13 Changed 11 months ago by barracuda156

Replying to ryandesign:

In 80ec7d88385450b891dce84baaafbac935b731fc/macports-ports (master):

bmake: Update to 20230522

See: #67425

Thank you!

comment:15 Changed 12 days ago by ryandesign (Ryan Carsten Schmidt)

Is there anything remaining to do for this ticket, or did updating the port fix whatever was wrong?

comment:16 in reply to:  15 Changed 12 days ago by barracuda156

Replying to ryandesign:

Is there anything remaining to do for this ticket, or did updating the port fix whatever was wrong?

I will try to test it soon. Not doing much with Rosetta recently, since need the Quad to do stuff, and Intel machine is elsewhere.

comment:17 in reply to:  15 Changed 8 days ago by barracuda156

Replying to ryandesign:

Is there anything remaining to do for this ticket, or did updating the port fix whatever was wrong?

It is still broken in Rosetta (native ppc is fine on 10.6).

Changed 8 days ago by barracuda156

Attachment: bmake_20240414_rosetta.txt added

comment:18 Changed 7 days ago by ryandesign (Ryan Carsten Schmidt)

Then I guess I'll have to override the build system's machine and/or machine arch choices. Looking through buildbot logs, I see that on macOS 14 arm64 it used -DMACHINE="arm64" -DMACHINE_ARCH="arm", on OS X 10.11 it used -DMACHINE="x86_64" -DMACHINE_ARCH="i386", and on Mac OS X 10.6 (both x86_64 and i386) it used -DMACHINE="i386" -DMACHINE_ARCH="i386". What are the values on your successful PowerPC build, and are you building for ppc or ppc64?

comment:19 in reply to:  18 Changed 7 days ago by barracuda156

Replying to ryandesign:

Then I guess I'll have to override the build system's machine and/or machine arch choices. Looking through buildbot logs, I see that on macOS 14 arm64 it used -DMACHINE="arm64" -DMACHINE_ARCH="arm", on OS X 10.11 it used -DMACHINE="x86_64" -DMACHINE_ARCH="i386", and on Mac OS X 10.6 (both x86_64 and i386) it used -DMACHINE="i386" -DMACHINE_ARCH="i386". What are the values on your successful PowerPC build, and are you building for ppc or ppc64?

Sorry, I just back to the PowerMac, needed to check that:

checking for MACHINE & MACHINE_ARCH...
defaults: MACHINE=powerpc, MACHINE_ARCH=powerpc
Using: MACHINE=powerpc, MACHINE_ARCH=powerpc

So these work for PowerPC.

comment:20 Changed 7 days ago by ryandesign (Ryan Carsten Schmidt)

In 696d264ad3cad9840f9be88687db560475f10d82/macports-ports (master):

bmake: Fix universal and non-default-arch builds

See: #67425

comment:21 Changed 6 days ago by ryandesign (Ryan Carsten Schmidt)

On a standard 64-bit Intel install of Mac OS X 10.6, building bmake for ppc with sudo port -d build bmake build_arch=ppc configure.compiler=gcc-4.2 is still failing when it runs the tests at the end of the build phase with errors like the ones you reported initially. I'm sorry, I don't know how to cross compile bmake. If you find a solution that works, let me know.

comment:22 Changed 6 days ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added
Note: See TracTickets for help on using tickets.