tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug s


From: Herman ten Brugge
Subject: Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge)
Date: Tue, 14 Mar 2023 13:52:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 3/14/23 11:05, avih wrote:
The offending commit is from November 2022.
Here are test outputs with the offending commit and then current mob.

Below is the output with the offending commit 62096265
of the test part of:
   git clean -xfd && ./configure && make && make test

------------ hello-exe ------------
dyld: REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB has segment 4 which is not a 
writable segment (__LINKEDIT) in /Users/avih/dev/tcc/tcc.upstream/tests/./hello
/bin/sh: line 1: 49518 Abort trap: 6           ./hello
+ ../tcc -vv
tcc version 0.9.27 HEAD:6209626 (x86_64 Darwin)
install: /usr/local/lib/tcc
include:
   /usr/local/lib/tcc/include
   /usr/local/include
   
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
libraries:
   /usr/local/lib/tcc
   /usr/lib
   /lib
   /usr/local/lib
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
   /Applications/Xcode.app/Developer/SDKs/MacOSX.sdk/usr/lib
libtcc1:
   /usr/local/lib/tcc/libtcc1.a
+ otool -L ../tcc
../tcc:
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 1252.50.4)
+ exit 1
make[2]: *** [hello-exe] Error 1
make[1]: *** [all] Error 2
make: *** [test] Error 2



And this is the slightly different test part output of the same
command with current mob HEAD (4dc4e93):

------------ hello-exe ------------
dyld: cannot load 'hello' (load command 0x80000034 is unknown)
/bin/sh: line 1: 53010 Abort trap: 6           ./hello
+ ../tcc -vv
tcc version 0.9.27 HEAD:4dc4e93 2023-03-13T17:01:35+01:00 (x86_64 Darwin)
install: /usr/local/lib/tcc
include:
   /usr/local/lib/tcc/include
   /usr/local/include
   
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
libraries:
   /usr/local/lib/tcc
   /usr/lib
   /lib
   /usr/local/lib
   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
   /Applications/Xcode.app/Developer/SDKs/MacOSX.sdk/usr/lib
libtcc1:
   /usr/local/lib/tcc/libtcc1.a
+ otool -L ../tcc
../tcc:
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 1252.50.4)
+ exit 1
make[2]: *** [hello-exe] Error 1
make[1]: *** [all] Error 2
make: *** [test] Error 2

I can only test things on macos 12.6 (aarch64) and macos 10.15.7 (x86_64).
These 2 platforms work with head.

I applied a lot of fixes since november so head is probably the best version.

I do not understand why adding debug support fails for osx.

The load command 0x80000034 is LC_DYLD_CHAINED_FIXUPS.
This probably means that you have to configure with option '--config-new_macho=no'. If this stil fails can you sent me 'otool -l <exe>' of the failing executable and tcc.

    Herman




reply via email to

[Prev in Thread] Current Thread [Next in Thread]