[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] mob as of 45cff8f03fe5: tcc: error: undefined symbol
From: |
Steffen Nurpmeso |
Subject: |
Re: [Tinycc-devel] mob as of 45cff8f03fe5: tcc: error: undefined symbol '__va_arg' |
Date: |
Tue, 22 Oct 2024 23:28:32 +0200 |
User-agent: |
s-nail v14.9.25-623-g395f648fc2 |
Hello!
tinycc-devel@nongnu.org wrote in
<6717FFA2.20100@gmx.de>:
|On 20.10.2024 04:54, Steffen Nurpmeso wrote:
|> commit 45cff8f03fe58a1ded52864bb6640998ea6775e5
|> Author: grischka <grischka>
|> AuthorDate: 2024-10-09 23:15:05 +0200
|> Commit: grischka <grischka>
|> CommitDate: 2024-10-13 23:55:32 +0200
|>
|> tccelf.c: write section headers before sections
|>
|> brought in a problem that results in the mentioned error.
|> I looked at the commit and pushed a typo fix, but this commit
|> brings in so many totally unrelated things at once at the one
|> hand, i as a non-expert non-deeply-involved in object games, not
|> even used to tcc source code, could now only play trial and error,
|> but it is 5 o'clock in the morning and i can be happy to come home
|> around 9, making a six hour sleep again only, and that on
|> a sunday.
|
|If it's now fixed then I suspect you were using -Wl,-whole-archive.
|If it's not then what more exactly were you doing,with tcc at that
|morning, around 5am ... ;)
It is fixed, thank you. Yes, too long, but, for heaven's sake, do
not ask me no questions.
But not that -Wl, nothing but
#define VAL_BUILD_CC "tcc -W -Wall -Wextra -pedantic -g \\n@tcc version
0.9.28rc (x86_64 Linux)"
#define VAL_BUILD_LD "tcc -Wl,--enable-new-dtags
-Wl,-rpath=/home/steffen/usr-kent-crux-linux-x86_64/opt/ressl4/lib
-Wl,-rpath=/usr/local/lib -Wl,-rpath=/usr/lib -Wl,-rpath=/lib
-L/home/steffen/usr-kent-crux-linux-x86_64/opt/ressl4/lib -L/usr/local/lib
-L/usr/lib -L/lib -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
-lidn -lcurses"
(though .. actually i think without ressl, i installed that at the
wrong place, which then makes
#define VAL_BUILD_LD "tcc -Wl,--enable-new-dtags -Wl,-rpath=/usr/local/lib
-Wl,-rpath=/usr/lib -Wl,-rpath=/lib -L/usr/local/lib -L/usr/lib -L/lib -lssl
-lcrypto -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lcurses")
__va_arg is
1: 0000000000000000 563 FUNC GLOBAL DEFAULT 1 __va_arg
..so it was a misalignment caused lookup error? (pffffh...)
Ciao!
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)