tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Linux port is broken with multi-arch


From: Christian JULLIEN
Subject: Re: [Tinycc-devel] Linux port is broken with multi-arch
Date: Mon, 28 Nov 2016 13:00:31 +0100 (CET)

This is the first commit that breaks on multi-arch:


configure: --triplet= option, Makefile: cleanup
authorgrischka <grischka> Mon, 17 Oct 2016 23:22:21 +0200 (17 23:22 +0200) committergrischka <grischka> Mon, 17 Oct 2016 23:24:10 +0200 (17 23:24 +0200)


http://repo.or.cz/tinycc.git/commitdiff/02919cd27506e25dacdbe72dad1ae2718eb75991




Le : 28 novembre 2016 à 12:36 (GMT +01:00)
De : "David Mertens" <address@hidden>
À : "address@hidden" <address@hidden>
Objet : Re: [Tinycc-devel] Linux port is broken with multi-arch


Hello Christian,

Not that I would be able to help, but I imagine that git bisect could help us pinpoint the commit that led to the problem. I would run it, but I don't have (or know how to setup) a multi-arch system for testing this.

David

On Mon, Nov 28, 2016 at 12:32 AM, Christian Jullien <address@hidden> wrote:

Hi Ramsay,

 

For sure I ran ./configure. I did it zillions of times in the past on many different 32/64 platforms. I just tested this morning on my old RHEL 6.5 reference platform which is also configure with multi-arch.

And guess what, it is also broken which is new!

 

Here is the result of what you suggested from Fedora 25 x86_64:

 

address@hidden tinycc]$ ./configure

Binary  directory   /usr/local/bin

TinyCC directory    /usr/local/lib/tcc

Library directory   /usr/local/lib

Include directory   /usr/local/include

Manual directory    /usr/local/share/man

Info directory      /usr/local/share/info

Doc directory       /usr/local/share/doc

Target root prefix  -

Source path         /home/jullien/tinycc

C compiler          gcc

Target OS           Linux

CPU                 x86-64

Big Endian          no

Profiling           no

Cross compilers     no

Use libgcc          no

Triplet             -

Creating config.mak and config.h

 

 

address@hidden tinycc]$ more config.mak

# Automatically generated by configure - do not modify

prefix=/usr/local

bindir=$(DESTDIR)/usr/local/bin

tccdir=$(DESTDIR)/usr/local/lib/tcc

libdir=$(DESTDIR)/usr/local/lib

ln_libdir=/usr/local/lib

includedir=$(DESTDIR)/usr/local/include

mandir=$(DESTDIR)/usr/local/share/man

infodir=$(DESTDIR)/usr/local/share/info

docdir=$(DESTDIR)/usr/local/share/doc

CC=gcc

GCC_MAJOR=6

GCC_MINOR=2

AR=ar

STRIP=strip -s -R .comment -R .note

CFLAGS=-Wall -g -O2 -Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized -fno-strict-aliasing

LDFLAGS=

LIBSUF=.a

EXESUF=

ARCH=x86-64

TARGETOS=Linux

VERSION = 0.9.26

TOPSRC=$(TOP)

 

address@hidden tinycc]$ more config.h

/* Automatically generated by configure - do not modify */

#ifndef CONFIG_TCCDIR

# define CONFIG_TCCDIR "/usr/local/lib/tcc"

#endif

#define GCC_MAJOR 6

#define GCC_MINOR 2

 

address@hidden tinycc]$ gcc conftest.c -o conftest && ./conftest t

x86_64-linux-gnu

address@hidden tinycc]$

 

 

-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=address@hidden] On Behalf Of Ramsay Jones
Sent: dimanche 27 novembre 2016 21:49
To: address@hidden
Subject: Re: [Tinycc-devel] Linux port is broken with multi-arch

 

 

 

On 27/11/16 20:35, Ramsay Jones wrote:

> On 27/11/16 15:55, Christian Jullien wrote:

>> Triplet             -

>

> This looks odd. Did you run ./configure?

> You also don't appear to have CONFIG_TRIPLET set in your config.mak

> file.

>

> [I would expect Triplet to be reported as 'x86_64-linux-gnu'

> and your config.mak file to have a line similar to:

>

>             NATIVE_DEFINES+=-DCONFIG_TRIPLET="\"x86_64-linux-gnu\""

>

> somewhere.]

 

BTW, I forgot to suggest trying:

 

    $ gcc -o conftest conftest.c

    $ ./conftest t

 

to see what it returns for the triplet. (Then check that the 'crt'

object files are to be found in /usr/lib/<triplet>/).

 

ATB,

Ramsay Jones

 

 

_______________________________________________

Tinycc-devel mailing list

address@hidden

https://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




--
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan



_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

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